agentic-skill-router
First use any clearly matching enabled local/user Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.
- License 许可
- MIT
- 最近更新
- 2026-06-04
- Stars
- ★ 8
- Forks
- 2
01 前言 Front Matter
- name
- agentic-skill-router
- metadata
- { "agentic-skill-router.hosts": "claude-code,codex", "agentic-skill-router.variant": "L-agentic", "agentic-skill-router.version": "1" }
- description
- First use any clearly matching enabled local/user Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.
02 资源文件 4
- 参考文档references/cli-location.md1.1 KB
- 参考文档references/disabled-routing.md1.6 KB
- 参考文档references/safety.md667 B
- 参考文档references/slimming.md933 B
03 SKILL.md 正文
agentic-skill-router - Agentic Search-inspired skill routing and slimming
Use this skill when the user wants to inspect installed Agent Skills, identify unused or stale skills, disable or restore skills, or route a request to a locally disabled skill. For ordinary task requests, first use any enabled local Agent Skill that clearly matches; if none does, use this fallback router for skill-shaped requests involving named tools, APIs, services, CLIs, file formats, platforms, datasets, or domain workflows. The skill instructions are host-neutral; installation methods provide the host-specific plugin or slash-command entry point.
Locate the CLI
If references/local-cli.md exists, read it before any filesystem search and
use the helper defined there; it is generated by agentic-skill-router init
and pins the right local CLI path and host. Do not search the current project,
package manager caches, or unrelated worktrees for another
agentic-skill-router binary unless that generated helper path is missing or
not executable.
When no generated local helper exists, prefer ${AGENTIC_SKILL_ROUTER_CLI} if
it is set. Otherwise locate the bundled CLI next to this skill installation.
- Installed plugin: compute the plugin root by taking
dirnamethree times from thisSKILL.mdpath (.../skills/agentic-skill-router/SKILL.md-> plugin root), then appendbin/agentic-skill-router. - Repository checkout: only when this skill is being read inside the
agentic-skill-routerrepository checkout itself, usebin/agentic-skill-router.
Always invoke the CLI by absolute path. Installed plugin wrappers set the host before delegating to the shared runtime. Repository checkout CLIs default to Claude Code. Define a helper for the resolved CLI path:
agentic_skill_router() { "<abs-path-to-agentic-skill-router>" "$@"; }
Manage skills
For cleanup requests, run:
agentic_skill_router suggest --json
Show suggestions as a compact table with id, reason, confidence, and details.
Never disable without explicit user confirmation. After confirmation, disable
specific ids or all current suggestions. The CLI requires --yes for every
disable form; without it no skill files are renamed.
agentic_skill_router disable <id...> --yes
agentic_skill_router disable --all-suggested --yes
Use list --json for a full inventory, status --json for
disabled records and repair status, and enable <id...> to restore
previously disabled skills.
If the user wants to adjust the staleness threshold, mention
--unused-for=60d (or 2w, 3m, 1y) or the persistent config at
~/.agentic-skill-router/config.json:
{ "unusedForDays": 60 }
Route disabled skills
Use this fallback router after enabled local Agent Skills have been considered and none clearly match a skill-shaped request: operating, querying, configuring, deploying, inspecting, or troubleshooting a named tool, API, service, dashboard, datastore, CLI, DSL, URL, file format, platform workflow, or domain method.
Use the agentic-skill-router corpus primitives as an Agentic Search-inspired,
non-vectorized retrieval harness for skill management. Do not call
route. Do not call dci or body. During retrieval, do
not read disabled skill bodies. Route from disabled-skill metadata only. Do not
assume embeddings, a vector database, or any hidden semantic index exists.
-
Build two term sets from the current user request:
- must terms: 1-3 narrow terms that the correct skill should mention (file extensions, exact APIs/tools, named methods, protocols, or required operations).
- probe terms: 2-5 additional distinctive terms for recall and ranking.
Prefer exact technical terms over broad words like
data,analysis,report,file,output, orjson. For file-format tasks, include both the extension and artifact family when relevant, such aspptxpluspresentation, ordocxplusdocument. -
Search disabled-skill metadata with a bounded, agent-controlled query:
agentic_skill_router corpus search \ --all "<must1>" --any "<probe1>" --any "<probe2>" --any "<probe3>" \ --limit 30 --jsonThe result reports
totalMatches,returned,truncated, and stablerefvalues. Do not accept a truncated broad result as final evidence. Iterate for a small bounded number of searches (2-4 total) until the shortlist is useful: iftotalMatchesis 0, broaden or replace one must term; iftruncatedis true ortotalMatches> 30, narrow with another--allterm or more specific probes. Never dump the whole catalog. -
Once the returned shortlist is small enough, compare the metadata evidence in the JSON result. If one candidate explicitly covers the required operation, choose it. If 2-3 candidates remain plausible, inspect only those metadata records:
agentic_skill_router corpus inspect corpus-REF1 corpus-REF2 corpus-REF3 --json -
Choose by metadata evidence:
- Prefer explicit operation coverage over nearby topic similarity.
- Prefer a dedicated file-format/tool skill when the task is to operate that file format or tool.
- Prefer a domain/method skill when the named method/domain constraint is central and the file/tool is only the substrate.
- For retrieve, extract, or structured-answer tasks, prefer metadata that mentions evidence, search, extraction, or structured output over broad discovery or planning.
- If still tied, choose the metadata covering the most distinctive required verbs and nouns.
-
Record exactly one selected disabled skill, then read that skill file:
agentic_skill_router corpus select "<corpus-ref-or-id>" \ --query "<current user request>" \ --confidence high \ --reason "<brief metadata evidence>" \ --jsonIf the result has
action: "read-skill-file"and a non-nullselected, readselected.skillMdPatheven when it ends inSKILL.md.agentic-skill-router-disabled, then follow that disabled skill's instructions as if it were enabled.
If metadata evidence remains weak or ambiguous, stop the router path and continue normally without selecting a disabled skill.
Safety
- Built-in and system skills are protected and cannot be disabled.
- The disable mechanism is a rename:
SKILL.mdtoSKILL.md.agentic-skill-router-disabled. Never delete skill files. - Never disable a skill without explicit user confirmation.
- Do not disable a whole plugin when a disabled skill still depends on that plugin's MCP tools or app tools.
- State is stored under
~/.agentic-skill-router/state-<host>.json.
References
references/cli-location.md- CLI lookup details.references/slimming.md- listing, suggestions, disable, enable, and status.references/disabled-routing.md- L-agentic disabled-skill corpus workflow.references/safety.md- confirmation, protection, and repair rules.
04 同仓库更多 Skills
foo
A test skill named foo
bar
飞书 — bar with quoted Chinese
syn-video-trim
Skill for trimming and cutting clips in the context of video files. Use when the user's task is specifically about trimming and cutting clips.
syn-video-transcode
Skill for transcoding codecs and resolutions in the context of video files. Use when the user's task is specifically about transcoding codecs and resolutions.
syn-video-thumbnail
Skill for extracting thumbnails and frames in the context of video files. Use when the user's task is specifically about extracting thumbnails and frames.
syn-video-subtitle
Skill for adding subtitles and captions in the context of video files. Use when the user's task is specifically about adding subtitles and captions.