Commands Router
Routes tasks to appropriate reasoning frameworks and command patterns.
Trigger Conditions
Activate when task involves:
- Structured development workflow (implement, build, test)
- Skill command invocation (sc:*)
- Brainstorming or ideation
- Architecture or design decisions
- Workflow templates
- Schema-based operations
Command Categories
SC Commands (Skill Commands)
Primary action verbs for development tasks.
| Command |
Trigger Keywords |
Purpose |
sc:analyze |
analyze, evaluate, assess, audit |
Deep analysis |
sc:build |
build, compile, package |
Build operations |
sc:cleanup |
clean, organize, declutter |
Code cleanup |
sc:design |
design, architect, plan |
Architecture |
sc:document |
document, readme, guide |
Documentation |
sc:estimate |
estimate, cost, time |
Estimation |
sc:explain |
explain, clarify, describe |
Explanations |
sc:git |
commit, push, merge |
Git operations |
sc:implement |
implement, code, feature |
Implementation |
sc:improve |
improve, enhance, optimize |
Improvement |
sc:load |
load, context, import |
Context loading |
sc:spawn |
spawn, delegate, parallel |
Delegation |
sc:task |
task, complex, persistent |
Complex tasks |
sc:test |
test, verify, validate |
Testing |
sc:troubleshoot |
debug, fix, diagnose |
Debugging |
sc:workflow |
workflow, prd, process |
Workflows |
BMAD Framework
| Module |
Purpose |
bmad:brainstorm |
Structured brainstorming |
bmad:party-mode |
Multi-agent ideation |
bmad:prd |
Product requirements |
bmad:architecture |
System architecture |
Routing Logic
# Use reasoning-index for semantic routing
reasoning-index search "{user_intent}"
reasoning-index suggest "{task_description}"
# Example output:
# {
# "commands": ["sc:implement", "sc:design"],
# "skills": ["test-driven-development"],
# "reasoning_chain": ["sc:design", "sc:implement", "sc:test"]
# }
Decision Tree
Command Task Detected
│
├── Implementation?
│ ├── New feature? → sc:implement
│ ├── Build? → sc:build
│ └── Improvement? → sc:improve
│
├── Analysis?
│ ├── Code review? → sc:analyze
│ ├── Debugging? → sc:troubleshoot
│ └── Testing? → sc:test
│
├── Design?
│ ├── Architecture? → sc:design
│ ├── Brainstorm? → bmad:brainstorm
│ └── PRD? → bmad:prd
│
├── Documentation?
│ ├── README? → sc:document
│ ├── Explain? → sc:explain
│ └── Guide? → sc:document
│
└── Operations?
├── Git? → sc:git
├── Cleanup? → sc:cleanup
└── Complex? → sc:task
Usage
# Search commands
reasoning-index search "debug authentication"
# Get reasoning chain suggestion
reasoning-index suggest "implement user login"
# List all SC commands
reasoning-index list sc
# Build knowledge graph
reasoning-index graph "optimize performance" --depth 2
Integration
- reasoning-index: Primary routing CLI
- commands-db: Command framework database
- skill-db: Skill integration
- meta-router: Parent router
Command Chaining
Design → Implement → Test → Document
sc:design → sc:implement → sc:test → sc:document
1---2name: commands-router3description: Routes tasks to reasoning frameworks and command patterns in commands-db. Triggers on structured development workflows, skill commands (sc:*), brainstorming, architecture, or any task matching command framework patterns. Uses reasoning-index for semantic routing.4---56# Commands Router78Routes tasks to appropriate reasoning frameworks and command patterns.910## Trigger Conditions1112Activate when task involves:13- Structured development workflow (implement, build, test)14- Skill command invocation (sc:*)15- Brainstorming or ideation16- Architecture or design decisions17- Workflow templates18- Schema-based operations1920## Command Categories2122### SC Commands (Skill Commands)23Primary action verbs for development tasks.2425| Command | Trigger Keywords | Purpose |26|:--------|:-----------------|:--------|27| `sc:analyze` | analyze, evaluate, assess, audit | Deep analysis |28| `sc:build` | build, compile, package | Build operations |29| `sc:cleanup` | clean, organize, declutter | Code cleanup |30| `sc:design` | design, architect, plan | Architecture |31| `sc:document` | document, readme, guide | Documentation |32| `sc:estimate` | estimate, cost, time | Estimation |33| `sc:explain` | explain, clarify, describe | Explanations |34| `sc:git` | commit, push, merge | Git operations |35| `sc:implement` | implement, code, feature | Implementation |36| `sc:improve` | improve, enhance, optimize | Improvement |37| `sc:load` | load, context, import | Context loading |38| `sc:spawn` | spawn, delegate, parallel | Delegation |39| `sc:task` | task, complex, persistent | Complex tasks |40| `sc:test` | test, verify, validate | Testing |41| `sc:troubleshoot` | debug, fix, diagnose | Debugging |42| `sc:workflow` | workflow, prd, process | Workflows |4344### BMAD Framework45| Module | Purpose |46|:-------|:--------|47| `bmad:brainstorm` | Structured brainstorming |48| `bmad:party-mode` | Multi-agent ideation |49| `bmad:prd` | Product requirements |50| `bmad:architecture` | System architecture |5152## Routing Logic5354```bash55# Use reasoning-index for semantic routing56reasoning-index search "{user_intent}"57reasoning-index suggest "{task_description}"5859# Example output:60# {61# "commands": ["sc:implement", "sc:design"],62# "skills": ["test-driven-development"],63# "reasoning_chain": ["sc:design", "sc:implement", "sc:test"]64# }65```6667## Decision Tree6869```70Command Task Detected71 │72 ├── Implementation?73 │ ├── New feature? → sc:implement74 │ ├── Build? → sc:build75 │ └── Improvement? → sc:improve76 │77 ├── Analysis?78 │ ├── Code review? → sc:analyze79 │ ├── Debugging? → sc:troubleshoot80 │ └── Testing? → sc:test81 │82 ├── Design?83 │ ├── Architecture? → sc:design84 │ ├── Brainstorm? → bmad:brainstorm85 │ └── PRD? → bmad:prd86 │87 ├── Documentation?88 │ ├── README? → sc:document89 │ ├── Explain? → sc:explain90 │ └── Guide? → sc:document91 │92 └── Operations?93 ├── Git? → sc:git94 ├── Cleanup? → sc:cleanup95 └── Complex? → sc:task96```9798## Usage99100```bash101# Search commands102reasoning-index search "debug authentication"103104# Get reasoning chain suggestion105reasoning-index suggest "implement user login"106107# List all SC commands108reasoning-index list sc109110# Build knowledge graph111reasoning-index graph "optimize performance" --depth 2112```113114## Integration115116- **reasoning-index**: Primary routing CLI117- **commands-db**: Command framework database118- **skill-db**: Skill integration119- **meta-router**: Parent router120121## Command Chaining122123```124Design → Implement → Test → Document125126sc:design → sc:implement → sc:test → sc:document127```