/claude-toolkit:project-laravelfrom claude-toolkit
Enforces opinionated Laravel conventions for Kickoff projects and scaffolds models, enums, action classes, routes, and helpers. Useful when generating new modules or auditing existing code.
Ships in claude-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Enforce Kickoff's opinionated Laravel conventions and scaffold production-ready code that follows all project standards — models, enums, actions, routes, helpers, permissions, and architecture rules.
| Command | Description |
|---|---|
/project scaffold | Scaffold a new module (model + migration + factory + seeder + policy + controller + routes + tests) |
/project model | Generate a model extending Base with correct traits and conventions |
/project enum | Generate an enum implementing Contract with InteractsWithEnum |
/project action | Generate an action class with Builder pattern |
/project helper | Generate a helper function file in support/ |
/project route | Add a modular route file in routes/web/ or routes/api/ |
/project check | Audit existing code against Kickoff conventions |
/project scaffold — Full Module ScaffoldAsk the user:
Invoice)title:string, amount:decimal, status:enum)Create the following files in order:
references/database-conventions.md)App\Models\Base, uses correct traits (see references/model-conventions.md)references/database-conventions.md)references/database-conventions.md)references/access-control.md)routes/web/ or routes/api/ (see references/route-conventions.md)config/access-control.php (see references/access-control.md)DatabaseSeeder.phprequire_all_in())Display a checklist of all created files with paths.
/project model — Model GenerationAsk:
Follow all conventions from references/model-conventions.md:
App\Models\Base (NEVER Illuminate\Database\Eloquent\Model)HasFactory trait$fillable array$casts array for dates, enums, booleansFollow references/database-conventions.md:
$table->id() + $table->uuid('uuid')->index()$table->timestamps() + $table->softDeletes() (if model uses SoftDeletes)/project enum — Enum GenerationAsk:
InvoiceStatus)Follow all conventions from references/enum-conventions.md:
CleaniqueCoders\Traitify\Contracts\EnumCleaniqueCoders\Traitify\Concerns\InteractsWithEnum traitlabel(): string methoddescription(): string methodapp/Enums/ directory/project action — Action Class GenerationAsk:
CreateInvoice)Follow all conventions from references/action-conventions.md:
app/Actions/ directoryexecute() method/project helper — Helper Function GenerationAsk:
Follow all conventions from references/helper-conventions.md:
support/ directoryif (! function_exists('name')) check/project route — Modular Route FileAsk:
Follow all conventions from references/route-conventions.md:
routes/web/ or routes/api/Route::resource() or explicit route definitions->middleware()/project check — Convention AuditScan the project and report violations against all conventions:
App\Models\Base (see references/model-conventions.md)references/enum-conventions.md)references/database-conventions.md)references/route-conventions.md)function_exists() guard (see references/helper-conventions.md)references/architecture-rules.md)references/architecture-rules.md)references/project-structure.md)## Convention Audit Report
### ✅ Passing
- Models: 12/12 extend Base
- Enums: 5/5 implement Contract
### ❌ Violations
- app/Models/Legacy.php — extends Eloquent Model instead of Base
- app/Helpers/utils.php — missing function_exists() guard on format_currency()
### 💡 Suggestions
- Consider adding uuid column to legacy_table migration
These conventions MUST be followed in ALL generated code:
App\Models\Base, never Illuminate\Database\Eloquent\ModelCleaniqueCoders\Traitify\Contracts\Enum, use InteractsWithEnum$table->id() + $table->uuid('uuid')->index() in every migrationroutes/web/*.php, loaded via require_all_in()support/ directory, guarded with function_exists() checkmodule.action.target format, config-driven via access-control.phpdd/dump/ray, no url(), no raw DB:: queries, env() only in configapp/Concerns/, must be traitsapp/Contracts/, must be interfacesapp/Policies/, suffix "Policy", standard CRUD methodscomposer test, composer format, composer analyse, composer rector| File | Description |
|---|---|
references/model-conventions.md | Base model, UUID, traits, relationships, casts |
references/enum-conventions.md | Enum contract, InteractsWithEnum, label/description methods |
references/action-conventions.md | Builder pattern, Actions directory, execute() method |
references/route-conventions.md | Modular routes, require_all_in, naming conventions |
references/helper-conventions.md | support/ directory, function_exists guard, helper patterns |
references/access-control.md | Roles, permissions, policies, middleware, config |
references/database-conventions.md | UUID PKs, migrations, seeders, factories |
references/architecture-rules.md | Banned functions, naming suffixes, strict rules |
references/project-structure.md | Directory layout, config files, Docker, stubs |
references/frontend-conventions.md | TailwindCSS v4, Alpine, Tippy, Vite |
references/access-control.md (opens in a new tab)references/action-conventions.md (opens in a new tab)references/architecture-rules.md (opens in a new tab)references/database-conventions.md (opens in a new tab)references/enum-conventions.md (opens in a new tab)references/frontend-conventions.md (opens in a new tab)references/helper-conventions.md (opens in a new tab)references/model-conventions.md (opens in a new tab)references/project-structure.md (opens in a new tab)references/route-conventions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
laravel, kickoff, scaffolding, conventions, code-generation, spatie-permission
npx claudepluginhub nasrulhazim/claude --plugin claude-toolkit43 skills in this plugin
/business-cardSVG business card designer that takes contact details and brand preferences, then produces 12 front design concepts with optional back designs, interactive HTML preview galleries, individual card showcases with front/back flip animation, and print-ready SVG exports with bleed area and crop marks. Supports horizontal and vertical orientations, six layout styles (minimal, corporate, creative, elegant, bold, tech), multiple color schemes, QR code placeholders, social media icons, and logo integration. Use this skill whenever the user asks to design a business card, create a name card, make visiting cards, or says "design business card", "buat kad bisnes", "create name card", "reka kad perniagaan", "design kad nama", "I need a business card for X".
/ci-cd-pipelineCI/CD pipeline builder for Laravel projects — extends Kickoff's existing GitHub Actions CI with continuous deployment pipelines (staging/production), Docker containerisation, secret management, and failure notifications. Generates Dockerfiles, docker-compose.yml, deployment configs for VPS via SSH, container registry push workflows, and leverages Kickoff's /bin scripts (deploy.sh, backup.sh, setup.sh) in automated workflows. Use this skill whenever the user asks to set up deployment pipelines, containerise a Laravel app, configure CD for staging or production, push Docker images to a registry, manage deployment secrets, add failure notifications to CI, or integrate /bin scripts with GitHub Actions. Triggers for requests like "set up CD pipeline", "deploy to staging automatically", "dockerise my Laravel app", "add Docker to my project", "push image to registry", "manage secrets in CI", "notify on failure", "extend CI with deployment", "setup deploy pipeline", "nak deploy guna GitHub Actions", "tambah Docker dalam project", "setup CD untuk staging", "nak auto deploy ke production", "dockerise Laravel app aku", "tambah notification kalau CI fail", "macam mana nak manage secrets dalam GitHub Actions", or "integrate bin scripts dengan CI". Assumes Laravel Kickoff as the baseline — GitHub Actions CI (Pint, PHPStan, Rector, Pest) and /bin scripts (deploy.sh, backup.sh) are already configured. This skill extends that baseline with CD, Docker, and deployment automation.
/code-qualityPHP and Laravel code quality toolchain — static analysis with Larastan/PHPStan, code style enforcement with Pint, automated refactoring with Rector, baseline management for legacy codebases, and CI pipeline integration via GitHub Actions. Use this skill whenever the user asks to check code quality, fix linting errors, run static analysis, modernise PHP code, set up CI quality gates, manage PHPStan baselines, configure Pint presets, or apply Rector rules. Triggers for requests like "run quality check", "fix my code style", "analyse with larastan", "update phpstan baseline", "modernise my PHP code", "set up CI for quality", "check code quality", "pint tak jalan", "nak fix phpstan error", "setup rector", "betulkan code style", "tambah quality gate dalam CI", or "baseline phpstan untuk legacy code". Assumes Laravel Kickoff as the baseline — PHPStan, Pint, Rector, and GitHub Actions CI are already configured. This skill extends and customises that baseline.
/courseware-builderInteractive HTML courseware builder — turns any technical topic, flow, or process into a CD-Courseware-style interactive slide deck with animated diagrams, step-by-step simulation, syntax-highlighted code examples, and key points panels. Use this skill whenever the user wants to create teaching materials, interactive slides, animated flow diagrams, or step-by-step technical walkthroughs — even if they say "buatkan slides untuk topik X", "jadikan courseware", "buat interactive tutorial", or "create a lesson on X". Also triggers for "convert my diagram to interactive slides" or "build a visual walkthrough for my training".
/debuggingSystematic debugging and error recovery for Laravel and PHP projects — a five-step triage that goes reproduce, localise, reduce, fix, guard. Covers reading a stack trace properly, bisecting with git, isolating a failure to the smallest reproducer, telling a symptom apart from a root cause, and closing every fix with a regression test. Includes Laravel-specific traps: N+1 masked as a timeout, queue jobs failing silently on the wrong connection, cache and config caches serving stale values, Livewire state desync, and eloquent/model events firing in unexpected order. Use this skill whenever the user reports something broken, failing, flaky, slow-then-erroring, or behaving differently in production than locally — including "this test is flaky", "why is this failing", "debug this error", "it works locally but not on staging", "find the root cause", "this exception makes no sense", "the queue job never runs", "bisect this regression", "kenapa error ni", "tolong debug", "test ni kejap pass kejap fail", "cari punca sebenar", "jalan kat local tapi tak jalan kat production", or "job queue tak jalan". Pairs with kickoff-pest-testing for the regression test and log-monitor for production-log-driven investigations.
/deploy-appDeploys a Kickoff-based Laravel application to its host by running `bin/deploy` over SSH, then verifies the release and knows what each way it can stop means. Use this skill whenever the user asks to deploy an app, push the latest code to production, check what commit production is running, bring a site back up after a failed deploy, or roll back — "deploy latest", "deploy the app", "tolong deploy", "deploy latest dulu", "push to production", "apa commit dekat production", "site down after deploy", "keluarkan maintenance mode", "rollback production", "kenapa 503". Covers the deploy command and its flags, the post-deploy verification checklist, the recovery path for each failure mode, and the production traps that have already cost time. Does NOT cover provisioning a new host from bare metal (`bin/provision-host`), CI/CD pipeline design (`ci-cd-pipeline`), or writing deploy operations.
Other plugins' skills for the same job