Cowork plugin for building and querying a personal knowledge base from Gmail, Google Drive, files, and URLs.
Pattern: Karpathy LLM Wiki — delta tracking manifest, two-tier memory, QMD semantic search, vision ingest, structural linting, portable schema layer
| Skill | Trigger | What it does |
|---|---|---|
kb-init |
/kb-init |
Pull Gmail + Drive via enterprise-search digest, ingest into wiki |
kb-ingest |
ingest [source] |
Ingest a single file, URL, image, or pasted content |
kb-query |
query: [question] |
Answer from wiki (quick / standard / deep) |
kb-memory |
/kb-memory |
Add/update people, acronyms, project codenames |
kb-declutter |
/kb-declutter |
Detect and merge semantic duplicates, resolve content overlap |
kb-lint |
/kb-lint |
Structural health check — broken wikilinks, missing frontmatter, orphan pages |
The schema/ directory contains portable compiler rules that make the vault work with any LLM runtime — not just Claude Code:
| File | Purpose |
|---|---|
schema/system_prompt.md |
Drop into any LLM as a system prompt to use the vault without this plugin |
schema/AGENTS.md |
Agent instructions for Codex, Gemini CLI, and OpenAI-compatible runners |
schema/rules.md |
Enumerated naming, frontmatter, layer, merge, and contradiction rules |
kb-init creates schema/ in your vault on first run. Once it's there, the vault is self-describing.
- enterprise-search plugin installed in Cowork (for
/kb-init) - Gmail + Google Drive connected at
claude.ai/settings/connectors
Configure your vault path in kb-init — set VAULT in the Pre-flight step to match your local knowledge base directory.