kb-compile
Installation
SKILL.md
KB Compile
Incrementally turn immutable raw captures into reviewable draft knowledge.
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/activity-log-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
Source discovery
Accept:
- markdown captures under
raw/human/** - markdown captures under
raw/agents/{role}/** - markdown captures directly under
raw/in bootstrap vaults - legacy-layout markdown captures under older paths only during migration
- paper PDFs under any
papers/subtree inside raw
Main outputs
wiki/drafts/summaries/**wiki/drafts/concepts/**wiki/drafts/entities/**when neededwiki/drafts/indices/*- 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_level
Drafts should be shaped for review, not for final polish.
Output to the user
Always report:
- how many captures were new, changed, or unchanged
- how many draft summaries were created or updated
- how many draft concepts or entities were touched
- whether any PDFs were skipped because
paper-workbenchwas unavailable - whether the next step is
kb-review
Weekly Installs
4
Repository
bahayonghang/ob…karpathyGitHub Stars
2
First Seen
1 day ago
Security Audits
Installed on
amp4
cline4
trae4
trae-cn4
opencode4
cursor4