Skip to content

saddamalsalfi/laravel-packages-and-themes

unversioned · 555d3e94bee1MIT

Develop, review, and release Laravel Composer packages and application themes. Use for service providers, package discovery, migrations, Blade or Livewire components, Inertia and Vite integration, or compatibility testing in a consumer app.

Laravel Packages and Themes

العربية · Skill · Examples · MIT License

An independent Agent Skill for Laravel extension development. Treats a framework-independent library, Laravel-aware package, starter kit, and application theme as different deliverables. This is instruction and reference content for coding agents, not an installable Laravel extension.

What it covers

  • Choose Composer constraints, PSR-4 and service provider/resource registrations against the consumer's supported stack.
  • Ship Blade, Livewire, or Inertia UI with an explicit override and asset-build contract.
  • Verify discovery, migration ownership, cache/worker behavior, and clean consumer installation before release.

Install

Copy the whole skills/laravel-packages-and-themes/ folder into a discovery directory in the target application. Keep its name, references, and examples intact.

AgentProject directory
Codex.agents/skills/
Claude Code.claude/skills/
Cursor.agents/skills/ or .cursor/skills/
GitHub Copilot.github/skills/ or .agents/skills/ where supported
Google Antigravity.agents/skills/

A single copy in .agents/skills/ works for clients that share that project path. Use the client-specific path when required; avoid duplicate copies for the same client.

For example, from the target project root (PowerShell; point $skill to the checked-out skill directory, and use a fresh destination):

$skill = 'C:/path/to/laravel-packages-and-themes/skills/laravel-packages-and-themes'
New-Item -ItemType Directory -Path '.agents/skills' -Force | Out-Null
Copy-Item -LiteralPath $skill -Destination '.agents/skills/' -Recurse

Optional installer: From the target project, use a local checkout with the skills CLI:

npx skills add "/path/to/laravel-packages-and-themes" --list
npx skills add "/path/to/laravel-packages-and-themes" --skill laravel-packages-and-themes

After publishing to GitHub, pass the repository's OWNER/REPO instead of the local path. This works independently of the optional Agent Plugins manifest. Installing the native skill does not start or require the optional MCP server or Docker. See the client's documentation for hosted or organization-managed installations.

Optional Cursor rule: After installing the skill, copy the manual rule to the target project's .cursor/rules/ and mention @laravel-packages-and-themes as a rule in chat. Prefer the native skill when available; this shortcut does not replace it. Cursor rules docs

MCP and Docker

Use the read-only MCP server if your client needs MCP instead of direct skill discovery. It serves the same bundled references over stdio or Streamable HTTP. See the setup and publishing guide for Python, Docker, Glama, and the official MCP Registry.

Try it

Use the laravel-packages-and-themes skill. Review this Laravel package for discovery and resource-publishing issues. Preserve the existing package identity, check cached boot and nested configuration overrides in a clean consumer, and report the tested version matrix.

In Codex you can also start with $laravel-packages-and-themes; in Claude Code, use /laravel-packages-and-themes. The skill reports in the user's language unless they request another.

Maintainer checks

Run from this repository root with Python 3.10+:

python -B -m unittest discover -s tests -v

The standard-library checks cover installation, metadata, and local links. To exercise MCP, install the locked dependencies as described in the setup guide and rerun the suite. The GitHub Actions workflow runs these checks on Windows and Linux. They do not exercise Laravel runtime code or certify that a resulting package is compatible or accepted upstream.

This repository is independent and not endorsed by Laravel. The MIT license applies to this skill; check the applicable license and directory requirements for any extension it helps you build.

Source

Adapted from the project guide laravel-package-and-theme-best-practices.md. Topic-specific documentation is bundled under skills/laravel-packages-and-themes/references/.