← ClaudeAtlas

compile-wikilisted

Karpathy Wiki pattern: reads source files for a domain, generates structured wiki pages (one per major concept/module), and builds an index. Stored persistently so future sessions read the index (~500 tokens) instead of raw source files. <example> Context: Starting work on the billing domain and need persistent reference docs. user: "/compile-wiki --domain billing --sources libs/billing/src/" assistant: "Running compile-wiki for billing domain — generates wiki pages and index at ~/worklogs/wiki/billing/." </example>
reghis86/context-forge · ★ 0 · AI & Automation · score 73
Install: claude install-skill reghis86/context-forge
## What This Does Implements the Karpathy Wiki pattern (compile once, query cheap). Reads source files in the specified path, synthesizes structured wiki pages — one per major concept or module — and creates a `wiki/<domain>/index.md` with a summary table and links to individual pages. Complements the Shadow Index: Shadow = WHERE (symbols), Wiki = WHAT (concepts). Pages are stored persistently at `~/worklogs/wiki/<domain>/` across sessions. ## When to Use PROACTIVELY invoke this without waiting to be asked — it is intelligent-mode, not manual-only — when: - pack-context has been run 2+ times this session and no wiki has been compiled yet anywhere under `~/worklogs/wiki/` — the exact deterministic (count-based, not path-aware) signal the `wiki-nudge.sh` hook also checks, see `hooks/wiki-nudge.sh`. Ideally the calls target overlapping `--search-path`/`--pattern` values, but the hook can't cheaply verify that, so treat any 2nd call as the trigger - Starting substantial work on a domain with no existing wiki and no plan to touch it only once - Shadow Index covers symbol locations but the task needs narrative/conceptual understanding, not just WHERE - Team onboarding: generate wiki so new developers can orient quickly Can also be invoked explicitly: `/compile-wiki --domain <domain> --sources <path>`. ## How to Use Step 1: Identify the domain and source path. Step 2: Use pack-context to gather source files (if not already in context). ```bash bash ${CLAUDE_PLUGIN_ROOT}/cor