sync-skill-taxonomy
/sync-skill-taxonomy
Classify every skill in skills/ as user-invoked or model-invoked, ensure disable-model-invocation is set on user-invoked skills, and inject metadata.category on all. Run after adding or changing skills, or when token-cost/routing quality is being reviewed. Use for \"sync skill taxonomy\", \"classify skills\", \"fix disable-model-invocation\", or \"skill token audit\".
- Author
- v1truv1us ↗
- Repository
- ai-eng-system ↗
- Licence
- MIT
- Last repository change
- 09.08.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 09.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Classify every skill in skills/ as user-invoked or model-invoked, ensure disable-model-invocation is set on user-invoked skills, and inject metadata.category on all. Run after adding or changing skills, or when token-cost/routing quality is being reviewed. Use for \"sync skill taxonomy\", \"classify skills\", \"fix disable-model-invocation\", or \"skill token audit\".
Triggers from the description
Original author description
Classify every skill in skills/ as user-invoked or model-invoked, ensure disable-model-invocation is set on user-invoked skills, and inject metadata.category on all. Run after adding or changing skills, or when token-cost/routing quality is being reviewed. Use for \"sync skill taxonomy\", \"classify skills\", \"fix disable-model-invocation\", or \"skill token audit\".
How it works
- Why
- When to run
- Classification rules
- Workflow
- Token-cost note
- Provenance
SKILL.md preview
---
name: sync-skill-taxonomy
description: "Classify every skill in skills/ as user-invoked or model-invoked, ensure disable-model-invocation is set on user-invoked skills, and inject metadata.category on all. Run after adding or changing skills, or when token-cost/routing quality is being reviewed. Use for \"sync skill taxonomy\", \"classify skills\", \"fix disable-model-invocation\", or \"skill token audit\"."
metadata:
category: user-invoked
version: 1.0.0
tags: maintenance, skills, taxonomy
disable-model-invocation: true
---
Default output: return only the result, blockers, and required evidence. Omit preambles, process narration, repeated context, confidence scores, and follow-up offers. Use at most five bullets unless a required artifact or schema needs more.
# Sync skill taxonomy
Keeps the skill catalog consistent: every `skills/**/SKILL.md` carries a `metadata.category` (user-invoked or model-invoked), and every user-invoked skill carries `disable-model-invocation: true` so its description is excluded from model routing context.
## Why
Per the Agent Skills spec, every skill's `name` + `description` loads at startup for routing (~100 tokens each). `disable-model-invocation: true` (a Claude Code / Cursor / Pi extension, not part of the base spec) marks a skill as slash/manual-only — its description is NOT loaded for routing, saving tokens and preventing the model from auto-invoking skills meant for explicit triggers.
Drift happens: new skills land without the flag, descriptions get rewritten, trigger semantics shift. This skill re-applies the taxonomy deterministically.
## When to run
- After adding, renaming, or removing skills
- After rewriting a skill's `description`
- When reviewing token cost of the skill catalog at startup
- When routing quality degrades (model invoking skills it shouldn't)
## Classification rules
A skill is **user-invoked** if ANY of:
1. It already has `disable-model-invocation: true`.
2. Its `description` contains explicit-trigger language: "user explicitly", "explicitly types", "when the user says", "Use only when the user".
3. Its only trigger is a slash command AND it has no capability-based routing signal (the model would never reach for it from task context alone).
Otherwise it is **model-invoked** — the agent should be able to auto-invoke it based on task context.
**Bias toward model-invoked.** Flagging a skill user-only removes it from routing. Only flag when the description genuinely says "explicit/manual only". Capability skills that *also* mention a slash command (e.g. `grill-me`, `architect`, `comprehensive-research`) stay model-invoked — the model may legitimately reach for them.
## Workflow
### 1. Classify
For each `skills/**/SKILL.md`, read the frontmatter and `description`. Apply the rules above. Produce the full mapping before editing anything.
### 2. Flag disable-model-invocation
For every **user-invoked** skill that lacks `disable-model-invocation: true`, add it immediately after the `description:` line:
```yaml
---
name: some-skill
description: Use only when the user explicitly types `/some-skill`...
disable-model-invocation: true
metadata:
...
---
```
Do NOT remove the flag from skills that already have it.
### 3. Inject metadata.category
For every skill, ensure `metadata.category` is present. Two cases:
**Has a `metadata:` block** — add `category: <user-invoked|model-invoked>` as the first key:
```yaml
metadata:
category: user-invoked
version: 1.0.0
tags: ...
```
**No `metadata:` block** — add one after `description:` (or after `disable-model-invocation:` if present):
```yaml
description: ...
metadata:
category: model-invoked
```
Preserve all existing metadata keys (`version`, `tags`, `author`, etc.). Only add `category`.
### 4. Normalize and verify
Run the formatter — it merges legacy `version`/`tags` into `metadata` and preserves `category`:
```bash
bun run format:skills:fix
```
Then verify every skill has a category and the DMI set matches:
```bash
# Count by category
python3 -c "
import glob, re
for f in sorted(glob.glob('skills/**/SKILL.md', recursive=True)):
fm = re.match(r'^---\n(.*?)\n---', open(f).read(), re.DOTALL).group(1)
cat = re.search(r'category:\s*(\S+)', fm)
dmi = bool(re.search(r'disable-model-invocation:\s*true', fm))
print(f'{\"U\" if dmi else \"M\"} {cat.group(1) if cat else \"MISSING\":15s} {f}')
"
```
**Invariants after running:**
- Every skill has `metadata.category` ∈ {`user-invoked`, `model-invoked`}.
- Every `user-invoked` skill has `disable-model-invocation: true`.
- No `model-invoked` skill has `disable-model-invocation: true`.
### 5. Build and report
```bash
bun run build
```
Report:
- Counts: `N user-invoked / M model-invoked`
- Changes made: how many DMI flags added, how many categories injected/updated
- Estimated token savings at startup (sum of `description` chars for user-invoked skills ÷ 4 ≈ tokens excluded from routing)
## Token-cost note
The "63% reduction" figure that circulates for `disable-model-invocation` is only achievable in catalogs dominated by narrow slash-only tools. In a capability-rich catalog like this one, correct classification typically saves **~10–15%** of startup routing tokens. The bigger win is routing quality — the model stops auto-invoking skills meant for explicit triggers.
## Provenance
- Agent Skills spec: https://agentskills.io/specification (base format; `name`+`description` load at startup)
- `disable-model-invocation`: Claude Code / Cursor / Pi extension field, recognized by this repo's formatter (`scripts/lib/agent-skills.ts`, `EXTENSION_FRONTMATTER_FIELDS`)
- Classification heuristics derived from the 18 user-invoked skills in this catalog as of the initial taxonomy pass.
Files in this package (2)
- SKILL.md 6 KB
- evals/evals.json 2 KB
Versions
The database has no other skills named sync-skill-taxonomy.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 217689a80d9a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 98skill-sync
同步用户全局 skills 到 Git 仓库并发布。当用户说"同步skills"、"发布skills"、"更新skills到github"、"sync skills"时触发。**本 skill 只同步用户全局 skills(~/.claude/skills/),不同步项目内的 skills(项目 .claude/skills/ 目录)。**负责将全局 skills 同步到 dev_toolkits 仓库,并打包 .skill 文件发布 Release。 - 98custom-agent-usage
Discover, validate, and invoke .agent.md custom agents. Use when finding agent files in the local Claude or VS Code Insiders directories, checking frontmatter, verifying disable-model-invocation, or determining agentName for runSubagent calls. - 87agent-skills
Authoring Agent Skills — SKILL.md format and frontmatter, progressive disclosure and token budgeting, Anthropic's authoring best practices, bundling references/scripts, and packaging skills for Claude Code, claude.ai, and the Skills API. WHEN: \"write a SKILL.md\", \"create an… - 95skill-toggle
Enable, disable, and manage Claude Code skills. Use when the user asks to enable/disable/toggle/manage skills, check skill status, list skills, manage skill collections, or clean up the skills directory. - 100writing-skills
Write and edit agent skills that take the same process every run. Use when authoring a skill, editing or pruning an existing one, deriving a skill from an upstream source, or reviewing a change to a skill file. metadata.derived-from:… - 100dev-skill-registry
开发者创建或修改 skills/ 下科研 Skill 后,需要检查、登记、同步或验证时触发。当用户说「注册 Skill」、 「更新 registry」「同步 skill」「sync skills」「验证 Skill」「skill 管理」、 「register_skills」「skill 自动注册」「check skill registry」时使用本 skill。 引导执行 register_skills.py 的 check → update → sync,不手改 registry 或 .claude/skills/。 即使用户只改了 SKILL.md,也应提醒跑 check。