From claude-dev-kit
Plans and executes codebase migrations (e.g., Django 5.0, Python 3.12) with automatic checkpoint validation, GitHub issue + PR creation, and worktree support.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-dev-kit:migrateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- AUTO-GENERATED by scripts/gen_skills.py — DO NOT EDIT. Edit SKILL.md.tmpl instead. -->
Run silently at the start:
python3 scripts/kit_update_check.py 2>/dev/null
If exit code is 1 (update available), show the output to the user once. Do not block the workflow.
Run these checks silently at the start. Use results to adapt behavior:
[ -f issues.md ] — if true, this project uses the sprint system. Respect issue numbering and STATUS.md.[ -f docs/sprint_state.md ] — if true and Status shows running, a sprint is active. Be aware of parallel work in worktrees.[ -f docs/prd_digest.md ] — if true, read it for quick project context before starting.gh auth status before any GitHub operation.At the start of this skill, check if contributor mode is enabled:
python3 scripts/kit_config.py get contributor_mode
If the result is true:
python3 scripts/contributor_report.py --skill <name> --step "<step>" --rating <N> --notes "<friction or suggestion>"
Every phase in this skill that has a CHECKPOINT block must be verified. Run the verification command after completing each phase. If the exit code is not 0, STOP immediately and report the failure. Do NOT proceed to the next phase.
Slug convention: After creating the worktree, store the branch slug (e.g., migrate/django-5.0) for use in checkpoint commands.
$ARGUMENTS is empty or blank, ask the user: "Please specify the migration target (e.g., 'Django 5.0', 'Python 3.12', 'PostgreSQL 16')."Steps:
gh authenticated (gh auth status).WT="$(bash scripts/wt_setup.sh migrate/<slug>)"
wt_setup.sh creates the worktree and writes the freeze marker inside
.claude-kit/freeze-dir.txt atomically. All subsequent file operations
happen inside $WT/.CHECKPOINT — MANDATORY — NEVER SKIP Run:
bash scripts/checkpoint.sh --skill migrate --phase worktree --issue "$SLUG"If exit code ≠ 0: STOP immediately and report the failure. Do NOT proceed.
$WT/, running tests after each step.CHECKPOINT — MANDATORY — NEVER SKIP Run:
bash scripts/checkpoint.sh --skill migrate --phase test --issue "$SLUG"If exit code ≠ 0: STOP immediately and report the failure. Do NOT proceed.
$WT/.gh issue create --title "migrate: <target description>" --body "<body>"$WT/).CHECKPOINT — MANDATORY — NEVER SKIP Run:
bash scripts/checkpoint.sh --skill migrate --phase push --issue "$SLUG"If exit code ≠ 0: STOP immediately and report the failure. Do NOT proceed.
gh pr create --title "migrate: <target description>" --body "Closes #<issue_number>\n\n<details>"/review and /ship.gh auth status fails: stop and instruct the user to run gh auth login.bash scripts/wt_cleanup.sh <branch> for safe worktree removal —
the wrapper cd's to main root and removes the worktree in a single subshell.bash scripts/wt_cleanup.sh <branch>git push origin --delete <branch> (remote cleanup, if pushed)gh pr close <pr_number> then clean up worktree and branch as above.IMPORTANT: Never commit issues.md, STATUS.md, or CHANGELOG.md to the feature branch.
These are registry files managed only on main. Always use bash scripts/registry_edit.sh <file> -- bash -c '<update command>' — the wrapper resolves the main repo root internally.
npx claudepluginhub pillip/claude-dev-kit --plugin claude-dev-kitGuides framework and language migrations: version upgrades, breaking changes, dependency audits, codemods, rollbacks. For React 19, Next.js App Router, Python 3.12, Node 22, etc.
Autonomous migration planning and execution: analyzes a migration target (framework upgrade, API version bump, deprecation removal), maps blast radius, produces phased plan with compatibility layers, and optionally executes via build's refactor mode.
Plans and executes database, framework, and dependency migrations with breaking change analysis, phased rollout, and rollback procedures.