agentleFS
leekleek/laravel-agent-rules/bootstrap/CLAUDE.md

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.

The file

Files
CLAUDE.md

Application bootstrap

Purpose: configure routing, middleware, exceptions, and application providers in the modern Laravel 12/13 skeleton.

  • Register routing in bootstrap/app.php with withRouting(). Read routes/CLAUDE.md for binding, authorization, and scheduling conventions.
  • Register middleware aliases and group additions with withMiddleware(). Read app/Http/Middleware/CLAUDE.md; preserve the framework priority list with prependToPriorityList() / appendToPriorityList() unless deliberately replacing the complete list.
  • Configure reporting and rendering with withExceptions(). Read app/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, or Exceptions/Handler.php; configure the bootstrap hooks instead.
  • API and broadcasting route files are optional. Use php artisan install:api / php artisan install:broadcasting when the feature is required, then inspect the generated bootstrap configuration before adding duplicate wiring.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.