From claude-commands
Assesses wiki structure against Karpathy pattern: checks source/entity/concept ratios, frontmatter, index quality, and oracle backlink density.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-commands:wiki-assessThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```
/wiki-assess [<wiki_dir> | --wiki <wiki_dir>]
Assess any wiki directory against Karpathy pattern:
--wiki <wiki_dir> or a bare positional path both override the default (~/llm_wiki/wiki).
# Check for local wiki default (project-level override)
if [ -f ".wiki-default" ]; then
WIKI=$(cat .wiki-default)
elif [ -f "$HOME/.wiki-default" ]; then
WIKI=$(cat "$HOME/.wiki-default")
else
WIKI="$HOME/llm_wiki/wiki"
fi
# Accept either positional arg or --wiki flag (both override .wiki-default)
if first positional arg is a path (not a flag); then
WIKI="<first positional arg>"
elif args contain "--wiki <path>"; then
WIKI="<path>"
fi
SOURCES=$(ls $WIKI/sources/*.md 2>/dev/null | wc -l)
ENTITIES=$(ls $WIKI/entities/*.md 2>/dev/null | wc -l)
CONCEPTS=$(ls $WIKI/concepts/*.md 2>/dev/null | wc -l)
ORACLE="$WIKI/syntheses/jeffrey-oracle.md"
OUTBOUND=$(grep -oE '\[\[[^]]+\]\]' "$ORACLE" 2>/dev/null | grep -v '|' | sort -u | wc -l)
INBOUND=$(grep -l 'jeffrey-oracle' "$WIKI"/**/*.md 2>/dev/null | wc -l)
Target: outbound ≥15, inbound ≥10.
## Wiki Assessment: <wiki_path>
### Structure: ✅/❌
### Ratios:
| Metric | Value | Target | Status |
|--------|-------|--------|--------|
| Sources | N | - | - |
| Entities | N | - | - |
| Concepts | N | - | - |
| Entity ratio | X% | >5% | ✅/❌ |
| Concept ratio | X% | >5% | ✅/❌ |
### Index Quality: ✅/❌
### Frontmatter: ✅/❌
### Oracle Backlink Density:
| Metric | Value | Target | Status |
|--------|-------|--------|--------|
| Outbound wikilinks from oracle | N | ≥15 | ✅/❌ |
| Inbound links to oracle | N | ≥10 | ✅/❌ |
### Verdict: COMPLIANT / NON-COMPLIANT
/wiki-assess — assess default llm_wiki/wiki-assess ~/memory/wiki — assess memory wiki/wiki-assess --wiki $HOME/agent-f/jleechan_llm_wiki/wiki — assess agent-f wikinpx claudepluginhub jleechanorg/claude-commands --plugin claude-commandsCheck LLM Wiki health. Finds orphan pages, broken wikilinks, contradictions, stale content, missing pages, cross-reference gaps, and suggests improvements. Run periodically to keep the wiki in good shape.
Enforces the Karpathy LLM wiki pattern (directory structure, frontmatter, wikilinks, index, log) for ingesting, querying, and organizing sources into a knowledge graph.
Audits markdown wiki for broken links, orphan pages, contradictions, stale claims, missing frontmatter, coverage gaps; generates categorized report with fixes after ingests.