summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/workflows/reimagine-scaffold.js
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/workflows/reimagine-scaffold.js
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/workflows/reimagine-scaffold.js')
-rw-r--r--plugins/code-modernization/workflows/reimagine-scaffold.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/code-modernization/workflows/reimagine-scaffold.js b/plugins/code-modernization/workflows/reimagine-scaffold.js
index 36a77f8a..b91ff779 100644
--- a/plugins/code-modernization/workflows/reimagine-scaffold.js
+++ b/plugins/code-modernization/workflows/reimagine-scaffold.js
@@ -1,9 +1,9 @@
export const meta = {
name: 'modernize-reimagine-scaffold',
description:
- 'Phase E of /modernize-reimagine: scaffold every approved service in parallel — no cap; the runtime queues agents against its concurrency limit',
+ 'Phase E of /code-modernization:modernize-reimagine: scaffold every approved service in parallel — no cap; the runtime queues agents against its concurrency limit',
whenToUse:
- 'Invoked by /modernize-reimagine AFTER the human approves the architecture (HITL checkpoint #2). Requires args {system, services: [{name, responsibilities}]}. Scaffolding agents write only under modernized/<system>-reimagined/<service>/ — disjoint directories, so no worktree isolation is needed.',
+ 'Invoked by /code-modernization:modernize-reimagine AFTER the human approves the architecture (HITL checkpoint #2). Requires args {system, services: [{name, responsibilities}]}. Scaffolding agents write only under modernized/<system>-reimagined/<service>/ — disjoint directories, so no worktree isolation is needed.',
phases: [{ title: 'Scaffold', detail: 'one agent per approved service' }],
}