-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
Mohamed Elsaed edited this page Jul 5, 2026
·
2 revisions
claude-kit:install is a fully interactive configurator — it asks what you want instead of assuming.
php artisan claude-kit:install [--stack=] [--force] [--no-interaction]| Option | Description |
|---|---|
--stack= |
inertia-vue, inertia-react, blade, or none. Auto-detected when omitted. |
--force |
Overwrite files that already exist (otherwise they are skipped). |
--no-interaction |
Skip the prompts and accept sensible defaults (great for CI). |
flowchart TD
S[Frontend stack?] --> P{Use Pint?}
P --> PS{Use PHPStan?}
PS -- yes --> L[Level 0–9 + strict-rules?]
PS -- no --> T
L --> T{Set up tests?}
T -- yes --> TR[Runner: Pest / PHPUnit<br/>+ coverage % + arch tests]
T -- no --> H
TR --> H[Which hooks?<br/>Stop · pre-commit · feature-docs]
H --> X[Extras?<br/>CLAUDE.md · docs · editorconfig · MCP · CI]
X --> SK[Which bundled skills?]
SK --> MORE{Search skills.sh<br/>for more?}
MORE --> DONE([Scaffold + write .claude-kit.json])
classDef k fill:#6366f1,stroke:#4338ca,color:#fff;
class S,DONE k;
Step by step, the installer asks:
- Frontend stack — detected and confirmed (Vue / React / Blade / API-only).
- Code style — use Pint?
- Static analysis — use PHPStan? → level (0–9) → strict-rules?
- Tests — set up a gate? → runner (Pest / PHPUnit) → coverage minimum (a number, or blank to skip) → architecture tests? (Pest only)
- Hooks — which enforce the gate: Claude Stop hook · git pre-commit hook · feature-doc requirement.
-
Extras — CLAUDE.md rules · feature-doc templates ·
.editorconfig+.gitattributes· Laravel Boost MCP · GitHub Actions. - Skills — pick bundled skills, then optionally search skills.sh for more.
Your answers are written to .claude-kit.json, which the gate reads. See Configuration.
Pint on · PHPStan level 7 + strict-rules · Pest with an 80% coverage gate and architecture tests · all three hooks · the stack's default skills · all extras.
Re-running is safe:
- Existing files are skipped unless you pass
--force. -
composer.jsonandpackage.jsonare merged — your entries are never overwritten. - Running twice changes nothing.
-
composer install— installs the selected tooling and (if chosen) wires the pre-commit hook -
npm install— if a frontend stack was set up - Fill the
TODOplaceholders inCLAUDE.md
claude-kit — one-command Claude Code + quality gate for Laravel
⭐ Star · 📦 Packagist · 🐛 Issues · 💬 Discussions · 📝 Changelog
MIT © Mohamed Elsaed
Getting started
Reference
Project