Command Palette

Search for a command to run...

Назад к скиллам
скилл № 24561

modernize-assess

What am I dealing with? Inventory, complexity, debt, security and a recommended modernization pattern

БесплатноБез исполняемых скриптов
smartworldarafathот smartworldarafath★ 16 звёзд на GitHub

Установить modernize-assess в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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: "${ANTIGRAVITY_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_to_file 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.


Single-system mode

Assess legacy/$system so a VP of Engineering could take a fact-grounded brief into a budget meeting.

Step 1 — Inventory

Run scc legacy/$system and scc --by-file -s complexity legacy/$system | head -25 (the most complex files). Use scc's COCOMO figure only as a relative scale index and ignore its "Estimated Schedule Effort" and dollar lines: they project a human-team timeline and budget, which are invalid for agentic modernization.

Without scc, use cloc legacy/$system, then compute the index yourself (2.94 × KSLOC^1.10); without that, find + wc -l by extension and rank complexity by decision keywords (IF/EVALUATE/PERFORM for COBOL, if/for/while/case/catch for C-family). Say which tool you used.

Step 2 — Technology fingerprint

With file evidence: languages, frameworks and runtime versions; build system and manifest locations; data stores (schemas, copybooks, DDL, ORM configs); integration points (queues, APIs, batch interfaces, screen maps); test presence and rough coverage signal.

Step 3 — Deep analysis (three subagents, in parallel)

  1. legacy-analyst — "Build a structural map of legacy/$system: the 5–12 major functional domains (group optional subsystems under one umbrella), which files belong to each, and how they depend on each other (control flow and shared data). Return a markdown table and a Mermaid graph TD of the domains, clustered with subgraph, at most ~40 edges. Cite repo-relative paths. Flag dangling references."
  2. legacy-analyst — "Identify technical debt in legacy/$system: dead code, deprecated APIs, duplication, god objects, missing error handling, hardcoded config. Return the top 10 by remediation value, each with file:line. Mask any credential value per your secret-handling rules."
  3. security-auditor — "Scan legacy/$system for vulnerabilities: injection, auth weaknesses, hardcoded secrets, vulnerable dependencies, missing input validation. Return a CWE-tagg
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл modernize-assess?

What am I dealing with? Inventory, complexity, debt, security and a recommended modernization pattern

Как установить скилл modernize-assess?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл modernize-assess запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить modernize-assess с