agentleFS
alexio777alexio777/learn-on-the-job/skills/skill-audit/SKILL.md

skill-audit

Skill0 starsChanged 4 months agoMITView on GitHub

Use when the user wants to audit, refresh, or prune repo skills; check skill rot or drift against source-of-truth files; classify skills KEEP / REFRESH / MERGE / PRUNE; or close the learn-on-the-job loop after distill-skill.

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use humanize and skill-creator.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • richtaborSkill

    humanize

    Reviews and edits copy to remove AI-generated patterns and make text sound natural. Use when editing drafts, reviewing copy, "humanize this", "make it less AI", "sounds too AI", "remove AI patterns", "edit my copy", "this sounds robotic", or when text feels machine-generated.

    Also in 3 projects that use this

  • MicrosoftSkill

    skill-creator

    Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No sha → weak proxy; if unsure, REFRESH

    line 61
  2. Distinctive:

    Never edit globals; never rewrite skill bodies

    line 98
  3. Distinctive:

    After allowed changes, refresh ledger entries

    line 99

“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Audit

Repair half of the learn-on-the-job loop. distill-skill mints skills; this skill stops them rotting. A stale skill is worse than no skill — it auto-loads a wrong map.

Target: skill name = one skill; empty = all repo-local skills.

FlagMeaning
--report-onlyNever write (default for multi-skill runs)
--fixSafe mechanical fixes only, after the report
--changed-since <ref>Only skills whose sources changed since <ref>

Hard principle

Audit detects; distill re-verifies. Cheap and non-destructive by default.

With --fix, only: lint, tighten over-broad descriptions, and user-confirmed PRUNEs. Content refresh → print distill-skill <name>, never silent body rewrite.

Ledger

Sidecar: .agents/distill-skill-ledger.json and/or .claude/distill-skill-ledger.json.

Schema: ../distill-skill/references/ledger-schema.md.

Missing ledger → infer source_of_truth from cited paths; full re-check. Never trust ledger over a live file.

Procedure

1. Inventory

Glob .agents/skills/*/SKILL.md and .claude/skills/*/SKILL.md. Load matching ledgers. User-global skill dirs: read-only, overlap only. Same name in two project trees → overlap flag.

2. Lint

Broken frontmatter · name ≠ directory · generic description · lines >120 warn / >160 split. These are --fix-safe.

3. Drift (core)

Resolve source_of_truth (ledger, else body paths):

  • Missing/renamed source → PRUNE or REFRESH
  • Changed since last_verified_git (git log <sha>..HEAD -- <files>) → spot-check → REFRESH
  • No sha → weak proxy; if unsure, REFRESH

Honesty beats a false KEEP.

4. Trigger, overlap, side flags

Description is the auto-load trigger: concrete? over-broad? Two skills same sources → MERGE.

Optional side flags (never primary labels) — details in references/labels.md:

FlagMeaning
prime?Technique body is priming-dominated → distill prune-to-prime
untested-gate?Discipline skill lacks behavior_tested.green
never-loaded / hot-but-flaggedOnly if a usage log exists — never invent counts

5. Classify (exactly one)

LabelNext step
KEEPNone
REFRESHdistill-skill <name>
MERGEUser picks owner
PRUNEConfirm delete dir + ledger entry

6. Report, then optional --fix

Table format: references/report-format.md.

Priority: hot-but-flagged (if usage data) → other REFRESH → PRUNE → MERGE → side flags.

--fix rules:

  • Mechanical lint + tighter descriptions only
  • PRUNE needs explicit user confirm; without UI, list candidates instead of deleting
  • REFRESH: do not edit — print the distill command
  • Never edit globals; never rewrite skill bodies
  • After allowed changes, refresh ledger entries

Gate refusal on a delegated rewrite → action needs manual revision, not KEEP.

Deliverable

  1. Classification table
  2. distill-skill <name> follow-ups
  3. PRUNE done/proposed
  4. MERGE calls
  5. needs manual revision list

Distill learns; audit forgets what is no longer true.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.