{"data":{"slug":"github-lobehub-lobehub-agents-skills-skills-audit-c90b3c89b5c8","title":"Audit and Maintain Skill Catalog","summary":"Periodic review of the project-local skill set under `.agents\/skills\/` to detect duplicates, overlaps, stale references, and inconsistencies before the catalog becomes confusing. The deliverable is a report with actionable findings, file references, and proposed changes.","url":"https:\/\/skillshunter.net\/skills\/github-lobehub-lobehub-agents-skills-skills-audit-c90b3c89b5c8","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-lobehub-lobehub-agents-skills-skills-audit-c90b3c89b5c8","markdown_url":"https:\/\/skillshunter.net\/skills\/github-lobehub-lobehub-agents-skills-skills-audit-c90b3c89b5c8.md","download_url":"https:\/\/skillshunter.net\/skills\/github-lobehub-lobehub-agents-skills-skills-audit-c90b3c89b5c8\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before starting the audit, ensure that the active harness's metadata (e.g., `disable-model-invocation` or `policy.allow_implicit_invocation` in `agents\/openai.yaml`) is verified against explicit-only invocation settings. Additionally, check for any inventory helpers in `package.json` scripts or `.agents\/scripts\/` to avoid duplicating checks.","instructions":"---\nname: skills-audit\ndescription: 'Audit .agents\/skills SKILL.md files. Use for recurring checks of duplicate, overlapping, stale, inconsistent, or broken skills and merge\/delete candidates.'\nargument-hint: '[--verbose | --apply]'\n---\n\n# Skills Audit\n\nPeriodic review of the project-local skill set under `.agents\/skills\/`. The goal is to catch drift before the catalog becomes confusing \u2014 too many skills, overlapping triggers, descriptions that no longer match the body, references to skills that were renamed\/deleted.\n\n**Recommended cadence:** weekly, or after any week where >1 skill was added\/renamed.\n\n## Procedure\n\n### 1 \u2014 Inventory\n\nBuild a current inventory, including symlinked skills. Look for inventory\/check helpers in `package.json` scripts and `.agents\/scripts\/`; reuse them when available and inspect their supported options rather than duplicating their checks. Read each description and inspect bodies where routing, overlap, or stale references need investigation. Without an inventory helper:\n\n```bash\nfind -L .agents\/skills -name SKILL.md | wc -l                      # total count, including symlinked skills\nfind -L .agents\/skills -name SKILL.md -exec wc -l {} \\; | sort -rn # by body length, including symlinked skills\n```\n\nGroup by domain in a mental table (DB \/ state \/ UI \/ agent \/ testing \/ workflow \/ docs \/ etc.). Note new arrivals since last audit (`git log --since=\"1 week ago\" -- .agents\/skills\/`).\n\n### 2 \u2014 Detect overlap \/ redundancy\n\nFor each pair within the same domain, ask:\n\n- **Same description**? \u2192 likely duplicate (one is probably a stale rename leftover, or a global-vs-local collision).\n- **The same task fits multiple descriptions**? \u2192 check whether the skills are complementary or actually compete; clarify the boundary only when selection is ambiguous.\n- **One skill's body says \"see also: foo\"**? \u2192 confirm `foo` still exists, AND confirm the cross-reference is still meaningful (the referenced skill may have absorbed the referrer's concerns).\n- **Skill duplicates content from `AGENTS.md`**? \u2192 fold into AGENTS.md or slim the skill to just the delta.\n\nCommon false positives (do NOT merge):\n\n- `db-migrations` vs `drizzle` \u2014 distinct workflows (migration files vs schema authoring).\n- `agent-runtime-hooks` vs `agent-tracing` vs `agent-signal` \u2014 different surfaces of the agent system.\n- `testing` vs `acceptance` \u2014 different test types.\n\n### 3 \u2014 Description and invocation boundaries\n\nCheck whether the description makes the skill's purpose and selection boundary clear and matches its body. Flag broad triggers that attract unrelated tasks, missing distinctions between overlapping skills, and stale names or references.\n\nDo not require literal phrases such as `Use when` or `Triggers on`, a fixed sentence structure, or a description length proportional to the body. These are writing choices, not runtime routing controls. Treat script wording heuristics as review hints, not proof of a defect.\n\nVerify explicit-only invocation settings against the active harness's supported metadata, such as frontmatter `disable-model-invocation` or `policy.allow_implicit_invocation` in `agents\/openai.yaml`. Do not assume different harnesses recognize the same fields. Preserve the intended policy; do not infer runtime behavior from description wording alone.\n\n### 4 \u2014 Stale-skill check\n\nFor narrow domain skills (e.g. `response-compliance`, one-off CLI workflows):\n\n```bash\n# Confirm the referenced code surface still exists\nrg -l \"response-compliance|openresponses\" packages\/ src\/            # adjust per skill\ngit log --since=\"3 months ago\" -- '.agents\/skills\/<skill>\/SKILL.md' # replace <skill>\n```\n\nIf the underlying surface is gone and the skill hasn't been edited in 3+ months \u2192 flag for archival.\n\n### 4b \u2014 Living-log freshness (`common-mistakes.md`, `probe-mock-patterns.md`)\n\nBoth layers (`.agents\/skills\/acceptance\/references\/` generic, `.agents\/acceptance\/`\nproject) are injected into every acceptance round, so a stale entry is a stale\ninstruction. For each entry:\n\n```bash\nrg -n '^`since|holds-while' .agents\/acceptance\/common-mistakes.md        # every entry must carry both\nrg -n 'holds-while: (?!always)' -P .agents\/acceptance\/common-mistakes.md # the mechanism-bound ones\n```\n\n- Missing `since` \/ `holds-while` \u2192 the entry predates the admission rule; either add them or move it to field-notes.\n- For every non-`always` `holds-while`, check whether the named mechanism still exists (the script default, the ingest gap, the platform behavior). Gone \u2192 delete the entry (PROCESS.md Step 0 exit rule); the field notes keep history.\n- An entry that names a project script from the generic layer, or a product noun, is in the wrong layer.\n- Duplicate ids (`rg -o '^### [ML]-?[A-Z]?\\d+' | sort | uniq -d`).\n\n### 5 \u2014 Cross-reference integrity\n\nCheck actual skill links, named handoffs, and referenced files against their owning root, including symlink targets. A code symbol or CLI command in backticks is not automatically a skill reference. Resolve renamed or moved targets before reporting a broken link, and fix confirmed references when edits are authorized.\n\n### 6 \u2014 Output report\n\nReport actionable findings with file references, evidence, and the proposed change. Distinguish confirmed defects from uncertain candidates. Include inventory totals or an execution order only when they help the user decide; no fixed headings, template, or line-count estimates are required.\n\nAn audit-only request produces recommendations. When the user authorizes fixes, through `--apply` or ordinary language, apply safe changes within that scope without asking again. Deletions require authorization covering the target; do not request it again when already provided.\n\n## Output rules\n\n- Be specific. \"Skill X overlaps with Y\" is useless without naming the overlapping triggers.\n- Cite line numbers when flagging description \/ body issues.\n- Don't recommend merges unless the call sites would actually load the merged skill in the same context.\n- Don't recommend deletes for skills that haven't been touched recently \u2014 \"unused\" can mean \"stable\", not \"dead\".\n\n## What NOT to do\n\n- \u274c Don't delete a table or section because some of its fields are stale. Update the stale fields (status, paths, counts) and keep decision data that code cannot reproduce: priorities, owners, dates, rationale.\n- \u274c Don't rename skill directories without checking for cross-references AND user memory entries that name the old slug.\n- \u274c Don't remove meaningful selection boundaries merely to shorten a description or fit a template.\n- \u274c Don't fold a heavy 200+ line skill into another just because they share a domain \u2014 large skills get loaded selectively and merging makes everything load.\n- \u274c Don't propose `.agents\/skills\/INDEX.md` or `<domain>-<skill>` prefix renames unless the user explicitly asks \u2014 costs > benefits for cosmetic reorgs.\n","use_cases":["Weekly review of the skill set to detect duplicates, overlaps, and stale references.","Post-addition audit of new skills to ensure they fit within existing workflows.","Identify and resolve broken cross-references between skills."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/lobehub\/lobehub\/blob\/54382b5c8e81544da454fa6d7b50f461a562c1ee\/.agents\/skills\/skills-audit\/SKILL.md","source_commit":"54382b5c8e81544da454fa6d7b50f461a562c1ee","license":null,"version":null,"listing_approved_at":"2026-11-22","created_at":"2026-11-21T11:30:44.000000Z","updated_at":"2026-11-22T11:17:19.000000Z","seo_title":"Audit and Maintain Skill Catalog","seo_description":"Periodic review of the project-local skill set under .agents\/skills\/ to catch drift and maintain clarity in the catalog.","seo_keywords":["audit skill catalog","maintain skill set","detect skill overlaps","review skill references","fix broken skill links"]}}