flow-migrate
Skill1 starsChanged 47 days agoMITView on GitHub
Repository-wide code transformation with a full site inventory. Use for codemods, replacing a deprecated API, or renames touching many files. Hands off to `flow-review` or `flow-orchestrate`.
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- flow-a11ySkill
- flow-adversarial-reviewSkill
- flow-animateSkill
- flow-apiSkill
- flow-benchmarkSkill
- flow-brainstormSkill
- flow-commitSkill
- flow-data-migrateSkill
- flow-depsSkill
- flow-designSkill
- flow-diagnoseSkill
- flow-docsSkill
- flow-git-fixSkill
- flow-handoffSkill
- flow-observeSkill
- flow-onboardSkill
- flow-orchestrateSkill
- flow-planSkill
- flow-pr-fixSkill
- flow-prototypeSkill
- flow-prune-agent-setupSkill
- flow-redesignSkill
- flow-refactorSkill
- flow-releaseSkill
- flow-repo-briefSkill
- flow-reviewSkill
- flow-shipSkill
- flow-simplifySkill
- flow-specializeSkill
- flow-stylesSkill
- flow-testSkill
- flow-triageSkill
- flow-uiSkill
- flow-verifySkill
- flow-workSkill
- flow-write-skillSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Read the target contract, supported versions, consumers and repository gates.
- Very specific: line 29
Run project-aware checks with the real configuration, not a standalone compiler call that ignores tsconfig or equivalent.
- Distinctive: line 32
Search for residual old patterns and reconcile every site: migrated, intentionally retained, not applicable, or blocked with a reason.
- Very specific: line 48
Use flow-review for the completed diff or flow-orchestrate for further dependent migration phases.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Migrate
Prove one canonical transformation, then account for every affected site. The migration is complete when its inventory reconciles, including intentional exceptions.
Process
- Read the target contract, supported versions, consumers and repository gates. Record the baseline and preserve dirty work. For broad changes use an isolated branch or worktree started from the correct revision, carrying any required uncommitted inputs.
- Enumerate actual sites and variants before editing. Separate source from generated output, dynamic/config uses and external consumers. Record the denominator so progress means more than "many files changed".
- Implement one canonical example; verify its behavior, failure path and callers. Note variants that cannot safely share the rewrite.
- For mechanical repetition, prefer a pinned parser or codemod when syntax demands it; use a narrow text transform only when its preconditions make it reliable. Preview the diff and check idempotency when reruns are expected.
- Apply in bounded groups. Parallel workers need disjoint file ownership and separate worktrees when available and authorized; shared files and lockfiles need serialized writes. Each worker returns per site outcomes and evidence before integration.
- Run project-aware checks with the real configuration, not a standalone compiler call that ignores tsconfig or equivalent. Verify integrated interfaces and any expand/migrate/contract compatibility stages.
- Search for residual old patterns and reconcile every site: migrated, intentionally retained, not applicable, or blocked with a reason. Remove old support only when consumers allow it.
Anti-patterns
- A global replace before validating a representative case and its variants.
- Editing generated files instead of generators, or missing dynamic consumers.
- Declaring a sweep done without a denominator and residual search.
- Merging unverified parallel changes and assuming isolated green tests cover integration.
Done when
- The inventory accounts for every site and exception.
- The canonical transformation and integrated result meet the compatibility contract.
- Required checks and blocked consumers are recorded at the current revision.
Use flow-review for the completed diff or flow-orchestrate for further dependent migration phases.
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.

