aemerson-commits/shareable-skills/skill-audit
Claude Code and agent skill by aemerson-commits/shareable-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Run a comprehensive health audit across all skills — checks staleness, safety guards, cross-skill consistency, context efficiency, step compliance, learning pipeline, externally-synced skills, and unversioned extension surfaces. Use when you want to verify skill quality, after bulk skill edits, or as a periodic maintenance check.
Install
npx vskill@latest install aemerson-commits/shareable-skills/skill-auditSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as aemerson-commits/shareable-skills/skill-audit.
Skill Audit — Comprehensive Health Check
Run 9 automated checks across all project skills and produce a health report card.
When to Run
- After bulk skill edits or new skill creation
- Monthly maintenance (add to
/start-dayon the first session of each month) - When a skill misbehaves (wrong trigger, stale data, skipped steps)
Preflight — Which Tree Are You Auditing (MANDATORY)
Run this FIRST and put the result in the report header. An audit that never states its ref can be a report about a months-old branch and still look clean.
- `exact` is `yes` (HEAD is the shared branch AND the working tree is clean) → auditing the
working tree is fine.
- `exact` is `no` → the working tree is NOT what's live. **Do not audit it — audit an exact
tree instead.** A behind-count is NOT the gate: a branch 0-behind-N-ahead (any PR branch cut from the shared branch), a diverged branch, or a dirty tree all pass a naive behind == 0 check while differing from what's actually deployed. Re-verifying findings against the shared branch is also NOT sufficient — that only catches false positives. A defect present only on the shared branch produces no local finding to re-verify, so a stale scan reports a false PASS with nothing to check. Two ways to get an exact tree, either is fine:
```bash # (a) throwaway detached worktree — all checks point here, remove when done git worktree add --detach /tmp/skill-audit-tree origin/main # ... run every check against /tmp/skill-audit-tree/.claude/skills/ ... git worktree remove /tmp/skill-audit-tree
# (b) no checkout at all — grep the ref directly git grep -n '<pattern>' origin/main -- '.claude/skills/' ```
If neither is possible, abort the audit and say so — a report from a non-exact tree is worse than no report.
Why this matters. A real audit run once quoted an exact file:line match to prove a finding, and the finding was wrong — the checkout was hundreds of commits behind the shared branch. Quoting proves the line exists; it does not prove the line is current. The failure is silent in both directions: a stale tree can also hide a real defect that exists on the current branch, so a PASS from a behind checkout is not a PASS.
Checks
Check 0 is a deterministic parse — run it inline first, no agent. Run checks 1-4 in parallel via subagents. Check 5 requires the current session's transcript. Check 6 requires the /evolve pipeline. Checks 7-8 are deterministic bash scans — run them inline like Check 0, no agent needed.
Evidence rule (applies to every check). A finding is only valid if the agentcan quote the EXACT source line that proves it —file:line+ verbatim text.Findings without a quotable line are hallucinations: drop them, do not report them.Use Grep for extraction (deterministic, exhaustive), never excerpt-reading orinference about what a file "probably" contains. Before returning, the agent mustre-grep each claimed finding and discard any it cannot reproduce.Dispatch checks 1-3 withsubagent_type: "general-purpose", notExplore—Explore reads excerpts and trades exhaustive coverage for speed, which is the wrongtrade for a verification task.
Pinmodel: "sonnet"on every dispatched agent — it keeps a multi-agent audit cost-predictable and consistent regardless of what model is driving the parent session, and satisfies any project policy that requires subagent dispatches to name an explicit model.
Check 0: Frontmatter Validity
Cheap, deterministic, and no agent needed — run it first. Parse every SKILL.md's YAML frontmatter and assert three things: the keys are all in the harness's documented set, name matches the directory, and the invocation mode is the one the skill's body implies.
An unrecognised key is not a harmless comment. Depending on the distribution path it is either rejected outright or silently ignored — and silent-ignore is the dangerous outcome, because the file reads as if it configured something. Get the allowed set from your harness's current documentation rather than from the surrounding files: a wrong key propagates by copy-paste, so the neighbours are the worst possible reference.
The specific trap worth naming, because it survives every other check in this audit:
A field whose value equals the default is a no-op that reads as a restriction. In ClaudeCode,user-invocable: trueis exactly this —trueis already the default, so the linerestricts nothing. It looks like "only the human may invoke this," but the field that actuallyhides a skill's description from the model isdisable-model-invocation: true.user-invocable: falseis a third thing again: only the model may invoke it, and thedescription stays in context.Found live in two independent skill sets — 22 of 99 skills in one, 28 of 49 in the other —every one of them still fully model-invocable with its description permanently loaded, which isthe precise cost the author wrote the line to avoid.
Match the key loosely or your own check will miss the variants. A no-op key gets retyped from memory, so it arrives in several spellings: user-invocable, user_invocable, user-invokable. All three were found in the wild. A validator anchored on ^[a-z-]+: silently skips the underscore form — the check reports clean while the file is still wrong. Extract with ^[A-Za-z_-]+: and compare against the allowed set, rather than pattern-matching the specific key you expect.
Report, don't mass-fix. Stripping a no-op is safe, but converting it to the field the author probably meant is not: a skill that other skills invoke, or that the model must reach on its own, breaks silently when its description leaves context. Flag each one with the body evidence for which mode it wants, and let a human decide per skill.
Also worth asserting here: a skill with side effects — deploy, send, merge, production write — should be user-invoked regardless of context-load arithmetic.
Check 1: Staleness Detection
Dispatch a general-purpose agent:
A `/name` pointer is not necessarily a repo path: resolve it against the global commands tree too. Docs cite user-level slash commands the same way they cite skills, and those live in the tree Check 8 resolves ($GLOBAL/commands/<name>.md), not in.claude/skills/. An agent scoped to the repo sees no directory and reports a dangling pointer with airtight-looking evidence. Before reporting a/namestale,ls "$GLOBAL"/commands/<name>.md. A pointer that resolves ONLY in the global tree is a dependency on an unversioned surface, which is worth saying, but it is not a stale reference. The same goes for a pointer that names another repo: do not resolve it against the local tree.
Pass criteria: Zero stale file paths or config IDs.
Check 1b: Usage
If your hooks record which skills run (one structural log line per skill invocation is enough), count each skill's runs, failures and last run over the last 30 days, and list the skills with no run in the window as review candidates. A skill nobody invokes may be stale, mis-described (its description never matches a request) or simply seasonal (a release or month-end skill). Never delete or archive one on this signal alone. A skill with failures is a Check 1 lead: read its steps against the live tree. If the records cover fewer than 30 days, say so and treat the list as partial.
Check 2: Negative Output (Safety Guards)
Dispatch a general-purpose agent:
Pass criteria: All known gotchas have corresponding warnings in the relevant skill.
Check 3: Cross-Skill Consistency
Dispatch a general-purpose agent:
Pass criteria: No contradictions. Missing coverage flagged as warnings.
Check 4: Context Efficiency
Count lines per skill (body + references). Flag skills that are:
- Over 400 lines with NO references/ directory (all content in body)
- Rarely triggered (estimate < 1x/month) AND over 200 lines
Pass criteria: No skill over 400 lines without references/ split.
Check 5: Step Compliance (if applicable)
If process skills were used in the CURRENT session, grade them against their documented steps:
- deploy: Built first? Lint? From project dir? Correct branch? Post-deploy verify?
- session-notes: All required sections? Memory file updated? Roadmap updated?
- research-gate: Constraints? Patterns? Gotchas? Unknowns? Alternatives table? User approval?
- triage-ideas: Read inbox? Classify? Confirm? Route to knowledge base + database? Clear inbox?
- merge-to-main: All parallel agents? Verification checks? Clean tree?
Pass criteria: All documented steps followed. Skipped steps are flagged.
Check 6: Learning Pipeline Health (if /evolve is installed)
If the project has a continuous learning pipeline (.claude/scripts/instinct-cli.js), check its health:
Check (all three matter; anything else is noise):
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/skill-audit/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aemerson-commits/shareable-skills/skill-audit)