Lint and tidy the vaults (broken links, orphans, duplicates, stale notes, tags, MOCs) and produce a report. Deletions require the owner's OK.
What is kb-template?
kb-template is a Claude Code agent skill that lint and tidy the vaults (broken links, orphans, duplicates, stale notes, tags, MOCs) and produce a report. Deletions require the owner's OK.
Run python3 scripts/lint.py (all vaults) and collect output.
Broken links: fix typos/renames by pointing to the existing note; if the target is genuinely missing, create a stub only if useful, else unlink. Never fabricate content.
Orphans: link each orphan from a related note or MOC; if it doesn't fit, move to Inbox/.
Duplicates: find similar titles/aliases/content (rg, compare). Merge into the better note (keep all facts, union of sources, add alias, redirect links). Merges that drop content or remove files: propose, don't do.
Stale notes: updated > 6 months, empty stubs, finished projects: propose status: archived or deletion.