用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/JSGforever/skillguard --skill intelligent-router命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | intelligent-router |
| description | Analyzes user questions and automatically dispatches optimal agents/skills/plugins |
| triggers | [] |
| version | 1.0.0 |
| agents | [] |
| activation | smart-auto-detect |
| context_levels | {"minimal":"Router logic and decision framework","detailed":"Complete routing matrix and examples","full":"Scripts and testing tools"} |
The Intelligent Router is an automatic orchestration system that analyzes user questions and intelligently selects the optimal combination of:
Design Philosophy: B - Medium Router
Smart Auto-Detect triggers on:
Skips on:
User Question
↓
Intent Detection (analyze-intent.js)
↓
Match Against Routing Matrix
↓
Calculate Match Scores
↓
Identify Domains & Complexity
Collect ALL Matched Routes
↓
Primary Route = Highest Score
↓
Gather:
- Skills from all matches
- Plugins from all matches
- Docs from all matches
- Tools from primary route
- Optional agents from secondary matches
Auto-Load:
✅ Skills (via skill-loader.js)
✅ Docs (loaded into context)
✅ Plugins (activated)
Auto-Dispatch:
✅ Primary Agent (Task tool)
Suggest:
💡 Optional Agents (you choose to dispatch)
💡 Additional tools
💡 Memory check (episodic-memory)
Display Formatted Analysis:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 INTELLIGENT ROUTER ANALYSIS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Detected Intent: [...]
📁 Complexity: [SIMPLE|MEDIUM|HIGH|COMPLEX]
🎯 Domains: [...]
✅ AUTO-LOADED SKILLS: [...]
✅ AUTO-DISPATCHED: [agent] → [reason]
💡 OPTIONAL DISPATCH: [suggestions]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The router uses routing-matrix.json with 20+ predefined routes:
Router automatically determines complexity:
Router uses 3 levels for skills:
Default: Router loads Level 1 for all matched skills Escalation: Request Level 2/3 if needed
User: "Fix deze error in login.ts"
Router Analysis:
Intent: Bug fixing
Complexity: SIMPLE
Domains: debugging, backend
Auto-Loaded:
- systematic-debugging skill
- testing-fundamentals skill
Auto-Dispatched:
- senior-fullstack-developer
Optional:
- qa-testing-engineer (regression tests)
User: "Maak een login systeem met registratie"
Router Analysis:
Intent: User authentication
Complexity: HIGH
Domains: security, backend, frontend
Auto-Loaded:
- security-essentials skill
- backend-development-patterns skill
- testing-fundamentals skill
Auto-Dispatched:
- backend-specialist (primary)
Optional:
- security-specialist (OWASP review)
- frontend-specialist (login UI)
- qa-testing-engineer (security tests)
Docs Loaded:
- docs/security.md
- docs/backend.md
User: "Bouw een dashboard met gebruikers, data visualisatie en export"
Router Analysis:
Intent: Multi-domain feature
Complexity: COMPLEX
Domains: frontend, backend, data, ux
Auto-Loaded:
- backend-development-patterns skill
- testing-fundamentals skill
- brainstorming skill
Auto-Dispatched:
- master-orchestrator
Sub-agents (parallel):
- backend-specialist (API)
- frontend-specialist (Dashboard UI)
- data-engineer (Data pipeline)
- ux-design-expert (Charts/UX)
- qa-testing-engineer (Test strategy)
User: "Optimaliseer deze SQL query die te langzaam is"
Router Analysis:
Intent: Database optimization
Complexity: MEDIUM
Domains: data-engineering, backend
Auto-Loaded:
- backend-development-patterns skill
Auto-Dispatched:
- data-engineer
Tools Activated:
- sql-universal-expert
Optional:
- senior-fullstack-developer (code refactor)
Docs Loaded:
- docs/backend.md
Router activates automatically when:
No manual activation needed!
Test router analysis before dispatching:
# Analyze a question
node .claude/skills/intelligent-router/scripts/analyze-intent.js analyze "Maak een API"
# Get JSON output
node .claude/skills/intelligent-router/scripts/analyze-intent.js analyze "Fix bug" --json
Router integrates via .claude/hooks/pre-prompt.sh (optional):
#!/bin/bash
# Activate intelligent-router for every question
# Router internally checks if it should activate
Edit routing-matrix.json to:
Edit auto_detect_config in routing-matrix.json:
{
"min_word_count": 5,
"action_verbs": ["maak", "bouw", "fix", ...],
"skip_keywords": ["wat is", "hoe werkt", ...],
"always_check_memory": true
}
Adjust in complexity_thresholds:
{
"simple": {
"max_words": 10,
"max_domains": 1,
"auto_dispatch": true
},
...
}
User Question
↓
[Should Activate?]
├─ No → Normal response (skip router)
└─ Yes → Continue
↓
[Find Matches]
↓
[No Matches?]
├─ Yes → Normal response
└─ No → Continue
↓
[Analyze Complexity]
↓
[Simple/Medium/High] → Auto-dispatch primary agent
[Complex] → Dispatch master-orchestrator
↓
[Display Analysis]
↓
[Execute Dispatch]
# Check question meets criteria
node scripts/analyze-intent.js analyze "your question"
# If "activate: false", question too simple
# Solution: Add more context or action verbs
# Check routing matrix matches
cat routing-matrix.json | grep -A 5 "your_keyword"
# Update triggers if needed
# Verify skills exist
node ../skill-loader.js list
# Check skill names in routing-matrix.json match
Track router effectiveness:
Store in: .claude-memory/router-metrics.md
Planned features:
routing-matrix.jsonscripts/analyze-intent.jsexamples/routing-scenarios.mdexamples/test-cases.mdVersion: 1.0.0 Author: CLAUDE Framework Team License: MIT Compatibility: Claude Code 1.0+, Claude 3.5 Sonnet+
基于 SOC 职业分类