Skip to content
Skillpedia
Agents76k · #2631

skill-invocation-router

What it does

This skill sets and tests the rules that decide who can start an agent skill and when. It is for teams that run skills in several ways and want clear, checkable rules.

When to use it

  • ✓When you want to control whether a person, the AI, or another skill can start a skill.
  • ✓When you need to test how a request would be matched to a skill before it runs.
  • ✓When you want an activation rule that can be audited later.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: 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 Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Check whether the AI can start my billing skill on its own, and show why the decision was made.”

5 new skills a week. 1 minute to read.

How it works

The agent classifies the request, checks the allowed skills for that channel, removes ineligible ones, and scores the rest. It returns a decision with the reason, or abstains when no skill is a good enough match.

Technical content (original SKILL.md)

Original text by the author, straight from 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.

FAQ

Does activating a skill give it permission to act?

No. Activation loads instructions only. It does not approve tools, file changes, network access, or scripts.

What if no skill matches well?

The router can abstain, so no skill is started by mistake.

Are the rules portable?

No. The example policy is one host's setup, not a universal standard.

Details

Original description by the author

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

Popularity

GitHub stars
76k
Ranking position
#2631
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills