r/coolgithubprojects • u/rheme18 • 1d ago
I made an Agent Skill for safer legacy migrations. Codex wrote six characterization tests, then stopped before replacing the old code.
One migration failure I keep seeing with coding agents: “move this to TypeScript” turns into a broad rewrite before anyone has captured what the old code actually does.
I made a small open Agent Skill that pushes the work into slices: map static dependencies, write characterization tests against the legacy behavior, add the new implementation beside it, then cut over only after the checks pass. It also includes a migration-plan template and rollback steps.
I tried it on a deliberately awkward JavaScript cart module. Codex produced six Node tests for coercion, rounding, coupon/shipping rules, mutation, callbacks, and loose ID matching. All six passed against the original file. It stopped there because no TypeScript implementation existed yet, which is the right point to pause before claiming parity.
This is an early, small project. The dependency map is static and will miss dynamic imports; I have not validated every agent's installer yet. The repo and sample are here:
https://github.com/rheme18/legacy-strangler
If you've used a coding agent on a real migration, what was the first piece of old behavior you found yourself adding a test for?