Home / Claude Code mods / Security / code-modernization

code-modernization

code-modernization is a Claude Code mod by anthropics that guided modernization for any legacy codebase: start with /modernize, get an assessment, an interactive map, the business rules mined from the code, and a plan you approve, then an upgrade,.

Updated 2026-10-17

What is code-modernization?

code-modernization is a Claude Code mod by anthropics that guided modernization for any legacy codebase: start with /modernize, get an assessment, an interactive map, the business rules mined from the code, and a plan you approve, then an upgrade,. It is listed under Security and has 41,932 GitHub stars.

TypeClaude code mod
Authoranthropics
Repositoryanthropics/claude-plugins-official
Popularity41,932 GitHub stars
CategorySecurity
SecurityReview before installing (72/100)
Rank#47 of 5,272 Claude Code mods; #25 in Security
LicenseApache-2.0
Last commit2026-10-17
Stars this week+4,241
Hooks8 events
Seesevery prompt, every tool call
Draws onPromptHint, AbovePrompt, Pane

Is code-modernization safe to install?

code-modernization scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; watches every prompt or event. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Doesn't read environment variablesPass
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.prompt.fillwrites the prompt box
$.prompt.submitdrives Claude
$.store.getkeeps its own state
$.store.setkeeps its own state
$.turn.abortdrives Claude
$.ui.blitdraws interface
$.ui.closedraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install code-modernization?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/anthropics/claude-plugins-official
    claude plugin validate ./claude-plugins-official/plugins/code-modernization
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add anthropics/claude-plugins-official && claude plugin install code-modernization@claude-plugins-official

Or ask Claude to set it up

Paste this into Claude Code and it installs code-modernization for you:

Install the "code-modernization" Claude Code mod from https://github.com/anthropics/claude-plugins-official/tree/main/plugins/code-modernization. Run claude plugin validate on it first and show me what it can access before you enable it.