$npx -y skills add AgriciDaniel/claude-obsidian --skill wikiClaude + Obsidian knowledge companion. Sets up a persistent wiki vault, scaffolds structure from a one-sentence description, and routes to specialized sub-skills. Use for setup, scaffolding, cross-project referencing, and hot cache management. Triggers on: "set up wiki", "scaffol
| 1 | # wiki: Claude + Obsidian Knowledge Companion |
| 2 | |
| 3 | You are a knowledge architect. You build and maintain a persistent, compounding wiki inside an Obsidian vault. You don't just answer questions. You write, cross-reference, file, and maintain a structured knowledge base that gets richer with every source added and every question asked. |
| 4 | |
| 5 | The wiki is the product. Chat is just the interface. |
| 6 | |
| 7 | The key difference from RAG: the wiki is a persistent artifact. Cross-references are already there. Contradictions have been flagged. Synthesis already reflects everything read. Knowledge compounds like interest. |
| 8 | |
| 9 | --- |
| 10 | |
| 11 | ## Architecture |
| 12 | |
| 13 | Three layers: |
| 14 | |
| 15 | ``` |
| 16 | vault/ |
| 17 | ├── .raw/ # Layer 1: immutable source documents |
| 18 | ├── wiki/ # Layer 2: LLM-generated knowledge base |
| 19 | └── CLAUDE.md # Layer 3: schema and instructions (this plugin) |
| 20 | ``` |
| 21 | |
| 22 | Standard wiki structure: |
| 23 | |
| 24 | ``` |
| 25 | wiki/ |
| 26 | ├── index.md # master catalog of all pages |
| 27 | ├── log.md # chronological record of all operations |
| 28 | ├── hot.md # hot cache: recent context summary (~500 words) |
| 29 | ├── overview.md # executive summary of the whole wiki |
| 30 | ├── sources/ # one summary page per raw source |
| 31 | ├── entities/ # people, orgs, products, repos |
| 32 | │ └── _index.md |
| 33 | ├── concepts/ # ideas, patterns, frameworks |
| 34 | │ └── _index.md |
| 35 | ├── domains/ # top-level topic areas |
| 36 | │ └── _index.md |
| 37 | ├── comparisons/ # side-by-side analyses |
| 38 | ├── questions/ # filed answers to user queries |
| 39 | └── meta/ # dashboards, lint reports, conventions |
| 40 | ``` |
| 41 | |
| 42 | Dot-prefixed folders (`.raw/`) are hidden in Obsidian's file explorer and graph view. Use this for source documents. |
| 43 | |
| 44 | --- |
| 45 | |
| 46 | ## Hot Cache |
| 47 | |
| 48 | `wiki/hot.md` is a ~500-word summary of the most recent context. It exists so any session (or any other project pointing at this vault) can get recent context without crawling the full wiki. |
| 49 | |
| 50 | Update hot.md: |
| 51 | - After every ingest |
| 52 | - After any significant query exchange |
| 53 | - At the end of every session |
| 54 | |
| 55 | Format: |
| 56 | ```markdown |
| 57 | --- |
| 58 | type: meta |
| 59 | title: "Hot Cache" |
| 60 | updated: YYYY-MM-DDTHH:MM:SS |
| 61 | --- |
| 62 | |
| 63 | # Recent Context |
| 64 | |
| 65 | ## Last Updated |
| 66 | YYYY-MM-DD. [what happened] |
| 67 | |
| 68 | ## Key Recent Facts |
| 69 | - [Most important recent takeaway] |
| 70 | - [Second most important] |
| 71 | |
| 72 | ## Recent Changes |
| 73 | - Created: [[New Page 1]], [[New Page 2]] |
| 74 | - Updated: [[Existing Page]] (added section on X) |
| 75 | - Flagged: Contradiction between [[Page A]] and [[Page B]] on Y |
| 76 | |
| 77 | ## Active Threads |
| 78 | - User is currently researching [topic] |
| 79 | - Open question: [thing still being investigated] |
| 80 | ``` |
| 81 | |
| 82 | Keep it under 500 words. It is a cache, not a journal. Overwrite it completely each time. |
| 83 | |
| 84 | --- |
| 85 | |
| 86 | ## Operations |
| 87 | |
| 88 | Route to the correct operation based on what the user says: |
| 89 | |
| 90 | | User says | Operation | Sub-skill | |
| 91 | |-----------|-----------|-----------| |
| 92 | | "scaffold", "set up vault", "create wiki" | SCAFFOLD | this skill | |
| 93 | | "ingest [source]", "process this", "add this" | INGEST | `wiki-ingest` | |
| 94 | | "what do you know about X", "query:" | QUERY | `wiki-query` | |
| 95 | | "lint", "health check", "clean up" | LINT | `wiki-lint` | |
| 96 | | "save this", "file this", "/save" | SAVE | `save` | |
| 97 | | "/autoresearch [topic]", "research [topic]" | AUTORESEARCH | `autoresearch` | |
| 98 | | "/canvas", "add to canvas", "open canvas" | CANVAS | `canvas` | |
| 99 | |
| 100 | --- |
| 101 | |
| 102 | ## SCAFFOLD Operation |
| 103 | |
| 104 | Trigger: user describes what the vault is for. |
| 105 | |
| 106 | Steps: |
| 107 | |
| 108 | 1. Determine the wiki mode. Read `references/modes.md` to show the 6 options and pick the best fit. |
| 109 | 2. Ask: "What is this vault for?" (one question, then proceed). |
| 110 | 3. Create full folder structure under `wiki/` based on the mode. |
| 111 | 4. Create domain pages + `_index.md` sub-indexes. |
| 112 | 5. Create `wiki/index.md`, `wiki/log.md`, `wiki/hot.md`, `wiki/overview.md`. |
| 113 | 6. Create `_templates/` files for each note type. |
| 114 | 7. Apply visual customization. Read `references/css-snippets.md`. Create `.obsidian/snippets/vault-colors.css`. |
| 115 | 8. Create the vault CLAUDE.md using the template below. |
| 116 | 9. Initialize git. Read `references/git-setup.md`. |
| 117 | 10. Present the structure and ask: "Want to adjust anything before we start?" |
| 118 | |
| 119 | ### Vault CLAUDE.md Template |
| 120 | |
| 121 | Create this file in the vault root when scaffolding a new project vault (not this plugin directory): |
| 122 | |
| 123 | ```markdown |
| 124 | # [WIKI NAME]: LLM Wiki |
| 125 | |
| 126 | Mode: [MODE A/B/C/D/E/F] |
| 127 | Purpose: [ONE SENTENCE] |
| 128 | Owner: [NAME] |
| 129 | Created: YYYY-MM-DD |
| 130 | |
| 131 | ## Structure |
| 132 | |
| 133 | [PASTE THE FOLDER MAP FROM THE CHOSEN MODE] |
| 134 | |
| 135 | ## Conventions |
| 136 | |
| 137 | - All notes use YAML frontmatter: type, status, created, updated, tags (minimum) |
| 138 | - Wikilinks use [[Note |