migrating-legacy-code
Skill1 starsChanged 29 days agoMITView on GitHub
Workflow for large modernization / migration: upgrading a runtime or framework version, rewriting onto another stack, rebuilding an old system. Use when the user says "upgrade .NET", "rewrite in", "migrate the whole system", "modernize", or a task changes legacy code across many modules. Not for a new feature or a single bug fix.
In this repository17 other files it gives its agents.
- architectureSkill
- brainstormingSkill
- commit-pushSkill
- docs-standardsSkill
- domain-modelingSkill
- e2e-playwrightSkill
- executing-plansSkill
- grillingSkill
- prototypeSkill
- resolving-merge-conflictsSkill
- routingSkill
- security-testingSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Roadmap: before the pilot, propose a draft Goal of kind nang_cap: the Certificate becomes its criteria (tieu_chi), and each partition made …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Modernization / large migration
HIGH risk or above (R-117): writing-plans → the user approves before any file is touched. Artifacts per R-092.
- Pick the kind, write it in
intent.md: Uplift (version upgrade) · Transform (change stack) · Reimagine (rebuild). - Code map: give
researcherthe job →research.md: dependencies, flows, business rules withpath:line; the old code style perreferences/style-scan.md. - Certificate in
spec.md, written together with the reviewer: old tests green · characterization tests (R-130) · old/new results compared · security scan. Each condition is a runnable command; exit 0 means met. Roadmap: before the pilot, propose a draft Goal of kindnang_cap: the Certificate becomes its criteria (tieu_chi), and each partition made in steps 4-5 becomes a phase item (giai_doan) (docs-standards›references/roadmap.md). The project has nodocs/du-an/lo-trinh.jsonyet → propose creating the roadmap (flow #35 ofrouting) in the same question. The user approves before anything is written; if it was already proposed in this session, do not ask again. - Pilot: split into partitions and finish one small partition all the way through review; record tokens and rerun
counts in
review.md→ estimate the whole project's cost and pick the model by difficulty (R-007). - Each partition: freeze that partition's code, pass the CI gate, only then move to the next partition.
- Repeated defects: the same flag raised many times → fix the workflow / rules, not each spot.
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.

