summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/README.md
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-23 19:03:15 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-24 17:49:55 -0700
commit2ce9d0dace1239bec65379ecd3834258574c9073 (patch)
treee5a42363810c752753e1e3a21b8c009d918673ad /plugins/code-modernization/README.md
parent7c4583e465e15becca5568aeaa1c0c733e4dd88c (diff)
code-modernization: describe each node on the topology map
After topology.json is built, map now writes one paragraph (55 to 90 words) per node into a description field: what the node does in business terms, then what it calls, reads, writes or is called by. Each writer gets only that node's source excerpt, header comment and connections from the map, is told every name and number must come from that data, and says so in one sentence when the data is thin. The session checks the paragraphs against those packets before merging them, and writers never write files. Writers run in parallel batches of about 8, and --no-describe skips the step. The viewer's sidebar shows the description under the size and language line with a muted caption, inserted as text rather than markup because it is derived from analyzed source. Nodes without a description, and topology.json files written before this change, render exactly as before.
Diffstat (limited to 'plugins/code-modernization/README.md')
-rw-r--r--plugins/code-modernization/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/code-modernization/README.md b/plugins/code-modernization/README.md
index 21c42657..6cf66ad5 100644
--- a/plugins/code-modernization/README.md
+++ b/plugins/code-modernization/README.md
@@ -54,7 +54,7 @@ Run in order, but each is standalone — stop, review, resume.
- **`/code-modernization:modernize-assess <system-dir>`** *(or `--portfolio <parent-dir>`)* — Inventory: languages, complexity, tech debt, security posture, and a COCOMO complexity index ([see note](#a-note-on-cocomo)). Produces `ASSESSMENT.md` + `ARCHITECTURE.mmd`. With `--portfolio`, sweeps every subdirectory and writes a sequencing heat-map (`portfolio.html`).
-- **`/code-modernization:modernize-map <system-dir>`** — Dependency and topology map: call graph, data lineage, entry points, and 2–4 business flows each traced for a persona (the claimant, the auditor). Produces `topology.json` and an **interactive zoomable `TOPOLOGY.html`** (circle-pack sized by LOC, edge toggles, search, and a persona-flow walkthrough), plus small `.mmd` diagrams for docs.
+- **`/code-modernization:modernize-map <system-dir> [--no-describe]`** — Dependency and topology map: call graph, data lineage, entry points, and 2–4 business flows each traced for a persona (the claimant, the auditor). Produces `topology.json` and an **interactive zoomable `TOPOLOGY.html`** (circle-pack sized by LOC, edge toggles, search, and a persona-flow walkthrough), plus small `.mmd` diagrams for docs. Each node also gets a short plain-language description in the sidebar, written by one agent per node from just that node's source and links; `--no-describe` skips that step.
- **`/code-modernization:modernize-extract-rules <system-dir> [module-pattern]`** — Mine the business rules — calculations, validations, eligibility, state transitions — into Given/When/Then "Rule Cards" with `file:line` citations and confidence ratings. With the Workflow tool, anything but a tiny system is extracted in per-module shards (from `map`'s `topology.json` if present, else the directory tree), so each extractor reads one focused slice. Produces `BUSINESS_RULES.md` + `DATA_OBJECTS.md`.
@@ -74,7 +74,7 @@ Run in order, but each is standalone — stop, review, resume.
Specialist subagents invoked by the commands (or directly):
-- **`legacy-analyst`** — Reads legacy code (COBOL, EJB, classic ASP, …) and produces structural summaries; spots implicit dependencies and "JOBOL" (procedural code in modern syntax). *(assess, reimagine, uplift)*
+- **`legacy-analyst`** — Reads legacy code (COBOL, EJB, classic ASP, …) and produces structural summaries; spots implicit dependencies and "JOBOL" (procedural code in modern syntax). *(assess, map, extract-rules, reimagine)*
- **`business-rules-extractor`** — Mines domain rules from procedural code with source citations. *(extract-rules, reimagine)*
- **`architecture-critic`** — Skeptical reviewer of target designs and transformed code; flags over-engineering. *(reimagine, transform, uplift)*
- **`security-auditor`** — Auth, input validation, secrets, dependency CVEs. *(assess, harden)*