A GitHub solutions engineer describes an evidence-first way to modernize legacy applications: inventory what actually runs, apply the least disruptive treatment per component, and package the procedure as a Copilot agent skill.
Key points
- An evidence inventory covers manifests, lockfiles, entry points, verified build and test commands, runtime pins and external contracts.
- Label findings as documented, inferred or unverified, and resolve contradictions such as two files naming different Java versions.
- Treat components one at a time: keep, upgrade, swap, wrap or rewrite, with removal decided as its own question.
- Safety levels L0 to L4 describe the strongest honest regression net; at L0 old code and docs are the spec.
- PiggyMetrics moved from Java 8 and Spring Boot 2.0.3 to Java 21 and Spring Boot 3.3 behind Testcontainers-based checks.
- The doc-and-modernize skill lives under .github/skills/ and needs only a SKILL.md with YAML frontmatter.
Why it matters
Most modernization efforts go wrong at the framing stage rather than the rewrite: a team picks a target framework before it knows whether the build runs or which tests pass. This method pushes the opposite habit. The safety levels are the part worth stealing, because they force an honest answer about how much regression protection exists before a production dependency moves.
Two cautions before adopting the skill. Its organization-specific parts — approved runtimes, who signs off on a production change — remain your responsibility, so the review costs real time. And the `gh skill` commands are still in public preview, so installation details may shift.
Real-world use
- A Spring Boot monolith whose integration tests fail only because a pinned embedded database can no longer be downloaded.
- A Node 0.4.7 browser game that needs two obsolete WebSocket stacks replaced.
- A large ERP suite whose SOAP contracts must keep working while a modern web path is introduced for some users.
This summary was generated by the agent from the original post on GitHub Blog: Copilot. The full text and all rights belong to its author and publisher. Go to original