Agent skill
artisan-commands
Execute Laravel Artisan commands safely
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/coding-andreibesleaga-gabbe-8
SKILL.md
Artisan Commands Skill
Goal
Execute Laravel Artisan commands to scaffold code, run migrations, or manage the application state.
Steps
-
Verify Context
- Ensure you are in the root of a Laravel project (look for
artisanfile). - If not found, stop and ask user for correct directory.
- Ensure you are in the root of a Laravel project (look for
-
Construct Command
- Use
php artisan <command> <arguments>. - Examples:
php artisan make:controller UserControllerphp artisan make:model Post -mphp artisan migrate:status
- NEVER run
migrate:freshor destructive commands without explicit user confirmation.
- Use
-
Execute
- Run the command using
run_command. - Capture output.
- Run the command using
-
Verify
- Check exit code is 0.
- Verify the expected file was created (e.g.,
app/Http/Controllers/UserController.php). - If migration, verify table exists (using command output).
Constraints
- Do NOT run commands that wipe data (
migrate:fresh,db:wipe) without asking. - Do NOT run
tinkerin a way that hangs the shell (interactive mode).
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?