From mim-ai
Validates all knowledge entries against the current codebase. Auto-fixes aggressively and writes unresolved.md for ambiguous items. Use when asked to "validate knowledge", "check knowledge entries", or "clean up stale knowledge".
How this skill is triggered — by the user, by Claude, or both
Slash command
/mim-ai:validateThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Validate all knowledge entries against the current codebase. Auto-fix what you can, delete what is stale, and write genuinely ambiguous items to `unresolved.md` for human review.
Validate all knowledge entries against the current codebase. Auto-fix what you can, delete what is stale, and write genuinely ambiguous items to unresolved.md for human review.
Discover entries. Use Glob to find all .claude/knowledge/{category}/*.md files. Exclude INSTRUCTIONS.md, KNOWLEDGE_MAP_CLAUDE.md, and unresolved.md.
Validate by category. For each category directory, use the Task tool with subagent_type: "knowledge-researcher" to validate entries. Pass the full file contents of every knowledge file in that category. The subagent checks file references, patterns, and conventions against the current codebase and returns findings as JSON.
Extract JSON from subagent response. Strip any markdown code fences (json ... or ...) from the subagent's text response, then parse the JSON array. If JSON parsing fails, log a warning and skip that category.
Process findings. For each finding in the parsed array:
suggestion field as guidance. Rewrite the entry for quality and terseness..claude/knowledge/unresolved.md using the format below.Write unresolved.md. Use plain prose under H2 headers naming the knowledge file:
## gotchas/redis-pooling.md
The referenced file no longer exists. Delete, update, or keep as-is?
No structured metadata blocks. No **File:** or **Options:** fields. Just natural language describing the issue. Claude will derive appropriate actions during /mim:review.
Consolidate. After processing all findings, consolidate knowledge files that have grown unwieldy from repeated remember() appends:
Regenerate knowledge map. Scan all {category}/*.md files on disk and rebuild KNOWLEDGE_MAP_CLAUDE.md from scratch. This handles drift from partial failures, manual edits, or file merges.
Report summary. Output: X validated, Y auto-fixed, Z deleted, W unresolved, V consolidated.
npx claudepluginhub lucianhymer/mim --plugin mim-aiAudits and interactively cleans up Claude Code knowledge base: detects stale references, duplicates, orphaned files, frontmatter issues, and merge opportunities.
Verifies and updates existing codebase documentation nodes (docs/*.md) against current code after changes or refactors. Fast mode for triaged items; full audits entire knowledge base.
Critiques knowledge entries (docs/knowledge/) against a rubric catalog to assess fact quality, value, and taxonomy fit. Used during PR review, authoring, onboarding, or periodic audits.