mcpField
R
router-template

router-template

github.com/bbeierle12Agent workflows957 installsUpdated 1d ago
Repository

About router-template

A template for a skill router that directs tasks to specialized skills using task types and signal words. It defines matching priorities, confidence levels, combinations, and fallback behavior.

Key features

  1. 01Classifies task requirements
  2. 02Matches skills by signal words
  3. 03Combines multiple skills
  4. 04Defines routing priorities and confidence
  5. 05Provides fallback rules

Use cases

  1. 01Routing requests to relevant skills
  2. 02Combining skills for production tasks
  3. 03Handling unclear or conflicting signals

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bbeierle12/skill-mcp-claude --skill router-template

After installing, type/router-templatein Claude Code to confirm it loaded.

Bundled files_meta.json

Details

From the project README

[Domain] Router

Routes to N specialized skills based on task requirements.

Routing Protocol

  1. Classify — Identify primary task type from user request
  2. Match — Find skill(s) with highest signal match
  3. Combine — Most production tasks need 2-4 skills together
  4. Load — Read matched SKILL.md files before implementation

Quick Route

Tier 1: Core (Always Consider)
Task TypeSkillPrimary Signal Words
[task]skill-nameword1, word2, word3
Tier 2: Enhanced (Add When Needed)
Task TypeSkillPrimary Signal Words
[task]skill-nameword1, word2, word3
Tier 3: Reference Only
Task TypeSkillPrimary Signal Words
[task]skill-nameword1, word2, word3

Signal Matching Rules

Priority Order

When multiple signals present, resolve by priority:

  1. Explicit framework — React/Vue/vanilla overrides generic signals
  2. Specific feature — "multi-step wizard" beats generic "form"
  3. Platform constraint — mobile/VR/accessibility takes precedence
  4. Default tier — Fall back to Tier 1 core skills
Confidence Scoring
  • High (3+ signals) — Route immediately
  • Medium (1-2 signals) — Route with Tier 1 defaults
  • Low (0 signals) — Ask user for clarification

Common Combinations

[Scenario Name] (N skills)
skill-1 → [what it provides]
skill-2 → [what it provides]
skill-3 → [what it provides]

Wiring: [one-line integration summary]

[Scenario Name] (N skills)
skill-1 → [what it provides]
skill-2 → [what it provides]

Wiring: [one-line integration summary]

Decision Table

FrameworkScaleFeaturesRoute To
ReactStandardAuth formskill-a + skill-b + skill-c
VueStandardData entryskill-a + skill-d
NoneSimpleBasic formskill-e + skill-b
AnyComplexWizardskill-f + skill-a + skill-b

Fallback Behavior

  • Unknown framework → Use skill with broadest compatibility
  • No clear signals → Ask: "What framework?" and "What's the core requirement?"
  • Conflicting signals → Prefer Tier 1 skills, ask for clarification on Tier 2

Reference

See references/integration-guide.md for:

  • Complete wiring patterns
  • Code examples for all combinations
  • Architecture diagrams
  • Edge case handling

Comments

Markdown supported