migration-strategy
Skill1 starsChanged 4 months agoMITView on GitHub
Plans how a rewrite or migration preserves behavior through cutover and recovery. Use when a rewrite, migration, or broad preservation-sensitive transformation is about to be planned or implemented and its behavior, cutover, or recovery cannot be established by ordinary review and gates. Skip bounded changes whose diff, behavior, and recovery remain directly reviewable.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Siddharth00/agent-revamp-skillstheir own version, first seen Apr 4, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Siddharth00/agent-revamp-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- writing-specsSkill
- clarifying-intentSkill
- dispatching-parallel-agentsSkill
- handoffSkill
- mapping-the-codebaseSkill
- prototypingSkill
- using-git-worktreesSkill
- using-sdlc-skillsSkill
- viewing-artifactsSkill
- writing-skillsSkill
- yagniSkill
- finishing-a-branchSkill
- release-readinessSkill
- architecture-decisionsSkill
- coding-standardsSkill
- data-modelSkill
- reviewing-plansSkill
- system-architectureSkill
- ui-ux-designSkill
- writing-plansSkill
- executing-plansSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- complexity-auditSkill
- containing-an-incidentSkill
- debuggingSkill
- diagnosing-a-sessionSkill
- post-mortemSkill
- refactor-architectureSkill
- define-goalsSkill
- feasibility-checkSkill
- scopingSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- security-auditsSkill
- verification-before-completionSkill
- verification-strategySkill
- visual-ui-verificationSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Write the contract under which a trusted source becomes the intended target without losing behavior, data, control, or recoverability, and …
- Very specific: line 26
Write source facts and transition strategy here.
- Very specific: line 84
Write the contract to .sdlc-skills/designs/{{YYYY-MM-DD}}-{{topic}}-migration.md.
- Very specific: line 112
Ask through the harness's user-input action when one exists, else print this block.
- Very specific: line 113
Only an approved exact version, with predecessor-bound consumers reconciled, proceeds to writing-plans.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Migration Strategy
Write the contract under which a trusted source becomes the intended target without losing behavior, data, control, or recoverability, and get it approved before any target work starts.
When to use
- The transformation is too broad, partitioned, preservation-heavy, or operationally risky for ordinary feature planning and line-by-line review.
- Classify before implementing, on risk evidence rather than line count.
Answer four questions: can independent humans or gates inspect the result
(reviewability); must behavior, compatibility, data, or operations match
(preservation); how many owners, consumers, platforms, or modes change
(breadth); can data, security, concurrency, resources, cutover, or
recovery fail independently (failure surfaces)? If the ordinary route
cannot make those surfaces reviewable and recoverable, hold target work
until this contract is approved and
verification-strategy's entry gates have passed. Record uncertainty as pending classification; reclassify when inputs change. - Skip for a bounded change whose behavior and diff remain directly reviewable — bounded reviewable work stays on its ordinary route.
- Write source facts and transition strategy here. Send target shape to
system-architecture, proof toverification-strategy, and tasks towriting-plans.
Step 1: Establish the ground truth
Open assets/migration-contract.md before the steps below; each fills
the section it names.
- Fill
Normative control: source and target revisions, scope, one accountable owner or approval rule. Unsettled target → back tosystem-architecturefirst. - Fill
Source-fact inventoryfrom observable behavior and contracts, not from the source's structure: behavior, contracts, durable data, consumers, platforms and build modes, operational obligations, known deviations. - Classify every fact in
Preservation and deviation contractorUnknown contract: preserved invariant, intentional deviation, or unknown. - Each deviation: attach the approved requirement or decision that owns it. A newly discovered choice goes back to that owner, never settled here.
- Each unknown: blocked until proved irrelevant or approved with a compensating gate.
Step 2: Design the transition
- Fill
Transition and translation: incremental, cutover, or hybrid; translation rules; legal intermediate and mixed-version states; compatibility direction; behavior of unmapped or invalid input. - Fill
Representative trial slice: riskiest paths at useful scale over a stable coverage inventory; a disposition for every excluded cell; outcome, expansion decision, failure response. Commands and thresholds belong to the assurance matrix. - Fill
Partitions and ownership: a stable shard inventory and ownership rules. Attempts, owners, heartbeats, transfers, and results go to a ledger (append-only, outside the contract), never into the contract.
Step 3: Control what moves underneath you
- Fill
Source evolution during migration: freeze the source, or run one versioned change-intake contract and external queue. Every post-baseline change gets an identity and an exact terminal disposition. - Fill
Mutable live-state catch-upwherever data or work keeps moving: boundary binding through maximum permitted lag and the owning gate. Every post-snapshot write lands in exactly one terminal disposition. "Probably applied" is unreconciled and blocks cutover. - Fill
Convergence and failure queue: reconcile the external ledgers; every skip gets an approved disposition. Repeated failure class → pause the affected work, fix the shared rule, re-audit every impacted shard. - Fill
Pause, abort, cutover, and rollback,Retained artifacts, andDecommission and retained-source retirementbefore anyone needs them: pause and abort, cutover authority, rollback target, point of no return, recovery time, fate of the retained source. - Enter decommission only when retention has elapsed, live use is provably zero, its gate passed, and its targets, authority, and recovery are written. A partial, failed, or validation-failed action there blocks release and cleanup.
Step 4: Write, challenge, then decide
- Write the contract to
.sdlc-skills/designs/{{YYYY-MM-DD}}-{{topic}}-migration.md. Keep stable-ID delta, review, and execution state external. Compute its identity (per template) now; the challengers bind to this path and identity. - Fill
assets/migration-challenger.mdwith that path and identity before approval, then dispatch perdispatching-parallel-agentsStep 2 two read-only challengers bound to the contract'sIndependent challenge contract: one who knows the source and its domain, one who owns operations and data. They challenge fact completeness, mappings and mixed states, intake path and partitions, trial slice and recovery plan. - Record an accountable skip for any role left out. Bind each challenge to an
exact attempt with a deadline. A required role blocks approval until its
current report on this contract identity reads
clear. Present the contract:
Migration contract {{path}} — {{strategy}} Preserves: {{invariants}}. Trial: {{slice}}. Pause/abort/rollback: {{rules}}. Retirement: {{plan}}. 1. Approve this exact version for planning 2. Request changes 3. Reject the strategy 4. Cancel Recommendation: {{option}} — {{one sentence}}.Ask through the harness's user-input action when one exists, else print this block; end the turn;
clarifying-intentowns what closes it.- Only an approved exact version, with predecessor-bound consumers
reconciled, proceeds to
writing-plans.
Gotchas
- Code review judges an exact candidate against an approved contract. Before approval neither exists, so a challenge routed to review has nothing to bind to and returns no verdict.
- The trial slice's coverage inventory (Step 2) is only as stable as the source is frozen or intake-controlled (Step 3) — a new consumer, platform, or path that lands mid-migration silently turns an already-dispositioned cell into an unaudited one, so “every excluded cell has a disposition” can be true at the trial and false by cutover without either step's owner noticing.
- “Live use is provably zero” (Step 3) is usually checked against recent traffic, which a periodic consumer — a monthly batch job, an annual report — can pass while it is simply between runs. Decommissioning on that reading retires a source a consumer from Step 1's inventory is still going to call.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

