Skip to content
migrate logo

Migrate -- Version Upgrade System

migrate

Migrate your Elle installation between versions. Handles any version-to-version upgrade path with sequential, idempotent steps. Use when updating Elle, when prompted by a version mismatch, or when the user says "migrate Elle" or "upgrade Elle".

SKILL.md

Full skill instructions

Migrate -- Version Upgrade System

This skill handles version-to-version upgrades using sequential, idempotent migration steps. Each version transition has a dedicated reference file containing Check/​Action/​Verify steps, making migrations safe to re-run on partial completions and easy to extend for future versions.

1. Version Detection

Current Installed Version

Primary method: Find the installed version directory.

ls ~/​.claude/​plugins/​cache/​ai-launchpad/​personal-assistant/

List directories, find the highest version number, and read its .claude-plugin/​plugin.json to get the version field.

Fallback fingerprinting (when plugin.json is not reliable):

SignalInferred Version
No ~/​.claude/​.context/ directoryNot installed -- tell user to run /​personal-assistant:setup and stop
UserPromptSubmit in plugin hooks, no ~/​.claude/​rules/​elle-core.mdv1.0.0
SessionStart in plugin hooks + elle-core.md exists, no ~/​.claude/​.context/​core/​improvements.mdv1.9.0
SessionStart + elle-core.md + improvements.md existsv1.10.0
Full v2 state (migrate skill exists in installed plugin)v2.0.0

Target Version

Read ${CLAUDE_PLUGIN_ROOT}/​.claude-plugin/​plugin.json to get the version of the plugin source being installed.

If current == target: report "Already current. Run /​evolve to check for platform upgrades." and stop.

2. Migration Chain

List available migration files from ${CLAUDE_SKILL_DIR}/​references/​migrations/. Each file is named vX.Y.Z-to-vA.B.C.md.

Parse filenames to build an ordered chain from current version to target version.

Example: if current is v1.10.0 and target is v2.1.0, chain is: v1.10.0 -> v2.0.0, v2.0.0 -> v2.1.0.

For each migration in the chain, read its ## Summary section and present the plan:

Migration path: v1.10.0 -> v2.0.0 -> v2.1.0

Step 1 (v1.10.0 -> v2.0.0):
- Replaces UserPromptSubmit hook with native rules delivery
- ~95% token savings

Step 2 (v2.0.0 -> v2.1.0):
- [summary from file]

Proceed?

Wait for user confirmation before continuing.

3. Backup

Create a timestamped backup before making any changes:

mkdir -p ~/​.claude/​.context-backups/ && cp -r ~/​.claude/​.context/ ~/​.claude/​.context-backups/​$(date +%Y%m%d-%H%M%S)/

Verify backup was created:

ls -la ~/​.claude/​.context-backups/

REQUIRED: DO NOT proceed if backup fails. This is a hard gate.

4. Execute Migration Chain

For each migration in the chain:

  1. Read the migration reference file from ${CLAUDE_SKILL_DIR}/​references/​migrations/
  2. For each step in the ## Steps section:
    • Run the Check command -- if it exits 0, the step is already done, skip it
    • Run the Action command
    • Run the Verify command -- if it fails, stop immediately and report the failure
  3. After each migration file completes, report: "Migration vX.Y.Z -> vA.B.C complete. N steps executed, M skipped (already done)."

If any step fails:

  • Stop immediately
  • Report which step failed and the error
  • Provide restore instructions: cp -r ~/​.claude/​.context-backups/[timestamp]/ ~/​.claude/​.context/

5. Verify and Report

After all migrations complete, verify the final state:

ls -la ~/​.claude/​rules/​elle-core.md
ls ~/​.claude/​.context/​core/

Present final report:

Migration Complete!

Path: vX.Y.Z -> ... -> vA.B.C
Backup: ~/​.claude/​.context-backups/[timestamp]/
Steps executed: N
Steps skipped (already done): M

Your data: 100% preserved. All personal context untouched.

If rules-affecting changes were made (rules/, elle-core.md, context files), suggest running /​sync-context.

6. Migration File Format

Each file at references/​migrations/​vX.Y.Z-to-vA.B.C.md follows this format:

# Migration: vX.Y.Z -> vA.B.C

## Summary
- [1-3 bullet points describing what this migration does]

## Breaking Changes
- [List any breaking changes, or "None"]

## Steps

### 1. [Step name]
**Check:** `[shell command -- if exits 0, skip this step]`
**Action:** `[shell command to execute]`
**Verify:** `[shell command -- must exit 0 to continue]`

Each step MUST have all three fields (Check, Action, Verify). The Check field makes steps idempotent -- safe to re-run on partially completed migrations.

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View