skill-rag-router
Original:🇺🇸 English
Translated
4 scripts
Semantic skill discovery and routing using GraphRAG, vector embeddings, and multi-tool search. Automatically matches user intent to the most relevant skills from 144+ available options using ck semantic search, LEANN RAG, and knowledge graph relationships. Triggers on /meta queries, complex multi-domain tasks, explicit skill requests, or when task complexity exceeds threshold (files>20, domains>2, complexity>=0.7).
4installs
Sourcezpankz/mcp-skillset
Added on
NPX Install
npx skill4agent add zpankz/mcp-skillset skill-rag-routerTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Skill RAG Router
Intelligent skill discovery and routing system using semantic search and knowledge graph relationships.
Capabilities
- Semantic Skill Search: Uses for meaning-based skill matching
ck --sem - Hybrid Search: Combines semantic + keyword matching via
ck --hybrid - Session Awareness: Integrates with beads/bd for session context
- Memory Integration: Uses claude-mem for cross-session learning
Trigger Conditions
Activate this skill when:
- User explicitly requests skill discovery (, "find a skill for...")
/meta - Task complexity score >= 0.7
- Task involves > 20 files
- Task spans > 2 domains (frontend, backend, security, etc.)
- User asks "what skill can help with..."
Usage
bash
# Explicit invocation
/meta [query]
# Examples
/meta "optimize prompts for RAG pipeline"
/meta "debug authentication flow"
/meta "refactor legacy codebase"Search Implementation
bash
# Semantic search for skills
ck --sem "[query]" ~/.claude/skills/ --jsonl --top-k 5
# Hybrid search (semantic + keyword)
ck --hybrid "[query]" ~/.claude/skills/ --threshold 0.6
# Index skills
ck --index ~/.claude/skills/ --model bge-small --quietOutput Format
Returns ranked skill suggestions with:
- Skill name and path
- Confidence score (0-1)
- Relevant snippet from SKILL.md
- Trigger match explanation
Integration Points
- SessionStart: Indexes skills, loads routing cache
- UserPromptSubmit: Analyzes prompts for skill suggestions
- beads/bd: Session-aware task tracking
- claude-mem: Cross-session routing patterns
Scripts
- : Index all skills with ck
scripts/index-skills.sh - : Main routing logic
scripts/router.sh - : Intent → skill matching for hooks
scripts/suggest-skills.sh