agentleFS
hmj1026hmj1026/dhpk/skills/laravel/SKILL.md

laravel

Skill2 starsChanged 7 days agoMITView on GitHub

Laravel framework guidance across 5.4, 6, 7, 8, 9, 10, 11, and optional Mix 5. Use when implementing or reviewing framework-touching Laravel code, planning an upgrade, or debugging a version-specific build. Not for Symfony, Yii, or frontend-only work; use php for runtime selection. Output: one selected Laravel or Mix reference, compatibility constraints, and verification gates.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use wordpress.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • iamandrewpetersSkill

    wordpress

    Use this skill when working on WordPress development tasks including plugins, themes, shortcodes, hooks, WP-CLI commands, multisite, custom post types, meta boxes, the REST API, or debugging WordPress issues.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this order and stop at the first decisive result:

    line 18
  2. Very specific:

    After resolution, load only the matching file below.

    line 38
  3. Very specific:

    Use php for Symfony, Yii, or general PHP runtime selection that is not Laravel-specific.

    line 60
  4. Very specific:

    Use framework-neutral guidance for frontend-only work.

    line 62
  5. Very specific:

    Run php artisan --version or composer show laravel/framework when the project is available, then compare it with the selected reference.

    line 77
  6. Distinctive:

    Check the PHP floor, source-generation layout, and package constraints in the selected reference before writing framework-coupled code.

    line 92
  7. Distinctive:

    Treat the reference as locked framework documentation, not the application's policy SSOT.

    line 94
  8. Distinctive:

    Run the reference's verification gates and report any version mismatch or unresolved migration trap explicitly.

    line 96
  9. Very specific:

    All resolver imports and reference paths are family-relative.

    line 108

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “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 family router

This family package is self-contained. It routes a Laravel request to one version reference and keeps version-specific guidance out of the initial prompt until the selector is known.

Resolve the selector

Use this order and stop at the first decisive result:

  1. Explicit selector — honor the caller's version without reading a project file. Supported selectors are 5.4, 6, 7, 8, 9, 10, 11, and mix. The compatibility aliases 5-4, laravel-5.4, laravel-5-4, laravel-mix, and mix-5 normalize to 5.4 or mix.
  2. Project detection — if no selector was supplied, read the current project's composer.lock, then composer.json, for laravel/framework. A package-only asset project may also resolve mix from package.json when laravel-mix is declared. These files are read directly by the family-local resolver.
  3. Ask — if the selector is missing, malformed, unsupported, or ambiguous, ask which supported selector applies. Never guess a nearby major or silently use the newest reference.

Project detection never consults dhpk installation or publication manifests. The family package must continue to work when copied by itself.

Load exactly one reference

After resolution, load only the matching file below. Do not preload sibling versions. For a cross-version review or upgrade, consult compatibility.md or migration.md after the selector-specific reference; those shared notes are not selector targets.

SelectorReference
5.4 (or 5-4)references/5-4.md
6references/6.md
7references/7.md
8references/8.md
9references/9.md
10references/10.md
11references/11.md
mix (or laravel-mix)references/mix.md

The resolver reports the selected relative reference and its complete file contents. A successful resolution therefore has exactly one loaded reference; an ask result has none.

When NOT to Use

  • Use php for Symfony, Yii, or general PHP runtime selection that is not Laravel-specific.
  • Use framework-neutral guidance for frontend-only work; select mix only when the project owns the Laravel Mix pipeline described above.

Output

Return the selected Laravel or Mix selector, the one loaded reference, the applicable PHP/framework floor, and the verification gates from that reference. For an unresolved or ambiguous project, return the actionable ask and report that no version reference was loaded.

Verification

  • Run node scripts/resolve-version.js --json [--version <selector>] and confirm the result names the expected family, selector, source, and reference.
  • Run php artisan --version or composer show laravel/framework when the project is available, then compare it with the selected reference.
  • For a copied family directory, run the CLI with NODE_PATH empty and an explicit selector to prove that resolution has no repository dependency.

The family-local scripts/resolve-version.js is the JSON CLI entrypoint. It accepts an optional explicit selector and exits non-zero when resolution asks for input or encounters an error. scripts/version-resolver.js is the programmatic resolver used by the CLI; it returns the selected reference and loaded contents, or an ask result with no loaded references.

Apply the selected guidance

  • Confirm the installed framework version with php artisan --version or composer show laravel/framework when the project is available.
  • Check the PHP floor, source-generation layout, and package constraints in the selected reference before writing framework-coupled code.
  • Treat the reference as locked framework documentation, not the application's policy SSOT. Keep domain and product decisions in the application sources.
  • Run the reference's verification gates and report any version mismatch or unresolved migration trap explicitly.

Mix boundary

mix is an optional upgraded legacy asset-pipeline selector for Laravel Mix 5 and webpack 4. It is not default Laravel framework coupling. Select it for a project that actually owns webpack.mix.js, laravel-mix, and the associated npm scripts; otherwise use the Laravel framework selector alone.

Portable package boundary

All resolver imports and reference paths are family-relative. Core resolution requires no dhpk manifest, hook, agent, MCP server, or repository working state.

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.