summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/commands/modernize-brief.md
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-11-19 01:38:59 +0000
committerClaude <noreply@anthropic.com>2026-11-19 01:38:59 +0000
commitfc515815fa14ab96bebc363a5f42e79a7f571158 (patch)
tree796871d943efb9f92635f2cb62a34498d82d300e /plugins/code-modernization/commands/modernize-brief.md
parent4d9854e0873b9d068fb444c8b14d00278ce2402a (diff)
code-modernization: look up whether a target version is supported before proposing itcode-modernization/supported-target-versions
Commands proposed language and framework versions from the model's memory, which is older than today, so a plan could name a release that is already out of support. A shared rule (references/target-versions.md) now has each command look versions up, record them in a Target versions table with the support end date and source, keep a version the person chose with a warning, and mark a version that could not be checked as unverified instead of guessing. Version 1.1.0.
Diffstat (limited to 'plugins/code-modernization/commands/modernize-brief.md')
-rw-r--r--plugins/code-modernization/commands/modernize-brief.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/code-modernization/commands/modernize-brief.md b/plugins/code-modernization/commands/modernize-brief.md
index fb9a8f76..fdc71ba2 100644
--- a/plugins/code-modernization/commands/modernize-brief.md
+++ b/plugins/code-modernization/commands/modernize-brief.md
@@ -7,6 +7,8 @@ arguments: system target_stack
Synthesize everything in `analysis/$system/` into a **Modernization Brief**: the single
document a steering committee approves and engineering executes. Target stack:
`$target_stack` (if blank, the one in `analysis/$system/INTENT.md`, else recommend one from the assessment).
+**Its versions are looked up, never remembered:** read `${CLAUDE_PLUGIN_ROOT}/references/target-versions.md`
+first and follow it (nothing out of support unless the person chose it; `unverified` only when every lookup failed).
Read `ASSESSMENT.md`, `topology.json` (and the `.mmd` files beside it; never read
`TOPOLOGY.html`, it is a viewer with the data minified inside) in `analysis/$system/` first,
@@ -48,7 +50,9 @@ Write `analysis/$system/MODERNIZATION_BRIEF.md` with these sections.
**1. Objective.** One paragraph: from what, to what, why now.
**2. Target Architecture.** A Mermaid C4 Container diagram of the end state naming every service,
-data store and integration, then a table mapping each legacy component to its target component(s).
+data store and integration, then a table mapping each legacy component to its target component(s), then
+the **Target versions** table (component, version, support end, source and date checked, status). Any row
+that is not `supported` and holds no decision yet is an open question in section 7.
**3. Phased Sequence.** 3–6 phases, ordered by **strangler fig** for a cross-stack rewrite
(lowest risk and fewest dependencies first) or **build-graph leaf-first** for an uplift