跳到正文
Skillpedia
智能体76k · #2631

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我: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 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

  1. Read references/invocation-model.md and classify the requested channel.
  2. Review assets/host-policy.json as an example adapter configuration, not a portable standard.
  3. 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].
  4. For a human, application, skill, or harness request, require an exact discovered name and its channel-specific allowlist.
  5. For a skill caller, also require caller identity, a non-cyclic target, and a bounded composition depth.
  6. For a model or autonomous agent request, remove candidates that the actor or recognized host extensions make ineligible.
  7. Score only the remaining descriptions. Select the strongest eligible match or abstain when no eligible candidate clears the threshold.
  8. 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.

repo: rohitg00/ai-engineering-from-scratch

热度

GitHub 星标
76k
排名
#2631
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能