一键导入
laravel-effective-context
Provide comprehensive context in prompts—files, errors, Laravel version, dependencies, and monorepo details—for accurate AI responses
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Provide comprehensive context in prompts—files, errors, Laravel version, dependencies, and monorepo details—for accurate AI responses
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build AI features with the first-party Laravel AI SDK (Laravel 13+); agents, embeddings, images, audio, and tool calling with provider-agnostic APIs
Use API Resources with pagination and conditional fields; keep response shapes stable and cache-friendly
Compose UIs with Blade components, slots, and layouts; keep templates pure and testable
Request effective code reviews—specify focus areas, provide context, ask for architectural feedback, reference Laravel conventions
Practical daily checklist for Laravel projects; bring services up, run migrations, queues, quality gates, and tests
Create effective debugging prompts—include error messages, stack traces, expected vs actual behavior, logs, and attempted solutions
| name | laravel:effective-context |
| description | Provide comprehensive context in prompts—files, errors, Laravel version, dependencies, and monorepo details—for accurate AI responses |
Give the AI assistant the right context to generate accurate, relevant code. Missing context leads to generic solutions that don't fit your project.
app/Models/User.php, routes/api.phpapp/Services/Payment"app/Contracts".env settings, config/ valuesapps/api" vs "working in apps/admin"packages/common"BAD: "Getting an error with users"
GOOD: "Getting error when creating user:
Illuminate\Database\QueryException: SQLSTATE[23000]:
Integrity constraint violation: 1062 Duplicate entry
In UserController@store, line 45:
$user = User::create($request->validated());
Using Laravel 13.x with MySQL 8.0"
Include the full stack trace, especially:
1. POST to /api/users with email that exists
2. Validation passes (should catch this)
3. Database throws constraint violation
"Add validation to the user form"
"Add validation to UserStoreRequest:
"Need to handle payments"
"Implement Stripe payment processing:
Before sending a prompt, verify:
More context = better results. When in doubt, include it.