skill-invocation-router
它能做什么
这项技能设定并测试决定谁可以在何时启动智能体技能的规则。适合以多种方式运行技能、并希望规则清晰且可检查的团队。
适用场景
- ✓当你想控制人、AI 或其他技能是否可以启动某个技能时。
- ✓当你需要在运行之前测试某个请求会如何匹配到技能时。
- ✓当你希望有一条之后可以审计的启动规则时。
技能链接
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/phases/13-tools-and-protocols/25-skill-invocation-and-routing/outputs/skill-invocation-router/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查 AI 能否自行启动我的账单技能,并说明做出该决定的原因。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体对请求进行分类,检查该渠道允许的技能,排除不符合条件的技能,并为其余技能打分。它返回带有原因的决定;如果没有任何技能足够匹配,则选择弃权。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Skill invocation router
Use this skill when a host needs an auditable activation policy rather than one undifferentiated invocable flag.
- Read
references/invocation-model.mdand classify the requested channel. - Review
assets/host-policy.jsonas an example adapter configuration, not a portable standard. - Run
python3 scripts/simulate_invocation.py --policy assets/host-policy.json --actor ACTOR --name NAME --description DESCRIPTION --query QUERY [--explicit-name NAME] [--caller-name NAME] [--depth N] [--user-invocable true|false] [--disable-model-invocation true|false]. - For a human, application, skill, or harness request, require an exact discovered name and its channel-specific allowlist.
- For a skill caller, also require caller identity, a non-cyclic target, and a bounded composition depth.
- For a model or autonomous agent request, remove candidates that the actor or recognized host extensions make ineligible.
- Score only the remaining descriptions. Select the strongest eligible match or abstain when no eligible candidate clears the threshold.
- Return the JSON decision with the adapter, channel, score, and policy reason.
Activation loads instructions. It does not approve tools, filesystem changes, network access, secret use, or bundled scripts.
常见问题
启动技能是否就赋予了它行动的许可?
不是。启动只加载指令,并不批准工具、文件更改、网络访问或脚本。
如果没有技能足够匹配怎么办?
路由器可以弃权,因此不会错误地启动任何技能。
这些规则可以通用吗?
不能。示例策略是某一个宿主的设置,而不是通用标准。
详情
作者的原始描述
Design and test explicit human, implicit model or agent, programmatic application, bounded skill-composition, and harness activation policies for an Agent Skill catalog.
热度
- GitHub 星标
- 76k
- 排名
- #2631
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
blueprint-figure
76k帮你的智能体为课程、README 和手册绘制清晰的静态 SVG 图示,展示系统中真实部件之间的连接关系。
build-project
76k充当项目导师,每次带你完成一个实践 AI 项目阶段,提供提示和评分,但不给出完整答案。
check-understanding
76k对 AI Engineering from Scratch 课程中已完成的阶段进行小测验,让你在进入下一阶段前检查自己学到了什么。
claude-certification
76k在 AI Engineering from Scratch 课程的 Claude 认证路线中充当分步导师,提供课程、实验和练习考试。