Agent Skills
› rohitg00/ai-engineering-from-scratch
› skill-invocation-router
skill-invocation-router
GitHub为Agent技能目录设计并测试显式、隐式及程序化的激活策略,实现可审计的技能调用路由。通过分类请求渠道、验证身份与权限、评分匹配度,输出决策结果,确保调用的安全性与合规性。
Trigger Scenarios
需要为Agent技能设置可审计的激活策略
根据角色和渠道对技能调用进行路由和评分
Install
npx skills add rohitg00/ai-engineering-from-scratch --skill skill-invocation-router -g -y
SKILL.md
Frontmatter
{
"name": "skill-invocation-router",
"license": "MIT",
"metadata": {
"lesson": "25"
},
"description": "Design and test explicit human, implicit model or agent, programmatic application, bounded skill-composition, and harness activation policies for an Agent Skill catalog."
}
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.
Version History
- 39ea8a1 Current 2026-08-28 11:20


