Developers can lower the risk of modernizing legacy applications by first gathering concrete evidence, then selecting the smallest viable change, and finally encoding the workflow in a GitHub Copilot agent skill.
Build evidence before choosing a target
The blog post recommends assembling a small inventory that lists manifests, lockfiles, entry points, deployment scripts, runtime pins, CI workflows, external contracts and end‑of‑life dependencies. Uncertainties are marked as documented, inferred or unverified, and any contradictions are resolved before recommendations are made.
Choose the least disruptive treatment that works
After reviewing the evidence with the owners, each component is evaluated. Options are considered in this order: keep, upgrade, swap, wrap, then rewrite. The choice must be backed by evidence—a known vulnerability, a failing dependency, or an unmet reliability target—rather than a vague notion that “the code is old.”
Decide what proof is possible
A time‑boxed feasibility check is run to see whether the component can be built and tested. If it runs, the “capture behavior, then upgrade” path is taken; if it does not, a “build a small modern slice first” path is used. The post mentions safety levels such as an L4 gate and notes durable comparison points like APIs, database effects and business workflows.
Example: PiggyMetrics
The author applied the method to PiggyMetrics, a Java 8 Spring Boot 2.0.3 application with several outdated libraries. A feasibility check uncovered nine errors, including a failed ApplicationContext load and an i386 binary that could not run on Apple Silicon. The evidence led to a focused plan: replace the embedded MongoDB with Testcontainers, establish a green baseline in GitHub Actions, upgrade to Java 21 and Spring Boot 3.3, and swap obsolete components (Zuul, Hystrix, the old OAuth stack) behind existing interfaces.
“One broken test dependency did not justify redesigning the application, and five passing tests established behavior I could check for unintended changes during modernization.” – the author
The approach shows how a systematic evidence inventory can prevent costly, unnecessary redesigns while keeping architectural judgment with the system’s owners.


