From superpowers-laravel
Guides developers on providing effective context for AI prompts—files, errors, Laravel version, dependencies, and monorepo details—to get accurate, project-specific code suggestions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-laravel:effective-contextThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Give the AI assistant the right context to generate accurate, relevant code. Missing context leads to generic solutions that don't fit your project.
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.
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelApplies consistent Laravel 11/12 workflows: stack detection, Inertia/React/Livewire/Vue/Blade conventions, Docker Sail commands, and Laravel Boost tooling.
Provides Laravel patterns and best practices for Eloquent ORM, model relationships, authentication, API resources, testing, caching, and queues.
Provides foundational PHP project knowledge including environment detection, Composer dependency analysis, framework identification, coding standards, and PhpStorm MCP tool integrations.