lint
Skill: lint
When to invoke
After every 10 ingests, or when wiki feels stale/inconsistent.
Steps
-
Orphans —
RUN: grep -rL "wiki/" --include="*.md" llmwiki/wiki/concepts/ llmwiki/wiki/entities/→ files not referenced anywhere. Flag each. -
Missing links — scan pages for entity/concept names that exist as wiki files but aren't written as
[[wikilinks]]. Fix in place. -
Contradictions — compare claims about the same entity across ≤2 pages at a time. Flag pairs (file:line vs file:line). Do NOT pick a winner — flag for human review.
-
Stale claims —
RUN: grep -rl "raw/" --include="*.md" llmwiki/wiki/→ pages referencing raw/. Flag each. -
Index gaps —
RUN: comm -23 <(find llmwiki/wiki -name "*.md" | sort) <(grep -o "llmwiki/wiki/[^)]*" llmwiki/wiki/index.md | sort)→ files missing from index. Add rows. -
Empty pages —
RUN: for f in llmwiki/wiki/**/*.md; do [ $(wc -l < "$f") -lt 5 ] && echo "$f"; done→ flag for deletion or content.