jamesclark32/clapperboard
Composer 安装命令:
composer require jamesclark32/clapperboard
包简介
Opinionated Laravel application code generation commands for AI agents.
README 文档
README
Opinionated Laravel application code generation commands for AI agents.
Scope
This package currently provides the existing generation commands from the host app:
php artisan generate:modelphp artisan generate:route
The package is intentionally opinionated around a Laravel + Inertia + Vue application structure.
Install In A Laravel App
For local development via a Composer path repository:
{
"repositories": [
{
"type": "path",
"url": "../clapperboard"
}
],
"require-dev": {
"jamesclark32/clapperboard": "^0.1"
}
}
Then run:
composer update jamesclark32/clapperboard
Laravel package discovery will register JamesClark32\Clapperboard\CodegenServiceProvider automatically.
Install agent-facing project instructions:
php artisan clapperboard:install
Local Testing
Example workflow for testing package changes against a local Laravel app:
- Add this package to a host app with a Composer path repository.
- Refresh the package in the host app after each package change.
- Run generator dry-runs first, then apply writes.
In the host Laravel app:
composer update jamesclark32/clapperboard php artisan clapperboard:install --dry-run --json php artisan generate:model Widget "Widget catalog item" '{"attributes":[{"name":"name","fillable":true,"columnType":"string"},{"name":"description","fillable":true,"columnType":"text","nullable":true},{"name":"price","fillable":true,"columnType":"decimal","casts":"decimal"}],"relationships":[]}' --dry-run --json php artisan generate:route Widgets index --dry-run --json php artisan generate:route Widgets create --dry-run --json php artisan generate:route Widgets store --dry-run --json php artisan generate:route Widgets show --dry-run --json php artisan generate:route Widgets edit --dry-run --json php artisan generate:route Widgets update --dry-run --json
To apply the generated files in the host app:
php artisan generate:model Widget "Widget catalog item" '{"attributes":[{"name":"name","fillable":true,"columnType":"string"},{"name":"description","fillable":true,"columnType":"text","nullable":true},{"name":"price","fillable":true,"columnType":"decimal","casts":"decimal"}],"relationships":[]}' php artisan generate:route Widgets index php artisan generate:route Widgets create php artisan generate:route Widgets store php artisan generate:route Widgets show php artisan generate:route Widgets edit php artisan generate:route Widgets update
Useful follow-up checks in the host app:
php artisan test
php artisan route:list --name=widgets
Usage
Preview changes without writing files:
php artisan clapperboard:install --dry-run --json php artisan generate:route Widgets index --dry-run --json php artisan generate:model Widget "Widget catalog item" '{"attributes":[{"name":"name","fillable":true,"columnType":"string"}],"relationships":[]}' --dry-run --json
Write files:
php artisan generate:route Widgets index php artisan generate:model Widget "Widget catalog item" '{"attributes":[{"name":"name","fillable":true,"columnType":"string"}],"relationships":[]}'
Notes
--dry-runreturns a generation plan without writing files.--jsonreturns machine-readable output for agents.php artisan clapperboard:installwrites Clapperboard instructions intoAGENTS.mdand.github/copilot-instructions.md.- Generated output assumes the host app follows the architecture used by this codebase.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-05