From kb
Use when compiling raw sources into the wiki, querying the knowledge base, running health checks or lint on the wiki, evolving or improving wiki coverage, or when user says 'compile', 'update the wiki', 'query', 'lint', 'health check', 'evolve', 'what's missing', or 'suggest improvements'. Also triggers on questions that should be answered from the knowledge base.
npx claudepluginhub rvk7895/llm-knowledge-bases --plugin kbThis skill uses the workspace's default tool permissions.
Main operating skill for LLM-maintained knowledge bases. Four workflows: **compile**, **query**, **lint**, **evolve**. All opus-orchestrated with model-aware subagent dispatch.
Manages LLM-compiled knowledge bases in .wiki/ or ~/wiki/: ingests sources to raw/, compiles interconnected markdown articles with indexes, queries, lints, and supports topic sub-wikis.
Maintains Obsidian-based LLM-driven wiki: ingests research papers/sources, compiles knowledge, manages topics/milestones/cross-references, queries wiki, runs lint checks.
Share bugs, ideas, or general feedback.
Main operating skill for LLM-maintained knowledge bases. Four workflows: compile, query, lint, evolve. All opus-orchestrated with model-aware subagent dispatch.
First action in every invocation: read kb.yaml from the project root. If missing, tell the user to run kb-init and stop.
All wiki output MUST use Obsidian-native conventions:
---[[wikilinks]] for ALL internal links -- NEVER use markdown-style [text](url) links for internal references[[wikilinks|display text]] when the display name differs from the target articletags: [concept, topic]aliases: [alternate name]![[image-name.png]]Always set the model parameter explicitly when dispatching subagents.
| Task | Executor | Verifier |
|---|---|---|
| Index scanning, link checking, file diffing | haiku subagents | none |
| Summarizing individual sources | haiku subagents | opus spot-checks |
| Wiki article writing | sonnet subagents | opus reviews before commit |
| Deep research | sonnet subagents | opus orchestrates + verifies |
| Research synthesis / final reports | opus | none |
| Lint issue detection | sonnet subagents | opus prioritizes + filters |
| Query answering | opus | none |
| Consistency checks | sonnet subagents | opus final judgment |
Trigger: User adds files to raw/ and says "compile" or "update the wiki".
wiki/_index.md (lists every raw source with its last-compiled hash)raw/ recursively with Globraw/ folderFor each new or changed source, dispatch a sonnet subagent to:
After extractions complete, opus:
---
title: "Concept Name"
aliases: [alternate name, abbreviation]
tags: [domain, topic]
sources:
- "[[raw/articles/source-file.md]]"
created: 2026-04-03
updated: 2026-04-03
---
# Concept Name
Core explanation of the concept.
## Details
Detailed information extracted from sources.
## Relationships
- Related to [[Other Concept]] because...
- Contradicts [[Conflicting Idea]] on the point of...
- Builds on [[Foundation Concept]]
## Sources
- [[raw/articles/source-file.md]] -- key claims extracted from this source
After every compile, update these files:
wiki/_index.md -- master list: article name, one-line summary, compiled-from hashwiki/_sources.md -- mapping from raw sources to wiki articles they contributed towiki/_categories.md -- auto-maintained category tree reflecting folder structureTrigger: User asks a question about the knowledge base.
Present three options:
/research for outline, /research-deep dispatches sonnet subagents, opus orchestrates and verifies.Run the appropriate pipeline. For Standard and Deep, clearly mark which information came from the wiki and which came from external sources.
Format the answer according to kb.yaml output preferences (markdown, Marp, matplotlib, etc.) and save to output/.
After delivering the answer, evaluate whether the output contains genuinely new knowledge. Only suggest filing back into the wiki when:
Do NOT suggest filing when the output is just a reformatting or summary of existing wiki content. If the user agrees to file, run Compile on the output.
Trigger: "health check", "lint the wiki", or invoked via /loop or /schedule.
[[wikilinks]] pointing to non-existent articlesraw/ that were never compiledOpus collates all findings, filters false positives, and prioritizes by severity (critical > warning > info).
Save to output/lint-YYYY-MM-DD.md. Group issues by severity, include suggested fixes, and ask the user if they want auto-fix applied.
Trigger: "evolve the wiki", "suggest improvements", or "what's missing".
wiki/_index.md, wiki/_categories.md, and samples articlesraw/ folder when only a few files changed -- always use incremental detection[text](url) instead of [[wikilinks]] for internal references_index.md, _sources.md, _categories.md) after compile