一键导入
skill-router
Dynamic skill router that intercepts every message and loads only relevant skills to reduce context window usage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Dynamic skill router that intercepts every message and loads only relevant skills to reduce context window usage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | skill-router |
| description | Dynamic skill router that intercepts every message and loads only relevant skills to reduce context window usage. |
| tools | Bash, Read |
| metadata | {"openclaw":{"always":true}} |
This skill manages dynamic skill loading for OpenClaw. It intercepts every user message, scores it against the skill index, and injects only the relevant skills (0-3) instead of the entire catalog.
On EVERY user message, follow these steps:
Score the message against the skill index:
skill-router match "<user_message>"
Read the context file to see matched skills:
cat .skill-router-context.md
If skills matched, read their SKILL.md files for detailed guidance:
Proceed with the task using the matched skill guidance.
skill-router build - Rebuild the skill index (run when skills are added/changed)skill-router match "<message>" - Score a message and write contextskill-router status - Check index health and configurationEnvironment variables:
SKILL_ROUTER_MAX_RESULTS - Max skills to return (default: 3)SKILL_ROUTER_THRESHOLD - Minimum score to include (default: 0.3)SKILL_ROUTER_ALWAYS_INCLUDE - Comma-separated skill names to always includeskill routing, context optimization, dynamic loading, BM25, skill matching, token reduction