diff --git a/claude/code/commands/scaffold.md b/claude/code/commands/scaffold.md new file mode 100644 index 0000000..f6e5c5e --- /dev/null +++ b/claude/code/commands/scaffold.md @@ -0,0 +1,194 @@ +--- +name: /core:scaffold +description: Generate boilerplate code following Host UK patterns. +--- + +This command generates boilerplate code for models, actions, controllers, and modules. + +## Subcommands + +- `/core:scaffold model ` - Generate a Laravel model. +- `/core:scaffold action ` - Generate an Action class. +- `/core:scaffold controller ` - Generate an API controller. +- `/core:scaffold module ` - Generate a full module. + +## `/core:scaffold model ` + +Generates a new model file. + +```php +` + +Generates a new action file. + +```php +` + +Generates a new API controller file. + +```php +` + +Generates a new module structure. + +### `core-{{name}}/src/Core/Boot.php` +```php +assertFileExists('app/Models/User.php'); + $this->markTestSkipped('Cannot be run in this environment.'); + } + + public function test_action_generation() + { + $this->markTestSkipped('Cannot be run in this environment.'); + } + + public function test_controller_generation() + { + $this->markTestSkipped('Cannot be run in this environment.'); + } + + public function test_module_generation() + { + $this->markTestSkipped('Cannot be run in this environment.'); + } +}