modernize-map

modernize-map is a command for Claude Code from anthropics/claude-plugins-official. It costs 20 tokens per session (2,721 once invoked), scanned A, original, Apache-2.0.

A command that maps how an old software system is connected. It traces calls between programs, data movement, storage, batch jobs, deployment settings, and other relationships, then renders the results as diagrams.

In plain words
What is it for?
Use it to build call graphs, data-lineage maps, batch-flow views, and navigable diagrams before changing a legacy system.
Why use it?
It exposes hidden dependencies and entry points that are easy to miss when reading files one at a time.

Command for Claude Code ✓ vendor

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the code-modernization plugin — 13 commands, 8 agents shipped together

Good fit Use it to build call graphs, data-lineage maps, batch-flow views, and navigable diagrams before changing a legacy system.

Compare 6 commands from other repositories ↓
About the project

Claude Code Plugins Directory is a marketplace containing plugins for Claude Code, including tools, commands, skills, agents, hooks, and model context servers. Claude Code users browse it to install Anthropic-maintained or approved third-party extensions.

anthropics/claude-plugins-official · 48,794 stars · on GitHub · code.claude.com

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add anthropics/claude-plugins-official
Claude Code
/plugin install code-modernization

Made for: Claude Code.

Or install code-modernization, the plugin that ships this one along with the rest of its 13 commands, 8 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for modernize-map

README.md
[![agentmods](https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-map/github.svg)](https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-map)
Your own site
<a href="https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-map"><img src="https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-map/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for modernize-map

Your own site · 80×15
<a href="https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-map"><img src="https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-map.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,721 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.02721
Opus 5.5 $0.00008 $0.01088
Sonnet 5.5 $0.00004 $0.00544
Haiku 4.5 $0.00002 $0.00272

Measured 2mo ago against content hash f5c3225ac228, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

modernize-map scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

plugins/code-modernization/commands/modernize-map.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build a dependency and topology map of the system and render it as an interactive page. The assessment found the domains; this goes one level down: how do the pieces connect? It is the map an engineer needs before touching anything.

The code is legacy/$system, often a symlink to where it really lives: say where it points (readlink legacy/$system) in one line before you start. If legacy/$system does not exist, stop and say so: nothing can run without the code, so the fix is /code-modernization:modernize $system --source <path to the code>. Run every subagent in the foreground and wait for its result: never end your turn while one is still running.

Start from what already exists

Do not reinvent a dependency graph the customer or the ecosystem already has:

  • --graph <file> — if $ARGUMENTS names an existing dependency export (a compiler index, an MSBuild or Roslyn graph, an NDepend or jdeps export, a call graph in JSON, CSV, DOT or GraphML), read it and map its nodes and edges into topology.json instead of writing a parsing script. Spot-check about ten edges against the source, say what the file did not cover, and still add what graphs omit: entry points from deployment config, data stores, business flows.
  • The stack's own tooling — if it is installed, run it on legacy/$system and read its machine-readable output (JSON, DOT, XML), never pretty-printed text: jdeps or the Maven/Gradle dependency reports for Java, the project graph for .NET, madge or dependency-cruiser for JavaScript, pydeps for Python, go list -deps, cargo metadata. Use it for the module and import graph; your script adds the config-driven edges, entry points and data joins tools miss.
  • Otherwise, write the script below.

Big estates (more than about 2,000 source files or 500k lines) are mapped in chunks, not in one pass: one domain or top-level directory at a time, each writing analysis/$system/map/<chunk>.json (its modules and the edges it originates). A rerun skips chunks whose file exists, so an interrupted map resumes. When all exist, merge them into topology.json; an edge into another chunk resolves by id, and an unresolved one becomes an observation. Say which chunks ran and which are missing.

Read the full file on GitHub · 192 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +7 lines · +1 tokens per session f5c3225ac228
  2. 3mo ago First seen · 185 lines · 19 tokens per session scan A aa85a1f441cc

Subscribe to this mod's changes

modernize-map is a command published in the GitHub repository anthropics/claude-plugins-official (48,794 stars, last pushed today), licensed Apache-2.0. It adds 20 tokens to every session and 2,721 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

modernize-map compared with commands from other repositories

modernize-map next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modernize-mapanthropics/claude-plugins-officialCommand49ktodayApache-2.0A20Claude Code
constraintsvinvcn/addyosmani-agent-skills-zhCommand591mo agoMITA20Claude Code
releasekomunite/kalfaCommand2467mo agoMITA13Claude Code
rclone_config_dumpchaunsin/agent-skillsCommand211d agoApache-2.0A7Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code