modernize-assess

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

A discovery and portfolio assessment for legacy systems, meaning older applications that may be difficult to change or maintain. It inventories systems, estimates complexity and relative size, and records technical debt.

In plain words
What is it for?
Use it to assess one legacy system or survey every immediate subdirectory in a portfolio. The results support sequencing and planning a multi-year modernization program.
Why use it?
Teams often need to compare several old systems before deciding what to modernize first. This produces either a detailed view of one system or a heat map across multiple systems.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

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 assess one legacy system or survey every immediate subdirectory in a portfolio. The results support sequencing and planning a multi-year modernization program.

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-assess

README.md
[![agentmods](https://agentmods.dev/badge/commands/thevibeworks/claude-code-docs/modernize-assess/github.svg)](https://agentmods.dev/commands/thevibeworks/claude-code-docs/modernize-assess)
Your own site
<a href="https://agentmods.dev/commands/thevibeworks/claude-code-docs/modernize-assess"><img src="https://agentmods.dev/badge/commands/thevibeworks/claude-code-docs/modernize-assess/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-assess

Your own site · 80×15
<a href="https://agentmods.dev/commands/thevibeworks/claude-code-docs/modernize-assess"><img src="https://agentmods.dev/badge/commands/thevibeworks/claude-code-docs/modernize-assess.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 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,194 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.00018 $0.02194
Opus 5.5 $0.00007 $0.00878
Sonnet 5.5 $0.00004 $0.00439
Haiku 4.5 $0.00002 $0.00219

Measured 19d ago against content hash 4274f473d158, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

modernize-assess 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 19d 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-assess — 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-assess.md · 159 lines

How it starts

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

Mode. If $ARGUMENTS starts with --portfolio, run Portfolio mode on the directory that follows. Otherwise run Single-system mode on $system, the first token. Flags go after it (<system> --show-secrets): a flag in first place would be read as the system name.

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.


Portfolio mode (--portfolio <parent-dir>)

Sweep every immediate subdirectory and produce a heat-map a steering committee can use to sequence a multi-year program.

If the Workflow tool is available (this command is your authorization), list the subdirectories first (ls -d <parent-dir>/*/ | xargs -n1 basename; the script has no filesystem access), tell the user the count (30 systems means 30 agents), then run one survey agent per system:

Call it by name (the plugin registers it). If the tool does not know the name, pass scriptPath: "${CLAUDE_PLUGIN_ROOT}/workflows/portfolio-assess.js" instead:

Workflow({
  name: "code-modernization:modernize-portfolio-assess",
  args: { parentDir: "<parent-dir>", systems: ["<sub1>", "<sub2>", ...] }
})

Each agent returns a metrics row and the workflow computes the COCOMO index in code, so every row uses the same formula. If the session dies mid-sweep, relaunch with resumeFromRunId and finished systems return from cache. Without the Workflow tool, gather the same row per system yourself.

Per system: SLOC and dominant language (cloc --csv, else scc, else find + wc -l), file count, complexity measured one way for every system (scc's per-file complexity summed, divided by KSLOC, and the most complex single file; without scc, count decision keywords the same way everywhere), dependency freshness (age or pinned-version count of the manifest), documentation coverage (source files whose opening comment describes the file, not just a license, and architecture docs present), and the COCOMO index 2.94 × KSLOC^1.10. The index is a relative size measure for ranking systems, never a timeline or a cost (it assumes human-team productivity): label the column "index", never print person-months, a date or a duration.

Write analysis/portfolio.html (dark #1e1e1e background, #d4d4d4 text, #cc785c accent, system-ui, CSS inline): one row per system, columns System · Lang · KSLOC · Files · Complexity per KSLOC · Most complex file · Dep Freshness · Doc Coverage % · Complexity index · Risk, index and Risk cells graded green to red, and a 2–3 sentence recommendation of which system goes first and why. Tell the user to open it, then stop.


Read the full file on GitHub · 159 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. 19d ago Changed · -74 lines 4274f473d158
  2. 1mo ago First seen · 233 lines · 18 tokens per session scan A 28bdeb5de2c9

Subscribe to this mod's changes

modernize-assess is a command published in the GitHub repository thevibeworks/claude-code-docs (150 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 2,194 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-assess, differing in 0 lines, and is treated as a copy.