| name | laravel-package-scaffold |
| description | Scaffold Laravel packages with ServiceProvider, Facade, Config, and test setup |
| allowed-tools | Bash(python3:*), Write, Read, Glob |
Laravel Package Scaffold Skill
Creates a complete Laravel package skeleton with proper structure and all necessary files.
Usage
When the user wants to create a Laravel package, use the scaffold script:
python3 ${SKILL_DIR}/scripts/scaffold_laravel_package.py <vendor/package-name> [--with-pest] [--with-facade] [--with-config] [--with-command]
Examples
Basic package
python3 ${SKILL_DIR}/scripts/scaffold_laravel_package.py mwguerra/my-package
Package with testing
python3 ${SKILL_DIR}/scripts/scaffold_laravel_package.py mwguerra/my-package --with-pest
Full-featured package
python3 ${SKILL_DIR}/scripts/scaffold_laravel_package.py mwguerra/my-package --with-pest --with-facade --with-config --with-command
What Gets Created
Directory Structure
packages/
└── vendor/
└── package-name/
├── composer.json
├── README.md
├── LICENSE
├── .gitignore
├── config/
│ └── package-name.php
├── src/
│ ├── PackageNameServiceProvider.php
│ ├── PackageName.php (main class)
│ ├── Facades/
│ │ └── PackageName.php
│ └── Commands/
│ └── InstallCommand.php
└── tests/ (if --with-pest)
├── Pest.php
├── TestCase.php
└── Unit/
└── ExampleTest.php