parcadei avatar

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-code

Installs 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 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:

{
  "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
1sickn33 avatarrequesting-code-reviewsickn33/antigravity-awesome-skillsrequesting code review464skills.sh installs
2aj-geddes avatarserverless-architectureaj-geddes/useful-ai-promptsDesign and implement serverless applications using AWS Lambda, Azure Functions, and GCP Cloud Functions with event-driven patterns and orchestration.461skills.sh installs
3bobmatnyc avatarwordpress-advanced-architecturebobmatnyc/claude-mpm-skillsAdvanced WordPress development with REST API endpoints, WP-CLI commands, performance optimization, and caching strategies for scalable applications.455skills.sh installs
4manutej avatarexpress-microservices-architecturemanutej/luxor-claude-marketplaceComplete guide for building scalable microservices with Express.js including middleware patterns, routing strategies, error handling, production architecture, a449skills.sh installs
5abhigyanpatwari avatargitnexus-pr-reviewabhigyanpatwari/gitnexusUse when the user wants to review a pull request, understand what a PR changes, assess risk of merging, or check for missing test coverage. Examples: "Review th444skills.sh installs
6unclecatvn avatarcode-reviewunclecatvn/agent-skillsUse when receiving code review feedback (especially if unclear or technically questionable), when completing tasks or major features requiring review before pro444skills.sh installs