AgentStack
SKILL verified MIT Self-run

Create Console Command

skill-alizharb-agent-skills-create-console-command · by AlizHarb

Use when creating or changing a Laravel console command and its prompts, output, signature, or supporting tests.

No reviews yet
0 installs
2 views
0.0% view→install

Install

$ agentstack add skill-alizharb-agent-skills-create-console-command

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Create Console Command? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Create Console Command

When To Use

Use this skill for Laravel Artisan commands, especially when the command should be discoverable, generator-backed, and friendly to interactive users.

Inputs Needed

  • Command purpose, signature, options, prompts, output, side effects, and tests.

Workflow

  1. Check whether an Artisan generator already exists before creating the file manually.
  2. Use the appropriate php artisan make:* command when one exists.
  3. Put reusable behavior in Actions, Services, Jobs, or Support classes.
  4. Use laravel/prompts for interactive input, choice, and confirmation instead of ad hoc console IO.
  5. Keep the command thin and typed.
  6. Add tests for signature, output, and behavior.

Files That May Be Created

  • app/Console/Commands/*
  • Supporting Actions, Services, DTOs, and tests.

Files That May Be Modified

  • Console commands, providers, support classes, config, translation files, and tests.

Architecture Rules

  • Commands orchestrate; reusable classes own business logic.
  • Prefer dependency injection over app() in commands.
  • Use Laravel Prompts for user interaction.
  • Localize command output when it is user-facing and reusable.

Testing Requirements

  • Test command behavior, prompts, output, and side effects.

Security Requirements

  • Validate interactive input and avoid leaking secrets into output.

Review Checklist

  • Was a generator used if available?
  • Is laravel/prompts used for interactive input?
  • Is business logic extracted?
  • Are outputs localized where appropriate?

Common Mistakes

  • Writing everything directly inside the command class.
  • Using plain ask()/choice() patterns when Laravel Prompts gives better UX.
  • Creating commands manually when an Artisan generator exists.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.