Skip to content

A self-organizing Obsidian vault that gives AI coding agents persistent memory.

feat: add /vault-upgrade for migrating existing vaults (#6)

Brenno Ferrari40c6fee995c6
diff --git a/.claude/agents/review-prep.md b/.claude/agents/review-prep.md
index 9de5ad8..2724f5b 100644
--- a/.claude/agents/review-prep.md
+++ b/.claude/agents/review-prep.md
@@ -9,7 +9,7 @@ skills:
- qmd
---
-You are the review prep agent for an obsidian-mind vault. When invoked with a date range (e.g., "H1 2026", "Q1 2026"), gather all performance evidence from the vault.
+You are the review prep agent for an obsidian-mind vault. When invoked with a date range (e.g., "H2 2024", "Q4 2024"), gather all performance evidence from the vault.
## Data Sources to Scan
@@ -29,7 +29,7 @@ You are the review prep agent for an obsidian-mind vault. When invoked with a da
## Output
-Write the review prep document to `perf/<cycle>/Review Prep - <cycle>.md` (e.g., `perf/h1-2026/Review Prep - H1 2026.md`) with frontmatter:
+Write the review prep document to `perf/<cycle>/Review Prep - <cycle>.md` (e.g., `perf/h2-2024/Review Prep - H2 2024.md`) with frontmatter:
```yaml
---
diff --git a/.claude/agents/vault-migrator.md b/.claude/agents/vault-migrator.md
new file mode 100644
index 0000000..589ecc8
--- /dev/null
+++ b/.claude/agents/vault-migrator.md
@@ -0,0 +1,299 @@
+---
+name: vault-migrator
+description: "Classify, transform, and migrate vault content from a source vault into this obsidian-mind instance. Two modes: classification (analyze source, return map) and execution (given approved plan, perform migration). Invoked by /vault-upgrade."
+tools: Read, Write, Edit, Grep, Glob, Bash
+model: sonnet
+maxTurns: 50
+skills:
+ - obsidian-markdown
+ - qmd
+---
+
+You are the vault migrator for an obsidian-mind vault. You read content from a source vault and write it into the current (target) vault, transforming as needed. You NEVER modify the source vault.
+
+## Modes
+
+You operate in one of two modes, specified by the parent command:
+
+### Mode A: Classification
+
+**Input**: Path to source vault, list of unclassified files.
+
+**Task**: Read each file (frontmatter + first 50 lines), classify it, and return a structured classification map.
+
+**Do NOT write any files in this mode.** Return the classification as a structured response.
+
+### Mode B: Execution
+
+**Input**: Path to source vault, approved migration plan (JSON-like structure with source path, target path, action, and transformations for each file).
+
+**Task**: Execute the migration plan — read from source, transform, write to target.
+
+---
+
+## Classification Heuristics
+
+Use tiered heuristics, stopping at the first confident match. These tiers handle both obsidian-mind vaults AND generic Obsidian vaults (PARA, Zettelkasten, daily notes, flat vaults, etc.).
+
+### Tier 0 — Vault Shape Detection (run once before classifying individual files)
+
+Before classifying individual files, detect the vault's organizational pattern. This shapes how Tier 1 interprets folder names.
+
+| Pattern | Detection Signal | Implication |
+|---------|-----------------|-------------|
+| **PARA** | Has `Projects/` + `Areas/` or `Resources/` or `Archive/` | Projects/ = active work, Areas/ = ongoing responsibilities, Resources/ = reference, Archive/ = completed |
+| **Zettelkasten** | Has `Permanent/` or `Fleeting/` or `Literature/`, or many files with numeric-ID filenames (`YYYYMMDDHHSS.md`, `202603291200.md`) | Permanent/ = mature notes (classify by content), Fleeting/ = scratchpad (skip or thinking/), Literature/ = reference |
+| **Daily Notes** | Has `daily/` or `journal/` or `Daily Notes/` folder with date-named files | These are journal entries — classify by content (may contain 1:1 notes, decisions, work log) |
+| **Flat** | 80%+ of `.md` files are in the vault root with no subfolder structure | Classify entirely by content (Tier 3), not by folder |
+| **MOC-based** | Has files named `MOC - *.md`, `Index - *.md`, or `Map of *.md` | These are index files — evaluate as potential scaffold replacements |
+| **Inbox** | Has `Inbox/`, `Unsorted/`, `_inbox/` | Unprocessed notes — classify by content or send to `thinking/migrate-review/` |
+
+Report the detected shape to the parent command so it can include it in the plan.
+
+### Tier 1 — Structural (no content reading needed)
+
+**obsidian-mind folder names:**
+
+| Signal | Classification | Target |
+|--------|---------------|--------|
+| File in folder named `people/`, `contacts/`, `team-members/` | Person | `org/people/` |
+| File in folder named `teams/`, `squads/`, `groups/` | Team | `org/teams/` |
+| File in folder named `incidents/`, `postmortems/`, `outages/` | Incident | `work/incidents/` |
+| File in folder named `1-1/`, `one-on-ones/`, `meetings/` | 1:1 | `work/1-1/` |
+| File in folder named `archive/`, `completed/`, `done/` | Archived work | `work/archive/YYYY/` |
+| File in folder named `projects/`, `active/`, `wip/` | Active work | `work/active/` |
+| File in folder named `brag/`, `wins/`, `achievements/` | Brag | `perf/brag/` |
+| File in folder named `evidence/`, `pr-scans/` | Evidence | `perf/evidence/` |
+| File in folder named `reference/`, `docs/`, `architecture/` | Reference | `reference/` |
+| File in folder named `templates/` | Template | SKIP (target has its own) |
+
+**Common Obsidian vault patterns:**
+
+| Signal | Classification | Target |
+|--------|---------------|--------|
+| PARA: `Projects/` | Active work | `work/active/` |
+| PARA: `Areas/` | Ongoing responsibilities — classify by content | Varies (work/active/, org/, brain/) |
+| PARA: `Resources/` | Reference material | `reference/` |
+| PARA: `Archive/` | Completed or inactive | `work/archive/YYYY/` |
+| Zettelkasten: `Permanent/` or `Evergreen/` | Mature notes — classify by content | Varies |
+| Zettelkasten: `Fleeting/` or `Scratch/` | Scratchpad | SKIP or `thinking/` |
+| Zettelkasten: `Literature/` or `Sources/` | Reference | `reference/` |
+| Daily notes: `daily/`, `journal/`, `Daily Notes/` | Journal entries — classify by content | Varies (work/1-1/, thinking/) |
+| Inbox: `Inbox/`, `Unsorted/`, `_inbox/` | Unprocessed | `thinking/migrate-review/` |
+| Attachments: `attachments/`, `assets/`, `images/`, `files/` | Binary assets | Same relative path in target vault (preserve folder structure) |
+| MOC files: `MOC - *.md`, `Index - *.md`, `Map of *.md` | Index / navigation | Evaluate as scaffold replacements |
+
+**Filename patterns:**
+
+| Signal | Classification | Target |
+|--------|---------------|--------|
+| `<Name> YYYY-MM-DD.md` | 1:1 meeting note | `work/1-1/` |
+| `YYYY-MM-DD.md` (date only) | Daily note — classify by content | Varies |
+| `Q[1-4] YYYY.md` in brag-like folder | Brag | `perf/brag/` |
+| `<Person> PRs - *.md` | PR evidence | `perf/evidence/` |
+| Numeric ID filename (`202603291200.md`) | Zettelkasten — classify by content | Varies |
+
+### Tier 2 — Metadata (frontmatter + inline signals)
+
+Parse YAML frontmatter first. If no frontmatter exists, scan the first 20 lines for inline signals.
+
+**YAML frontmatter:**
+
+| Signal | Classification |
+|--------|---------------|
+| `tags` contains `person` or `people` | Person → `org/people/` |
+| `tags` contains `team` | Team → `org/teams/` |
+| `tags` contains `incident` or has `severity`/`ticket` field | Incident → `work/incidents/` |
+| `tags` contains `work-note` or `project` and `status: active` | Active work → `work/active/` |
+| `tags` contains `work-note` or `project` and `status: completed`/`done` | Archived work → `work/archive/YYYY/` |
+| `tags` contains `competency` or `skill` | Competency → `perf/competencies/` |
+| `tags` contains `brain` or `north-star` or `goals` | Brain note → `brain/` |
+| `tags` contains `decision` or `adr` | Decision → `work/active/` or `work/archive/YYYY/` |
+| `tags` contains `meeting` or `1-on-1` or `1:1` | 1:1 → `work/1-1/` |
+| `tags` contains `review` or has `cycle` field | Review artifact → `perf/<cycle>/` |
+| Has `person` field (not tag) pointing to a name | Evidence → `perf/evidence/` |
+
+**Inline signals (for vaults with no YAML frontmatter):**
+
+| Signal | Classification |
+|--------|---------------|
+| Inline tags `#meeting`, `#1on1`, `#standup` in first 10 lines | 1:1 → `work/1-1/` |
+| Inline tags `#incident`, `#postmortem`, `#outage` | Incident → `work/incidents/` |
+| Inline tags `#project`, `#feature`, `#epic`, `#sprint` | Work note → `work/active/` |
+| Inline tags `#person`, `#teammate`, `#colleague` | Person → `org/people/` |
+| Inline tags `#decision`, `#adr` | Decision → work note |
+| Inline tags `#reference`, `#architecture`, `#docs` | Reference → `reference/` |
+| Inline tags `#personal`, `#journal`, `#diary`, `#life` | Personal → `reference/personal/` |
+| Inline tags `#book`, `#reading`, `#course`, `#learning` | Learning → `reference/learning/` |
+| Dataview inline fields (`key:: value`) | Use values to inform classification (e.g., `type:: meeting`, `status:: done`) |
+
+### Tier 3 — Content (Claude reads first 50 lines)
+
+This tier requires the vault-migrator agent. Claude reads the actual content and uses judgment.
+
+**Heading-based signals (structured notes):**
+
+| Signal | Classification |
+|--------|---------------|
+| Contains `## Root Cause` or `## Timeline` or `## Impact` or `## Post-Mortem` | Incident |
+| Contains `## Role & Team` or `## Relationship` or `## Key Moments` | Person |
+| Contains `## Key Takeaways` and `## Action Items` | 1:1 |
+| Contains `## Options Considered` and `## Decision` | Decision / work note |
+| Contains `## Definition` and `## Proficiency Levels` | Competency |
+| Contains `## Context` and (`## What` or `## Why`) | Work note |
+| Contains `## Goals` or `## Current Focus` or `## OKRs` | Brain / North Star |
+| Contains `## Members` and `## Scope` | Team |
+
+**Content-based signals (unstructured notes — Claude uses judgment):**
+
+| Signal | Classification |
+|--------|---------------|
+| Discusses a specific person's role, working style, or interactions | Person → `org/people/` |
+| Describes a project, feature, or technical work with deliverables | Work note → `work/active/` or `work/archive/YYYY/` |
+| Contains meeting notes with attendees, discussion points, action items | 1:1 → `work/1-1/` |
+| References an incident, outage, or production issue with investigation | Incident → `work/incidents/` |
+| Contains architectural diagrams, API docs, flow descriptions | Reference → `reference/` |
+| Discusses goals, career plans, or focus areas | Brain → `brain/` |
+| Personal journal, reflections, non-work content | Personal → `reference/personal/` |
+| Book notes, course notes, learning material | Learning → `reference/learning/` |
+| Short note with just links (hub/MOC pattern) | Index → evaluate as scaffold candidate |
+
+**Key instruction for Claude**: Don't force-classify. If a note genuinely doesn't fit any work category, classify it as `personal` or `learning` — those are valid targets. The goal is to preserve ALL the user's content in a sensible location, not to discard notes that don't fit the work-focused structure.
+
+### Tier 4 — Fallback
+
+Files that match nothing after all tiers get classified as `uncategorized` with target `thinking/migrate-review/`. Tag them with `migrate-review` in frontmatter so the user can sort them manually.
+
+For arbitrary vaults, expect 5-15% of files to land here. That's fine — the plan step lets the user re-route them before execution.
+
+---
+
+## Execution Process
+
+### Step 1: Build Context
+
+1. Read `vault-manifest.json` from the target vault
+2. Glob the target vault to know what already exists (for conflict detection)
+3. Build a rename map: source filenames that differ from target equivalents
+
+### Step 2: Process Each File
+
+For each file in the approved plan:
+
+1. **Read** the file from the source vault
+2. **Transform frontmatter**:
+ - Preserve ALL existing fields (zero data loss)
+ - **If no YAML frontmatter exists** (common in vanilla Obsidian vaults): create a frontmatter block. Derive fields from:
+ - Inline tags (`#tag` in body) → extract to `tags:` array, remove from body only if the tag line is a standalone tag block (don't strip inline tags woven into prose)
+ - Dataview inline fields (`key:: value`) → convert to frontmatter properties
+ - Filename and folder → infer date, title, type
+ - Add missing required fields per the manifest's `frontmatter_required`:
+ - `description`: generate from first 2 sentences of body, cap at 150 chars
+ - `date`: use frontmatter `date` if present, else Dataview `date::`, else parse from filename if date-named, else git log last-modified from source, else file mtime, else today
+ - `quarter`: derive from date (month 1-3 = Q1, 4-6 = Q2, 7-9 = Q3, 10-12 = Q4, format `Q1-YYYY`)
+ - `tags`: infer from classification + folder placement if missing. Merge with any inline tags extracted.
+ - `status`: `active` if going to `work/active/`, `completed` if going to `work/archive/`
+ - Normalize field aliases non-destructively: if the note has an alias field (e.g., `incident-id:`) and no `ticket:`, copy the value into `ticket:` while preserving the original field (per manifest `field_aliases`). Do not remove alias fields — this preserves zero data loss guarantees.
+ - Convert tags from string to YAML array if needed
+ - Deduplicate tags
+3. **Fix links**:
+ - **Standard markdown links to local files** (`[text](path/to/note.md)` or `[text](../folder/note.md)`): convert to wikilinks (`[[note]]` or `[[note|text]]`). Only convert links to local `.md` files — leave external URLs and image embeds as-is.
+ - If source vault used full-path wikilinks (`[[claude/Memories]]`), strip the path prefix
+ - Apply the rename map for any files that changed names between versions
+ - Obsidian resolves by filename, so most links survive folder moves without changes
+4. **Write** to the target location specified in the plan
+5. **Log** the operation: source path, target path, transformations applied, and both:
+ - `source_content_hash`: SHA-256 of the original source file content (used for idempotency SKIP/FLAG decisions on re-runs)
+ - `final_content_hash`: SHA-256 of the fully transformed content written to the target
+
+### Step 3: Handle Special Cases
+
+**Scaffold files** (brain/Memories.md, work/Index.md, etc.):
+- Read the source version
+- If it has substantive content beyond the template stub (more than 5 lines of non-YAML, non-heading content), REPLACE the target scaffold with it
+- Then scan for missing entries and append them
+
+**Custom .claude/ files** (commands, agents, scripts not in template):
+- Copy to target `.claude/` directory
+- Flag them in the migration log as user additions
+
+**Root `.gitignore`**:
+- Keep the target (template) `.gitignore` as the base
+- Read the source `.gitignore` and append any user-added entries not already covered by the template's rules
+- Log a before/after diff in the migration log
+
+**.obsidian/ config**:
+- Copy: `app.json`, `appearance.json`, `community-plugins.json`, `core-plugins.json`, `hotkeys.json`
+- Copy plugin folders, including their `data.json` files (these are gitignored so they stay untracked by Git, but they contain meaningful local plugin configuration that should be preserved)
+- SKIP: `workspace.json`, `workspace-mobile.json`, `graph.json` (ephemeral session state)
+
+**Binary files** (images, PDFs, attachments):
+- Copy as-is to the same relative path in the target vault
+- Create target directories if needed
+
+### Step 4: Rebuild Indexes
+
+For each index file, read the source version (which has user curation — ordering, section descriptions, groupings), then verify all links resolve and append any notes that exist but are missing from the index:
+
+- `work/Index.md`: verify work note links, add missing ones grouped by status
+- `brain/Memories.md`: verify topic note links, add any new brain/ notes
+- `org/People & Context.md`: verify people and team links, add missing ones
+- `perf/Brag Doc.md`: verify quarter note links and evidence links
+
+### Step 5: Write Migration Log
+
+Write `brain/Migration Log.md` with:
+
+```yaml
+---
+date: YYYY-MM-DD
+description: "Migration receipt — source vault version, files migrated, transformations applied"
+tags:
+ - brain
+source_vault: "<path>"
+source_version: "<detected version or 'unknown'>"
+target_version: "3.3.0"
+---
+```
+
+Body should include:
+- Summary statistics (files migrated by category, transformations applied, conflicts)
+- Content hash table (for idempotency on re-runs)
+- CLAUDE.md diff summary (if source had a customized CLAUDE.md, list the differences so the user knows what conventions to re-apply)
+- List of user additions copied (custom commands, agents, scripts)
+- Any files sent to `thinking/migrate-review/` for manual sorting
+
+---
+
+## Version-Specific Migrations
+
+When the source vault is a known obsidian-mind version, apply these transformations:
+
+### v1 → current
+
+- Move `claude/` contents to `brain/` (rename `claude/Memories.md` → `brain/Memories.md`, etc.)
+- If `claude/Memories.md` is a monolith (single file with multiple topic sections), split into separate topic files (`brain/Key Decisions.md`, `brain/Patterns.md`, `brain/Gotchas.md`)
+- Move flat `work/*.md` notes into `work/active/` or `work/archive/YYYY/` based on status
+- Strip full-path wikilinks (`[[claude/Memories]]` → `[[Memories]]`)
+
+### v2 → current
+
+- Mostly structural parity. Check for missing `.claude/agents/` and `.claude/scripts/` (v2 didn't have them — but don't copy, the template already has latest)
+- Move any user content that's in the right folders already
+
+### v3.0–v3.2 → current
+
+- Minimal transformation needed. Focus on:
+ - New frontmatter fields that may be missing
+ - `vault-manifest.json` (new in v3.3)
+ - Any custom commands/agents the user added
+
+---
+
+## Important
+
+- **NEVER modify the source vault.** All reads from source, all writes to target.
+- **Zero data loss.** Preserve all existing frontmatter fields. Add missing ones, never remove existing ones.
+- **Idempotency.** Check content hashes against `brain/Migration Log.md` before processing. Skip unchanged files, flag changed ones.
+- **Conflict resolution.** If a file with the same name exists in the target and differs from what you'd write, log it as a conflict. Don't overwrite without explicit plan approval.
+- **Wikilinks are paramount.** After migration, every `[[link]]` should resolve. If a link target doesn't exist in the target vault, log it as a broken link for post-migration review.
diff --git a/.claude/commands/incident-capture.md b/.claude/commands/incident-capture.md
index 5a1b0dd..501f382 100644
--- a/.claude/commands/incident-capture.md
+++ b/.claude/commands/incident-capture.md
@@ -93,10 +93,10 @@ For existing people notes:
- `perf/Brag Doc.md` — add to relevant quarter with competency links
- `perf/brag/QN YYYY.md` — add detailed brag entry
-### 7. Prepare IRP Draft (if applicable)
+### 7. Prepare Incident Report Draft (if applicable)
-If you are or may become the post-mortem manager:
-- Check the post-mortem template at `reference/Incident Response Process.md`
+If you are or may lead the post-mortem:
+- Check your org's post-mortem template (add it to `reference/` if you have one)
- Create `work/incidents/TICKET-XXXX Post-Mortem Draft.md` following your org's post-mortem template
- Include: Executive Summary, Narrative Timeline (4-column), 5 Whys analysis, Action Items table
@@ -105,7 +105,7 @@ If you are or may become the post-mortem manager:
After capturing, suggest:
- "Want me to prepare the incident ticket fields?" (Points of Time, Impact, RCA)
- "Want me to draft a message for the incident channel?"
-- "Want me to create an FE/iOS root cause analysis document?"
+- "Want me to create a root cause analysis document?"
- "Should I run `/vault-audit` to verify everything links properly?"
## Important
diff --git a/.claude/commands/peer-scan.md b/.claude/commands/peer-scan.md
index 72a17d5..7cd357f 100644
--- a/.claude/commands/peer-scan.md
+++ b/.claude/commands/peer-scan.md
@@ -8,7 +8,7 @@ Deep scan a peer's GitHub PRs for performance review preparation. Produces a str
/peer-scan <name> <github-username> <repo> [period]
```
-Example: `/peer-scan "Jane Doe" jdoe example-repo "Oct 2025 - Mar 2026"`
+Example: `/peer-scan "Jane Doe" jdoe example-repo "Jan 2025 - Jun 2025"`
## Workflow
@@ -25,7 +25,7 @@ Example: `/peer-scan "Jane Doe" jdoe example-repo "Oct 2025 - Mar 2026"`
3. **Produce structured analysis** with these sections:
- **PR count by month** — table showing velocity trends
- **Projects/themes** — group PRs by project area with descriptions of what was built
- - **Quality signals** — review comments, change requests, approval patterns, reverts, SonarQube
+ - **Quality signals** — review comments, change requests, approval patterns, reverts, static analysis findings
- **Notable contributions** — architectural decisions, complex fixes, test coverage, cross-team impact
- **Growth signals** — scope expansion over time, leadership evidence
- **Full PR table** — every PR with number, title, date, additions, deletions, state
diff --git a/.claude/commands/review-brief.md b/.claude/commands/review-brief.md
index 967032e..7d1ccf6 100644
--- a/.claude/commands/review-brief.md
+++ b/.claude/commands/review-brief.md
@@ -9,8 +9,8 @@ Generate a performance review context transfer document from vault data. Support
```
Examples:
-- `/review-brief manager "Q4 2025 + Q1 2026"`
-- `/review-brief peers "Q4 2025 + Q1 2026"`
+- `/review-brief manager "Q3 2024 + Q4 2024"`
+- `/review-brief peers "Q3 2024 + Q4 2024"`
## Subagent
@@ -23,7 +23,7 @@ Launch the subagent first to gather raw material, then use its output to write t
### 1. Gather Data
Read these vault sources:
-- `perf/h1-2026/H1 2026 Review Brief.md` (or current private brief) — full context
+- `perf/<cycle>/Review Brief.md` (or current private brief) — full context
- `perf/Brag Doc.md` — quarterly highlights
- `perf/brag/Q*.md` — quarterly detail notes for the period
- `perf/evidence/Your PRs - *.md` — PR data
@@ -34,15 +34,15 @@ Read these vault sources:
### 2. Generate Content
**For manager audience:**
-- Frame for a PO, not an engineer — outcome language, not technical jargon
+- Frame for a non-technical audience — outcome language, not technical jargon
- Include: The Arc (narrative), Impact at a Glance (table), Impact Details (per project), Competency Highlights (with baselines), Documentation Trail
-- Replace technical terms: "deadlock" → "timing conflict", "data race" → "concurrency issue", etc.
+- Simplify technical terms for your audience's background
- No wikilinks — use plain text or markdown links to external resources
-- Include all Confluence, Jira, GitHub, error tracking, Slack references
+- Include all documentation, task tracker, repository, error tracking, and communication references
**For peer audience:**
-- Can be more technical but still PO-friendly (peers write reviews that go to manager)
-- Organize by project (matches your org's review tool structure)
+- Can be more technical but still accessible (peers write reviews that go to manager)
+- Organize by project (a common review tool structure)
- Include "Other things worth mentioning" for non-project work
- Casual tone — "jog your memory", "no pressure to cover everything"
- No competency section — that's for the manager
@@ -65,5 +65,5 @@ Read these vault sources:
- NEVER include: sensitive interpersonal details, 1:1 talking points, peer selection strategy, personal strategic notes in shared versions
- Always maintain a private version with full context
- When updating, update BOTH private + shared versions
-- Manager version: no wikilinks, PO language, professional formatting
-- Peer version: project-focused, same PO-friendly language
+- Manager version: no wikilinks, non-technical language, professional formatting
+- Peer version: project-focused, accessible language
diff --git a/.claude/commands/review-peer.md b/.claude/commands/review-peer.md
index ebf16bd..0ff3062 100644
--- a/.claude/commands/review-peer.md
+++ b/.claude/commands/review-peer.md
@@ -10,9 +10,11 @@ Write a peer review for a colleague on your company's review tool. Produces proj
## Context: Review System
-- **Peers give comments only** — no scores. Manager + Coach give scores.
-- **Calibration** happens at the organizational level — managers + People Partners review aggregate ratings.
-- **Review tool fields**: per-project feedback (1000 chars), principles (1000 chars each), Strengths (1000 chars), Areas of Development (1000 chars), Confidential Comment (1000 chars, optional — manager-only).
+Adapt to your company's review system. Common patterns:
+
+- **Peers give comments only** — typically no scores. Manager gives scores.
+- **Calibration** may happen at a broader organizational level.
+- **Common review fields**: per-project feedback, principles, Strengths, Areas of Development, Confidential Comment (manager-only). Check your tool's character limits.
## Workflow
@@ -37,7 +39,7 @@ Be explicit about this in the review text. Never overclaim visibility.
### 3. Draft
-For each section, draft within 1000 chars. Use `.claude/scripts/charcount.sh` to verify.
+For each section, draft within your tool's character limit. Use `.claude/scripts/charcount.sh <file> "<section>" "" <limit>` to verify.
**Project feedback** (per project):
- Lead with your relationship to the work ("worked alongside daily" vs "less direct visibility")
@@ -68,7 +70,7 @@ For each section, draft within 1000 chars. Use `.claude/scripts/charcount.sh` to
Run these before presenting the draft:
-- [ ] All sections under 1000 chars (use `charcount.sh <file> "<section>"`)
+- [ ] All sections within your tool's character limit (use `charcount.sh <file> "<section>" "" <limit>`)
- [ ] No PR numbers (e.g., #21579) — describe what was done instead
- [ ] No line counts (e.g., +4,743/-3,362) — these look like an audit
- [ ] No "weekend work visible in timestamps" — don't track when people work
diff --git a/.claude/commands/self-review.md b/.claude/commands/self-review.md
index 88c2035..116d886 100644
--- a/.claude/commands/self-review.md
+++ b/.claude/commands/self-review.md
@@ -12,10 +12,12 @@ Default cycle: current review period.
## Context: Review System
-- **Three evaluation axes**: Impact (Volume/Quality/Efficiency/Complexity), Competencies (current level / next level per competency), Principles (your company's defined principles)
-- **Rating scale**: Below / Meet / Above for Impact and Principles. Yes/No/Don't Know for competency criteria.
-- **Who reads this**: Manager (may have limited context), Coach, Calibration panel (senior managers + People Partners who don't know you)
-- **Your self-assessment is the anchor** — especially when the manager is new. If you say Meet, they have no reason to push Above.
+Adapt this to your company's review system. Common patterns:
+
+- **Evaluation axes**: Impact (what was delivered), Competencies (skill demonstration at level), Principles (culture/values alignment). Customize the specific dimensions and terminology.
+- **Rating scale**: Common scales include Below/Meet/Above or 1-5. Configure per your org.
+- **Audience**: Typically your manager, possibly a calibration panel. Understand who reads this and tailor detail accordingly.
+- **Your self-assessment sets the anchor** — especially when the manager is new or has limited context.
## Workflow
@@ -33,13 +35,13 @@ Read in order:
### 2. Draft Projects
-For each submitted project (1000 chars, no dashes):
+For each submitted project (within your tool's character limit, e.g. 1000 chars):
- Open with your role and scope
-- Hit all four Impact dimensions without naming them: what was delivered (Volume), how good it was (Quality), how the process was managed (Efficiency), whether scope expanded (Complexity)
+- Cover impact dimensions: what was delivered, quality of execution, process efficiency, complexity handled
- Include specific evidence: numbers should be factual (PR counts, team size, timeline)
- End with outcome or significance
-Rate each project Meet or Above. Decide all ratings at the end together — calibrate the full picture before committing.
+Decide all ratings at the end together — calibrate the full picture before committing.
### 3. Draft Competencies
@@ -48,7 +50,7 @@ For each competency, decide current level (Yes/No) and next level (Yes/No):
- Check each sub-criterion: is there concrete evidence?
- If saying Yes to next level, every sub-criterion should be defensible — missing the primary criterion undermines credibility
-Draft 1000-char text per YES answer:
+Draft text per YES answer (within your tool's character limit):
- **Competency texts are NOT project descriptions** — the project section already covers WHAT. Competency texts cover HOW you applied the skill.
- Lead with behaviors and decisions, not deliverables
- Reference the previous cycle baseline: "Previously Meet, this period X" shows trajectory
@@ -57,7 +59,7 @@ Draft 1000-char text per YES answer:
### 4. Draft Principles
-For each principle (1000 chars):
+For each principle (within your tool's character limit):
- Reference the previous cycle baseline and any specific growth feedback
- Lead with the strongest evidence
- If the rating changed from last cycle, make the growth explicit
@@ -79,8 +81,8 @@ Before finalizing, review the full picture:
### 6. Quality Checks
-- [ ] All sections under 1000 chars (use `.claude/scripts/charcount.sh <file> "<section>" [subsection]`)
-- [ ] No dashes (em-dashes, en-dashes) — some review tools count these differently
+- [ ] All sections within your tool's character limit (use `.claude/scripts/charcount.sh <file> "<section>" "" <limit>`)
+- [ ] Watch for special characters (em-dashes, en-dashes) — some review tools count these as multiple characters
- [ ] Every factual claim backed by vault evidence
- [ ] No fabricated decisions ("chose X over Y" when Y was never considered)
- [ ] No self-undermining language in next-level YES texts ("not yet at yearly scope")
@@ -104,12 +106,10 @@ Flag and fix anything that doesn't pass.
Save draft to `thinking/review-drafts.md` for copy-pasting.
After submission, promote to `perf/<cycle>/Self-Review.md`.
-## Lessons Learned
-
-These come from past review cycles and should be applied going forward:
+## Tips
-1. **Strategic Meet only works when the assessor has independent context.** With a new manager, your self-assessment IS the anchor. Don't undersell.
-2. **Charcount early and often.** Use the script after every draft, not after pasting into the review tool.
-3. **The "no dashes" rule exists** because some review tools may count special characters differently.
-4. **Peer reviews feed into your competency ratings.** What peers write about you is visible to the manager. What you write about peers builds your reputation as a thoughtful evaluator.
-5. **Fact-check before submitting.** Plan mode for verification has caught fabricated architectural decisions, references that shouldn't be in a review, and date claims where the days of the week were wrong.
+1. **Your self-assessment anchors the conversation** — especially with a new manager who lacks independent context.
+2. **Check character counts early and often.** Use the charcount script after every draft, not after pasting.
+3. **Watch special characters** — some review tools count em-dashes and en-dashes as multiple characters.
+4. **Peer reviews feed into your ratings.** What peers write about you is visible. What you write about peers builds your reputation as a thoughtful evaluator.
+5. **Fact-check before submitting.** Plan mode for verification catches fabricated claims, wrong dates, and references that shouldn't appear in a review.
diff --git a/.claude/commands/vault-audit.md b/.claude/commands/vault-audit.md
index 5cc218f..e9abfba 100644
--- a/.claude/commands/vault-audit.md
+++ b/.claude/commands/vault-audit.md
@@ -33,7 +33,7 @@ Verify the vault matches the expected layout:
- `org/teams/` contains only notes tagged `team`
- `templates/` contains only template files (with `{{placeholders}}`)
- `thinking/` is clean (no leftover drafts that should have been promoted)
-- Nothing unexpected at vault root (only `Home.md`, `CLAUDE.md`, `.gitignore`)
+- Nothing unexpected at vault root (allowed: `Home.md`, `CLAUDE.md`, `vault-manifest.json`, `CHANGELOG.md`, `CONTRIBUTING.md`, `README.md`, `LICENSE`, `.gitignore` — no user notes)
### 2. Check Indexes
@@ -55,7 +55,7 @@ For each note type, verify required properties:
**Incident notes** (`work/incidents/`):
- Required: `date`, `quarter`, `description`, `tags: [work-note, incident]`
-- Required for main incident notes: `irp`, `severity`, `role`, `status`
+- Required for main incident notes: `ticket`, `severity`, `role`, `status`
**Person notes** (`org/people/`):
- Required: `date`, `title`, `description`, `tags: [person]`
diff --git a/.claude/commands/vault-upgrade.md b/.claude/commands/vault-upgrade.md
new file mode 100644
index 0000000..c1412ec
--- /dev/null
+++ b/.claude/commands/vault-upgrade.md
@@ -0,0 +1,186 @@
+# Vault Upgrade
+
+Import and migrate content from an existing Obsidian vault into this obsidian-mind instance. Works with older obsidian-mind versions and arbitrary Obsidian vaults.
+
+**When to use**: After downloading or cloning the latest obsidian-mind template, to pull in your existing vault content. Also works for migrating any Obsidian vault into the obsidian-mind structure.
+
+## Usage
+
+```
+/vault-upgrade <path-to-source-vault>
+/vault-upgrade <path-to-source-vault> --dry-run
+/vault-upgrade --source <path-to-source-vault>
+/vault-upgrade --source <path-to-source-vault> --dry-run
+```
+
+**Arguments**:
+- `<path-to-source-vault>` — absolute or relative path to the vault to migrate FROM (positional or via `--source`)
+- `--dry-run` — generate the migration plan without executing it (saves to `thinking/`)
+
+## Subagents
+
+- **`vault-migrator`** — classifies files (for arbitrary vaults) and executes the approved migration plan
+
+## Workflow
+
+### 1. Validate & Detect
+
+1. Parse the source vault path from the user's input. Resolve relative paths.
+2. Verify the source path exists and is different from the current vault.
+3. Verify the source path contains `.md` files (is it actually a vault?).
+4. Check for `vault-manifest.json` in the source:
+ - **Found**: read version directly. This is a known obsidian-mind vault.
+ - **Not found**: run version fingerprint detection from the target's `vault-manifest.json`:
+ - Check for `claude/Memories.md` without `brain/` → v1
+ - Check for `brain/` + `bases/` without `.claude/agents/` → v2
+ - Check for `.claude/agents/` → v3.x (refine by checking for specific files)
+ - None match → **arbitrary vault** (not from obsidian-mind)
+5. For arbitrary vaults, also detect the vault's **organizational pattern** (PARA, Zettelkasten, daily notes, flat, MOC-based, inbox). This shapes how the classifier interprets folder structure. Common patterns:
+ - **PARA**: `Projects/` + `Areas/` + `Resources/` + `Archive/`
+ - **Zettelkasten**: `Permanent/` + `Fleeting/` + `Literature/`, or many numeric-ID filenames
+ - **Daily Notes**: `daily/` or `journal/` folder with date-named files
+ - **Flat**: 80%+ of files in vault root
+ - **MOC-based**: files named `MOC - *.md` or `Index - *.md`
+6. Report detection result to the user: "Detected obsidian-mind v2" or "This looks like a PARA-organized Obsidian vault — I'll map Projects → work/active, Resources → reference, etc." or "This is a flat vault with no folder structure — I'll classify each note by its content."
+
+### 2. Inventory & Classify
+
+Read `vault-manifest.json` from the target (this vault) to know the infrastructure/scaffold/user_content classification rules.
+
+**For obsidian-mind source vaults:**
+
+Glob all `.md`, `.base`, `.canvas` files and binary files (images, PDFs) in the source vault. For each file, classify deterministically:
+
+| Source matches | Action | Target |
+|----------------|--------|--------|
+| `infrastructure` glob (but check exceptions below FIRST — MERGE takes precedence over SKIP) | **SKIP** | Template already has latest |
+| `.gitignore` | **MERGE** | Keep template rules, append any user-added entries, log before/after diff |
+| `bases/**` | **MERGE** | Keep template Bases, preserve user-added Bases, log conflicts for review |
+| `.claude/commands/` not in template | **MERGE** | `.claude/commands/` (user addition) |
+| `.claude/agents/` not in template | **MERGE** | `.claude/agents/` (user addition) |
+| `.claude/scripts/` not in template | **MERGE** | `.claude/scripts/` (user addition) |
+| `scaffold` path with real content | **REPLACE** | Same path in target |
+| `scaffold` path with stub-only content | **SKIP** | Template stub is fine |
+| `user_content_roots` glob | **COPY** | Same relative path |
+| `.obsidian/` config files | **CONFIG** | `.obsidian/` (see config merge rules) |
+| Binary files in user content roots | **COPY** | Same relative path |
+| Everything else | **SKIP** | Log as skipped |
+
+Detect scaffold "real content" by checking if the file has more than 5 lines of non-YAML, non-heading content beyond the template stub.
+
+**For arbitrary vaults:**
+
+1. Glob all `.md` files in the source vault (exclude `.obsidian/`, `node_modules/`, `.git/`, `.trash/`)
+2. Also glob binary files (images: `*.png`, `*.jpg`, `*.svg`, `*.gif`; documents: `*.pdf`; other: `*.canvas`, `*.base`) — these are attachments that may be embedded in notes
+3. Run Tier 0 (vault shape detection) to understand the organizational pattern
+4. Attempt Tier 1 (structural) and Tier 2 (metadata — both YAML frontmatter and inline tags/Dataview fields) classification locally
+5. For files that remain unclassified, launch the **vault-migrator** agent in **classification mode** — it reads content and applies Tier 3/4 heuristics. The agent classifies notes into work categories (work, person, incident, 1:1, decision, competency, reference) but also recognizes non-work content (personal, learning, journal) and routes it to appropriate locations (`reference/personal/`, `reference/learning/`)
+6. Incorporate the agent's classification map into the inventory
+7. Notes with no YAML frontmatter will have frontmatter generated during execution (date, description, tags derived from content and inline signals)
+
+**Idempotency check:**
+
+If `brain/Migration Log.md` exists in the target vault, read it and extract the recorded hashes. Each log entry stores both a **source hash** (original file content) and a **final hash** (transformed content written to target).
+
+On re-run, compute the **source hash** for each source file and compare against the logged source hash:
+- Source hash matches for the same source path → **SKIP** (already migrated, unchanged)
+- Entry exists but source hash differs → **FLAG** (source modified since last migration — ask user)
+- No entry for this source path → process normally (new file)
+
+### 3. Present Migration Plan
+
+Build and present a structured plan to the user. This is the critical decision point — nothing executes without approval.
+
+**Summary section:**
+```
+Source: ~/my-vault (obsidian-mind v2)
+Target: this vault (obsidian-mind v3.3)
+
+Files found: 87
+ COPY: 52 user content files
+ REPLACE: 6 scaffold files with real content
+ MERGE: 2 custom commands
+ CONFIG: 4 .obsidian/ files
+ SKIP: 18 infrastructure files (template has latest)
+ CLASSIFY: 5 uncategorized → thinking/migrate-review/
+
+Transformations:
+ - 23 notes missing 'quarter' field (will derive from date)
+ - 12 notes missing 'description' field (will generate)
+ - 3 notes with alias field → normalize to 'ticket'
+ - 1 v1 monolith Memories.md → split into topic files
+```
+
+**Detailed table** (show first 20, offer to show all):
+```
+| # | Source | Target | Action | Transforms |
+|---|--------|--------|--------|------------|
+| 1 | org/people/Jane.md | org/people/Jane.md | COPY | +description |
+| 2 | brain/Memories.md | brain/Memories.md | REPLACE | — |
+| 3 | daily/2026-03-15.md | work/1-1/... | CLASSIFY+COPY | +quarter, +tags |
+```
+
+**Conflict section** (if any):
+```
+⚠ Conflicts requiring your input:
+ - source has customized CLAUDE.md (will NOT copy — differences logged)
+ - source has .claude/commands/my-custom.md (will MERGE as user addition)
+```
+
+Ask the user: "Does this plan look right? You can modify it — tell me to skip files, change targets, or adjust transformations. Say 'go' to execute."
+
+**For `--dry-run`**: write the plan to `thinking/vault-upgrade-plan-YYYY-MM-DD.md` and stop.
+
+### 4. Execute Migration
+
+Once the user approves, launch the **vault-migrator** agent in **execution mode** with:
+- Source vault path
+- The approved migration plan
+- The target vault's manifest
+
+The agent handles all file operations: read from source, transform, write to target, rebuild indexes, copy .obsidian/ config, write migration log.
+
+Wait for the agent to complete. If it reports errors, present them to the user.
+
+### 5. Validate
+
+After the agent completes:
+
+1. Glob all newly created files in the target vault
+2. Spot-check frontmatter on 5 random migrated files (read and verify required fields)
+3. Check for broken wikilinks in migrated files (grep for `[[` patterns, verify targets exist)
+4. Verify index files reference the migrated content
+5. Count orphan notes (notes with zero inbound links)
+6. Report results:
+
+```
+Migration complete.
+ ✓ 52 files migrated
+ ✓ 6 scaffold files replaced
+ ✓ 2 custom commands merged
+ ✓ Indexes rebuilt (work/Index.md, People & Context, Brag Doc, Memories)
+ ✓ .obsidian/ config copied
+
+ ⚠ 3 orphan notes (no inbound links) — run /vault-audit to fix
+ ⚠ 5 files in thinking/migrate-review/ need manual sorting
+
+ Migration log: brain/Migration Log.md
+```
+
+Offer next steps:
+- "Run `/vault-audit` for a full structural check"
+- "Review `thinking/migrate-review/` for uncategorized files"
+- "Check `brain/Migration Log.md` for the full receipt and CLAUDE.md diff"
+
+## Important
+
+- **The source vault is NEVER modified.** All operations are read-only on the source, write-only on the target.
+- **Plan-first, always.** Never skip the plan presentation step, even if the migration looks simple.
+- **Preserve user curation.** When rebuilding indexes, start from the source's version (which has the user's ordering and groupings), then append missing entries. Don't regenerate from scratch.
+- **CLAUDE.md is special.** Never copy it from the source. The template's CLAUDE.md is always authoritative. If the source has customizations, diff them and log the differences so the user can re-apply manually.
+- **Binary files matter.** Images, PDFs, and attachments embedded in notes must be copied or the embeds break.
+- **Wikilinks resolve by filename.** Most folder moves don't break links. Only renames and full-path links need fixing.
+- **Markdown links get converted.** Standard markdown links to local files (`[text](path.md)`) are converted to wikilinks (`[[name|text]]`). External URLs are left as-is.
+- **Non-work content is welcome.** Not every note fits work/org/perf. Personal journal entries go to `reference/personal/`, book and course notes go to `reference/learning/`. The goal is zero data loss, not forcing everything into work categories.
+- **No frontmatter is fine.** Many Obsidian vaults don't use YAML frontmatter. The migrator generates it from inline tags, Dataview fields, filenames, and content analysis.
+- This command creates `thinking/migrate-review/` only if there are uncategorized files. Clean it up after manual sorting.
diff --git a/.claude/scripts/charcount.sh b/.claude/scripts/charcount.sh
index 3ab77f7..1f9f2e9 100755
--- a/.claude/scripts/charcount.sh
+++ b/.claude/scripts/charcount.sh
@@ -1,18 +1,21 @@
#!/bin/bash
set -euo pipefail
-# Count characters in a markdown section (useful for review tools with character limits)
-# Usage: charcount.sh <file> <section> [subsection]
+# Count characters in a markdown section, optionally validate against a limit.
+# Usage: charcount.sh <file> <section> [subsection] [limit]
# Examples:
-# charcount.sh review.md "Project Name"
-# charcount.sh review.md "Competency Name" "Current Level"
-# charcount.sh review.md "Competency Name" "Next Level"
+# charcount.sh review.md "Project Name" → 847
+# charcount.sh review.md "Project Name" "" 1000 → 847/1000 ✓
+# charcount.sh review.md "Project Name" "" 500 → 847/500 ✗ (over by 347)
+# charcount.sh review.md "Competency Name" "Current Level" 1000
FILE="${1:-}"
SECTION="${2:-}"
SUB="${3:-}"
+LIMIT="${4:-}"
if [ -z "$FILE" ] || [ -z "$SECTION" ]; then
- echo "Usage: charcount.sh <file> \"Section Header\" [subsection]"
+ echo "Usage: charcount.sh <file> \"Section Header\" [subsection] [limit]"
+ echo " subsection: use \"\" to skip when passing a limit"
exit 1
fi
@@ -23,19 +26,31 @@ fi
if [ -n "$SUB" ]; then
MARKER="**${SUB}:**"
- awk -v section="$SECTION" -v marker="$MARKER" '
+ COUNT=$(awk -v section="$SECTION" -v marker="$MARKER" '
index($0, "### " section) { found=1; next }
found && /^### / { exit }
found && index($0, marker) { capture=1; next }
found && capture && /^\*\*/ { exit }
found && capture && /^### / { exit }
found && capture && $0 != "" { print }
- ' "$FILE" | tr -d '\n' | wc -m | tr -d ' '
+ ' "$FILE" | tr -d '\n' | wc -m | tr -d ' ')
else
- awk -v section="$SECTION" '
+ COUNT=$(awk -v section="$SECTION" '
index($0, "### " section) { found=1; next }
found && /^### / { exit }
found && /^## / { exit }
found && $0 != "" { print }
- ' "$FILE" | tr -d '\n' | wc -m | tr -d ' '
+ ' "$FILE" | tr -d '\n' | wc -m | tr -d ' ')
+fi
+
+if [ -n "$LIMIT" ]; then
+ if [ "$COUNT" -le "$LIMIT" ]; then
+ echo "${COUNT}/${LIMIT} ✓"
+ else
+ OVER=$((COUNT - LIMIT))
+ echo "${COUNT}/${LIMIT} ✗ (over by ${OVER})"
+ exit 1
+ fi
+else
+ echo "$COUNT"
fi
diff --git a/.claude/scripts/validate-write.py b/.claude/scripts/validate-write.py
index 9c2372c..80e4a34 100755
--- a/.claude/scripts/validate-write.py
+++ b/.claude/scripts/validate-write.py
@@ -19,6 +19,11 @@ def main():
sys.exit(0)
# Normalize path separators for cross-platform matching (Windows uses backslashes)
normalized = file_path.replace("\\", "/")
+ # Skip dotfiles, templates, thinking, and root template files (not vault notes)
+ basename = os.path.basename(normalized)
+ root_files = {"README.md", "CHANGELOG.md", "CONTRIBUTING.md", "CLAUDE.md"}
+ if basename in root_files:
+ sys.exit(0)
if any(skip in normalized for skip in [".claude/", ".obsidian/", "templates/", "thinking/"]):
sys.exit(0)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c12fa7f..f7da74d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Changelog
+## v3.3 — 2026-03-29
+
+### Added
+- `/vault-upgrade` command — import and migrate content from an existing Obsidian vault (any version of obsidian-mind or arbitrary vaults). Detects source version via fingerprints, classifies notes, transforms frontmatter, fixes wikilinks, rebuilds indexes. Supports `--dry-run`.
+- `vault-migrator` subagent — classifies files (tiered heuristics: structural → frontmatter → content → fallback) and executes approved migration plans. Two modes: classification and execution.
+- `vault-manifest.json` — declares template version, infrastructure vs user content boundaries, frontmatter schemas, version fingerprints, and field aliases. Enables version detection and targeted migrations.
+
+### Changed
+- CLAUDE.md: added `/vault-upgrade` command and `vault-migrator` agent, updated counts (14→15 commands, 8→9 agents)
+- README: added "Upgrading" section explaining the migration workflow
+- `brain/Skills.md`: added `/vault-upgrade` to Maintenance category and `vault-migrator` to subagents table
+
## v3.2.1 — 2026-03-29
### Fixed
diff --git a/CLAUDE.md b/CLAUDE.md
index f7a3aea..27e5568 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -32,6 +32,7 @@ Defined in `.claude/commands/`. See [[Skills]] for full documentation.
| `/self-review` | Write self-assessment for review tool -- projects, competencies, principles |
| `/review-peer` | Write peer review -- projects, principles, performance summary |
| `/vault-audit` | Audit indexes, links, orphans, stale context |
+| `/vault-upgrade` | Import content from an existing vault into this obsidian-mind instance |
| `/project-archive` | Move completed project from active/ to archive/, update indexes |
## Vault Structure
@@ -39,6 +40,8 @@ Defined in `.claude/commands/`. See [[Skills]] for full documentation.
| Folder | Purpose | Key Files |
|--------|---------|-----------|
| `Home.md` | **Vault entry point** -- embedded Base views, quick links | Open this first |
+| `vault-manifest.json` | **Template metadata** -- version, infrastructure vs user content boundaries, frontmatter schemas, version fingerprints | Used by `/vault-upgrade` for migration |
+| `CHANGELOG.md` | **Version history** -- tracks template releases (v1--v3.3) with what changed | Reference for upgrade paths |
| `bases/` | **All Bases centralized** -- dynamic views for navigation | `Work Dashboard`, `Incidents`, `People Directory`, `1-1 History`, `Review Evidence`, `Competency Map`, `Templates` |
| `work/` | Work notes index | `Index.md` (detailed MOC) |
| `work/active/` | **Current projects only** (1-3 files) | Move here when starting, move to archive when done |
@@ -57,8 +60,8 @@ Defined in `.claude/commands/`. See [[Skills]] for full documentation.
| `reference/` | Codebase knowledge, architecture maps | Flow docs, architecture docs |
| `thinking/` | Scratchpad for drafts and reasoning | Named `YYYY-MM-DD-topic.md` |
| `templates/` | Obsidian templates | `Work Note.md`, `Decision Record.md`, etc. |
-| `.claude/commands/` | 14 slash commands | See command table above |
-| `.claude/agents/` | 8 subagents | See subagents table below |
+| `.claude/commands/` | 15 slash commands | See command table above |
+| `.claude/agents/` | 9 subagents | See subagents table below |
| `.claude/scripts/` | Hook scripts | `session-start.sh`, `classify-message.py`, `validate-write.py`, `pre-compact.sh` |
| `.claude/skills/` | Obsidian + QMD skills | Loaded automatically via Skill tool |
@@ -143,7 +146,7 @@ Use `thinking/` for drafts, reasoning, and analysis before writing final notes.
- Claude operational context -- `brain/`
- Codebase knowledge -- `reference/`
- Drafts -- `thinking/`
- - Vault root: only `Home.md` and `CLAUDE.md`.
+ - Vault root: `Home.md`, `CLAUDE.md`, `vault-manifest.json`, `CHANGELOG.md`, `CONTRIBUTING.md`, `README.md`, `LICENSE`, `.gitignore`. No user notes at root.
4. **Name files descriptively.** Use the note title as filename.
### Note Types
@@ -154,7 +157,7 @@ Use `thinking/` for drafts, reasoning, and analysis before writing final notes.
| Incident | `work/incidents/` | Ticket number or descriptive title | Context, Root Cause, Timeline, Impact, Analysis, Related |
| 1:1 note | `work/1-1/` | `<Person> YYYY-MM-DD.md` | Key Takeaways, Action Items, Quotes, What to Watch, Related |
| PR analysis | `perf/evidence/` | `<Person> PRs - <Period>.md` | PR Count, Projects, Quality, Growth, Full Table |
-| Review brief | `perf/<cycle>/` | `H1 2026 Review Brief.md` | Arc, Impact, Competencies, Documentation Trail |
+| Review brief | `perf/<cycle>/` | `<Cycle> Review Brief.md` | Arc, Impact, Competencies, Documentation Trail |
| Person note | `org/people/` | Full name | Role & Team, Relationship, Key Moments, Notes |
| Team note | `org/teams/` | Team name | Members, Scope, Interactions |
| Competency | `perf/competencies/` | Competency name | Definition, level criteria, Evidence (via backlinks) |
@@ -231,7 +234,7 @@ Use tags in frontmatter (not inline):
- **Index**: `index`, `moc`
- **Status** (frontmatter field): `active`, `completed`, `archived`, `proposed`, `accepted`, `deprecated`
- **Team** (frontmatter field on people + work notes): your team names, e.g. `Backend`, `Platform`, `Mobile`
-- **Cycle** (frontmatter field on review-related notes): `h1-2026`, `h2-2025`, etc.
+- **Cycle** (frontmatter field on review-related notes): `h2-2024`, `h1-2025`, etc.
- **Person** (frontmatter field on evidence notes): full name of the person
- **Project**: as needed, e.g. `project/auth-refactor`
@@ -239,7 +242,7 @@ Use tags in frontmatter (not inline):
Beyond tags, use these frontmatter properties to enable search and Bases views:
-- `cycle: h1-2026` -- find all review material for a cycle
+- `cycle: h2-2024` -- find all review material for a cycle
- `person: "Jane Smith"` -- find all evidence related to a person
- `team: Backend` -- find all notes related to a team
- `status: active` -- find active projects
@@ -308,6 +311,7 @@ Specialized agents in `.claude/agents/` for heavy operations. They run in isolat
| `slack-archaeologist` | Full Slack reconstruction -- every message, thread, profile | `/incident-capture` |
| `vault-librarian` | Deep vault maintenance -- orphans, broken links, stale notes | `/vault-audit` |
| `review-fact-checker` | Verifies every claim in a review draft against vault sources | `/self-review`, `/review-peer` |
+| `vault-migrator` | Classifies, transforms, and migrates content from a source vault | `/vault-upgrade` |
## Hooks
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..79e67bc
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,23 @@
+# Contributing
+
+## Template Development Checklist
+
+When adding or modifying commands, agents, hooks, or vault structure, **all of these files must stay in sync**:
+
+| File | What to update |
+|------|---------------|
+| `CLAUDE.md` | Command table, agent table, vault structure table, counts (commands/agents), root files rule |
+| `README.md` | Command table, agent table, vault structure diagram, counts, relevant sections |
+| `brain/Skills.md` | Command tables (by category), subagents table, usage notes, workflows if affected |
+| `CHANGELOG.md` | New version entry at top with Added/Changed/Fixed sections |
+| `vault-manifest.json` | Version number, infrastructure globs, scaffold paths, frontmatter schemas, version fingerprints |
+| `bases/*.base` | If new properties or note types are added, update relevant Base views |
+
+## Before Creating a PR
+
+- Counts match everywhere (commands, agents)
+- New command/agent appears in ALL tables (CLAUDE.md + README + Skills.md)
+- `vault-manifest.json` version is bumped
+- CHANGELOG has the new version entry
+- All infrastructure paths in the manifest actually exist (`ls` each non-glob path)
+- Examples use generic dates and names, not specific to any company or person
diff --git a/README.md b/README.md
index f00baa6..7024dcb 100644
--- a/README.md
+++ b/README.md
@@ -134,6 +134,7 @@ Defined in `.claude/commands/`. Run them in any Claude Code session.
| `/self-review` | Write your self-assessment for review season — projects, competencies, principles |
| `/review-peer` | Write a peer review — projects, principles, performance summary |
| `/vault-audit` | Audit indexes, links, orphans, stale context |
+| `/vault-upgrade` | Import content from an existing vault — version detection, classification, migration |
| `/project-archive` | Move a completed project from active/ to archive/, update indexes |
---
@@ -152,6 +153,7 @@ Specialized agents that run in isolated context windows. They handle heavy opera
| `slack-archaeologist` | Full Slack reconstruction — every message, thread, profile | `/incident-capture` |
| `vault-librarian` | Deep vault maintenance — orphans, broken links, stale notes | `/vault-audit` |
| `review-fact-checker` | Verify every claim in a review draft against vault sources | `/self-review`, `/review-peer` |
+| `vault-migrator` | Classify, transform, and migrate content from a source vault | `/vault-upgrade` |
> [!NOTE]
> Subagents are defined in `.claude/agents/`. You can add your own for domain-specific workflows.
@@ -192,6 +194,35 @@ The `bases/` folder contains database views that query your notes' frontmatter p
---
+## 🔄 Upgrading
+
+Already using an older version of obsidian-mind (or any Obsidian vault)? The `/vault-upgrade` command migrates your content into the latest template:
+
+```bash
+# 1. Clone the latest obsidian-mind
+git clone https://github.com/breferrari/obsidian-mind.git ~/new-vault
+
+# 2. Open it in Claude Code
+cd ~/new-vault && claude
+
+# 3. Run the upgrade pointing to your old vault
+/vault-upgrade ~/my-old-vault
+```
+
+Claude will:
+1. **Detect** your vault version (v1–v3.2, or identify it as a non-obsidian-mind vault)
+2. **Inventory** every file — classify as user content, scaffold, infrastructure, or uncategorized
+3. **Present a migration plan** — you see exactly what will be copied, transformed, and skipped
+4. **Execute** after your approval — transforms frontmatter, fixes wikilinks, rebuilds indexes
+5. **Validate** — checks for orphans, broken links, missing frontmatter
+
+Your old vault is **never modified**. Use `--dry-run` to preview the plan without executing.
+
+> [!NOTE]
+> Works with any Obsidian vault, not just obsidian-mind. For non-obsidian-mind vaults, Claude reads each note and classifies it semantically — routing work notes, people, incidents, 1:1s, and decisions to the right folders.
+
+---
+
## 🚀 Quick Start
1. Clone this repo (or use it as a **GitHub template**)
@@ -221,6 +252,13 @@ qmd update && qmd embed
```
Home.md Vault entry point — embedded Base views, quick links
+CLAUDE.md Operating manual — Claude reads this every session
+vault-manifest.json Template metadata — version, structure, schemas
+CHANGELOG.md Version history
+CONTRIBUTING.md Template development checklist
+README.md Product documentation
+LICENSE MIT license
+
bases/ Dynamic database views (Work Dashboard, Incidents, People, etc.)
work/
@@ -255,8 +293,8 @@ thinking/ Scratchpad for drafts — promote findings, then delete
templates/ Obsidian templates with YAML frontmatter
.claude/
- commands/ 14 slash commands
- agents/ 8 subagents
+ commands/ 15 slash commands
+ agents/ 9 subagents
scripts/ Hook scripts + charcount.sh utility
skills/ Obsidian + QMD skills
settings.json 5 hooks configuration
diff --git a/bases/Incidents.base b/bases/Incidents.base
index bbcfa9e..d82e1ae 100644
--- a/bases/Incidents.base
+++ b/bases/Incidents.base
@@ -7,8 +7,8 @@ formulas:
properties:
file.name:
displayName: Incident
- irp:
- displayName: IRP Ticket
+ ticket:
+ displayName: Ticket
severity:
displayName: Severity
role:
@@ -25,7 +25,7 @@ views:
order:
- file.name
- date
- - irp
+ - ticket
- severity
- role
- status
diff --git a/brain/Skills.md b/brain/Skills.md
index 49fa1b1..49bd472 100644
--- a/brain/Skills.md
+++ b/brain/Skills.md
@@ -48,6 +48,7 @@ Custom slash commands, subagents, and reusable workflows. Defined in `.claude/co
| Command | Purpose |
|---------|---------|
| `/vault-audit` | Deep structural audit — indexes, frontmatter, links, Bases, folder placement, stale context |
+| `/vault-upgrade` | Import content from an existing vault — detects version, classifies notes, transforms frontmatter, rebuilds indexes |
| `/project-archive` | Move completed project from `work/active/` to `work/archive/YYYY/`, update all indexes |
## Usage Notes
@@ -72,6 +73,7 @@ Custom slash commands, subagents, and reusable workflows. Defined in `.claude/co
**Maintenance:**
- `/vault-audit` should be run at the end of substantial sessions — catches stale indexes and mixed context
+- `/vault-upgrade` imports content from an existing vault (older obsidian-mind or any Obsidian vault). Detects version, classifies notes, transforms frontmatter, fixes wikilinks, rebuilds indexes. Use `--dry-run` to preview.
- `/project-archive` handles the active/ → archive/ move with index updates
## Subagents
@@ -86,6 +88,7 @@ Custom slash commands, subagents, and reusable workflows. Defined in `.claude/co
| `slack-archaeologist` | Full Slack reconstruction — reads every message, thread, profile, produces unified timeline | `/incident-capture` |
| `vault-librarian` | Deep vault maintenance — orphan detection, broken links, frontmatter validation, stale notes | `/vault-audit` |
| `review-fact-checker` | Verify every claim in a review draft against vault sources | `/self-review`, `/review-peer` |
+| `vault-migrator` | Classify, transform, and migrate content from a source vault | `/vault-upgrade` |
Subagents run in isolated context windows via `.claude/agents/`. They don't pollute the main conversation.
diff --git a/vault-manifest.json b/vault-manifest.json
new file mode 100644
index 0000000..aa85187
--- /dev/null
+++ b/vault-manifest.json
@@ -0,0 +1,79 @@
+{
+ "template": "obsidian-mind",
+ "version": "3.3.0",
+ "released": "2026-03-29",
+ "infrastructure": [
+ "CLAUDE.md",
+ "Home.md",
+ "README.md",
+ "CHANGELOG.md",
+ "CONTRIBUTING.md",
+ "LICENSE",
+ ".gitignore",
+ ".claude/**",
+ ".claude-plugin/**",
+ "templates/**",
+ "bases/**",
+ "vault-manifest.json",
+ "brain/Skills.md",
+ "perf/competencies/README.md",
+ "thinking/README.md"
+ ],
+ "scaffold": {
+ "brain/North Star.md": "Personal goals — replace if source has real content",
+ "brain/Memories.md": "Memory index — replace if source has entries beyond template stubs",
+ "brain/Key Decisions.md": "Decision log — replace if non-empty",
+ "brain/Patterns.md": "Observed patterns — replace if non-empty",
+ "brain/Gotchas.md": "Known gotchas — replace if non-empty",
+ "work/Index.md": "Work notes MOC — replace if has real entries",
+ "org/People & Context.md": "People MOC — replace if has real entries",
+ "perf/Brag Doc.md": "Brag doc index — replace if has entries"
+ },
+ "user_content_roots": [
+ "work/active/",
+ "work/archive/",
+ "work/incidents/",
+ "work/1-1/",
+ "org/people/",
+ "org/teams/",
+ "perf/brag/",
+ "perf/evidence/",
+ "perf/h*-*/",
+ "perf/competencies/*.md",
+ "brain/*.md",
+ "reference/"
+ ],
+ "version_fingerprints": {
+ "v1": {
+ "exists": ["claude/Memories.md"],
+ "missing": ["brain/", "bases/"]
+ },
+ "v2": {
+ "exists": ["brain/", "bases/", "Home.md"],
+ "missing": [".claude/agents/"]
+ },
+ "v3.0": {
+ "exists": [".claude/agents/", ".claude/scripts/"],
+ "missing": [".claude/agents/review-fact-checker.md"]
+ },
+ "v3.1": {
+ "exists": [".claude/agents/review-fact-checker.md"],
+ "missing": [".claude/commands/humanize.md"]
+ },
+ "v3.2": {
+ "exists": [".claude/commands/humanize.md", ".claude/commands/weekly.md"],
+ "missing": ["vault-manifest.json"]
+ },
+ "v3.3": {
+ "exists": ["vault-manifest.json"]
+ }
+ },
+ "frontmatter_required": {
+ "global": ["date", "description", "tags"],
+ "work-note": ["date", "status", "quarter"],
+ "incident": ["date", "status", "quarter", "ticket", "severity", "role"],
+ "person": ["date", "title"],
+ "team": ["date"],
+ "1-1": ["date", "quarter"]
+ }
+}