From capture-plan
Migrate vault date directory layout to match the configured scheme. Use when changing date_scheme in capture-plan.toml and existing vault directories use a different layout.
How this skill is triggered — by the user, by Claude, or both
Slash command
/capture-plan:migrate-layoutThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Migrate existing vault plan directories and journal files from one date directory scheme to another.
Migrate existing vault plan directories and journal files from one date directory scheme to another.
After changing date_scheme in the [plan] or [journal] section of capture-plan.toml. The capture-plan hook will log a warning if it detects a layout mismatch.
Run the migration script in dry-run mode from the plugin root:
bun hooks/migrate-layout.ts --dry-run
Show the full output to the user. This lists every directory/file that would be moved, with source and target paths.
Ask the user to confirm before proceeding. Show the count of items to be moved. If no moves are needed, report that the vault is already consistent and stop.
Run without --dry-run:
bun hooks/migrate-layout.ts
This will:
--dry-run — Show what would be moved without making changes--plan-only — Only migrate plan directories--journal-only — Only migrate journal filesIf the script reports "Cannot resolve vault path", the user needs to check their capture-plan.toml config and ensure the Obsidian CLI is installed and the vault name is correct.
npx claudepluginhub kriswill/capture-plan --plugin capture-planMigrates an existing Obsidian vault to the obsidian-master-kit structure without destroying current layout. Detects vault state, backs up automatically, clusters notes via HDBSCAN embeddings, proposes adaptive folder-to-area mapping, and executes migration in human-approved batches with rollback.
Runs 5-phase Obsidian vault defragmentation: inbox hygiene, area completeness, project archival, MOC refresh, tag consistency, structure evolution; generates report.
Upgrades wiki-curator vault schema_version to target via idempotent bash migration scripts. Creates backups, logs changes, verifies with audit. Use for 'migrate wiki' or schema mismatch.