migrate-sessions

Installation
SKILL.md

Migrate Sessions

Language

Match user's language: Respond in the same language the user uses.

Overview

When a project directory is moved or renamed, Claude Code loses the link to its sessions and memory because ~/.claude/projects/ uses path-encoded directory names. This skill remaps that data to the new path.

Supports: exact match, prefix/nested matching, dry-run, merge (when target already exists), batch operations, and optional directory move.

Workflow

Progress:

  • Step 1: Preflight — verify ~/.claude/projects/ exists
  • Step 2: Ask user for operation: scan / move / batch
  • Step 3: Dry-run — show plan, ask for confirmation
  • Step 4: Execute with -x flag after user confirms
Installs
1
First Seen
Apr 10, 2026