Your markdown docs have broken links, orphan pages, missing metadata, and you don't know it. This skill finds them all and fixes them for you.
Just say:
CheckWhat it findsAuto-fixable?Broken links[[wiki-links]] pointing to nothingYes — fuzzy-matches the right targetOrphan pagesFiles no other page links toSuggests where to add linksMissing frontmatterNo title, tags, or metadataYes — generates from contentThin articlesUnder 100 wordsSuggests outlinesBad filenamesSpaces, non-kebab-caseYes — renames + updates all referencesInconsistencyMixed tag casing, date formatsYes — normalizes
pip install kb-lintBelow are instructions for Claude Code. You can ignore this section.
Find the target. User-specified path, or scan for docs/, wiki/, notes/, content/. If user says "memory", target ~/.claude/.
Run the linter. bash
kb-lint --version 2>/dev/null || pip install kb-lint
kb-lint <path> --format json --severity info 2>&1
If kb-lint unavailable, check files manually for: broken [[wiki-links]], missing frontmatter, thin articles (<100 words), orphans, bad filenames.
Show a health dashboard. Score out of 100, issues grouped by category and severity, most critical first.
Offer to fix. Go beyond the CLI:
created date from git historyVerify. Re-run linter, show before/after score.
Claude Code memory mode: For ~/.claude/ targets, also check MEMORY.md index accuracy, validate memory frontmatter, flag stale entries (>90 days), find duplicates.
Rules: Never fabricate content. Always show changes before applying. Respect <!-- kb-lint-disable --> inline comments and per-check severity overrides.