agile-context-engineering 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/LICENSE +51 -51
  3. package/README.md +324 -319
  4. package/agents/ace-research-synthesizer.md +228 -228
  5. package/agents/ace-technical-application-architect.md +28 -0
  6. package/agents/ace-wiki-mapper.md +445 -334
  7. package/agile-context-engineering/src/ace-tools.test.js +1089 -1089
  8. package/agile-context-engineering/templates/_command.md +53 -53
  9. package/agile-context-engineering/templates/_workflow.xml +16 -16
  10. package/agile-context-engineering/templates/product/product-backlog.xml +231 -231
  11. package/agile-context-engineering/templates/product/story-integration-solution.xml +1 -0
  12. package/agile-context-engineering/templates/product/story-wiki.xml +4 -0
  13. package/agile-context-engineering/templates/wiki/coding-standards.xml +38 -0
  14. package/agile-context-engineering/templates/wiki/decizions.xml +115 -115
  15. package/agile-context-engineering/templates/wiki/guide.xml +137 -137
  16. package/agile-context-engineering/templates/wiki/module-discovery.xml +174 -174
  17. package/agile-context-engineering/templates/wiki/pattern.xml +159 -159
  18. package/agile-context-engineering/templates/wiki/system-architecture.xml +254 -254
  19. package/agile-context-engineering/templates/wiki/system-cross-cutting.xml +197 -197
  20. package/agile-context-engineering/templates/wiki/system.xml +381 -381
  21. package/agile-context-engineering/templates/wiki/walkthrough.xml +255 -0
  22. package/agile-context-engineering/templates/wiki/wiki-readme.xml +297 -276
  23. package/agile-context-engineering/utils/questioning.xml +110 -110
  24. package/agile-context-engineering/workflows/execute-story.xml +1219 -1145
  25. package/agile-context-engineering/workflows/help.xml +540 -540
  26. package/agile-context-engineering/workflows/init-coding-standards.xml +386 -386
  27. package/agile-context-engineering/workflows/map-story.xml +1046 -797
  28. package/agile-context-engineering/workflows/map-subsystem.xml +2 -1
  29. package/agile-context-engineering/workflows/map-walkthrough.xml +457 -0
  30. package/agile-context-engineering/workflows/plan-feature.xml +1495 -1495
  31. package/agile-context-engineering/workflows/plan-story.xml +36 -1
  32. package/agile-context-engineering/workflows/research-integration-solution.xml +1 -0
  33. package/agile-context-engineering/workflows/research-story-wiki.xml +2 -1
  34. package/agile-context-engineering/workflows/research-technical-solution.xml +1 -0
  35. package/agile-context-engineering/workflows/review-story.xml +281 -281
  36. package/agile-context-engineering/workflows/update.xml +238 -0
  37. package/bin/install.js +126 -7
  38. package/commands/ace/execute-story.md +1 -0
  39. package/commands/ace/help.md +93 -93
  40. package/commands/ace/init-coding-standards.md +83 -83
  41. package/commands/ace/map-story.md +165 -156
  42. package/commands/ace/map-subsystem.md +140 -138
  43. package/commands/ace/map-system.md +92 -92
  44. package/commands/ace/map-walkthrough.md +127 -0
  45. package/commands/ace/plan-feature.md +89 -89
  46. package/commands/ace/plan-story.md +15 -1
  47. package/commands/ace/review-story.md +109 -109
  48. package/commands/ace/update.md +56 -0
  49. package/hooks/ace-check-update.js +62 -0
  50. package/hooks/ace-statusline.js +89 -0
  51. package/package.json +5 -3
