Migration Planner
This skill creates a rollback-aware migration plan for existing sites. It is planning and validation-first, not a production mutation tool.
Operating Modes
url-map: map old URLs to new URLs and identify canonical decisions.
redirect-plan: plan 301/302 rules without applying them.
seo-surface: preserve titles, descriptions, headings, schema, sitemap, robots, llms.txt, and internal links.
launch-checklist: define pre-launch, launch, and post-launch verification.
rollback: prepare rollback, monitoring, and alert criteria.
Required Workflow
- Read references/migration-safety-contract.md.
- Start from
existing-site-analyzer evidence and rebuild-or-improve-advisor decision.
- Use assets/migration-plan.template.md.
- Build a URL/change map:
- old URL;
- new URL;
- status;
- redirect type;
- canonical rule;
- metadata/schema preservation note.
- Add sitemap, robots, schema, internal links, llms.txt, analytics, and webmaster verification checks.
- Mark production actions as
Planned until the user explicitly approves deploy, DNS, redirects, GSC/webmaster, or server changes.
Safety Rules
- Do not apply redirects, edit robots/sitemap in production, deploy, change DNS, or submit GSC/webmaster changes without explicit approval.
- Do not store private analytics exports, tokens, cookies, or verification codes in the plan.
- Do not mark migration checks
Ran unless the command or artifact exists.
- If high SEO risk remains, block launch handoff until rollback and monitoring are defined.
Handoff Shape
Migration mode:
Decision source:
URL map path:
Redirect plan:
SEO surface preservation:
Launch approvals needed:
Rollback plan:
Monitoring:
Next owner:
Checks:
Validation
When editing this skill, run:
python3 $CODEX_HOME/skills/.system/skill-creator/scripts/quick_validate.py $CODEX_HOME/skills/migration-planner
python3 $CODEX_HOME/skills/senior-skill-architect/scripts/lint_production_skill.py $CODEX_HOME/skills/migration-planner
python3 -m json.tool $CODEX_HOME/skills/migration-planner/evals/evals.json >/dev/null
1---2name: migration-planner3description: Plan safe website migrations when existing URLs, redirects, sitemap, robots, schema, canonical pages, metadata, analytics, webmaster tools, or launch monitoring may change. Use after existing-site analysis or rebuild decisions; never apply production redirects, DNS, deploy, or webmaster mutations without explicit approval.4---56# Migration Planner78This skill creates a rollback-aware migration plan for existing sites. It is planning and validation-first, not a production mutation tool.910## Operating Modes1112- `url-map`: map old URLs to new URLs and identify canonical decisions.13- `redirect-plan`: plan 301/302 rules without applying them.14- `seo-surface`: preserve titles, descriptions, headings, schema, sitemap, robots, llms.txt, and internal links.15- `launch-checklist`: define pre-launch, launch, and post-launch verification.16- `rollback`: prepare rollback, monitoring, and alert criteria.1718## Required Workflow19201. Read [references/migration-safety-contract.md](references/migration-safety-contract.md).212. Start from `existing-site-analyzer` evidence and `rebuild-or-improve-advisor` decision.223. Use [assets/migration-plan.template.md](assets/migration-plan.template.md).234. Build a URL/change map:24 - old URL;25 - new URL;26 - status;27 - redirect type;28 - canonical rule;29 - metadata/schema preservation note.305. Add sitemap, robots, schema, internal links, llms.txt, analytics, and webmaster verification checks.316. Mark production actions as `Planned` until the user explicitly approves deploy, DNS, redirects, GSC/webmaster, or server changes.3233## Safety Rules3435- Do not apply redirects, edit robots/sitemap in production, deploy, change DNS, or submit GSC/webmaster changes without explicit approval.36- Do not store private analytics exports, tokens, cookies, or verification codes in the plan.37- Do not mark migration checks `Ran` unless the command or artifact exists.38- If high SEO risk remains, block launch handoff until rollback and monitoring are defined.3940## Handoff Shape4142```text43Migration mode:44Decision source:45URL map path:46Redirect plan:47SEO surface preservation:48Launch approvals needed:49Rollback plan:50Monitoring:51Next owner:52Checks:53```5455## Validation5657When editing this skill, run:5859```bash60python3 $CODEX_HOME/skills/.system/skill-creator/scripts/quick_validate.py $CODEX_HOME/skills/migration-planner61python3 $CODEX_HOME/skills/senior-skill-architect/scripts/lint_production_skill.py $CODEX_HOME/skills/migration-planner62python3 -m json.tool $CODEX_HOME/skills/migration-planner/evals/evals.json >/dev/null63```