dykyi-roman/awesome-claude-code/create-command
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Generates CQRS Commands and Handlers for PHP 8.4. Creates immutable command DTOs with handlers that modify state. Includes unit tests.
Install
npx vskill@latest install dykyi-roman/awesome-claude-code/create-commandSKILL.md
Command Generator
Generate CQRS-compliant Commands and Command Handlers with tests.
Command Characteristics
- Immutable:
final readonly class - Imperative naming: Verb + noun (CreateOrder, ConfirmPayment)
- Self-validating: Validates invariants in constructor
- Intent-revealing: Name describes what should happen
- Returns void or ID: Never returns data
Generation Process
Step 1: Generate Command
Path: src/Application/{BoundedContext}/Command/
{Name}Command.php— Immutable command DTO
Step 2: Generate Handler
Path: src/Application/{BoundedContext}/Handler/
{Name}Handler.php— Command processor
Step 3: Generate Tests
Path: tests/Unit/Application/{BoundedContext}/
File Placement
| Component | Path | |
|---|---|---|
| Command | src/Application/{BoundedContext}/Command/ | |
| Handler | src/Application/{BoundedContext}/Handler/ | |
| Unit Tests | tests/Unit/Application/{BoundedContext}/ |
Command Naming Conventions
| Action | Command Name | Returns | |
|---|---|---|---|
| Create new | CreateOrderCommand | ID | |
| Confirm/Approve | ConfirmOrderCommand | void | |
| Cancel/Reject | CancelOrderCommand | void | |
| Update property | UpdateShippingAddressCommand | void | |
| Add child | AddOrderLineCommand | void | |
| Remove child | RemoveOrderLineCommand | void |
Quick Template Reference
Command
Handler (Update Flow)
Handler (Create Flow)
Anti-patterns to Avoid
| Anti-pattern | Problem | Solution | |
|---|---|---|---|
| Returning Data | Query through command | Use Query for reads | |
| No Validation | Invalid commands | Validate in constructor | |
| Business Logic | Handler has decisions | Delegate to aggregate | |
| Missing Events | Events not dispatched | Always dispatch after save | |
| Direct Persistence | Bypassing aggregate | Always use aggregate methods |
References
For complete PHP templates and examples, see:
references/templates.md— Command, Handler, Test templates with patternsreferences/examples.md— CreateOrder, ConfirmOrder, CancelOrder examples and tests
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/create-command/SKILL.md
Popularity
- Repository stars
- 96
- Repository forks
- 25
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dykyi-roman/awesome-claude-code/create-command)