kb-compile
Skill3 starsChanged 3 months agoMITView on GitHub
Compile staged knowledge-base sources into the vault's native notes: one per-source summary (type: reference) plus fuller concept notes (type: zettel) in Notes/, cross-linked to Keywords/ term pages and surfaced through a KB MOC + Dataview. Incremental and idempotent; concept notes update in place. Bounded writes (never DevOps Documentation//Confluence/ or unrelated notes); edit safety is git + review. Operator-invoked via /kb-compile. Use when turning raw/ sources into linked, queryable knowledge.
In this repository41 other files it gives its agents.
- cadence-goalsSkill
- ci-feedback-loopSkill
- compoundSkill
- decision-rights-doctrineSkill
- diataxisSkill
- dispatch-gateSkill
- drift-checkSkill
- family-checkSkill
- fix-then-re-review-ladderSkill
- github-projectsSkill
- gitSkill
- goal-treeSkill
- handoffSkill
- improvement-loopSkill
- kb-captureSkill
- kb-coreSkill
- kb-lessons-bridgeSkill
- kb-lintSkill
- l1-supervisorSkill
- l2-supervisorSkill
- lessons-learnedSkill
- lN-lifecycle-doctrineSkill
- lN-review-doctrineSkill
- medical-recordsSkill
- operator-interview-doctrineSkill
- operator-interviewSkill
- operator-reviewSkill
- planning-workflowSkill
- pr-review-fanoutSkill
- pull-taskSkill
- ralph-wiggumSkill
- reviewSkill
- root-cause-depthSkill
- scan-documentSkill
- self-improvementSkill
- self-verifySkill
- skillifySkill
- task-workflowSkill
- testing-without-mocksSkill
- vault-cloudSkill
- verify-inherited-premiseSkill
The file
Files
KB Compile
The core behavior of the LLM Knowledge Base workflow (SPEC v2 §2.2). Incrementally compiles
un-compiled sources from the vault's raw/ queue into the vault's existing note idioms —
type:-routed notes in Notes/, cross-linked into Keywords/ and the MOC/Dataview machinery.
Status: the deterministic primitives are implemented and unit-tested in
kb-core(source_key,is_writable,concept_slug,TYPE_*). Summarization, concept extraction, and the writes are agent-orchestrated peroperations/compile.md.
Billing posture
/kb-compile is operator-invoked and interactive → subscription billing pool. It must
never be wired to cron, claude -p, or the Agent SDK (that moves the workflow to the
metered pool; requires operator sign-off). See SPEC v2 §6 and the CLAUDE.md billing guard.
What it writes (SPEC v2 §2.2)
- Source summary →
Notes/YYYY/MM/(type: reference,project: knowledge-base,sources: [<key>]): one summary note per source. - Concept notes →
Notes/YYYY/MM/(type: zettel): fuller-than-keyword treatments; created new or updated in place (dedup byconcept_slug) on re-compile. - Keywords/ cross-link: concept notes
[[link]]to term pages; compile may create a newKeywords/stub or elaborate an existing one (free-edit, git-reviewable). - KB MOC (
type: moc) with a Dataview block over the KB notes; backlinks summary ↔ concept ↔ keyword.
Bounded writes: never DevOps Documentation//Confluence/ or notes outside the compile's
scope (kb_core.is_writable floor + task-scope). Incremental/idempotent (AC-2.2). Every note
carries type: + sources: (INV-2/INV-3). No fence — edit safety is git + review (INV-5).
Invocation
/kb-compile # compile all uncompiled raw/ sourcesExecution
- Load the operation:
Read(${CLAUDE_PLUGIN_ROOT}/skills/kb-compile/operations/compile.md) - Execute it.
- Report summaries written, concept notes created/updated,
Keywords/pages touched, and sources compiled.
Integration Points
- kb-core —
${CLAUDE_PLUGIN_ROOT}/skills/kb-core/scripts/kb_core.py(source_key,is_writable,concept_slug,KB_PROJECT,TYPE_*). - obsidian-notes skill / host config — vault path resolution + writes.
- kb-capture — fills the
raw/queue this skill drains. - kb-lint — health-checks the KB notes this skill produces.
See Also
skills/kb-core/references/spec-v2-contract.md(Ownership design bullet; AC-2.1–2.6, AC-3.1 — compile contract).skills/kb-capture,skills/kb-lint.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

