ワンクリックで
laravel-effective-context
// Provide comprehensive context in prompts—files, errors, Laravel version, dependencies, and monorepo details—for accurate AI responses
// Provide comprehensive context in prompts—files, errors, Laravel version, dependencies, and monorepo details—for accurate AI responses
Request effective code reviews—specify focus areas, provide context, ask for architectural feedback, reference Laravel conventions
Create effective debugging prompts—include error messages, stack traces, expected vs actual behavior, logs, and attempted solutions
Refine AI-generated code through specific feedback—point out errors, identify gaps, show desired changes, reference style guides
Use Laravel-specific vocabulary—Eloquent patterns, Form Requests, API resources, jobs/queues—to get idiomatic framework code
Structure prompts for clarity—separate concerns, prioritize requests, specify acceptance criteria, and break work into testable increments
Define clear constraints—performance, security, testing, architecture, dependencies—so AI generates code that meets your project standards
| 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 11.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.