
Router First Architecture
This is an architectural pattern for organizing Claude skills around domain routers that map intents to specific tools. Instead of calling math scripts directly, you route through math-router first, which deterministically maps requests to the right CLI command. The key insight is a two-layer system: broad triggers in skill-rules.json that nudge Claude toward the router, then precise regex patterns in the router itself that find the exact tool. Domain skills co-activate with their router so it's always available. The pattern keeps routing logic centralized and makes individual skills simpler since they don't need their own intent matching.
- skills.sh installs
- 468
- GitHub stars
- 3.9K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add parcadei/continuous-claude-v3 --skill router-first-architecture --agent claude-codeInstalls into .claude/skills of the current project.
Files
Router-First Architecture
Route through domain routers before using individual tools. Routers abstract tool selection.
Pattern
Domain routers (like math-router) provide deterministic mapping from user intent to exact CLI commands. Always use the router first; only bypass for edge cases.
DO
- Call
math-router route "<intent>"before any math operation - Let domain skills co-activate with their router (via
coActivatein skill-rules.json) - Trust the router's confidence score; only fall back if
command: null - Keep trigger keywords/patterns in skill-rules.json broader than routing patterns
DON'T
- Call individual scripts directly when a router exists
- Duplicate routing logic in individual skills
- Let domain skills bypass their router
Co-Activation Pattern
Domain skills should co-activate with their router:
{
"math/abstract-algebra/groups": {
"coActivate": ["math-router"],
"coActivateMode": "always"
}
}
This ensures the router is always available when domain knowledge is activated.
Two-Layer Architecture
Sponsors
Details
- Repository
- github.com/parcadei/continuous-claude-v3
- Category
- Code Review & Quality
- First seen
- Jun 3, 2026
More from parcadei/continuous-claude-v3
All 108- Implement Plan408
- Implement Task398
- Implement Plan Micro397
- Discovery Interview4.2K
- Premortem902
- Math881
- Github Search740
- Dead Code736
- Refactor623
- Recall Reasoning603
- Graceful Degradation601
- Explore580
- Agentic Workflow567
- Modular Code567
- Math Help545
- Sub Agents537
- Security532
- Research Agent530
- Perplexity Search528
- Agent Orchestration525
- Ast Grep Find523
- Git Commits523
- Remember523
- Repo Research Analyst522