Universal command that intelligently routes to appropriate craft commands
Routes tasks to appropriate craft commands and executes multi-step workflows intelligently.
/plugin marketplace add Data-Wise/craft/plugin install data-wise-craft@Data-Wise/craftIntelligently analyze your task and execute the right craft commands.
/craft:do <task description>
/craft:do add user authentication
# Routes to:
# 1. /craft:arch:plan - Design the feature
# 2. /craft:code:test-gen - Generate tests
# 3. /craft:git:branch - Create feature branch
/craft:do fix the login redirect issue
# Routes to:
# 1. /craft:code:debug - Analyze the issue
# 2. /craft:test:run - Run related tests
# 3. /craft:git:sync - Commit fix
/craft:do improve code quality
# Routes to:
# 1. /craft:code:lint - Check style
# 2. /craft:test:coverage - Check coverage
# 3. /craft:code:refactor - Suggest improvements
/craft:do update documentation
# Routes to:
# 1. /craft:docs:sync - Sync docs with code
# 2. /craft:docs:validate - Check links
# 3. /craft:docs:changelog - Update changelog
/craft:do prepare for release
# Routes to:
# 1. /craft:code:deps-audit - Security scan
# 2. /craft:test:run release - Full tests
# 3. /craft:code:lint release - Full lint
# 4. /craft:docs:changelog - Update changelog
# 5. /craft:code:release - Release workflow
| Category | Keywords | Commands Used |
|---|---|---|
| Feature | add, create, implement, build | arch:plan, code:test-gen, git:branch |
| Bug | fix, debug, issue, error | code:debug, test:run, test:debug |
| Quality | lint, quality, clean, improve | code:lint, test:coverage, code:refactor |
| Docs | document, update docs, readme | docs:sync, docs:validate, docs:changelog |
| Test | test, coverage, verify | test:run, test:coverage, test:debug |
| Release | release, deploy, publish | deps-audit, lint, test:run, code:release |
| Architecture | design, refactor, restructure | arch:analyze, arch:plan, arch:diagram |
Task Analysis:
├── Contains "add/create/implement"
│ └── Feature workflow
├── Contains "fix/debug/error/issue"
│ └── Bug fix workflow
├── Contains "test/coverage/verify"
│ └── Testing workflow
├── Contains "doc/readme/changelog"
│ └── Documentation workflow
├── Contains "release/deploy/publish"
│ └── Release workflow
└── Contains "refactor/restructure/design"
└── Architecture workflow
╭─ /craft:do "add user authentication" ───────────────╮
│ Task Type: Feature Development │
│ Commands: 4 │
├─────────────────────────────────────────────────────┤
│ Step 1: /craft:arch:plan │
│ ✓ Architecture designed │
│ │
│ Step 2: /craft:code:test-gen │
│ ✓ 12 test cases generated │
│ │
│ Step 3: /craft:git:branch │
│ ✓ Branch 'feature/user-auth' created │
│ │
│ Step 4: Ready to implement │
│ Next: Start coding in feature/user-auth │
├─────────────────────────────────────────────────────┤
│ ✓ Task setup complete │
╰─────────────────────────────────────────────────────╯
Works with all craft commands and skills:
Before routing, /craft:do checks for existing specs that match the task.
# Check for specs in project
find docs/specs -name "SPEC-*.md" 2>/dev/null | while read spec; do
# Extract topic from filename
topic=$(basename "$spec" | sed 's/SPEC-//;s/-[0-9].*\.md//')
# Check if task matches topic
if [[ "$task" == *"$topic"* ]]; then
# Found matching spec
show_spec_prompt "$spec"
fi
done
AskUserQuestion:
question: "Found spec for this task. How should we proceed?"
header: "Spec"
multiSelect: false
options:
- label: "Review spec, then implement"
description: "Show spec summary first"
- label: "Implement with spec context"
description: "Use spec as implementation guide"
- label: "Skip spec"
description: "Proceed without spec reference"
- label: "Create new spec first"
description: "Current spec may be outdated"
User: /craft:do implement user authentication
Claude: Found spec: SPEC-auth-system-2025-12-30.md (status: approved)
[AskUserQuestion: Review/Implement/Skip/New?]
User: Selects "Implement with spec context"
Claude: Loading spec context...
- User Stories: 1 primary, 2 secondary
- Acceptance Criteria: 3 items
- Technical Requirements: OAuth2, JWT tokens
- Dependencies: auth0 SDK
Proceeding with implementation...
Step 1: /craft:arch:plan (using spec requirements)
Step 2: /craft:code:test-gen (from acceptance criteria)
...
If no matching spec exists and task is a feature:
Note: No spec found for "user authentication"
Consider: /workflow:brainstorm save "user authentication"
Proceeding with standard routing...
/workflow:brainstorm save "feature" (or s for short)/brainstorm d f s "feature" (deep + feat + save)/spec:review [topic]