cc10x Router
EXECUTION ENGINE. When loaded: Detect intent → Load memory → Execute workflow → Update memory.
NEVER list capabilities. ALWAYS execute.
Decision Tree (FOLLOW IN ORDER)
| Priority |
Signal |
Keywords |
Workflow |
| 1 |
ERROR |
error, bug, fix, broken, crash, fail, debug, troubleshoot, issue, problem, doesn't work |
DEBUG |
| 2 |
PLAN |
plan, design, architect, roadmap, strategy, spec, "before we build", "how should we" |
PLAN |
| 3 |
REVIEW |
review, audit, check, analyze, assess, "what do you think", "is this good" |
REVIEW |
| 4 |
DEFAULT |
Everything else |
BUILD |
Conflict Resolution: ERROR signals always win. "fix the build" = DEBUG (not BUILD).
Agent Chains
| Workflow |
Agents (Sequential) |
| BUILD |
component-builder → code-reviewer → silent-failure-hunter* → integration-verifier |
| DEBUG |
bug-investigator → code-reviewer → integration-verifier |
| REVIEW |
code-reviewer |
| PLAN |
planner |
*silent-failure-hunter only if error handling code exists (try/catch/except)
Memory (PERMISSION-FREE)
LOAD FIRST (Before routing):
Bash(command="mkdir -p .claude/cc10x")
Read(file_path=".claude/cc10x/activeContext.md")
Read(file_path=".claude/cc10x/patterns.md")
Read(file_path=".claude/cc10x/progress.md")
UPDATE LAST (After workflow): Use Edit tool on activeContext.md (permission-free).
Workflow Execution
BUILD
- Load memory → Check if already done in progress.md
- Clarify requirements (DO NOT SKIP) → Use AskUserQuestion
- Invoke component-builder (TDD: RED→GREEN→REFACTOR)
- Invoke code-reviewer (confidence ≥80 only)
- Invoke silent-failure-hunter (if try/catch exists)
- Invoke integration-verifier
- Update memory
DEBUG
- Load memory → Check patterns.md Common Gotchas
- Clarify: What error? Expected vs actual? When started?
- Invoke bug-investigator (LOG FIRST)
- Invoke code-reviewer
- Invoke integration-verifier
- Update memory → Add to Common Gotchas
REVIEW
- Load memory
- Invoke code-reviewer (check git history, confidence ≥80)
- Update memory
PLAN
- Load memory
- Invoke planner
- Update memory → Reference saved plan
Agent Invocation
Pass context to each agent:
Task(subagent_type="cc10x:component-builder", prompt="
User request: {request}
Requirements: {from AskUserQuestion}
Memory: {from activeContext.md}
Patterns: {from patterns.md}
")
Skill triggers for agents:
- Frontend code (components/, ui/, pages/, .tsx, .jsx) → Load frontend-patterns
- API code (api/, routes/, services/) → Load architecture-patterns
Gates (Must Pass)
- MEMORY_LOADED - Before routing
- REQUIREMENTS_CLARIFIED - Before invoking agent (BUILD only)
- AGENT_COMPLETED - Before next agent in chain
- MEMORY_UPDATED - Before marking done
1---2name: cc10x-router-23description: THE ONLY ENTRY POINT FOR CC10X - AUTO-LOAD AND EXECUTE for ANY development task. Triggers: build, implement, create, make, write, add, develop, code, feature, component, app, application, review, audit, check, analyze, debug, fix, error, bug, broken, troubleshoot, plan, design, architect, roadmap, strategy, memory, session, context, save, load, test, tdd, frontend, ui, backend, api, pattern, refactor, optimize, improve, enhance, update, modify, change, help, assist, work, start, begin, continue. CRITICAL: Execute workflow. Never just describe capabilities.4---5
6# cc10x Router
7
8**EXECUTION ENGINE.** When loaded: Detect intent → Load memory → Execute workflow → Update memory.
9
10**NEVER** list capabilities. **ALWAYS** execute.
11
12## Decision Tree (FOLLOW IN ORDER)
13
14| Priority | Signal | Keywords | Workflow |
15|----------|--------|----------|----------|
16| 1 | ERROR | error, bug, fix, broken, crash, fail, debug, troubleshoot, issue, problem, doesn't work | **DEBUG** |
17| 2 | PLAN | plan, design, architect, roadmap, strategy, spec, "before we build", "how should we" | **PLAN** |
18| 3 | REVIEW | review, audit, check, analyze, assess, "what do you think", "is this good" | **REVIEW** |
19| 4 | DEFAULT | Everything else | **BUILD** |
20
21**Conflict Resolution:** ERROR signals always win. "fix the build" = DEBUG (not BUILD).
22
23## Agent Chains
24
25| Workflow | Agents (Sequential) |
26|----------|---------------------|
27| BUILD | component-builder → code-reviewer → silent-failure-hunter* → integration-verifier |
28| DEBUG | bug-investigator → code-reviewer → integration-verifier |
29| REVIEW | code-reviewer |
30| PLAN | planner |
31
32*silent-failure-hunter only if error handling code exists (try/catch/except)
33
34## Memory (PERMISSION-FREE)
35
36**LOAD FIRST (Before routing):**
37```
38Bash(command="mkdir -p .claude/cc10x")
39Read(file_path=".claude/cc10x/activeContext.md")
40Read(file_path=".claude/cc10x/patterns.md")
41Read(file_path=".claude/cc10x/progress.md")
42```
43
44**UPDATE LAST (After workflow):** Use Edit tool on activeContext.md (permission-free).
45
46## Workflow Execution
47
48### BUILD
491. Load memory → Check if already done in progress.md
502. **Clarify requirements** (DO NOT SKIP) → Use AskUserQuestion
513. Invoke component-builder (TDD: RED→GREEN→REFACTOR)
524. Invoke code-reviewer (confidence ≥80 only)
535. Invoke silent-failure-hunter (if try/catch exists)
546. Invoke integration-verifier
557. Update memory
56
57### DEBUG
581. Load memory → Check patterns.md Common Gotchas
592. Clarify: What error? Expected vs actual? When started?
603. Invoke bug-investigator (LOG FIRST)
614. Invoke code-reviewer
625. Invoke integration-verifier
636. Update memory → Add to Common Gotchas
64
65### REVIEW
661. Load memory
672. Invoke code-reviewer (check git history, confidence ≥80)
683. Update memory
69
70### PLAN
711. Load memory
722. Invoke planner
733. Update memory → Reference saved plan
74
75## Agent Invocation
76
77Pass context to each agent:
78```
79Task(subagent_type="cc10x:component-builder", prompt="
80User request: {request}
81Requirements: {from AskUserQuestion}
82Memory: {from activeContext.md}
83Patterns: {from patterns.md}
84")
85```
86
87**Skill triggers for agents:**
88- Frontend code (components/, ui/, pages/, .tsx, .jsx) → Load frontend-patterns
89- API code (api/, routes/, services/) → Load architecture-patterns
90
91## Gates (Must Pass)
92
931. **MEMORY_LOADED** - Before routing
942. **REQUIREMENTS_CLARIFIED** - Before invoking agent (BUILD only)
953. **AGENT_COMPLETED** - Before next agent in chain
964. **MEMORY_UPDATED** - Before marking done