
Kb Compile
- 7 installs
- 3 repo stars
- Updated July 9, 2026
- bahayonghang/obsidian-notes-karpathy
kb-compile is a Claude Code skill that incrementally compiles immutable raw captures in an Obsidian vault into reviewable draft summaries, concepts, entities, and indices.
About
The kb-compile skill incrementally turns immutable raw captures under raw/ into reviewable draft knowledge in an Obsidian vault. A developer uses it to convert clips, notes, and captures into draft summaries, topics, concepts, entities, and indices, then hand the package to kb-review. It matters because it surfaces conflicts, alias overlap, and duplicate risk instead of silently creating competing pages, and never promotes directly into the live layer.
- Incrementally compiles raw captures into reviewable draft summaries, concepts, and entities
- Surfaces conflicts, alias overlap, duplicate risk, and hub candidates
- Writes only to wiki/drafts/ and never promotes into wiki/live/
Kb Compile by the numbers
- 7 all-time installs (skills.sh)
- Ranked #1,193 of 1,879 Documentation skills by installs in the Skillselion catalog
- Data as of Jul 28, 2026 (Skillselion catalog sync)
kb-compile capabilities & compatibility
Free; operates on a local Obsidian vault, no API keys stated.
- Capabilities
- kb ingest · kb review · kb query
- Works with
- obsidian
- Use cases
- documentation · research
- Pricing
- Free
What kb-compile says it does
Incrementally turn immutable raw captures into reviewable draft knowledge.
write only to `wiki/drafts/` and draft indices
npx skills add https://github.com/bahayonghang/obsidian-notes-karpathy --skill kb-compileAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 7 |
|---|---|
| repo stars | ★ 3 |
| Last updated | July 9, 2026 |
| Repository | bahayonghang/obsidian-notes-karpathy ↗ |
What it does
Compile raw Obsidian captures into reviewable draft summaries, concepts, and entities for a review-gated knowledge base.
Who is it for?
Turning tracked raw captures into reviewable draft knowledge packages for a review-gated Obsidian vault.
Skip if: Approving truth, promoting into wiki/live/, or treating paper PDFs as a normal compile trigger (those route to paper-workbench).
When should I use this skill?
The user says compile wiki, compile kb, sync drafts, digest these captures, or turn my clips into drafts.
What you get
Clean draft packages of summaries, concepts, and entities ready for the review gate.
- draft summaries
- draft concepts and entities
- draft indices and packages
By the numbers
- writes to 7 draft output surfaces (summaries, topics, concepts, entities, procedures, indices, packages)
Files
KB Compile
Incrementally turn immutable raw captures into reviewable draft knowledge.
Minimal loop
1. detect new or changed captures 2. compile them into reviewable summaries, topics, concepts, entities, relationships, and indices 3. surface conflicts, alias overlap, duplicate risk, and hub candidates 4. hand the package to kb-review
When this compounds the wiki
kb-compile is where raw evidence first becomes reusable structure. Good compile work should reduce future rediscovery by turning captures into durable draft packages and by surfacing where the graph needs better links, syntheses, or hubs.
When not to promote
Compile shapes candidates. It does not approve truth and it should not bypass review just because a draft looks strong.
Read before compiling
Read these files first:
- local
AGENTS.md - local
CLAUDE.mdif present ../obsidian-notes-karpathy/scripts/skill-contract-registry.json../obsidian-notes-karpathy/references/file-model.md../obsidian-notes-karpathy/references/lifecycle-matrix.md../obsidian-notes-karpathy/references/schema-template.md../obsidian-notes-karpathy/references/summary-template.md../obsidian-notes-karpathy/references/concept-template.md../obsidian-notes-karpathy/references/entity-template.md../obsidian-notes-karpathy/references/activity-log-template.md../obsidian-notes-karpathy/references/provenance-and-alias-policy.md../obsidian-notes-karpathy/references/paper-ingestion-lifecycle.md../obsidian-notes-karpathy/references/memory-lifecycle.md../obsidian-notes-karpathy/references/graph-contract.md../obsidian-notes-karpathy/references/source-manifest-contract.md../obsidian-notes-karpathy/references/topic-template.md../obsidian-notes-karpathy/references/procedure-template.md
Treat skill-contract-registry.json as the canonical source for required references, baseline script, and allowed write surfaces.
If ../obsidian-notes-karpathy/scripts/scan_compile_delta.py exists, run it first.
Non-negotiable rules
- do not rewrite
raw/ - write only to
wiki/drafts/and draft indices - never promote directly into
wiki/live/ - keep human captures and agent captures distinguishable in provenance
- keep PDF paper handling strict:
raw/**/papers/*.pdfstill routes throughpaper-workbench - prefer tracked sources from
raw/_manifest.yamlwhen it is present
Source discovery
Accept:
- markdown captures under
raw/human/** - markdown captures under
raw/agents/{role}/** - markdown captures directly under
raw/in bootstrap vaults - image assets under
raw/**/assets/* - data assets under
raw/**/data/* - legacy-layout markdown captures under older paths only during migration
- paper PDFs under any
papers/subtree inside raw
Compile posture
Before shaping drafts:
- normalize source metadata such as
source_hash,source_mtime,last_verified_at, andpossibly_outdated - surface alias and duplicate candidates rather than silently creating competing concept/entity drafts
- treat duplicate/alias surfacing as both governance input and authoring leverage, so later query/publish work can reuse prior approved coverage instead of restating the same concept from scratch
- preserve cross-language or terminology overlap as review input, not as automatic merges
- surface repeated concept clusters, repeated question clusters, and likely hub candidates when the durable improvement is navigational rather than just another standalone page
- prefer strengthening relationships between likely draft/live neighbors when the knowledge exists but the graph is weak
Main outputs
wiki/drafts/summaries/**wiki/drafts/topics/**wiki/drafts/concepts/**wiki/drafts/entities/**when neededwiki/drafts/procedures/**when the durable delta is a workflow rather than a semantic pagewiki/drafts/indices/*wiki/drafts/indices/packages/**- batch
ingestentry inwiki/log.md
The compile pass exists to hand clean draft packages to kb-review, which then writes outputs/reviews/**, promotes approved pages into wiki/live/**, and rebuilds wiki/briefings/**.
Draft requirements
Every draft should include:
- explicit evidence
- clear separation between source claims and compiler inferences
draft_idcompiled_fromcapture_sourcesreview_statereview_scoreblocking_flagsevidence_coverageuncertainty_levelalias_candidateswhen terminology overlap is visibleduplicate_candidateswhen draft/live pages may already cover the conceptpromotion_targetassemanticorproceduralcandidate_entitiesandcandidate_relationshipswhen compile sees reusable graph structuretopic_candidateswhen compile sees a stable browse-layer clustering signalreview_package_metapointing at the deterministic source packageconfidence_inputswhen the draft is already strong enough to justify a future confidence score
Drafts should be shaped for review, not for final polish.
Output to the user
Always report:
1. how many captures were new, changed, or unchanged 2. how many draft summaries were created or updated 3. how many draft concepts or entities were touched 4. whether any PDFs were skipped because paper-workbench was unavailable 5. whether alias or duplicate candidates were surfaced for review 6. whether the next step is kb-review
Related skills
FAQ
Where does kb-compile write?
Only to wiki/drafts/ and draft indices; it never promotes directly into wiki/live/.
Does it merge duplicate concepts automatically?
No, it surfaces alias and duplicate candidates for review rather than silently creating competing drafts or automatic merges.