agile-context-engineering 0.2.2 → 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 -323
  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 -207
  37. package/bin/install.js +8 -0
  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 -54
  49. package/hooks/ace-check-update.js +62 -62
  50. package/hooks/ace-statusline.js +89 -89
  51. package/package.json +4 -3
@@ -1,197 +1,197 @@
1
- <system-cross-cutting>
2
- <purpose>
3
- Template for `.docs/wiki/subsystems/[subsystem-name]/cross-cutting/<concern-name>.md` — a
4
- concern that spans multiple systems within a codebase subsystem. Answers "How does this
5
- shared infrastructure/concern work, and how do I plug into it?"
6
-
7
- Each cross-cutting doc describes shared infrastructure or mechanisms that multiple domain
8
- systems depend on. It is the document an AI agent reads to understand how to register,
9
- configure, or interact with shared concerns.
10
-
11
- Examples of cross-cutting concerns:
12
- - Dependency injection and container registration
13
- - Factory/registry registration patterns
14
- - Event systems, invalidation, pub/sub
15
- - Serialization/deserialization
16
- - Error handling and logging infrastructure
17
- - Authentication/authorization middleware
18
- - Cache/invalidation infrastructure
19
- - Shared abstract base classes
20
-
21
- Complements:
22
- - systems/ docs (domain systems that USE these cross-cutting concerns)
23
- - patterns/ docs (reusable structural patterns, not shared infrastructure)
24
- - guides/ docs (task recipes that reference cross-cutting setup steps)
25
- </purpose>
26
-
27
- <template>
28
- <overview>
29
- # [Cross-Cutting Concern]
30
-
31
- ## Overview
32
- What this concern addresses, why it exists. One paragraph.
33
- </overview>
34
-
35
- <how-it-works>
36
- ## How It Works
37
-
38
- The pattern/mechanism used. Reference actual code locations.
39
-
40
- 1. **Step**: Description at `file:ClassName.method`
41
- 2. **Step**: Description at `file:ClassName.method`
42
- 3. **Step**: Description at `file:ClassName.method`
43
- </how-it-works>
44
-
45
- <registration-and-setup>
46
- ## Registration / Setup
47
-
48
- Where and how components register with this concern.
49
- - **Container**: `file:container.ts:registerServices`
50
- - **Factory**: `file:DrawingFactory.ts:DrawingFactory`
51
- - **Registry**: `file:DrawingRegistry.ts:DrawingRegistry`
52
- </registration-and-setup>
53
-
54
- <usage>
55
- ## Usage
56
-
57
- How other systems interact with this concern.
58
-
59
- ```typescript
60
- // Usage pattern (inline only if non-obvious)
61
- ```
62
- </usage>
63
-
64
- <current-registrations>
65
- ## Current Registrations / Implementations
66
-
67
- What is currently registered/using this concern:
68
- - `TrendLine` registered at `file:container.ts:registerDrawings`
69
- - `ParallelChannel` registered at `file:container.ts:registerDrawings`
70
- - ...
71
- </current-registrations>
72
-
73
- <integration-points>
74
- ## Integration Points
75
-
76
- Where this concern connects to other systems.
77
- - [System A](../systems/system-a.md) — uses this for [purpose]
78
- - [System B](../systems/system-b.md) — uses this for [purpose]
79
- </integration-points>
80
-
81
- <gotchas>
82
- ## Gotchas
83
-
84
- Common mistakes when working with this concern.
85
- - [Common mistake 1]
86
- - [Common mistake 2]
87
- </gotchas>
88
-
89
- <tech-debt>
90
- ## Tech Debt
91
-
92
- Known quality issues in this cross-cutting concern discovered during story code reviews.
93
- Items are added by the wiki mapper and removed when fixed by a future story.
94
- Include ONLY if this concern has known tech debt items. Omit section entirely if clean.
95
-
96
- ### [Short descriptive title of the issue]
97
- - **Severity:** high | medium | low
98
- - **File:** `[file-path:SymbolName]`
99
- - **Description:** What the issue is, why it matters, and what could go wrong
100
- if left unfixed. For cross-cutting concerns, note which dependent systems are affected.
101
- - **Discovered during:** [story-id] — [story title]
102
-
103
- ### [Another issue]
104
- - **Severity:** ...
105
- - **File:** ...
106
- - **Description:** ...
107
- - **Discovered during:** ...
108
- </tech-debt>
109
- </template>
110
-
111
- <guidelines>
112
-
113
- **Documentation Style:**
114
- - EXTREMELY SUCCINCT — every word must add value
115
- - NO FLUFF — direct, actionable information only
116
- - Bullet points over paragraphs
117
- - Code references as `file-path:ClassName.methodName` (not line numbers)
118
- - Inline snippets ONLY for usage patterns and registration examples
119
- - **ALL visual representations of architecture, dependencies, flows, or relationships MUST be ```mermaid fenced code blocks. NO ASCII arrows (->), NO dependency trees, NO PlantUML. Only mermaid. The ONLY ASCII exception is file trees.**
120
-
121
- **Overview:**
122
- - ONE paragraph. What the concern does and why it exists.
123
- - Focus on what an agent needs to know to interact with this concern.
124
-
125
- **How It Works:**
126
- - Numbered steps explaining the mechanism.
127
- - Reference actual code locations — not theoretical descriptions.
128
- - If the mechanism has a flow (event dispatching, DI resolution), show a mermaid sequence diagram.
129
-
130
- **Registration / Setup:**
131
- - The MOST CRITICAL section for AI agents. They need to know WHERE to register new things.
132
- - List every registration point with exact file paths.
133
- - Show the registration pattern (inline code only if non-obvious).
134
-
135
- **Usage:**
136
- - How consuming code interacts with this concern.
137
- - Inline code snippet ONLY if the usage pattern is non-obvious.
138
- - If usage is straightforward (e.g., inject via constructor), a one-liner suffices.
139
-
140
- **Current Registrations / Implementations:**
141
- - Complete list of everything currently registered/using this concern.
142
- - Agent uses this to verify its new registration is consistent with existing ones.
143
- - Update when new registrations are added.
144
-
145
- **Integration Points:**
146
- - Cross-reference with markdown links to system docs that depend on this concern.
147
- - Helps agents understand the blast radius of changes to this concern.
148
-
149
- **Gotchas:**
150
- - Registration order dependencies, naming conventions, initialization timing.
151
- - Anything that silently fails if done wrong.
152
-
153
- **Tech Debt:**
154
- - One `###` subsection per known issue — NOT a table. Each issue needs enough context
155
- for an agent to understand the problem without reading the code.
156
- - For cross-cutting concerns, always note which dependent systems are affected.
157
- - Severity: `high` (security, data loss, production instability), `medium` (quality,
158
- maintainability), `low` (cosmetic, minor inefficiency).
159
- - Always link to the discovering story for traceability.
160
- - REMOVE items when fixed by a future story.
161
- - Omit the entire section if no tech debt exists in this concern.
162
-
163
- **What does NOT belong here:**
164
- - Domain-specific logic (that's in systems/ docs)
165
- - Reusable structural patterns (that's in patterns/ docs)
166
- - Step-by-step task recipes (that's in guides/ docs)
167
- - Story numbers, sprint context, revision history
168
- - Testing instructions, performance benchmarks
169
-
170
- </guidelines>
171
-
172
- <evolution>
173
-
174
- This is a LIVING document — updated when the cross-cutting concern changes.
175
-
176
- **Update triggers:**
177
- - New registration added (update Current Registrations list)
178
- - Registration mechanism changed (new file, new pattern)
179
- - New integration point discovered
180
- - New gotcha discovered
181
- - Setup/initialization process changed
182
- - Tech debt discovered or resolved in this concern's files
183
-
184
- **NOT an update trigger:**
185
- - New feature that registers with existing mechanism without changing it
186
- - Bug fix in one registered component
187
- - Internal refactoring of the mechanism that doesn't change the external API
188
-
189
- **Update rules:**
190
- - ADD new registrations to the list
191
- - UPDATE Registration / Setup if the process changed
192
- - ADD new gotchas as they are discovered
193
- - REMOVE registrations for deleted components
194
-
195
- </evolution>
196
-
197
- </system-cross-cutting>
1
+ <system-cross-cutting>
2
+ <purpose>
3
+ Template for `.docs/wiki/subsystems/[subsystem-name]/cross-cutting/<concern-name>.md` — a
4
+ concern that spans multiple systems within a codebase subsystem. Answers "How does this
5
+ shared infrastructure/concern work, and how do I plug into it?"
6
+
7
+ Each cross-cutting doc describes shared infrastructure or mechanisms that multiple domain
8
+ systems depend on. It is the document an AI agent reads to understand how to register,
9
+ configure, or interact with shared concerns.
10
+
11
+ Examples of cross-cutting concerns:
12
+ - Dependency injection and container registration
13
+ - Factory/registry registration patterns
14
+ - Event systems, invalidation, pub/sub
15
+ - Serialization/deserialization
16
+ - Error handling and logging infrastructure
17
+ - Authentication/authorization middleware
18
+ - Cache/invalidation infrastructure
19
+ - Shared abstract base classes
20
+
21
+ Complements:
22
+ - systems/ docs (domain systems that USE these cross-cutting concerns)
23
+ - patterns/ docs (reusable structural patterns, not shared infrastructure)
24
+ - guides/ docs (task recipes that reference cross-cutting setup steps)
25
+ </purpose>
26
+
27
+ <template>
28
+ <overview>
29
+ # [Cross-Cutting Concern]
30
+
31
+ ## Overview
32
+ What this concern addresses, why it exists. One paragraph.
33
+ </overview>
34
+
35
+ <how-it-works>
36
+ ## How It Works
37
+
38
+ The pattern/mechanism used. Reference actual code locations.
39
+
40
+ 1. **Step**: Description at `file:ClassName.method`
41
+ 2. **Step**: Description at `file:ClassName.method`
42
+ 3. **Step**: Description at `file:ClassName.method`
43
+ </how-it-works>
44
+
45
+ <registration-and-setup>
46
+ ## Registration / Setup
47
+
48
+ Where and how components register with this concern.
49
+ - **Container**: `file:container.ts:registerServices`
50
+ - **Factory**: `file:DrawingFactory.ts:DrawingFactory`
51
+ - **Registry**: `file:DrawingRegistry.ts:DrawingRegistry`
52
+ </registration-and-setup>
53
+
54
+ <usage>
55
+ ## Usage
56
+
57
+ How other systems interact with this concern.
58
+
59
+ ```typescript
60
+ // Usage pattern (inline only if non-obvious)
61
+ ```
62
+ </usage>
63
+
64
+ <current-registrations>
65
+ ## Current Registrations / Implementations
66
+
67
+ What is currently registered/using this concern:
68
+ - `TrendLine` registered at `file:container.ts:registerDrawings`
69
+ - `ParallelChannel` registered at `file:container.ts:registerDrawings`
70
+ - ...
71
+ </current-registrations>
72
+
73
+ <integration-points>
74
+ ## Integration Points
75
+
76
+ Where this concern connects to other systems.
77
+ - [System A](../systems/system-a.md) — uses this for [purpose]
78
+ - [System B](../systems/system-b.md) — uses this for [purpose]
79
+ </integration-points>
80
+
81
+ <gotchas>
82
+ ## Gotchas
83
+
84
+ Common mistakes when working with this concern.
85
+ - [Common mistake 1]
86
+ - [Common mistake 2]
87
+ </gotchas>
88
+
89
+ <tech-debt>
90
+ ## Tech Debt
91
+
92
+ Known quality issues in this cross-cutting concern discovered during story code reviews.
93
+ Items are added by the wiki mapper and removed when fixed by a future story.
94
+ Include ONLY if this concern has known tech debt items. Omit section entirely if clean.
95
+
96
+ ### [Short descriptive title of the issue]
97
+ - **Severity:** high | medium | low
98
+ - **File:** `[file-path:SymbolName]`
99
+ - **Description:** What the issue is, why it matters, and what could go wrong
100
+ if left unfixed. For cross-cutting concerns, note which dependent systems are affected.
101
+ - **Discovered during:** [story-id] — [story title]
102
+
103
+ ### [Another issue]
104
+ - **Severity:** ...
105
+ - **File:** ...
106
+ - **Description:** ...
107
+ - **Discovered during:** ...
108
+ </tech-debt>
109
+ </template>
110
+
111
+ <guidelines>
112
+
113
+ **Documentation Style:**
114
+ - EXTREMELY SUCCINCT — every word must add value
115
+ - NO FLUFF — direct, actionable information only
116
+ - Bullet points over paragraphs
117
+ - Code references as `file-path:ClassName.methodName` (not line numbers)
118
+ - Inline snippets ONLY for usage patterns and registration examples
119
+ - **ALL visual representations of architecture, dependencies, flows, or relationships MUST be ```mermaid fenced code blocks. NO ASCII arrows (->), NO dependency trees, NO PlantUML. Only mermaid. The ONLY ASCII exception is file trees.**
120
+
121
+ **Overview:**
122
+ - ONE paragraph. What the concern does and why it exists.
123
+ - Focus on what an agent needs to know to interact with this concern.
124
+
125
+ **How It Works:**
126
+ - Numbered steps explaining the mechanism.
127
+ - Reference actual code locations — not theoretical descriptions.
128
+ - If the mechanism has a flow (event dispatching, DI resolution), show a mermaid sequence diagram.
129
+
130
+ **Registration / Setup:**
131
+ - The MOST CRITICAL section for AI agents. They need to know WHERE to register new things.
132
+ - List every registration point with exact file paths.
133
+ - Show the registration pattern (inline code only if non-obvious).
134
+
135
+ **Usage:**
136
+ - How consuming code interacts with this concern.
137
+ - Inline code snippet ONLY if the usage pattern is non-obvious.
138
+ - If usage is straightforward (e.g., inject via constructor), a one-liner suffices.
139
+
140
+ **Current Registrations / Implementations:**
141
+ - Complete list of everything currently registered/using this concern.
142
+ - Agent uses this to verify its new registration is consistent with existing ones.
143
+ - Update when new registrations are added.
144
+
145
+ **Integration Points:**
146
+ - Cross-reference with markdown links to system docs that depend on this concern.
147
+ - Helps agents understand the blast radius of changes to this concern.
148
+
149
+ **Gotchas:**
150
+ - Registration order dependencies, naming conventions, initialization timing.
151
+ - Anything that silently fails if done wrong.
152
+
153
+ **Tech Debt:**
154
+ - One `###` subsection per known issue — NOT a table. Each issue needs enough context
155
+ for an agent to understand the problem without reading the code.
156
+ - For cross-cutting concerns, always note which dependent systems are affected.
157
+ - Severity: `high` (security, data loss, production instability), `medium` (quality,
158
+ maintainability), `low` (cosmetic, minor inefficiency).
159
+ - Always link to the discovering story for traceability.
160
+ - REMOVE items when fixed by a future story.
161
+ - Omit the entire section if no tech debt exists in this concern.
162
+
163
+ **What does NOT belong here:**
164
+ - Domain-specific logic (that's in systems/ docs)
165
+ - Reusable structural patterns (that's in patterns/ docs)
166
+ - Step-by-step task recipes (that's in guides/ docs)
167
+ - Story numbers, sprint context, revision history
168
+ - Testing instructions, performance benchmarks
169
+
170
+ </guidelines>
171
+
172
+ <evolution>
173
+
174
+ This is a LIVING document — updated when the cross-cutting concern changes.
175
+
176
+ **Update triggers:**
177
+ - New registration added (update Current Registrations list)
178
+ - Registration mechanism changed (new file, new pattern)
179
+ - New integration point discovered
180
+ - New gotcha discovered
181
+ - Setup/initialization process changed
182
+ - Tech debt discovered or resolved in this concern's files
183
+
184
+ **NOT an update trigger:**
185
+ - New feature that registers with existing mechanism without changing it
186
+ - Bug fix in one registered component
187
+ - Internal refactoring of the mechanism that doesn't change the external API
188
+
189
+ **Update rules:**
190
+ - ADD new registrations to the list
191
+ - UPDATE Registration / Setup if the process changed
192
+ - ADD new gotchas as they are discovered
193
+ - REMOVE registrations for deleted components
194
+
195
+ </evolution>
196
+
197
+ </system-cross-cutting>