Point Claude at a legacy codebase and get an understanding of it, a plan you approve, modernized code and proof that behavior matches. Works with any language and any move: version upgrade, rewrite or rebuild. Start with /code-modernization:modernize.
O que ela faz
Onde Code Modernization roda e o que acrescenta, segundo a documentação
modernize-assess inventories complexity, debt and security
modernize-map builds an interactive dependency and data-flow map
modernize-extract-rules writes business rules as Given/When/Then cards with file:line citations
modernize-uplift, transform and reimagine rebuild the code
modernize-verify re-runs tests and compares old and new outputs, giving PROVEN / PARTLY PROVEN / NOT PROVEN
modernize-harden scans the legacy system and prepares a reviewed patch
Quando usar
Boa adequação
Moving to a newer version of the same stack (e.g. Java 8 to 17)
Rewriting a legacy module in a new technology with behavior proof
Understanding an unfamiliar legacy system before deciding
Não indicado para
Rehost or Replace moves, which change no code (analysis only helps)
Running on a whole large estate at once; the README advises a pilot first
Como instalar o Code Modernization
Você precisa de: Claude Code; An engineer who knows how the system is built and run for the first questions
Run Claude Code
Run /plugin install code-modernization@claude-plugins-official
Open a folder for the work and run /code-modernization:modernize
Or run /code-modernization:modernize-preflight --source
Follow the 'next step' line each command prints
Permissões e segurança
A que ela tem acesso
Writes only to analysis// and modernized/ (build output where your build normally writes)
Does not edit legacy source
Links source via legacy/ without copying
Notas de segurança dos mantenedores
Source is checked for being untouched by file times
Security patch is for you to apply yourself
Revise a fonte antes de conceder ao agente acesso a credenciais ou sistemas de produção. Documentamos o que os mantenedores informam; não auditamos o código.
Limitações
Some steps start many agents, so real usage on large systems
Same command can give different counts on a second run
If the old system cannot run, best verdict is PARTLY PROVEN
Ferramenta de programação agêntica da Anthropic que lê sua base de código, edita arquivos e executa comandos pelo terminal, por IDEs, pelo app desktop ou pelo navegador.
O plano gratuito termina em: Não há plano gratuito: o Claude Code está incluído nas assinaturas pagas do Claude (Pro, Max, Team, Enterpris…
How does Code Modernization prove the new code behaves like the old?
modernize-verify re-runs tests from clean, runs old and new on the same inputs with a script comparison, invents new inputs and uses canary checks. fonte
Where do I start with the code-modernization plugin?
Run /code-modernization:modernize; it asks what you want, writes INTENT.md and gives the first command. fonte
Does code-modernization edit my legacy source code?
No. It writes only to analysis// and modernized/. fonte
Which modernization types does code-modernization support?
Uplift (same tech, newer version), transform (new tech module by module) and reimagine (new architecture). fonte