Skip to content
Back to skills

Coding

ASecurity

Run Laravel Artisan commands safely: check the project and environment, run the command, verify the result. Use when the user asks to scaffold a controller or model, run migrations or manage a Laravel app with php artisan.

  • 24 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 14, 2026
ai-agentsgophpshellsqltestinggit

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add andreibesleaga/GABBE --skill coding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andreibesleaga-coding-gabbe/badge)](https://www.skillsdirectory.com/skills/andreibesleaga-coding-gabbe)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: artisan-commands
description: "Run Laravel Artisan commands safely: check the project and environment, run the command, verify the result. Use when the user asks to scaffold a controller or model, run migrations or manage a Laravel app with php artisan."
triggers: [artisan, laravel, php artisan, make controller, migrate]
tags: [coding]
context_cost: low
---
# Artisan Commands Skill

## Goal
Execute Laravel Artisan commands to scaffold code, run migrations, or manage the application state.

## Steps

1. **Verify Context**
   - Ensure you are in the root of a Laravel project (look for `artisan` file).
   - If not found, stop and ask user for correct directory.

2. **Construct Command**
   - Use `php artisan <command> <arguments>`.
   - Examples:
     - `php artisan make:controller UserController`
     - `php artisan make:model Post -m`
     - `php artisan migrate:status`
   - NEVER run `migrate:fresh` or destructive commands without explicit user confirmation.

3. **Execute**
   - Run the command using `run_command`.
   - Capture output.

4. **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 `tinker` in a way that hangs the shell (interactive mode).

## Output Format
The command that was run, a summary of its output, and the file or table it created, checked (exit code 0 and no warnings in the output).

## Limits and safety
- Before any command that changes state (`migrate`, `db:seed`, `db:*`), read `APP_ENV` in `.env`; if it is not `local` or `testing`, stop and ask.
- Never run `migrate:fresh`, `migrate:refresh`, `migrate:reset` or `db:wipe` without the human's yes after saying what data is lost; run `php artisan migrate --pretend` first to show the SQL.
- Build class and model names from a strict pattern (letters, digits, `\`); never paste free text from a prompt or file into the command line.
- Check an unfamiliar command or flag with `php artisan list` or `php artisan help <command>` for the project's Laravel version; do not guess flags.
- Read the output for warnings, not only the exit code; an unexpected warning is a failure to look into.

Files in this skill

  • agent-trajectory-eval.skill.md5.7 KB
  • artisan-commands.skill.md3.7 KB
  • browser-tdd.skill.md7 KB
  • chaos-fault-injection.skill.md8.1 KB
  • ci-autofix.skill.md4.2 KB
  • clean-coder.skill.md4.5 KB
  • code-review.skill.md6.1 KB
  • debug.skill.md6.5 KB
  • documentation.skill.md7.3 KB
  • eval-driven-development.skill.md6.9 KB
  • evals/code-review.eval.yaml1 KB
  • excalidraw.skill.md3.7 KB
  • file-processing.skill.md4.3 KB
  • git-workflow.skill.md7.2 KB
  • metamorphic-testing.skill.md7.8 KB
  • mobile-dev.skill.md4.2 KB
  • nodejs-expert.skill.md1.6 KB
  • output-validation.skill.md5.4 KB
  • pbt-strategy.skill.md8 KB
  • performant-ai.skill.md3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.