skill-invocation-router

skill-invocation-router is a skill for Claude Code, Codex from fancyboi999/ai-engineering-from-scratch-zh. It costs 38 tokens per session (373 once invoked), scanned A, original, MIT.

A routing skill for deciding when an agent skill should activate and which request channel is allowed to activate it.

In plain words
What is it for?
Use it to design and test activation rules for people, applications, agents, skills, and bounded combinations of skills.
Why use it?
It prevents accidental, ambiguous, or circular skill activation by applying explicit names, allowlists, caller checks, and matching thresholds.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design and test activation rules for people, applications, agents, skills, and bounded combinations of skills.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fancyboi999/ai-engineering-from-scratch-zh/skill-invocation-router
About the project

ai-engineering-from-scratch-zh is a Chinese-language adaptation of a course that teaches AI engineering by implementing algorithms, tools, and agents from the ground up. It is for learners following a 20-stage path across mathematics, machine learning, agent systems, and production topics, with lessons using Python, TypeScript, Rust, and Julia. The catalogue entries provide agent skills and instructions associated with the course.

fancyboi999/ai-engineering-from-scratch-zh · 1,048 stars · on GitHub · aieng-zh.cn

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fancyboi999/ai-engineering-from-scratch-zh --skill skill-invocation-router
Clone the repo
git clone --depth 1 https://github.com/fancyboi999/ai-engineering-from-scratch-zh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-invocation-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-invocation-router/github.svg)](https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-invocation-router)
Your own site
<a href="https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-invocation-router"><img src="https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-invocation-router/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-invocation-router

Your own site · 80×15
<a href="https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-invocation-router"><img src="https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-invocation-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 373 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00373
Opus 5 $0.00019 $0.00187
Sonnet 5 $0.00008 $0.00075
Haiku 4.5 $0.00004 $0.00037

Measured 5d ago against content hash 286d0d158e18, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

skill-invocation-router scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/simulate_invocation.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

phases/13-tools-and-protocols/25-skill-invocation-and-routing/outputs/skill-invocation-router/SKILL.md · 23 lines

What it actually says

Skill 调用路由器

当宿主需要可审计的激活策略,而不是一个没有区分的 invocable 标志时使用。

  1. 阅读 references/invocation-model.md,并归类请求通道。
  2. 查看 assets/host-policy.json;它是适配器配置示例,不是可移植标准。
  3. 运行 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. 对人工、应用、skill 或 harness 请求,要求精确的已发现名称和该通道的 allowlist。
  5. 对 skill 调用者,还要求调用者身份、无环目标和有界组合深度。
  6. 对模型或自治 agent 请求,排除 actor 或已识别宿主扩展使其不具资格的候选项。
  7. 只为其余描述打分;选最强的合格匹配,若没有候选项过阈值则弃权。
  8. 返回包含 adapter、通道、分数和策略原因的 JSON 决策。

激活只会加载指令;它不会批准工具、文件系统变更、网络访问、secret 使用或 bundle 中的脚本。

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 23 lines · 38 tokens per session scan A 286d0d158e18

Subscribe to this mod's changes

skill-invocation-router is a skill published in the GitHub repository fancyboi999/ai-engineering-from-scratch-zh (1,048 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 373 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.