Migrate

From ignromanov/llm-obsidian-wiki · View interactive version

Migrate is an AI agent skill from the GitHub repository ignromanov/llm-obsidian-wiki. This skill should be used when wiki-curator needs to upgrade a vault's schema_version to match the current plugin version. Triggers on "migrate wiki", "upgrade schema", "apply migration v0.X → v0.Y".

How to use this skill

Skill file

Migrate — Schema Upgrade

Purpose

Run schema migration scripts to upgrade vault from current schema_version to target. Idempotent. Backup-first.

Used by wiki-curator.

Trigger phrases

Inputs

Outputs

Workflow

  1. Read current schema_version from wiki.config.md:

```

current=$(lib_read_yaml_key "$VAULT_PATH/wiki.config.md" schema_version)

```

  1. Determine target version:
  1. Find migration chain:
  1. Run scripts in order, idempotent:

```

for migration in chain:

"$migration" --vault "$VAULT_PATH"

```

  1. Verify post-conditions: each migration script does its own verify; in addition, run audit skill at the end.
  1. Print summary with chain executed, pages affected, log location.

Quality gate

Anti-patterns

Scripts used

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.