agentleFS
soden46soden46/syarif-laravel-ai-skills/skills/laravel-11-12-app-guidelines/SKILL.md

laravel-11-12-app-guidelines

Skill4 starsChanged 5 months agoMITView on GitHub

Work in Laravel 11 or 12 apps with stack detection, Boost-aware docs lookup, frontend conventions, tests, and Pint formatting.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when implementing, fixing, or reviewing Laravel 11 or Laravel 12 applications.

    line 11
  2. Distinctive:

    Read repository instructions and local docs before making architectural decisions.

    line 15
  3. Very specific:

    Place scheduled commands in routes/console.php unless the project has an explicit scheduler abstraction.

    line 25
  4. Very specific:

    Prefer named routes and route() generation for internal links and redirects.

    line 26
  5. Distinctive:

    Use Form Requests for non-trivial HTTP validation and request-bound authorization.

    line 27
  6. Distinctive:

    Use API Resources for public JSON response shape when the repo already follows resource patterns.

    line 28
  7. Very specific:

    Ask before destructive database commands such as migrate:fresh, db:wipe, reset, rollback, or seed operations that overwrite data.

    line 29
  8. Distinctive:

    When Laravel Boost MCP tools are available, use them to reduce guessing:

    line 42
  9. Distinctive:

    search Laravel ecosystem docs before changing framework-specific behavior.

    line 44
  10. Distinctive:

    use read-only database inspection for debugging query shape.

    line 47
  11. Distinctive:

    If Boost is unavailable, fall back to local project files and official Laravel documentation.

    line 50
  12. Very specific:

    Run targeted tests first, then formatting or static checks that match the touched area.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Laravel 11/12 App Guidelines

Use this skill when implementing, fixing, or reviewing Laravel 11 or Laravel 12 applications.

Start Here

  1. Read repository instructions and local docs before making architectural decisions.
  2. Confirm Laravel and PHP versions from composer.json, composer.lock, or php artisan about when available.
  3. Detect whether commands should run through Sail, Docker Compose, Herd, Valet, or host PHP.
  4. Detect app mode: API-only, Blade, Livewire, Inertia, Vue, React, or a mixed legacy stack.
  5. Reuse existing conventions for naming, language, layout, components, testing, and error responses.

Laravel 11/12 Conventions

  • Configure middleware, exception handling, and routing in bootstrap/app.php when the app follows the modern skeleton.
  • Register service providers through bootstrap/providers.php when that file exists.
  • Place scheduled commands in routes/console.php unless the project has an explicit scheduler abstraction.
  • Prefer named routes and route() generation for internal links and redirects.
  • Use Form Requests for non-trivial HTTP validation and request-bound authorization.
  • Use API Resources for public JSON response shape when the repo already follows resource patterns.
  • Ask before destructive database commands such as migrate:fresh, db:wipe, reset, rollback, or seed operations that overwrite data.

Stack-Specific Notes

  • API-only apps: work in routes/api.php, follow the existing auth stack, and avoid frontend build assumptions.
  • Inertia apps: use existing page/component locations and server-side route conventions; prefer the project's form helper pattern.
  • Livewire apps: pair this with livewire-development.
  • Blade apps: keep templates presentational and move reusable decisions out of views.
  • Tailwind v4 apps: follow the existing token and import pattern; avoid deprecated utility names when editing nearby UI.
  • Wayfinder apps: follow existing generated route import patterns and regenerate route artifacts when the project requires it.

Laravel Boost

When Laravel Boost MCP tools are available, use them to reduce guessing:

  • search Laravel ecosystem docs before changing framework-specific behavior;
  • list Artisan commands before assuming command options;
  • inspect routes before adding overlapping routes;
  • use read-only database inspection for debugging query shape;
  • inspect browser logs for frontend failures.

If Boost is unavailable, fall back to local project files and official Laravel documentation.

Verification

Run targeted tests first, then formatting or static checks that match the touched area. Prefer vendor/bin/pint --dirty for changed PHP files when available.

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.