Wiki schema
The authoritative schema lives in CLAUDE.md — your agent reads it at the start of every session (agents that look for AGENTS.md are pointed to it). This page is a readable summary.
Page types
| Type | File | Purpose |
|---|---|---|
overview | wiki/overview.md | Evolving high-level synthesis |
topic | wiki/[concept].md | A concept, domain, or idea |
entity | wiki/[name].md | A person, tool, company, or project |
source-summary | wiki/sources/[slug].md | One page per ingested source, including conversation-YYYY-MM-DD-[slug].md pages saved by /brain-remember |
qa | wiki/qa/[slug].md | Filed answers to notable queries |
Plus two admin pages: wiki/index.md (master index) and wiki/log.md (running activity log). Each ingest entry in the log ends with a source: <path> | hash: <sha256-12> line, which /brain-ingest reads to skip sources that are already ingested and unchanged.
Frontmatter
Every wiki page has YAML frontmatter:
---
type: overview | topic | entity | source-summary | qa | admin
tags: [tag1, tag2]
sources: ["[[wiki/sources/source-slug]]"]
related: ["[[wiki/related-page]]"]
updated: YYYY-MM-DD
---Naming conventions
- File names — kebab-case, all lowercase.
machine-learning-ops.md, notMachineLearningOps.md. - Links — always Obsidian
[[wikilinks]]for internal cross-references. Full paths from vault root:[[wiki/distributed-systems]]. - Sections —
##for top-level,###for subsections. - Contradictions — flagged with a
> [!WARNING] Contradictioncallout. Both claims and their sources are stated. - Uncertainty — claims the model isn't sure about are marked with
[?]inline.
Directory layout
my-brain/
├── CLAUDE.md ← The schema
├── raw-sources/ ← Immutable raw inputs
│ ├── articles/
│ ├── pdfs/
│ └── personal/
└── wiki/ ← Agent-owned knowledge base
├── index.md
├── log.md
├── overview.md
├── sources/
└── qa/
Hard rules
- Nothing in
raw-sources/is ever modified — they are immutable raw inputs. The one write allowed is saving a fetched URL there as a new file during ingest. - Only
wiki/is owned by the agent; the rest of the vault is untouched. wiki/log.mdis append-only, never overwritten.- One source summary per ingested source in
wiki/sources/— never merged. - Every wiki page has frontmatter with at least
typeandupdated. - Cross-link aggressively — if a topic has (or should have) a page, link it with
[[wiki/page]]. - Pages are synthesis, not transcription.