GitHub Copilot adds doc-and-modernize agent skill for evidence‑first modernization
GitHub Copilot releases a public doc-and-modernize agent skill that encodes an evidence checklist and decision rules, automates an evidence‑first modernization workflow, and introduces an L4 safety gate for strongest regression protection.
GitHub Copilot announced a new public agent skill named doc-and-modernize. The skill encodes an evidence checklist and decision rules and runs an evidence‑first modernization workflow. It also defines safety levels including an L4 gate for regression protection.
Agent skills are folders of instructions, scripts, and resources that Copilot can load when a task matches their purpose. The doc-and-modernize skill lives in a repository under .github/skills/doc-and-modernize/ and includes files such as SKILL.md, a references/ directory, and a scripts/ directory.
The author encoded the evidence checklist and decision rules into the public doc-and-modernize skill. The skill then automates the evidence‑first modernization workflow, guiding inventory building, treatment selection, and safety level assessment.
Four public applications were used to demonstrate the method: a Node.js game, a Java ERP system, PiggyMetrics, and ADempiere. In the PiggyMetrics case the modernization upgraded Java 8 to Java 21, Spring Boot 2.0.3 to 3.3, and replaced Zuul, Hystrix, and the old OAuth library with newer equivalents. The ADempiere modernization moved the runtime to JDK 21, kept SOAP contracts, replaced XFire with CXF and Jakarta, and generated 30 merged pull requests and 102,587.72 reconstructed Copilot credits.
Safety levels derived from the skill include an L4 gate that offers the strongest regression protection. A time‑boxed feasibility check runs a component, captures its behavior, and decides whether to capture‑then‑upgrade or build a modern slice first. The skill preserves architectural judgment by keeping decision‑making with system owners while automating evidence collection.