googlecloudplatform/knowledge-compiler
Compile PDFs, slides, docs, and agent sessions into a local Open Knowledge Format (OKF v0.3) Markdown wiki with a 2D/3D WebGL graph and linter.
Scans the active conversation history or session transcript to extract and compile new architectural concepts, entity dossiers, decisions, and patterns into the local OKF v0.2 knowledge vault. Use when the user invokes /distill-session or /sync-vault, asks to distill or save the current session into the vault, or after completing a complex design or debugging workflow. Don't use for ingesting external files or slide decks (use ingest) or for read-only vault searches (use vault-query).
Extracts, distills, and compiles raw sources (PPTX slide decks, PDFs, Word docs, Excel sheets, web URLs, transcripts, codebases, or raw/ directories) into persistent, structured Knowledge Compiler markdown wikis following the Open Knowledge Format (OKF v0.2) and Andrej Karpathy LLM-Wiki standard. Use when the user invokes /ingest, asks to ingest raw files or a target path, compile knowledge, update the wiki, or extract unstructured files into markdown knowledge bases. Don't use for retrospectively compiling the active chat conversation without external files (use distill-session) or for read-only vault lookups (use vault-query).
Compiles raw sources (PDFs, PPTX slide decks, Word docs, spreadsheets, transcripts, codebases, and URLs) into an Open Knowledge Format (OKF v0.2) Markdown wiki with a master index, audit log, and link linter. Use when initializing a knowledge vault, compiling documents or transcripts into wiki pages, or maintaining a persistent LLM-maintained knowledge base. Don't use for one-off web searches or temporary scratch notes unrelated to a knowledge vault.
Sweeps a corrected fact through the OKF v0.2 knowledge vault by updating the single authoritative note, refactoring stale restatements into wikilinks, and preserving historical records byte-for-byte. Use when the user invokes /vault-correct, asks to correct a vault fact or update an obsolete claim, or when superseded claims are detected during /distill-session or /ingest. Don't use for creating new notes from raw files (use ingest) or read-only vault searches (use vault-query).
Launches or exports the hardware-accelerated 2D/3D WebGL Knowledge Graph Visualizer and Search Hub for the local OKF v0.2 knowledge vault. Use when the user invokes /vault-graph or /graph, asks to visualize the vault graph, open the graph view, export a standalone WebGL graph HTML, or open the Knowledge Graph sidecar pane. Don't use for editing markdown notes or running schema lint repairs without visualization (use vault-lint).
Audits graph health, validates Open Knowledge Format (OKF v0.3/v0.2) frontmatter compliance, detects broken links, finds orphaned notes, repairs escaped table pipes, upgrades vaults to OKF v0.3, and verifies freshness across the central Obsidian Vault ($OBSIDIAN_VAULT_PATH or ~/ObsidianVault). Use when the user invokes /vault-lint or /lint, asks to lint the vault, check vault health, audit the vault, repair vault links, migrate a vault to OKF v0.3, or after major batch ingestions and refactors. Don't use for ingesting new raw documents (use ingest) or launching the interactive 3D WebGL graph server (use vault-graph).
Pulls and synchronizes curated OKF v0.2 architectural patterns and engineering invariants from a shared Git pattern repository into the local knowledge vault ($OBSIDIAN_VAULT_PATH or ~/ObsidianVault). Use when the user invokes /vault-pull or /pull-patterns, asks to pull shared patterns, sync team patterns, or import patterns from a shared repository. Don't use for sharing local vault notes outbound to a shared repository (use vault-share) or for read-only vault queries (use vault-query).
Searches, traverses, and synthesizes answers from the local OKF v0.2 knowledge vault and optional shared pattern repositories, writing durable cross-cutting analyses to wiki/synthesis/. Use when the user invokes /vault-query or /query, asks what the vault says about a topic, or wants to synthesize across compiled wiki notes. Don't use for ingesting new raw files into the vault (use ingest) or correcting stale claims across notes (use vault-correct).
Audits, sanitizes (rewriting private entity links into enterprise archetype prose and scrubbing local file paths), and shares reusable architecture concepts and engineering invariants from the local knowledge vault to a shared Git pattern repository. Use when the user invokes /vault-share or /share-pattern, asks to share or publish a pattern to a team repository, or audits vault notes for sharing. Don't use for pulling upstream patterns into the local vault (use vault-pull).
Executes autonomous closed-loop agent skill evolution, trace diagnosis, refinement, and optimization using Google Research's WikiSkill framework (arXiv:2608.27454). Use when the user invokes /wikiskill or /evolve-skill, asks to evolve, optimize, improve, debug, or refine a skill, or after observing tool failures, user corrections, or sub-optimal agent trajectories. Don't use for ingesting domain documents into the Obsidian Vault (use ingest) or checking markdown frontmatter links (use vault-lint).