Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
parcadei avatar

Router First Architecture

  • 449 installs
  • 3.9k repo stars
  • Updated January 26, 2026
  • parcadei/continuous-claude-v3

router-first-architecture is an agent skill that routes developer intent through domain routers before individual tools so CLI command selection stays deterministic and tool abstraction stays consistent.

About

router-first-architecture is a parcadei/continuous-claude-v3 skill enforcing router-first dispatch for agent workflows. Domain routers such as math-router provide deterministic mapping from user intent to exact CLI commands; agents call the router first and bypass only on edge cases when the router returns command null. The pattern uses coActivate entries in skill-rules.json so domain skills activate alongside their router, keeps trigger keywords broader than routing patterns, and trusts router confidence scores before falling back. Developers reach for router-first-architecture when building multi-skill agent systems that need predictable tool selection instead of ad hoc per-tool invocation.

  • router-first-architecture

Router First Architecture by the numbers

  • 449 all-time installs (skills.sh)
  • +2 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #958 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill router-first-architecture

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs449
repo stars3.9k
Last updatedJanuary 26, 2026
Repositoryparcadei/continuous-claude-v3

How do agents route intent to CLI commands?

Use router-first-architecture for development tasks

Who is it for?

Developers building continuous-claude-v3 agent systems that need router-governed tool selection across domain skills.

Skip if: Single-tool scripts or agents with no router layer or skill-rules.json configuration.

When should I use this skill?

An agent task should call a domain router first instead of invoking underlying CLI tools directly.

What you get

Domain router calls, skill-rules.json co-activation config, and deterministic CLI command mappings.

  • Router dispatch calls
  • skill-rules.json co-activation entries

Files

SKILL.mdMarkdownGitHub ↗

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

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
  • This session: Wired 8 domain math skills to co-activate with math-router

Related skills

FAQ

What is the router-first rule in router-first-architecture?

router-first-architecture requires calling a domain router such as math-router route before any underlying operation, bypassing only when the router returns command null.

How do routers connect to skills in router-first-architecture?

router-first-architecture uses coActivate entries in skill-rules.json so domain skills co-activate with their router while trigger keywords stay broader than routing patterns.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.