agentleFS
AlizHarbAlizHarb/agent-skills/skills/create-laravel-package/SKILL.md

create-laravel-package

Skill1 starsChanged 5 months agoMITView on GitHub

Use when creating a Laravel package with Composer metadata, service provider, config publishing, commands, tests, CI, and release docs.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when starting or converting a repository into a reusable Laravel package.

    line 13
  2. Very specific:

    Add or update composer.json with author, license, autoloading, support links, keywords, and Laravel auto-discovery.

    line 18
  3. Distinctive:

    Create a service provider that registers config, commands, views, translations, assets, or migrations only when needed.

    line 19
  4. Distinctive:

    Add config publishing and avoid forcing application files into the host app.

    line 20
  5. Distinctive:

    Add Pest/Testbench tests for package boot, command registration, config publishing, and core behavior.

    line 21
  6. Distinctive:

    Add CI for Composer validation, Pint, PHPStan, and tests.

    line 22
  7. Distinctive:

    Document installation, usage, configuration, testing, and release process.

    line 23

≈ “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

Create Laravel Package

When To Use

Use this skill when starting or converting a repository into a reusable Laravel package.

Workflow

  1. Inspect existing package conventions, composer metadata, namespaces, and service providers.
  2. Add or update composer.json with author, license, autoloading, support links, keywords, and Laravel auto-discovery.
  3. Create a service provider that registers config, commands, views, translations, assets, or migrations only when needed.
  4. Add config publishing and avoid forcing application files into the host app.
  5. Add Pest/Testbench tests for package boot, command registration, config publishing, and core behavior.
  6. Add CI for Composer validation, Pint, PHPStan, and tests.
  7. Document installation, usage, configuration, testing, and release process.

Verification

  • Run composer validate.
  • Run vendor/bin/pint --test.
  • Run vendor/bin/pest.
  • Run vendor/bin/phpstan analyse.

Common Mistakes

  • Hardcoding app paths instead of publishing configuration.
  • Missing Laravel auto-discovery.
  • Shipping examples that do not match supported Laravel versions.

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.