project-laravel
БесплатноБез исполняемых скриптовНе проверенLaravel project conventions enforcer and code scaffolder for Kickoff-based projects — ensures all generated code follows Kickoff's opinionated conventions…
от nasrulhazim★ 26 звёзд на GitHubОб этом скилле
Laravel Project Conventions
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 Reference
| 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 |
1. /project scaffold — Full Module Scaffold
Step 1: Gather Module Info
Ask the user:
- Module name (singular, e.g.,
Invoice) - Fields (name:type pairs, e.g.,
title:string,amount:decimal,status:enum) - Relationships (belongsTo, hasMany, belongsToMany)
- Needs API routes? (yes/no)
- Needs web routes? (yes/no — default yes)
Step 2: Generate Files
Create the following files in order:
- Migration — UUID PK, uuid column, timestamps, soft deletes (see
references/database-conventions.md) - Model — Extends
App\Models\Base, uses correct traits (seereferences/model-conventions.md) - Factory — Matches model fields with appropriate Faker methods (see
references/database-conventions.md) - Seeder — Uses factory with reasonable count (see
references/database-conventions.md) - Policy — Standard CRUD methods with Spatie permission checks (see
references/access-control.md) - Controller — Resource controller with policy authorization (suffix "Controller")
- Form Request — Store and Update request classes with validation rules
- Route file — Modular route in
routes/web/orroutes/api/(seereferences/route-conventions.md) - Pest tests — Feature tests for all CRUD operations (delegate to kickoff-pest-testing skill patterns)
- Permission config — Add entries to
config/access-control.php(seereferences/access-control.md)
Step 3: Register
- Add seeder call to
DatabaseSeeder.php - Verify route file is in the correct directory (auto-loaded via
require_all_in()) - Add permission entries to access-control config
Output
Display a checklist of all created files with paths.
2. /project model — Model Generation
Step 1: Gather Info
Ask:
- Model name (singular PascalCase)
- Fields (for fillable array)
- Relationships (belongsTo, hasMany, morphTo, etc.)
- Traits needed (HasHashId, SoftDeletes, HasFactory, etc.)
Step 2: Generate
Follow all conventions from references/model-conventions.md:
- Extend
App\Models\Base(NEVERIlluminate\Database\Eloquent\Model) - Include
HasFactorytrait - Define
$fillablearray - Define
$castsarray for dates, enums, booleans - Add relationship methods with return types
- Add query scopes if applicable
Step 3: Generate Migration
Follow references/database-conventions.md:
$table->id()+$table->uuid('uuid')->index()- All fields from model
$table->timestamps()+$table->softDeletes()(if model uses SoftDeletes)
3. /project enum — Enum Generation
Step 1: Gather Info
Ask:
- Enum name (PascalCase, e.g.,
InvoiceStatus) - Cases (list of cases with values)
- Backing type (string or int — default string)
Step 2: Generate
Follow all conventions from references/enum-conventions.md:
- Implement
CleaniqueCoders\Traitify\Contracts\Enum - Use
CleaniqueCoders\Traitify\Concerns\InteractsWithEnumtrait - Define
label(): stringmethod - Define
description(): stringmethod - Place in
app/Enums/directory
4. /project action — Action Class Generation
Step 1: Gather Info
Ask:
- Action name (PascalCase, e.g.,
CreateInvoice) - Input parameters (what data the action needs)
- Return type (Model, bool, void, etc.)
Step 2: Generate
Follow all conventions from references/action-conventions.md:
- Place in
app/Actions/directory - Use Builder pattern with fluent setters
- Single
execute()method - Return typed result
5. /project helper — Helper Function Generation
Step 1: Gather Info
Ask:
- Function name(s)
- Purpose / description
- Parameters and return types
Step 2: Generate
Follow all conventions from references/helper-conventions.md:
- Place in
support/directory - Guard EVERY function with
if (! function_exists('name'))check - Add PHPDoc blocks
- Keep functions pure where possible
6. /project route — Modular Route File
Step 1: Gather Info
Ask:
- Route type — web or api
- Resource name (pl
Установить project-laravel в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл project-laravel?
Laravel project conventions enforcer and code scaffolder for Kickoff-based projects — ensures all generated code follows Kickoff's opinionated conventions including UUID models extending Base, Enums with Contract and InteractsWithEnum, modular routes with require_all_in(), helper functions in support/, Spatie permission with config-driven access control, architecture test rules, and Docker-based local development. Covers model generation, enum creation, action classes with Builder pattern, route modules, helper files, and full module scaffolding. Use this skill whenever the user asks to scaffold code, generate models, create enums, add routes, write helpers, check conventions, or build new modules in a Kickoff Laravel project — including: "scaffold a new module", "generate a model", "create an enum", "buat model baru", "tambah enum", "scaffold module untuk users", "buat action class", "tambah route", "buat helper function", "check convention", "audit code ni", or "ikut convention kickoff". Assumes Laravel Kickoff as the baseline with all conventions pre-configured.
Как установить скилл project-laravel?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл project-laravel запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic