agentleFS
ignromanovignromanov/llm-obsidian-wiki/skills/migrate/SKILL.md

migrate

Skill17 starsChanged 6 months agoMITView on GitHub

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".

39 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use a11y, incident and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CorentinGCSkill

    a11y

    Accessibilité web — rôles ARIA, navigation clavier, contraste, labels, focus management, semantic HTML. Appliqué automatiquement lors de la création de composants UI.

    Also in 3 projects that use this

  • pvnarpSkill

    incident

    Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.

    Also in 3 projects that use this

  • diego-tobalinaSkill

    logging

    Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.

    Also in 3 projects that use this

  • AnthropicSkill

    tech-debt

    Identify, categorize, and prioritize technical debt. Trigger with "tech debt", "technical debt audit", "what should we refactor", "code health", or when the user asks about code quality, refactoring priorities, or maintenance backlog.

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run schema migration scripts to upgrade vault from current schema_version to target.

    line 10
  2. Very specific:

    If --target provided, use it

    line 39
  3. Distinctive:

    If no chain exists, error

    line 45
  4. Distinctive:

    DO NOT skip the backup

    line 65
  5. Very specific:

    DO NOT manually edit schema_version field — only via migration scripts

    line 66
  6. Distinctive:

    DO NOT try to migrate non-linearly (skip versions)

    line 67
  7. Very specific:

    After: audit skill for verification

    line 74

“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  • "migrate wiki"
  • "upgrade schema to v0.4.0"
  • "apply migration"
  • "schema version mismatch"

Inputs

  • --target schema_version (default = latest plugin version)

Outputs

  • Vault upgraded with bumped schema_version
  • Migration log in wiki/_logs/migration-<chain>-<date>.md
  • Backup at <vault>.bak.v<old>/

Workflow

  1. Read current schema_version from wiki.config.md:
    current=$(lib_read_yaml_key "$VAULT_PATH/wiki.config.md" schema_version)
  2. Determine target version:
    • If --target provided, use it
    • Else use plugin version from ${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json
  3. Find migration chain:
    • Available scripts: scripts/migrations/v<X>-to-v<Y>/migrate.sh
    • Build chain from current → target (e.g., 0.1.0 → 0.2.0 → 0.3.0 → 0.4.0)
    • If no chain exists, error
  4. Run scripts in order, idempotent:
    for migration in chain:
      "$migration" --vault "$VAULT_PATH"
  5. Verify post-conditions: each migration script does its own verify; in addition, run audit skill at the end.
  6. Print summary with chain executed, pages affected, log location.

Quality gate

  • Each migration idempotent (re-run = no-op)
  • Backup exists at <vault>.bak.v<old>/
  • Post-migration audit reports 0 P0 violations introduced

Anti-patterns

  • DO NOT skip the backup
  • DO NOT manually edit schema_version field — only via migration scripts
  • DO NOT try to migrate non-linearly (skip versions)

Scripts used

  • ${CLAUDE_PLUGIN_ROOT}/scripts/migrations/v0.1.0-to-v0.2.0.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/migrations/v0.2.0-to-v0.3.0.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/migrations/v0.3.0-to-v0.4.0/migrate.sh
  • After: audit skill for verification

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.