laravel-agent-rules / bootstrap
CLAUDE.md9 starsChanged 2 months agoMITView on GitHub
Purpose: configure routing, middleware, exceptions, and application providers in the modern Laravel 12/13 skeleton.
In this repository7 other files it gives its agents.
- app/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- config/CLAUDE.mdCLAUDE.md
- database/CLAUDE.mdCLAUDE.md
- lang/CLAUDE.mdCLAUDE.md
- routes/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
The file
Files
Application bootstrap
Purpose: configure routing, middleware, exceptions, and application providers in the modern Laravel 12/13 skeleton.
- Register routing in
bootstrap/app.phpwithwithRouting(). Readroutes/CLAUDE.mdfor binding, authorization, and scheduling conventions. - Register middleware aliases and group additions with
withMiddleware(). Readapp/Http/Middleware/CLAUDE.md; preserve the framework priority list withprependToPriorityList()/appendToPriorityList()unless deliberately replacing the complete list. - Configure reporting and rendering with
withExceptions(). Readapp/Exceptions/CLAUDE.md; API responses use stable error codes and translated messages, with technical details confined to logs. - Register application providers in
bootstrap/providers.php; keep bindings and boot-time setup in providers (app/Providers/CLAUDE.md). - Preserve existing routing and middleware configuration when adding a hook. The modern skeleton has no application
Http/Kernel.php,Console/Kernel.php, orExceptions/Handler.php; configure the bootstrap hooks instead. - API and broadcasting route files are optional. Use
php artisan install:api/php artisan install:broadcastingwhen the feature is required, then inspect the generated bootstrap configuration before adding duplicate wiring.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

