router-first-architecture

router-first-architecture is a skill for Claude Code from parcadei/Continuous-Claude-v3. It costs 9 tokens per session (349 once invoked), scanned A, original, MIT.

A rule for routing requests through a domain-specific router before calling individual tools. A router selects the appropriate command or tool for a task.

In plain words
What is it for?
Use it when building or using domain skills that have routers, such as sending a math request through a math router before running a mathematical operation.
Why use it?
It keeps tool selection consistent and prevents each skill from duplicating its own routing logic or bypassing the intended command path.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

not rated 4.0krepo +4 14d ago A scan Socket: passSnyk: passSkillSpector: pass 9 tokens original MIT

Good fit Use it when building or using domain skills that have routers, such as sending a math request through a math router before running a mathematical operation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/parcadei/continuous-claude-v3/router-first-architecture
About the project

Continuous-Claude-v3 is a Claude Code development environment that preserves working context between sessions, coordinates specialized agents, and stores project knowledge through ledgers, handoffs, and analysis tools. It is for people using Claude Code on ongoing or complex software work. Its catalogue entries are the skills, agents, hooks, plugin, and setting that provide its workflows and orchestration.

parcadei/Continuous-Claude-v3 · 3,953 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add parcadei/Continuous-Claude-v3 --skill router-first-architecture
Clone the repo
git clone --depth 1 https://github.com/parcadei/Continuous-Claude-v3

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for router-first-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/parcadei/continuous-claude-v3/router-first-architecture/github.svg)](https://agentmods.dev/skills/parcadei/continuous-claude-v3/router-first-architecture)
Your own site
<a href="https://agentmods.dev/skills/parcadei/continuous-claude-v3/router-first-architecture"><img src="https://agentmods.dev/badge/skills/parcadei/continuous-claude-v3/router-first-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for router-first-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/parcadei/continuous-claude-v3/router-first-architecture"><img src="https://agentmods.dev/badge/skills/parcadei/continuous-claude-v3/router-first-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 349 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Sept 2026
  • Snyk pass 18 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.00349
Opus 5.5 $0.00004 $0.00140
Sonnet 5.5 $0.00002 $0.00070
Haiku 4.5 $0.00001 $0.00035

Measured 3mo ago against content hash d539889c9154, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

router-first-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/archive/router-first-architecture/SKILL.md · 53 lines

What it actually says

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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 53 lines · 9 tokens per session scan A d539889c9154

Subscribe to this mod's changes

router-first-architecture is a skill published in the GitHub repository parcadei/Continuous-Claude-v3 (3,953 stars, last pushed 14d ago), licensed MIT. It adds 9 tokens to every session and 349 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

router-first-architecture compared with skills from other repositories

router-first-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
router-first-architectureparcadei/Continuous-Claude-v3Skill4.0k14d agoMITA9Claude Code
fizzy-workflowkeskinonur/claude-plugin-fizzySkill310mo agoApache-2.0A57Claude Code
make-skillsergeyklay/.agentsSkill65d agoApache-2.0A80Claude Code, Codex
test-tssergeyklay/.agentsSkill65d agoApache-2.0A139Claude Code, Codex
isolate-clisergeyklay/.agentsSkill65d agoApache-2.0A208Claude Code, Codex
search-websergeyklay/.agentsSkill65d agoApache-2.0A216Claude Code, Codex
monitor-cisergeyklay/.agentsSkill65d agoApache-2.0A181Claude Code, Codex