.claude/skills/lint/SKILL.md
--- name: lint description: Health-check an LLM Wiki vault for issues — orphan pages, missing links, contradictions, stale content, frontmatter problems. Use when user wants to lint, check, audit, or health-check their wiki. argument-hint: [--vault <name>] [--fix] disable-model-invocation: true allowed-tools: Bash(git *) Read Write Edit Glob Grep --- # Lint Wiki Health-check a vault's wiki for structural and content issues. ## Usage ``` /lint --vault my-research /lint --vault my-research --f
npx skillsauth add RonanCodes/llm-wiki .claude/skills/lintInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Health-check a vault's wiki for structural and content issues.
/lint --vault my-research
/lint --vault my-research --fix
--vault <name> — target vault (if omitted, use sole vault or ask)--fix — auto-fix what's fixable (missing frontmatter, stub pages, domain tags)VAULT="vaults/<vault>"
find "$VAULT/wiki" -name "*.md" ! -name "index.md" -type f
For each page, read its frontmatter and content.
For each wiki page, verify:
--- markers)title fielddate-created and date-modified fieldspage-type (one of: source-note, entity, concept, comparison, summary)domain list (at least the vault default)sources list (not empty — every page must trace to a source)related listsource-url, source-type, author, raw-fileentity-typeAuto-fix (with --fix): Add missing fields with vault defaults, set domain from vault CLAUDE.md.
Pages with no inbound links from any other page:
# For each page, check if any other page links to it
FILENAME="page-name" # without .md extension
grep -rl "\[\[$FILENAME\]\]" "$VAULT/wiki/" --include="*.md"
Pages with zero results are orphans.
Auto-fix: Cannot auto-fix — report for user review.
Find all [[link-target]] references and verify the target page exists:
grep -roh '\[\[[^]]*\]\]' "$VAULT/wiki/" --include="*.md" | sort -u
For each link, check if a matching .md file exists.
Auto-fix (with --fix): Create stub pages for missing link targets.
Pages without a ## Sources section or with empty sources frontmatter.
Auto-fix (with --fix): Add empty ## Sources section.
Pages where domain frontmatter is empty or missing the vault default.
Auto-fix (with --fix): Add vault default domain from CLAUDE.md.
Scan all page content for terms that appear frequently or are clearly important concepts but don't have their own page in wiki/concepts/.
Auto-fix (with --fix): Create stub concept pages.
date-modified significantly older than related pages' modificationsAuto-fix: Cannot auto-fix — report for user review.
Check wiki/index.md against actual pages:
Auto-fix (with --fix): Add missing entries, remove stale entries.
Output a markdown report grouped by severity:
## Wiki Lint Report — <vault-name>
### Summary
- Total pages: X
- Issues found: Y (Z auto-fixable)
### Critical (broken links, missing sources)
- ❌ [[missing-page]] — referenced by [[page-1]], [[page-2]] but doesn't exist
- ❌ wiki/sources/article.md — no source link (empty sources frontmatter)
### Warning (orphans, missing metadata)
- ⚠️ wiki/entities/old-tool.md — orphan (no inbound links)
- ⚠️ wiki/concepts/some-idea.md — missing domain tag
### Info (suggestions)
- 💡 "machine learning" mentioned 8 times but has no concept page
- 💡 Consider ingesting more sources on <topic> (only 1 source-note)
- 💡 wiki/sources/old-article.md may be stale (not modified in 30+ days)
After the report, suggest:
cd "vaults/<vault>"
git add .
git commit -m "🧹 chore: lint auto-fix — <summary of fixes>"
Append to log.md:
## [YYYY-MM-DD] lint | Wiki health check
- Issues found: X
- Auto-fixed: Y
- Remaining: Z
---
data-ai
Extract transcript from a YouTube video as clean readable text. Use when user shares a youtube.com or youtu.be link and wants the transcript, content summary, or to read what was said.
development
Page type templates and frontmatter conventions for LLM Wiki pages. Reference skill loaded by ingest, query, and lint skills to ensure consistent wiki structure.
testing
Show status of all LLM Wiki vaults — page counts, source counts, last activity, and git status. Use when user wants to see vault status, list vaults, or check wiki health.
documentation
Import an existing Obsidian vault, markdown folder, or git repo as an llm-wiki vault. Moves content into vaults/, adds missing structure (index, log, CLAUDE.md, frontmatter). Use when user wants to import, adopt, migrate, or bring in an existing knowledge base.