pack-audit
Audit this repo's packs: skills and playbooks never used, failing evals, references behind the locked version, applies_when matching no files. Reports and proposes removals. Use periodically, after a dependency upgrade, or when a pack feels noisy or slow.
- License 许可
- MIT
- 最近更新
- 2026-11-04
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pack-audit
- metadata
- { "layer": "L3", "source": "cursor/plugins@1e5c90a:pstack/skills/maintain-verification-skill/SKILL.md + garrytan/gstack@47d639a:learn/SKILL.md.tmpl", "license": "MIT" }
- description
- Audit this repo's packs: skills and playbooks never used, failing evals, references behind the locked version, applies_when matching no files. Reports and proposes removals. Use periodically, after a dependency upgrade, or when a pack feels noisy or slow.
03 SKILL.md 正文
Pack audit
Packs rot: code moves, libraries upgrade, skills stop firing, and each loaded skill still costs context. This audit finds what no longer earns its place and proposes what to cut. It changes nothing without the user's yes.
Outcome, exactly one, stated first in the report:
- clean: every check ran and passed; nothing to propose.
- changed: the user approved changes, and they are applied and proven.
- blocked: a check could not run; say which one and why.
Input: every pack in ven-profile get packs, or the one named. Per pack, <pack dir> is $(ven-profile path)/packs/<pack>/, read with its pack.json; <ven root> is $(ven-profile root). With several packs, delegate one read-only worker brief per pack for checks 1, 2, 4 and 5.
Checks
- Registration. The pack directory and its entry in the profile's
packsagree, andven-profile packs-for <a covered file>lists every skill file as existing. A directory nothing registers is an abandoned draft. - Use in the last 90 days.
- Skills: count
ven-decisions list --step pack-skillrows naming<pack>:<skill>; the router logs one each time it loads a pack skill. - Playbooks: count the picks in
ven-transcripts --kind routes --since 90. - Zero uses makes an item a candidate; read its
evidenceinpack.jsonbefore proposing anything.
- Skills: count
- Evals. Read the newest
<pack dir>/evals/results/*/aggregate-result.json. Any case under 1.00, missing results, or results older than the newest pack file outsideevals/results/: rerun withnode <pack dir>/scripts/eval.mjs --ven <ven root> --runs 3 --max-cost-usd 15, granting--allow-toolsfor what the cases list. Whenven-profile config budget_tierislean, report "not rerun" instead of spending. - References. Compare each
references[]entry'sversionwith the version itslockfilelocks now; a difference is stale. Check thefile:linerows in the reference with citation-check. - applies_when. Glob each
applies_when.pathspattern from the repo root: no match is dead. Eachapplies_when.depsname must still appear in a manifest fromven-profile get stack.sources. A pack whose paths match nothing never loads. - Weight. The lines a matching task loads: the pack's SKILL.md files plus the references they link (
wc -l). A costly pack with little use is a candidate even when each item is used now and then.
Report
Outcome: <clean | changed | blocked>
Pack <pack> (<kind>, v<version>): <n> skills, <n> playbooks, <n> references (<n> stale), <n> adapters; <n> uses in 90 days; context ~<n> tokens
| Item | Kind | Uses | Evals | Finding | Proposal |
One table per pack. Every finding cites its evidence: the transcript count, the case and score, the lockfile line, the glob.
Propose, then apply what is approved
Ask once per pack, as a multi-select of its proposals; selecting none keeps everything:
- Fix a failing item: send it back through forge-skill, or the forge skill that built its kind.
- Remove an unused or unfixable item: its directory or file, its
pack.jsonentry, its eval cases, its name or path in the profile'spacks. - Refresh a stale reference with forge-reference for the locked version.
- Narrow dead
applies_when: changepack.jsonand the profile entry together. - Retire a pack with nothing left in use: drop its profile entry. Keep the directory until the user says to delete it.
After applying: bump the patch version in pack.json, run ven-lint-skills --pack <pack dir> and the whole suite (every case 1.00), then record ven-decisions add --step pack-audit --decision "<outcome>: <changes>" --evidence "suite <n>/<n>".
04 同仓库更多 Skills
yeet
Take every local change green through the repo's own checks, slice it into conventional commits, push, and with --pr open a pull request on the code host. Use only when the user explicitly asks to yeet, or to commit and push everything; never on your own initiative.
write-docs
Write or update documentation from the code: gather facts, pick the shape for the reader, write it plain, and prove every command and path in it. Use when asked to document a repo, module or feature, or to bring stale docs up to date.
why
Find why code is shaped the way it is (design rationale, trade-offs, regressions, odd thresholds) from history, tickets, docs and chat, citing every claim and stating its confidence. Use for 'why does X work this way', 'why did we pick Y', or before changing code whose purpose is unclear.
verify
Prove a change works with the check that matches its type, do the read-back, and log the pass against the exact tree. Use when a change is ready to call done, before review, commit or stopping, and whenever ven-decisions end refuses an unverified tree.
unslop
Cut AI writing tells (filler, model vocabulary, metaphor nouns, hedging, formatting tics) from text while keeping every fact. Use when editing or checking any prose before it ships: docs, PR bodies, reports, skill text.
type-discipline
Apply when designing types or data shapes, reviewing a signature, or handling outside data, in any language. Make wrong states fail early: in the compiler for typed languages, in validated runtime contracts for untyped ones.