summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/commands/modernize-extract-rules.md
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-24 21:01:36 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-24 21:01:36 -0700
commit0c186cf8c54bdf925cb2572e871ec16d04aa8425 (patch)
treeb0e6fc47714312dd21a2d1b977c5dde1c6a8011a /plugins/code-modernization/commands/modernize-extract-rules.md
parent2efd715aeb081a965df3b2c871706c3577210e98 (diff)
code-modernization: people's verdicts on rules reach the build, and safer baselines
A reviewer's "this rule is wrong" never reached the plan or the rewrite: the pane wrote a review ledger that no command read, and without the pane there was no way to write one. /code-modernization:modernize-review asks about the rules that need judgement (P0 rules with a defect, an SME question or less than High confidence) in a pop-up, or takes verdicts typed in the request, and writes the same RULE_REVIEWS.json/.md with an optional note. brief, transform, reimagine and the test engineer read it: a rule marked wrong is not an oracle and a P0 rule under discussion blocks. Running the old system to record a baseline is now limited to the local machine or a test environment the person named; production or third-party services, new accounts and real data are off limits unless the approved plan names them, a token in a recorded response is replaced before anything is saved, and every command stops the servers it started. Also: the front door asks in two pop-ups within the four-option limit, every command points a missing-code user to /modernize <name> --source <path>, the status inventory and next-step order include review and verify, the assessment says what Rehost and Replace mean, preflight notes the Windows python name, and the plugin and marketplace descriptions match what it does.
Diffstat (limited to 'plugins/code-modernization/commands/modernize-extract-rules.md')
-rw-r--r--plugins/code-modernization/commands/modernize-extract-rules.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/code-modernization/commands/modernize-extract-rules.md b/plugins/code-modernization/commands/modernize-extract-rules.md
index e1a79740..271c6776 100644
--- a/plugins/code-modernization/commands/modernize-extract-rules.md
+++ b/plugins/code-modernization/commands/modernize-extract-rules.md
@@ -10,7 +10,7 @@ engineers about to retire. If a module pattern was given (`$module_pattern`), fo
there; otherwise cover the whole system. Prioritize calculation, validation, eligibility
and state-transition logic over plumbing.
-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. Run every subagent in the foreground and wait for its result: never end your turn while one is still running.
+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.
## Method A — Workflow (preferred when the Workflow tool is available)
@@ -147,4 +147,4 @@ confirmation** section listing each Medium and Low rule with its question.
Report: total rules, breakdown by category, how many need SME review, and (Method A) how many
candidates the referees rejected: that number is the quality the verification bought. Refresh the
-report: `python3 "${CLAUDE_PLUGIN_ROOT}/scripts/build_report.py" $system` (a convenience: if it fails or `python3` is missing, say so in one line and carry on). The next step is `/code-modernization:modernize-brief $system <target-stack>`.
+report: `python3 "${CLAUDE_PLUGIN_ROOT}/scripts/build_report.py" $system` (a convenience: if it fails or `python3` is missing, say so in one line and carry on). The next step is `/code-modernization:modernize-review $system` when rules are flagged for a person (P0 rules with a suspected defect, an SME question or less than High confidence: give the count), then `/code-modernization:modernize-brief $system <target-stack>`; with none flagged, go straight to the brief.