@@ -1,83 +1,83 @@
1
- ---
2
- name: ace:init-coding-standards
3
- description: Generate a tailored coding-standards.md through codebase detection and user interview
4
- argument-hint: "[optional: context='existing standards doc or notes to build on']"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Glob
9
- - Grep
10
- - Write
11
- - Task
12
- - AskUserQuestion
13
- ---
14
-
15
- ```xml
16
- <command>
17
-
18
- <execution-time>
19
- <runs-after>
20
- <trigger>During /ace:help — as part of initial project setup</trigger>
21
- <trigger>After /ace:map-system — once codebase is mapped, add prescriptive standards</trigger>
22
- <trigger>Anytime — to create or refresh coding standards for a project</trigger>
23
- </runs-after>
24
- <use-when>
25
- <condition>Starting a new project and want to establish coding standards upfront (greenfield or brownfield)</condition>
26
- <condition>Onboarding AI agents to an existing codebase (prevents common AI mistakes)</condition>
27
- <condition>Current coding standards are outdated or missing</condition>
28
- <condition>Team has pain points with AI-generated code quality</condition>
29
- </use-when>
30
- </execution-time>
31
-
32
- <input>
33
- <flags>
34
- </flags>
35
-
36
- <parameters>
37
- <required>
38
- </required>
39
-
40
- <optional>
41
- <param name="context" type="file | text">
42
- Existing coding standards document, style guide, or notes
43
- to use as a starting point. Will be refined through the interview process.
44
- </param>
45
- </optional>
46
- </parameters>
47
- </input>
48
-
49
- <execution-context>
50
- <init-coding-standards-workflow>@~/.claude/agile-context-engineering/workflows/init-coding-standards.xml</init-coding-standards-workflow>
51
- <coding-standards-template>@~/.claude/agile-context-engineering/templates/wiki/coding-standards.xml</coding-standards-template>
52
- <questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
53
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
54
- </execution-context>
55
-
56
- <output>
57
- <objective>
58
- Detect the project's language, paradigm, and frameworks (brownfield) or gather
59
- this from the user (greenfield). Interview the user about their coding philosophy
60
- and pain points. Generate a tailored, prescriptive coding-standards.md that prevents
61
- common AI and developer mistakes.
62
- </objective>
63
-
64
- <artifacts>
65
- .docs/wiki/system-wide/coding-standards.md
66
- </artifacts>
67
- </output>
68
-
69
- <process>
70
- Execute the init-coding-standards workflow from
71
- `@~/.claude/agile-context-engineering/workflows/init-coding-standards.xml` end-to-end.
72
- Preserve all workflow gates (validation, approvals, commits).
73
- </process>
74
-
75
- <next-steps>
76
- **After this command:**
77
- - `/ace:map-system` — Map codebase structure and architecture
78
- - `/ace:help` — Check project initialization status and next steps
79
- - Review and edit `.docs/wiki/system-wide/coding-standards.md` anytime
80
- </next-steps>
81
-
82
- </command>
83
- ```
1
+ ---
2
+ name: ace:init-coding-standards
3
+ description: Generate a tailored coding-standards.md through codebase detection and user interview
4
+ argument-hint: "[optional: context='existing standards doc or notes to build on']"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Glob
9
+ - Grep
10
+ - Write
11
+ - Task
12
+ - AskUserQuestion
13
+ ---
14
+
15
+ ```xml
16
+ <command>
17
+
18
+ <execution-time>
19
+ <runs-after>
20
+ <trigger>During /ace:help — as part of initial project setup</trigger>
21
+ <trigger>After /ace:map-system — once codebase is mapped, add prescriptive standards</trigger>
22
+ <trigger>Anytime — to create or refresh coding standards for a project</trigger>
23
+ </runs-after>
24
+ <use-when>
25
+ <condition>Starting a new project and want to establish coding standards upfront (greenfield or brownfield)</condition>
26
+ <condition>Onboarding AI agents to an existing codebase (prevents common AI mistakes)</condition>
27
+ <condition>Current coding standards are outdated or missing</condition>
28
+ <condition>Team has pain points with AI-generated code quality</condition>
29
+ </use-when>
30
+ </execution-time>
31
+
32
+ <input>
33
+ <flags>
34
+ </flags>
35
+
36
+ <parameters>
37
+ <required>
38
+ </required>
39
+
40
+ <optional>
41
+ <param name="context" type="file | text">
42
+ Existing coding standards document, style guide, or notes
43
+ to use as a starting point. Will be refined through the interview process.
44
+ </param>
45
+ </optional>
46
+ </parameters>
47
+ </input>
48
+
49
+ <execution-context>
50
+ <init-coding-standards-workflow>@~/.claude/agile-context-engineering/workflows/init-coding-standards.xml</init-coding-standards-workflow>
51
+ <coding-standards-template>@~/.claude/agile-context-engineering/templates/wiki/coding-standards.xml</coding-standards-template>
52
+ <questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
53
+ <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
54
+ </execution-context>
55
+
56
+ <output>
57
+ <objective>
58
+ Detect the project's language, paradigm, and frameworks (brownfield) or gather
59
+ this from the user (greenfield). Interview the user about their coding philosophy
60
+ and pain points. Generate a tailored, prescriptive coding-standards.md that prevents
61
+ common AI and developer mistakes.
62
+ </objective>
63
+
64
+ <artifacts>
65
+ .docs/wiki/system-wide/coding-standards.md
66
+ </artifacts>
67
+ </output>
68
+
69
+ <process>
70
+ Execute the init-coding-standards workflow from
71
+ `@~/.claude/agile-context-engineering/workflows/init-coding-standards.xml` end-to-end.
72
+ Preserve all workflow gates (validation, approvals, commits).
73
+ </process>
74
+
75
+ <next-steps>
76
+ **After this command:**
77
+ - `/ace:map-system` — Map codebase structure and architecture
78
+ - `/ace:help` — Check project initialization status and next steps
79
+ - Review and edit `.docs/wiki/system-wide/coding-standards.md` anytime
80
+ </next-steps>
81
+
82
+ </command>
83
+ ```
@@ -1,156 +1,165 @@
1
- ---
2
- name: ace:map-story
3
- description: Update living knowledge docs — either after a story implementation (git-based) or for existing undocumented code (file-based, called by map-subsystem)
4
- argument-hint: "story-context='.ace/artifacts/...' commits=3 | files='a.ts,b.ts' module-name='User Management' subsystem-name='api'"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Glob
9
- - Grep
10
- - Write
11
- - Edit
12
- - Task
13
- - AskUserQuestion
14
- ---
15
-
16
- ```xml
17
- <command>
18
-
19
- <execution-time>
20
- <mode name="story" invoked-by="user">
21
- <trigger>After a story is implemented and tested</trigger>
22
- <trigger>Analyzes git changes (diff) to determine what was built</trigger>
23
- <trigger>Reads story artifacts for intent context</trigger>
24
- <trigger>Detects affected subsystem(s) from changed file paths</trigger>
25
- <trigger>Creates or updates living knowledge docs to reflect the CURRENT system state</trigger>
26
- </mode>
27
- <mode name="file" invoked-by="map-subsystem Step 8.7">
28
- <trigger>Called automatically during subsystem mapping</trigger>
29
- <trigger>Receives a curated file list + module metadata from module-discovery</trigger>
30
- <trigger>Documents existing undocumented code — no git diff needed</trigger>
31
- <trigger>Receives pre-curated existing documentation as additional context</trigger>
32
- </mode>
33
- <use-when mode="story">
34
- <condition>You just finished implementing and testing a story</condition>
35
- <condition>You want to update docs to reflect recent code changes</condition>
36
- <condition>You want to capture decisions and patterns from a recent implementation</condition>
37
- </use-when>
38
- <use-when mode="file">
39
- <condition>/ace:map-subsystem — for each module row in module-discovery.md</condition>
40
- </use-when>
41
- </execution-time>
42
-
43
- <input>
44
- <flags>
45
- </flags>
46
-
47
- <parameters>
48
- <mode-detection>
49
- <rule>If `files` is provided -> file mode</rule>
50
- <rule>If `story-context` is provided -> story mode</rule>
51
- <rule>If neither is provided -> story mode (staged + unstaged changes)</rule>
52
- </mode-detection>
53
-
54
- <story-mode>
55
- <required></required>
56
- <optional>
57
- <param name="story-context" type="path">
58
- Path to story artifacts folder (in `.ace/artifacts/` or legacy `documentation/features/`).
59
- Used to understand WHAT the story intended to build.
60
- If not provided, the agent relies solely on git changes.
61
- </param>
62
- <param name="commits" type="number | comma-separated commit SHAs">
63
- Specifies which commits to analyze.
64
- As a number: analyze the N most recent commits (e.g., commits=3).
65
- As commit SHAs: analyze specific commits (e.g., commits='abc123,def456').
66
- When not provided: analyze staged + unstaged changes (git diff + git diff --cached).
67
- </param>
68
- <param name="tech-debt" type="text | path">
69
- Tech debt items discovered during code review.
70
- Can be plain text, YAML, or a path to a file containing the items.
71
- When provided, the wiki mapper integrates these items into the
72
- relevant subsystem wiki docs (## Tech Debt sections) AND updates
73
- the system-wide tech-debt-index.md.
74
- </param>
75
- </optional>
76
- </story-mode>
77
-
78
- <file-mode>
79
- <required>
80
- <param name="files" type="comma-separated paths">
81
- Source code files to document. These are the files discovered by
82
- module-discovery (Step 8.5) that together form one coherent module.
83
- </param>
84
- <param name="module-name" type="text">
85
- Human-readable name of the module (e.g., "User Management", "Repository Pattern").
86
- </param>
87
- <param name="subsystem-name" type="text">
88
- Name of the subsystem this module belongs to.
89
- </param>
90
- </required>
91
- <optional>
92
- <param name="existing-docs" type="comma-separated paths or directories">
93
- Pre-existing documentation relevant to this module. Accepts file paths,
94
- directory paths, or a mix of both. When a directory is provided,
95
- recursively discover all files within it (including nested subdirectories).
96
- Typically curated by module-discovery's synthesis agent or passed through
97
- from map-subsystem. Read these FIRST for additional context about intent,
98
- decisions, and history. The actual source code remains the source of truth;
99
- existing docs provide the WHY.
100
- </param>
101
- </optional>
102
- </file-mode>
103
- </parameters>
104
- </input>
105
-
106
- <execution-context>
107
- <map-story-workflow>@~/.claude/agile-context-engineering/workflows/map-story.xml</map-story-workflow>
108
-
109
- <system>@~/.claude/agile-context-engineering/templates/wiki/system.xml</system>
110
- <system-cross-cutting>@~/.claude/agile-context-engineering/templates/wiki/system-cross-cutting.xml</system-cross-cutting>
111
- <pattern>@~/.claude/agile-context-engineering/templates/wiki/pattern.xml</pattern>
112
- <guide>@~/.claude/agile-context-engineering/templates/wiki/guide.xml</guide>
113
- <decizions>@~/.claude/agile-context-engineering/templates/wiki/decizions.xml</decizions>
114
- <tech-debt-index>@~/.claude/agile-context-engineering/templates/wiki/tech-debt-index.xml</tech-debt-index>
115
-
116
- <questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
117
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
118
- </execution-context>
119
-
120
- <output>
121
- <objective>
122
- Read the provided source code files (and any existing docs for context),
123
- then autonomously create or update living knowledge documents.
124
- One call may produce multiple docs across different categories
125
- (systems/, patterns/, cross-cutting/, guides/, decisions/).
126
-
127
- In story mode: analyze git changes to determine what was built, detect
128
- affected subsystem(s), and update/create docs to reflect the CURRENT system state.
129
-
130
- In file mode: document existing undocumented code from the provided file list.
131
- </objective>
132
-
133
- <artifacts>
134
- .docs/wiki/subsystems/[subsystem-name]/systems/[system-name].md
135
- .docs/wiki/subsystems/[subsystem-name]/patterns/[pattern-name].md
136
- .docs/wiki/subsystems/[subsystem-name]/cross-cutting/[concern-name].md
137
- .docs/wiki/subsystems/[subsystem-name]/guides/[guide-name].md
138
- .docs/wiki/subsystems/[subsystem-name]/decisions/[decision-name].md
139
- </artifacts>
140
- </output>
141
-
142
- <process>
143
- Execute the map-story workflow from
144
- `@~/.claude/agile-context-engineering/workflows/map-story.xml` end-to-end.
145
- Preserve all workflow gates (validation, user questions, commits).
146
- </process>
147
-
148
- <next-steps>
149
- <step>/clear first for a fresh context window</step>
150
- <step>/ace:map-story — document another story or module</step>
151
- <step>/ace:map-subsystem [subsystem] — map or refresh an entire subsystem</step>
152
- <step>Review and edit files in .docs/wiki/subsystems/[subsystem-name]/</step>
153
- </next-steps>
154
-
155
- </command>
156
- ```
1
+ ---
2
+ name: ace:map-story
3
+ description: Update living knowledge docs — either after a story implementation (git-based, with new subsystem detection) or for existing undocumented code (file-based, called by map-subsystem)
4
+ argument-hint: "story-context='.ace/artifacts/...' commits=3 | files='a.ts,b.ts' module-name='User Management' subsystem-name='api'"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Glob
9
+ - Grep
10
+ - Write
11
+ - Edit
12
+ - Task
13
+ - AskUserQuestion
14
+ - Agent
15
+ ---
16
+
17
+ ```xml
18
+ <command>
19
+
20
+ <execution-time>
21
+ <mode name="story" invoked-by="user">
22
+ <trigger>After a story is implemented and tested</trigger>
23
+ <trigger>Analyzes git changes (diff) to determine what was built</trigger>
24
+ <trigger>Reads story artifacts for intent context</trigger>
25
+ <trigger>Detects affected subsystem(s) from changed file paths</trigger>
26
+ <trigger>Creates or updates living knowledge docs to reflect the CURRENT system state</trigger>
27
+ <trigger>Detects NEW subsystems not yet in system-structure.md and offers full mapping via map-subsystem</trigger>
28
+ </mode>
29
+ <mode name="file" invoked-by="map-subsystem Step 8.7">
30
+ <trigger>Called automatically during subsystem mapping</trigger>
31
+ <trigger>Receives a curated file list + module metadata from module-discovery</trigger>
32
+ <trigger>Documents existing undocumented code — no git diff needed</trigger>
33
+ <trigger>Receives pre-curated existing documentation as additional context</trigger>
34
+ </mode>
35
+ <use-when mode="story">
36
+ <condition>You just finished implementing and testing a story</condition>
37
+ <condition>You want to update docs to reflect recent code changes</condition>
38
+ <condition>You want to capture decisions and patterns from a recent implementation</condition>
39
+ </use-when>
40
+ <use-when mode="file">
41
+ <condition>/ace:map-subsystem — for each module row in module-discovery.md</condition>
42
+ </use-when>
43
+ </execution-time>
44
+
45
+ <input>
46
+ <flags>
47
+ </flags>
48
+
49
+ <parameters>
50
+ <mode-detection>
51
+ <rule>If `files` is provided -> file mode</rule>
52
+ <rule>If `story-context` is provided -> story mode</rule>
53
+ <rule>If neither is provided -> story mode (staged + unstaged changes)</rule>
54
+ </mode-detection>
55
+
56
+ <story-mode>
57
+ <required></required>
58
+ <optional>
59
+ <param name="story-context" type="path">
60
+ Path to story artifacts folder (in `.ace/artifacts/` or legacy `documentation/features/`).
61
+ Used to understand WHAT the story intended to build.
62
+ If not provided, the agent relies solely on git changes.
63
+ </param>
64
+ <param name="commits" type="number | comma-separated commit SHAs">
65
+ Specifies which commits to analyze.
66
+ As a number: analyze the N most recent commits (e.g., commits=3).
67
+ As commit SHAs: analyze specific commits (e.g., commits='abc123,def456').
68
+ When not provided: analyze staged + unstaged changes (git diff + git diff --cached).
69
+ </param>
70
+ <param name="tech-debt" type="text | path">
71
+ Tech debt items discovered during code review.
72
+ Can be plain text, YAML, or a path to a file containing the items.
73
+ When provided, the wiki mapper integrates these items into the
74
+ relevant subsystem wiki docs (## Tech Debt sections) AND updates
75
+ the system-wide tech-debt-index.md.
76
+ </param>
77
+ </optional>
78
+ </story-mode>
79
+
80
+ <file-mode>
81
+ <required>
82
+ <param name="files" type="comma-separated paths">
83
+ Source code files to document. These are the files discovered by
84
+ module-discovery (Step 8.5) that together form one coherent module.
85
+ </param>
86
+ <param name="module-name" type="text">
87
+ Human-readable name of the module (e.g., "User Management", "Repository Pattern").
88
+ </param>
89
+ <param name="subsystem-name" type="text">
90
+ Name of the subsystem this module belongs to.
91
+ </param>
92
+ </required>
93
+ <optional>
94
+ <param name="existing-docs" type="comma-separated paths or directories">
95
+ Pre-existing documentation relevant to this module. Accepts file paths,
96
+ directory paths, or a mix of both. When a directory is provided,
97
+ recursively discover all files within it (including nested subdirectories).
98
+ Typically curated by module-discovery's synthesis agent or passed through
99
+ from map-subsystem. Read these FIRST for additional context about intent,
100
+ decisions, and history. The actual source code remains the source of truth;
101
+ existing docs provide the WHY.
102
+ </param>
103
+ </optional>
104
+ </file-mode>
105
+ </parameters>
106
+ </input>
107
+
108
+ <execution-context>
109
+ <map-story-workflow>@~/.claude/agile-context-engineering/workflows/map-story.xml</map-story-workflow>
110
+
111
+ <system>@~/.claude/agile-context-engineering/templates/wiki/system.xml</system>
112
+ <system-cross-cutting>@~/.claude/agile-context-engineering/templates/wiki/system-cross-cutting.xml</system-cross-cutting>
113
+ <pattern>@~/.claude/agile-context-engineering/templates/wiki/pattern.xml</pattern>
114
+ <guide>@~/.claude/agile-context-engineering/templates/wiki/guide.xml</guide>
115
+ <walkthrough>@~/.claude/agile-context-engineering/templates/wiki/walkthrough.xml</walkthrough>
116
+ <decizions>@~/.claude/agile-context-engineering/templates/wiki/decizions.xml</decizions>
117
+ <tech-debt-index>@~/.claude/agile-context-engineering/templates/wiki/tech-debt-index.xml</tech-debt-index>
118
+
119
+ <questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
120
+ <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
121
+ </execution-context>
122
+
123
+ <output>
124
+ <objective>
125
+ Read the provided source code files (and any existing docs for context),
126
+ then autonomously create or update living knowledge documents.
127
+ One call may produce multiple docs across different categories
128
+ (systems/, patterns/, cross-cutting/, guides/, walkthroughs/, decisions/).
129
+
130
+ In story mode: analyze git changes to determine what was built, detect
131
+ affected subsystem(s), identify NEW subsystems not yet in system-structure.md
132
+ (offering full map-subsystem mapping with user approval), and update/create
133
+ docs to reflect the CURRENT system state. Also suggests potential walkthroughs
134
+ for complex flows discovered in the code — the user can choose to create them.
135
+
136
+ In file mode: document existing undocumented code from the provided file list.
137
+ </objective>
138
+
139
+ <artifacts>
140
+ .docs/wiki/subsystems/[subsystem-name]/systems/[system-name].md
141
+ .docs/wiki/subsystems/[subsystem-name]/patterns/[pattern-name].md
142
+ .docs/wiki/subsystems/[subsystem-name]/cross-cutting/[concern-name].md
143
+ .docs/wiki/subsystems/[subsystem-name]/guides/[guide-name].md
144
+ .docs/wiki/subsystems/[subsystem-name]/walkthroughs/[flow-name].md (if user approves suggestions)
145
+ .docs/wiki/subsystems/[subsystem-name]/decisions/[decision-name].md
146
+ .docs/wiki/system-wide/system-structure.md (updated if new subsystem mapped)
147
+ .docs/wiki/system-wide/system-architecture.md (updated if new subsystem mapped)
148
+ </artifacts>
149
+ </output>
150
+
151
+ <process>
152
+ Execute the map-story workflow from
153
+ `@~/.claude/agile-context-engineering/workflows/map-story.xml` end-to-end.
154
+ Preserve all workflow gates (validation, user questions, commits).
155
+ </process>
156
+
157
+ <next-steps>
158
+ <step>/clear first for a fresh context window</step>
159
+ <step>/ace:map-story — document another story or module</step>
160
+ <step>/ace:map-subsystem [subsystem] — map or refresh an entire subsystem</step>
161
+ <step>Review and edit files in .docs/wiki/subsystems/[subsystem-name]/</step>
162
+ </next-steps>
163
+
164
+ </command>
165
+ ```