modernize-map

modernize-map is a command for Claude Code from thevibeworks/claude-code-docs. It costs 20 tokens per session (2,721 once invoked), scanned A, a copy of modernize-map, MIT.

A command that analyzes a legacy codebase and its deployment configuration to map dependencies, call paths, data movement, batch flows, and entry points as navigable diagrams.

In plain words
What is it for?
It helps engineers trace module calls, connect code to storage, follow data lineage and batch processing, and understand where execution begins.
Why use it?
It reveals how system components connect, including links hidden in routers, dispatchers, configuration, and deployment files.

Command for Claude Code

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 It helps engineers trace module calls, connect code to storage, follow data lineage and batch processing, and understand where execution begins.

Compare 6 commands from other repositories ↓
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 thevibeworks/claude-code-docs
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/thevibeworks/claude-code-docs/modernize-map/github.svg)](https://agentmods.dev/commands/thevibeworks/claude-code-docs/modernize-map)
Your own site
<a href="https://agentmods.dev/commands/thevibeworks/claude-code-docs/modernize-map"><img src="https://agentmods.dev/badge/commands/thevibeworks/claude-code-docs/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/thevibeworks/claude-code-docs/modernize-map"><img src="https://agentmods.dev/badge/commands/thevibeworks/claude-code-docs/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 100% copy Near-identical to another mod 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

This is a copy

100% identical to modernize-map — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

content/github/claude-plugins-official/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. 2mo 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 thevibeworks/claude-code-docs (183 stars, last pushed today), licensed MIT. 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. It is 100% identical to modernize-map, differing in 0 lines, and is treated as a copy.

Related

modernize-map compared with commands from other repositories

modernize-map next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modernize-mapthevibeworks/claude-code-docsCommand183todayMITA20Claude Code
reconciledork-labs/dorkosCommand11todayMITA10Claude Code
reviewdork-labs/dorkosCommand11todayMITA21Claude Code
auditdork-labs/dorkosCommand11todayMITA30Claude Code
createdork-labs/dorkosCommand11todayMITA6Claude Code
from-specdork-labs/dorkosCommand11todayMITA8Claude Code
curatedork-labs/dorkosCommand11todayMITA21Claude Code