Scaffold Package
БесплатноЗапускает вложенные скриптыНе проверенScaffold Laravel packages with ServiceProvider, Facade, Config, Testbench, and Workbench
от mwguerra★ 35 звёзд на GitHubОб этом скилле
Laravel Package Scaffold Skill
Creates a complete Laravel package skeleton with Pest v4, Testbench v10, Workbench, and optional Playwright.
Usage
When the user wants to create a Laravel package, use the scaffold script:
python3 ${SKILL_DIR}/scripts/scaffold_package.py <vendor/package-name> [options]
Options
--with-routes- Include route files (web.php, api.php)--with-views- Include views directory--with-migrations- Include database migrations--with-commands- Include artisan install command--with-playwright- Include Playwright browser testing--all- Include routes, views, migrations, commands (NOT playwright)--project-root- Specify project root directory
Examples
Basic package (with testing and workbench)
python3 ${SKILL_DIR}/scripts/scaffold_package.py mwguerra/my-package
Full-featured package
python3 ${SKILL_DIR}/scripts/scaffold_package.py mwguerra/my-package --all
Full-featured with Playwright
python3 ${SKILL_DIR}/scripts/scaffold_package.py mwguerra/my-package --all --with-playwright
What Gets Created
Always created
composer.json— PHP 8.3, Laravel 12, Testbench 10, Pest 4src/{PackageName}ServiceProvider.php— with register/bootsrc/{PackageName}.php— main classsrc/Facades/{PackageName}.php— facadeconfig/{package-name}.php— package configlang/en/messages.php— translationstestbench.yaml— Testbench + Workbench configurationworkbench/— interactive development environmenttests/— Pest v4 tests with WithWorkbench traitphpunit.xml— test runner config.github/workflows/tests.yml— CI workflowREADME.md,LICENSE,.gitignore,.gitattributes
Optional
routes/web.php,routes/api.php(with--with-routes)resources/views/(with--with-views)database/migrations/,database/factories/(with--with-migrations)src/Commands/InstallCommand.php(with--with-commands)playwright.config.ts,package.json,tests/Browser/(with--with-playwright)
Project Integration
The script automatically updates the host project's composer.json:
- Adds path repository pointing to
packages/vendor/package-name - Adds package to
requireblock as@dev - Enables symlink for development
Key Design Decisions
- Testing always on — Pest + Testbench always scaffolded, no opt-out.
- Workbench always on — testbench.yaml and workbench/ always created.
- WithWorkbench trait — TestCase uses
WithWorkbenchfor config from testbench.yaml. - No Filament — Pure Laravel package focus.
- Pinned versions — PHP 8.3, Laravel 12, Testbench 10, Pest 4.
After Running
- Install dependencies:
composer update - Run tests:
cd packages/vendor/package-name && composer install && vendor/bin/pest - Serve workbench:
cd packages/vendor/package-name && composer serve
Установить Scaffold Package в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(python3:*)WriteReadGlobВложенные файлы
FAQ
Что делает скилл Scaffold Package?
Scaffold Laravel packages with ServiceProvider, Facade, Config, Testbench, and Workbench
Как установить скилл Scaffold Package?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Scaffold Package запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic