summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/commands/modernize-status.md
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-15 15:15:41 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-15 15:15:41 -0700
commit27ccae218634dbe03a234f8902982d12bf6ba52a (patch)
tree1e9f627ce0798341868726447fbef7d46da8f20b /plugins/code-modernization/commands/modernize-status.md
parentb5439c41ae9864833eb73d5efd088af8e3be13fe (diff)
code-modernization: named arguments and namespaced command namesmorganl/code-modernization-named-args
Positional placeholders are zero-based ($0 is the first argument), but every command used $1 for the first one, so arguments arrived shifted: modernize-preflight carddemo java-spring analyzed legacy/java-spring. Each command now declares its arguments in frontmatter (for example `arguments: system module target_stack`) and uses the names. A missing optional argument now expands to an empty string instead of a literal placeholder. Plugin commands resolve only by their namespaced name, so the README, command cross-references, agents, workflow descriptions and the topology viewer now say /code-modernization:modernize-*. The extract-rules workflow is renamed modernize-extract-rules-mine. It shared the command's name, so invoking the command could start the workflow directly and skip the command's instructions. Commands launch workflows by script path, so nothing else changes.
Diffstat (limited to 'plugins/code-modernization/commands/modernize-status.md')
-rw-r--r--plugins/code-modernization/commands/modernize-status.md17
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/code-modernization/commands/modernize-status.md b/plugins/code-modernization/commands/modernize-status.md
index 575c3c1f..f855ced3 100644
--- a/plugins/code-modernization/commands/modernize-status.md
+++ b/plugins/code-modernization/commands/modernize-status.md
@@ -1,14 +1,15 @@
---
description: Where am I in the modernization workflow — artifact inventory, staleness, secrets hygiene, next step
argument-hint: <system-dir>
+arguments: system
---
-Report where the modernization of `$1` stands, in one screen. This is a
+Report where the modernization of `$system` stands, in one screen. This is a
read-only command — inspect, never modify.
## 1 — Artifact inventory
-Check `analysis/$1/` and `modernized/$1*/` and build a table — one row per
+Check `analysis/$system/` and `modernized/$system*/` and build a table — one row per
workflow stage, with the artifact's presence and modification time:
| Stage | Artifacts |
@@ -19,9 +20,9 @@ workflow stage, with the artifact's presence and modification time:
| extract-rules | `BUSINESS_RULES.md`, `DATA_OBJECTS.md` |
| brief | `MODERNIZATION_BRIEF.md` (note whether the approval block is signed) |
| harden | `SECURITY_FINDINGS.md`, `security_remediation.patch` |
-| uplift | `DELTA_CATALOG.md`, `BASELINE.md`, `PLAYBOOK.md` (no playbook = the pilot hasn't happened yet — the fan-out must not); `modernized/$1-uplifted/UPLIFT_NOTES.md` (note per-unit: builds on target? baseline reproduced?) |
-| transform | each `modernized/$1/<module>/` dir — note test presence and whether `TRANSFORMATION_NOTES.md` exists |
-| reimagine | `modernized/$1-reimagined/` — note per-service acceptance tests and the `CLAUDE.md` handoff (reimagine's completion markers; it does NOT write `TRANSFORMATION_NOTES.md`) |
+| uplift | `DELTA_CATALOG.md`, `BASELINE.md`, `PLAYBOOK.md` (no playbook = the pilot hasn't happened yet — the fan-out must not); `modernized/$system-uplifted/UPLIFT_NOTES.md` (note per-unit: builds on target? baseline reproduced?) |
+| transform | each `modernized/$system/<module>/` dir — note test presence and whether `TRANSFORMATION_NOTES.md` exists |
+| reimagine | `modernized/$system-reimagined/` — note per-service acceptance tests and the `CLAUDE.md` handoff (reimagine's completion markers; it does NOT write `TRANSFORMATION_NOTES.md`) |
## 2 — Staleness
@@ -29,13 +30,13 @@ Flag any artifact older than an upstream artifact it derives from:
- `MODERNIZATION_BRIEF.md` older than `ASSESSMENT.md`, `topology.json`,
or `BUSINESS_RULES.md` → the brief no longer reflects discovery;
- recommend re-running `/modernize-brief`.
+ recommend re-running `/code-modernization:modernize-brief`.
- `MODERNIZATION_BRIEF.md` for a same-stack **uplift** plan that is older
than `DELTA_CATALOG.md` — or that has no catalog at all — → the phase
order was decided before (or without) the version deltas that determine
- it; recommend re-running `/modernize-brief`.
+ it; recommend re-running `/code-modernization:modernize-brief`.
- `TOPOLOGY.html` older than `topology.json` → re-run the injection step
- from `/modernize-map`.
+ from `/code-modernization:modernize-map`.
- Any `TRANSFORMATION_NOTES.md` older than `BUSINESS_RULES.md` → the
module may not implement the latest rule set; list which.