reorganizelisted
Install: claude install-skill onebrain-ai/onebrain
# Reorganize Vault
This skill handles two scenarios:
- **Legacy migration** (old 5-folder → new 8-folder structure): adds `02-areas/`, `04-resources/`, `05-agent/`, renumbers archive/logs. Run this if your vault was set up before the 8-folder layout.
- **Subfolder migration** (original purpose, unchanged): moves flat notes into kebab-case subfolders within their existing folders.
---
## Before You Begin
**Check vault version:** Read `onebrain.yml`. If the `folders.areas` key is absent, this vault uses the old structure and needs full migration : run the Full Migration section first. If `folders.areas` is present, skip to the Subfolder Migration section.
**Important:** Obsidian wikilinks (`[[Note Name]]`) resolve by filename regardless of path : moving files does NOT break any existing links in your vault.
---
## Full Migration (5-folder → 8-folder)
Only run if `onebrain.yml` is missing `folders.areas`.
1. Create new folders: `02-areas/`, `04-resources/`, `05-agent/memory/`
2. Rename `03-archive/` → `06-archive/`: move all contents preserving `YYYY/MM/` structure
3. Rename `04-logs/` → `07-logs/`: move all contents preserving `YYYY/MM/` structure
4. Classify existing `02-knowledge/` notes:
- If tags include `research`, `summary`, or `reference` in frontmatter → move to `04-resources/[same subfolder]`
- If frontmatter has a `source:` field matching `/research`, `/summarize`, or `/reading-notes` → move to `04-resources/[same subfolder]`
- Otherwise → keep in `