agentleFS
zzgiabaozzbuizzgiabaozzbui/athena-starter/skills/migrating-legacy-code/SKILL.md

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.

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
  1. Very specific:

    Roadmap: before the pilot, propose a draft Goal of kind nang_cap: the Certificate becomes its criteria (tieu_chi), and each partition made …

    line 16

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Modernization / large migration

HIGH risk or above (R-117): writing-plans → the user approves before any file is touched. Artifacts per R-092.

  1. Pick the kind, write it in intent.md: Uplift (version upgrade) · Transform (change stack) · Reimagine (rebuild).
  2. Code map: give researcher the job → research.md: dependencies, flows, business rules with path:line; the old code style per references/style-scan.md.
  3. 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 kind nang_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 no docs/du-an/lo-trinh.json yet → propose creating the roadmap (flow #35 of routing) in the same question. The user approves before anything is written; if it was already proposed in this session, do not ask again.
  4. 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).
  5. Each partition: freeze that partition's code, pass the CI gate, only then move to the next partition.
  6. Repeated defects: the same flag raised many times → fix the workflow / rules, not each spot.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.