From kb
Systematic vault refinement — find stale pages, weak connections, merge/split candidates, and backlink gaps. Interactive, user-approved.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kb:refineThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The fourth core vault operation alongside ingest, query, and lint. Refine
The fourth core vault operation alongside ingest, query, and lint. Refine actively compounds synthesis by improving vault structure and connections.
Check these in order:
KB_VAULT environment variable~/kb (default location)When the user runs /kb:refine:
KB.md for vault conventions if you haven't already this session.## Vault Health (Baseline)
- Pages: N | Links: N | Avg links/page: N.N
- Orphans: N | Dead links: N | Stale (>30d): N
- Types: concept(N) entity(N) source-summary(N) comparison(N) overview(N)
- Backlinks coverage: N/N pages (N%)
Stale pages (updated > 30 days ago):
updated to today.wiki/archive/ subdirectory (don't delete — provenance).Under-connected pages (< 3 inbound links):
## Backlinks sections to count inbound links.mcp__qmd__qmd_search (or qmd_search). If
present, use it to find related pages by keyword overlap. Otherwise, use
kb recall <keyword> to find related pages in wiki/, or kb list-topics
to scan category neighbors.Merge candidates (overlapping topics):
Split candidates (overly broad pages):
Backlinks audit:
## Backlinks section lists the source.Research gap surfacing:
Gaps sections on overview pages (heading level may vary).Session-derived context, if needed:
sessions/*.md files as manifests, not summaries.kb summarize --json <manifest-path>, then retrieve the cached summary with kb read-session summaries/<name> --approve, where <name> is the manifest filename including its .md extension (direct Reads under sessions/ are deny-ruled; rule 7 applies).Skipped session summaries.degraded: true, label any finding from that summary as Degraded (excerpt-only).Run the vault health dashboard again to show improvement:
## Vault Health (After Refinement)
- Pages: N | Links: N | Avg links/page: N.N
- Orphans: N | Dead links: N | Stale (>30d): N
- Types: concept(N) entity(N) source-summary(N) comparison(N) overview(N)
- Backlinks coverage: N/N pages (N%)
<vault>/log.md:## [YYYY-MM-DD] refine | vault refinement pass
Baseline: N pages, N.N avg links. Updated [[page-a|Page A]], merged [[page-b|Page B]] + [[page-c|Page C]]. Result: N pages, N.N avg links.
index.md after every structural change.context.md if refinement affects current focus areas.wiki/archive/).wiki/**, index.md, context.md, log.md. Do not read sessions/ or raw/ during refinement; if a stale wiki page cites an untrusted source, pull excerpts via kb read-raw / kb read-session with user approval.npx claudepluginhub justinbeaudry/kb --plugin kbCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.