From library
Compile wiki articles from vault sources. The Librarian's core job: raw sources become structured wiki articles tagged with [VERIFY], [CONFLICT], [PLANNED].
How this skill is triggered — by the user, by Claude, or both
Slash command
/library:compileThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Compile wiki articles from raw vault sources following the Karpathy pattern.
Compile wiki articles from raw vault sources following the Karpathy pattern.
kb.yaml compile order changesCall library:config:get to get vault path.
Read kb.yaml from vault root for compile order and category list.
For each entry in compile order:
sources/ that map to this wiki article's category[VERIFY] — claims that need validation against running code[CONFLICT] — contradictions between sources[PLANNED] — features or work described as future/plannedwiki/<article-name>.mdWhen vault.obsidian.wikilinks is true in config, use [[wikilinks]] and #tags for Obsidian-native output.
Each wiki article gets YAML frontmatter. The related: array is mandatory — it mirrors every inline [[wikilink]] in the body so Graphify's build_from_vault can wire cross-reference edges. Inline wikilinks alone are invisible to the graph.
---
title: Article Title
domain: core | ui | infra | security
compiled_from:
- sources/raw/prds/feature-x.md
- sources/llm-generated/session-notes/2026-04-10.md
last_compiled: 2026-04-10
related:
- "[[other-article]]"
- "[[yet-another]]"
---
Call library:graph:rebuild after every compile. The whole point of compile is to enrich the graph — wiki articles aren't useful until the graph reflects them.
This goes through the free build_from_vault() frontmatter path (no LLM cost). The graphify.auto_rebuild config flag gates ingest-triggered rebuilds, NOT the compile path.
Safety: GraphifyRunner.build_from_vault() takes a regenerate_wiki: bool = False kwarg. The orchestrator passes True only when both mode == "create" AND wiki/ is empty — protecting compiled articles from the to_wiki() auto-stub regeneration that historically destroyed them.
After rebuild, assert:
jq '.nodes | length' <graph.json> > pre-compile node countsource_file matches wiki/<your-article>.mdIf either fails, compile is incomplete. Surface to operator.
Display: articles compiled, tags generated, sources consumed, graph node delta.
Recompiling an article replaces its content entirely from sources. No incremental merge — fresh compile every time. Sources are immutable.
When compiling multiple articles, delegate source parsing to parallel subagents:
Main context receives structured summaries → synthesizes into wiki articles.
For single article compilation, sequential processing is fine — no subagents needed.
If subagents unavailable, process all sources sequentially in main context.
Weight: Light (batch with subagents), Medium (single article or no subagents) Estimated context cost: ~1000 tokens per article with subagents Subagent delegation: Yes — batch source parsing
library:config:get — vault pathlibrary:vault:parse — read existing wiki statelibrary:graph:rebuild — rebuild graph after compilationGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub sevenbelowllc/the-library --plugin library