router-first-architecture
SolidRouter-First Architecture
AI & Automation 495 stars
41 forks Updated 1 months ago MIT
Install
Quality Score: 85/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 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 `coActivate` in 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:
```json
{
"math/abstract-algebra/groups": {
"coActivate": ["math-router"],
"coActivateMode": "always"
}
}
```
This ensures the router is always available when domain knowledge is activated.
## Two-Layer Architecture
1. **Skill-rules trigger layer**: Nudges Claude to use the router (keywords, intent patterns)
2. **Router routing layer**: Deterministic mapping to scripts via regex patterns
Keep the trigger layer broader than routing - the router should handle "not found" gracefully.
## Source Sessions
- 2bbc8d6e: "Trigger layer was narrower than routing layer" - expanded triggers
- ...
Details
- Author
- vibeeval
- Repository
- vibeeval/vibecosystem
- Created
- 2 months ago
- Last Updated
- 1 months ago
- Language
- C#
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
API & Backend Listed
router-first-architecture
Router-First Architecture
3,795 Updated 4 months ago
parcadei API & Backend Listed
router
Intelligent routing layer that analyzes requests and directs them to the most appropriate Skills, Agents, or Commands
335 Updated today
aiskillstore AI & Automation Solid
math-router
Deterministic router for math cognitive stack - maps user intent to exact CLI commands
495 Updated 1 months ago
vibeeval AI & Automation Listed
thinking-model-router
Route to the right mental model based on your domain and problem type. The single entry point for all thinking skills.
1 Updated today
babypochi06 API & Backend Solid
math-router
Deterministic router for math cognitive stack - maps user intent to exact CLI commands
3,795 Updated 4 months ago
parcadei