— 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
✓ PassedNo 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 claimAbout
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
- Check whether an Artisan generator already exists before creating the file manually.
- Use the appropriate
php artisan make:*command when one exists. - Put reusable behavior in Actions, Services, Jobs, or Support classes.
- Use
laravel/promptsfor interactive input, choice, and confirmation instead of ad hoc console IO. - Keep the command thin and typed.
- 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/promptsused 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.
- Author: AlizHarb
- Source: AlizHarb/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.