| name | wiki |
| description | Knowledge companion. Bootstraps vault, scaffolds structure, routes to sub-skills. |
| when_to_use | Use to bootstrap the vault (`/wiki init`) or scaffold its structure. Routes to sub-skills for domain operations. |
| allowed-tools | Bash Read |
wiki
Build and maintain persistent, compounding wiki in Obsidian vault. Wiki is product; chat is interface.
Architecture
- Truth: Directory map, page-type table, and semantics in
_shared/vault-structure.md.
- Peers:
notes/ (inbox), daily/ (log).
- Canvas:
.canvas files are first-class documents. canvas skill owns them.
- Sources:
.raw/ folders are hidden and immutable.
Hot Cache
wiki/hot.md: ~500-word summary of recent context. Protocol in _shared/hot-cache-protocol.md.
Operations Routing
Route user requests to the correct sub-skill:
| Trigger | Operation | Skill |
|---|
/wiki init, "init vault" | INIT | wiki |
| "scaffold", "create wiki" | SCAFFOLD | wiki |
/wiki promote <tag>, "promote tag" | PROMOTE | wiki |
| "ingest [source]", "process this" | INGEST | ingest |
| "what do you know about X", "query:" | QUERY | query |
| "lint", "health check" | LINT | lint |
| "save this", "/save" | SAVE | save |
| "/note", "todo:", "show inbox" | NOTE | notes |
| "/autoresearch [topic]" | AUTORESEARCH | autoresearch |
| "/canvas", "open canvas" | CANVAS | canvas |
Local Operations
INIT
Seed empty vault from ${user_config.vault_path}. Idempotent.
bash "${CLAUDE_PLUGIN_ROOT}/bin/wiki-init.sh" "${user_config.vault_path}"
bin/wiki-init.sh handles vault creation, templates, and Obsidian config.
SCAFFOLD
User describes vault purpose → Execute:
- Ask: "What is this vault for?" (one question, then proceed).
- Scaffold flat folders under
wiki/: concepts/, entities/, sources/, solutions/, comparisons/, questions/. No per-folder _index.md.
- Create
wiki/index.md, wiki/log.md, wiki/hot.md.
- Create
notes/ and copy _seed/notes/index.md if missing.
- Create
daily/ and copy _seed/daily/example-daily.md if directory is missing.
- Create
_templates/ files for each note type.
- Create
.obsidian/snippets/vault-colors.css with standard callout styles.
- Create vault
CLAUDE.md pointing agents at the vault.
- Initialize git (
git init && git add -A && git commit -m "Initial vault scaffold").
- Present structure and ask: "Want to adjust anything before we start?"
PROMOTE
/wiki promote <tag> → Execute:
- Resolve tag slug (kebab-case, strip leading
#).
- Collect all leaves with
tags: containing the resolved tag across wiki/concepts/, wiki/entities/, wiki/sources/.
- Bail if fewer than 5 leaves: report count, suggest growing the cluster.
- Bail if
wiki/domains/<tag>/_index.md already exists.
- Create hub at
wiki/domains/<tag>/_index.md with type: domain frontmatter and related: list of all cluster leaves.
- Register hub in
wiki/index.md under ## Domains.
- Log in
wiki/log.md.
Cross-Project Referencing
Any project can reference this vault. Add this to other projects' CLAUDE.md:
## Wiki Knowledge Base
Path: /path/to/vault
When needed: (1) read wiki/hot.md, (2) read wiki/index.md, (3) drill into domain pages.
Do NOT read for general coding questions.
LLM Responsibilities
- Set up vault and scaffold structure.
- Route operations to sub-skills.
- Maintain hot cache and index/log updates after every operation.
- Use frontmatter, wikilinks, and the forward-only hub model.
- Never modify
.raw/.