kb-audit
Skill0 starsChanged 29 days agoMITView on GitHub
Health check of the KB: lint, stale drafts, oversized files, undecided comparisons, orphans, broken links, overdue todos, STATE.md age. Writes a report to runs/. Use when the user asks: audit the KB, what's stale, what's broken, health check; also before a synthesis.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-entrySkill
- add-todoSkill
- complete-todoSkill
- deadlinesSkill
- financeSkill
- financial-summarySkill
- kb-add-folderSkill
- kb-archiveSkill
- kb-promoteSkill
- kbSkill
- kb-synthesizeSkill
- meetingSkill
- studySkill
- study-statusSkill
- study-unstudiedSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Run lint: python3 scripts/kb-lint.py.
- Very specific: line 17
STATE.md age: if STATE.md exists, compare its as-of: date with the newest synthesis/ file and the newest dated content file.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/kb-audit — Audit KB health
- Acquire
runs/.lock. - Run lint:
python3 scripts/kb-lint.py. Capture errors. - Walk the content folders and check (named thresholds defined in CONVENTIONS.md § "Growth rules"):
- Stale raw drafts:
status: raworstatus: prospect(for advisors) wheredate_foundorcreated_atis older thanSTALE_DRAFT_DAYS. - Oversized files: any
*.mdlarger thanOVERSIZED_FILE_LINES(usewc -l). Candidates for multi-chapter promotion. - Undecided comparisons:
decision_status: consideredwith no commit touching the file in the lastUNDECIDED_COMPARISON_DAYSdays. - Orphan files: content files with no inbound
[[<slug>]]citations from any other file. Use grep. - Broken wikilinks:
[[<path>]]where the target file does not exist. Use grep + file checks. - Overdue todos:
todos/*.mdwithstatus: pendingand adeadlinebefore today. Report them as outcome unknown (nobody recorded it), not as "not done". - STATE.md age: if
STATE.mdexists, compare itsas-of:date with the newestsynthesis/file and the newest dated content file; flag it when either is newer. - Convergence promotion candidates:
python3 scripts/kb-convergence-scan.py— anyconvergence:tag on ≥3 brainstorms means the pattern has escaped its origin and deserves its ownquestions/orresearch-dispatches/file. Capture the script's "Promotion candidates" section.
- Stale raw drafts:
- Compose report:
runs/YYYY-MM-DD-audit.mdwith frontmatter:
Body: sections for each check category; counts + file lists. If zero issues in a category, say so.--- type: run-log kind: audit date_found: YYYY-MM-DD --- - Stage + commit:
kb: audit <date>. Push. - Release the lock.
- Report summary to user: counts per category + report path.
The audit is diagnosis, not remediation. Surfacing the issues is the skill's job; /kb-archive, /kb-promote, etc. fix them.
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
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.

