From agent-workflows
Spawns N parallel agents in isolated worktrees to prototype different migration strategies for old-to-new system transitions, then compares them on rollback safety, data integrity, downtime, and coordination cost.
npx claudepluginhub sjarmak/agent-workflowsThis skill uses the workspace's default tool permissions.
Parallel Strategy for System Transitions. Spawns N independent agents in isolated worktrees, each implementing a DIFFERENT migration strategy for the same old-system-to-new-system transition. The path is the variable, not the destination — all agents implement the same end state but via different transition paths. Each agent prototypes the critical path (the riskiest step) of their strategy, no...
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Parallel Strategy for System Transitions. Spawns N independent agents in isolated worktrees, each implementing a DIFFERENT migration strategy for the same old-system-to-new-system transition. The path is the variable, not the destination — all agents implement the same end state but via different transition paths. Each agent prototypes the critical path (the riskiest step) of their strategy, not the full migration. A lead agent then synthesizes all strategies into a comparison across rollback safety, data integrity, downtime, and coordination cost.
$ARGUMENTS — format: [N] [path/to/migration_plan.md or inline description of old → new] where N is optional (default: 4, min 2, max 6)
Extract:
If the migration input is missing or unclear, ask the user to clarify. At minimum you need: what is the old system, what is the new system, and what direction the migration goes.
If a file path is given: read it and extract the migration context.
If inline: parse the description.
Prepare a migration brief that includes:
Present the migration brief to the user and confirm before proceeding. Adjust if the user gives feedback.
Launch all N agents in parallel using the Agent tool. Each agent gets the same migration brief and a unique migration strategy drawn from this pool (assign strategies 1 through N):
Each agent MUST:
isolation: "worktree" — each gets its own copy of the reposubagent_type: "general-purpose"MIGRATION_NOTES.md in the repo root documenting:
Agent prompt template (customize the strategy per agent):
You are a migration strategy agent. You prototype the critical path of a specific migration strategy.
## Migration Brief
{migration_brief}
## Your Strategy: {strategy_name}
{strategy_description}
## Critical Path
{critical_path_description}
## Instructions
1. Read the relevant existing code to understand the current system
2. Prototype ONLY the critical path of your strategy — the single riskiest step
3. Create/modify actual files to make the critical path concrete
4. Focus on proving feasibility and exposing risks, not on polish
5. Write MIGRATION_NOTES.md in the repo root with:
- Strategy: {strategy_name}
- Critical path: what it is and why it is the riskiest step
- What was prototyped: the specific implementation
- Rollback plan: how to undo this step if it goes wrong
- Data integrity: how data consistency is maintained during this step
- Estimated downtime: for this step, and for the full strategy
- Coordination requirements: teams, people, systems involved
- Assumptions: what you assumed that should be verified
- Confidence: [1-5] with rationale
6. Stage and commit all changes with message: "migrate: {strategy_name} — critical path prototype"
Do NOT:
- Implement the full migration — only the critical path
- Over-engineer — this is a prototype to expose risk, not production code
- Ignore rollback — every step must be reversible
- Assume zero-downtime unless the migration brief explicitly allows it
- Gloss over data integrity — be explicit about how data stays consistent
After ALL agents return, for each strategy:
MIGRATION_NOTES.md from each worktree/branchgit diff --stat from base) to understand scopeProduce a unified analysis:
| Dimension | Strategy A | Strategy B | Strategy C | Strategy D |
|---|---|---|---|---|
| Critical path prototyped | ... | ... | ... | ... |
| Rollback safety | [Safe / Risky / Dangerous] | ... | ... | ... |
| Data integrity risk | [Low / Medium / High] | ... | ... | ... |
| Estimated downtime | ... | ... | ... | ... |
| Team coordination cost | [Low / Medium / High] | ... | ... | ... |
| Implementation complexity | [Low / Medium / High] | ... | ... | ... |
| Time to complete full migration | ... | ... | ... | ... |
| Confidence score | [1-5] | ... | ... | ... |
| Files changed | ... | ... | ... | ... |
For each strategy, rate the following risks on a [Low / Medium / High / Critical] scale:
For each major trade-off, articulate where each strategy falls:
Where did multiple strategies face the same challenge? These are inherent migration risks regardless of strategy. For each:
Based on the comparison:
Save the full analysis to migrate_{slugified_topic}.md in the working directory.
Present the comparison table, risk heat map, and recommended strategy to the user. Then suggest:
/stress-test against the recommended approach to find edge cases/scaffold to plan the implementation sequence for the chosen strategy/premortem to explore failure modes specific to the chosen strategyRemind the user: all worktrees are preserved for comparison. They can inspect any strategy's prototype directly.
isolation: "worktree". Migration prototypes must not interfere with each other or the main branch.Sits after architecture decision and before implementation:
/converge or architecture decision -> /migrate (compare transition strategies) -> /stress-test (validate chosen strategy) -> /scaffold (plan build order)