← ClaudeAtlas

nw-command-design-patternslisted

Best practices for command definition files - size targets, declarative template, anti-patterns, and canonical examples based on research evidence
nWave-ai/nWave · ★ 541 · Web & Frontend · score 84
Install: claude install-skill nWave-ai/nWave
# Command Design Patterns ## The Forge Model (Gold Standard) `forge.md` at 40 lines is the reference dispatcher. Contains: header (wave, agent, overview) | Agent invocation (name + command + config) | Success criteria (checklist) | Next wave handoff | Expected outputs. Every dispatcher should aspire to this pattern. ## Command Categories | Category | Description | Size Target | Examples | |----------|-------------|-------------|----------| | Simple | Direct action, minimal delegation | 40-80 lines | forge, start, version, git | | Dispatcher | Delegates to one agent with context | 40-150 lines | research, review, execute | | Orchestrator | Coordinates multiple agents/phases | 100-300 lines | develop, document | ## Declarative Command Template Commands declare WHAT, not HOW. The agent knows how to do its job. ```markdown # DW-{NAME}: {Title} **Wave**: {WAVE_NAME} **Agent**: {persona} ({agent-id}) ## Overview One paragraph: what this command does and when to use it. ## Context Files Required - {path} - {why needed} ## Agent Invocation @{agent-id} Execute \*{command} for {parameters}. **Context Files:** - {files the orchestrator reads and passes} **Configuration:** - {key}: {value} # {comment} ## Success Criteria - [ ] {measurable outcome} - [ ] {quality gate} ## Next Wave **Handoff To**: {next wave or workflow step} **Deliverables**: {what this command produces} # Expected outputs: # - {file paths} ``` ## Size Targets and Evidence Research (Chroma Researc