ai-migration-operating-model

Orchestrates code migrations through rulebooks, parity judges, and phase-gated agent workflows.

1|Updated May 28, 2026
One-click install
npx skills add https://github.com/dhanesh/agent-skills --skill ai-migration-operating-model-dhanesh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ai-migration-operating-model
Source: https://github.com/dhanesh/agent-skills/tree/main/ai-migration-operating-model
Command: npx skills add https://github.com/dhanesh/agent-skills --skill ai-migration-operating-model-dhanesh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve? Large AI-assisted code migrations fail when agents produce plausible-looking code without objective verification. This Skill turns a migration into a controlled operating model — a rulebook, work queues, reviewer prompts, and a mechanical parity judge — so behavioral equivalence with the old system is proven, not assumed. ## Core Features & Use Cases - Candidate Filter: Walks a go/no-go decision table (measurable pain, capturable behavior, bounded scope, cheap rollback) and recommends precursor work instead of migrating when the filter fails. - Judge-First Verification: Builds golden scenarios from the old system and wires them to a shipped parity differ (parity_diff.py) that normalizes JSON outputs, ignores noise keys, tolerates float drift, and must be proven to catch a seeded break. - Lintable Migration Control Pack: Authors eight artifacts (RULEBOOK.md, DEPENDENCY_MAP.md, GAP_INVENTORY.md, PORTABILITY_TEST_PLAN.md, parity_check.*, AGENT_WORK_QUEUE.md, REVIEWER_PROMPTS.md, PHASE_GATES.md) and lints them with control_pack_lint.py until PACK_RESULT: PASS. - Four Standalone Modes: Run the full workflow or invoke economics, judge, pack, or qualify independently. - Use Case: Porting a Python payments service to TypeScript — qualify the candidate, capture golden repayment-schedule scenarios, lint the control pack, pilot a disposable slice, then fan out implementer and reviewer agents under phase gates. ## Quick Start Ask the agent to run the ai-migration-operating-model skill to qualify and plan migrating your service from Python to TypeScript.

Frequently Asked Questions about ai-migration-operating-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run an AI-assisted code migration safely?▼

Run the migration as an operating model: qualify the candidate against a decision table, build a parity judge from golden scenarios first, then author a lintable control pack that implementer and reviewer agents execute against under phase gates.

How to verify behavioral parity when porting code to another language?▼

Capture golden scenarios from the old system as JSON outputs and diff them against the new system using parity_diff.py with --ignore for noise keys and --tolerance for float drift. Prove the judge catches a deliberately broken case before trusting any pass.

When should I not migrate a codebase with AI agents?▼

Avoid migrating when the current pain is not measurable, old-system behavior cannot be captured or replayed, no tests or golden scenarios can be built, scope cannot be bounded, or rollback is expensive. The candidate filter recommends precursor work like adding observability first.

What is a Migration Control Pack?▼

A Migration Control Pack is eight artifacts — RULEBOOK.md, DEPENDENCY_MAP.md, GAP_INVENTORY.md, PORTABILITY_TEST_PLAN.md, a parity_check script, AGENT_WORK_QUEUE.md, REVIEWER_PROMPTS.md, and PHASE_GATES.md — linted by control_pack_lint.py until it prints PACK_RESULT: PASS.

Does this skill execute the bulk migration itself?▼

No, it builds and verifies the migration machine — the judge, control pack, and pilot slice — then stops. Large-scale execution belongs to implementing sessions or loops built with the crafting-self-prompting-loops skill, which consume the pack.

What are the runtime requirements for the migration tooling?▼

The bundled tools require only python3 with the standard library and a POSIX-like shell. They run fully offline with no network access and no third-party package dependencies.