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.
- package/CHANGELOG.md +82 -0
- package/LICENSE +51 -51
- package/README.md +324 -323
- package/agents/ace-research-synthesizer.md +228 -228
- package/agents/ace-technical-application-architect.md +28 -0
- package/agents/ace-wiki-mapper.md +445 -334
- package/agile-context-engineering/src/ace-tools.test.js +1089 -1089
- package/agile-context-engineering/templates/_command.md +53 -53
- package/agile-context-engineering/templates/_workflow.xml +16 -16
- package/agile-context-engineering/templates/product/product-backlog.xml +231 -231
- package/agile-context-engineering/templates/product/story-integration-solution.xml +1 -0
- package/agile-context-engineering/templates/product/story-wiki.xml +4 -0
- package/agile-context-engineering/templates/wiki/coding-standards.xml +38 -0
- package/agile-context-engineering/templates/wiki/decizions.xml +115 -115
- package/agile-context-engineering/templates/wiki/guide.xml +137 -137
- package/agile-context-engineering/templates/wiki/module-discovery.xml +174 -174
- package/agile-context-engineering/templates/wiki/pattern.xml +159 -159
- package/agile-context-engineering/templates/wiki/system-architecture.xml +254 -254
- package/agile-context-engineering/templates/wiki/system-cross-cutting.xml +197 -197
- package/agile-context-engineering/templates/wiki/system.xml +381 -381
- package/agile-context-engineering/templates/wiki/walkthrough.xml +255 -0
- package/agile-context-engineering/templates/wiki/wiki-readme.xml +297 -276
- package/agile-context-engineering/utils/questioning.xml +110 -110
- package/agile-context-engineering/workflows/execute-story.xml +1219 -1145
- package/agile-context-engineering/workflows/help.xml +540 -540
- package/agile-context-engineering/workflows/init-coding-standards.xml +386 -386
- package/agile-context-engineering/workflows/map-story.xml +1046 -797
- package/agile-context-engineering/workflows/map-subsystem.xml +2 -1
- package/agile-context-engineering/workflows/map-walkthrough.xml +457 -0
- package/agile-context-engineering/workflows/plan-feature.xml +1495 -1495
- package/agile-context-engineering/workflows/plan-story.xml +36 -1
- package/agile-context-engineering/workflows/research-integration-solution.xml +1 -0
- package/agile-context-engineering/workflows/research-story-wiki.xml +2 -1
- package/agile-context-engineering/workflows/research-technical-solution.xml +1 -0
- package/agile-context-engineering/workflows/review-story.xml +281 -281
- package/agile-context-engineering/workflows/update.xml +238 -207
- package/bin/install.js +8 -0
- package/commands/ace/execute-story.md +1 -0
- package/commands/ace/help.md +93 -93
- package/commands/ace/init-coding-standards.md +83 -83
- package/commands/ace/map-story.md +165 -156
- package/commands/ace/map-subsystem.md +140 -138
- package/commands/ace/map-system.md +92 -92
- package/commands/ace/map-walkthrough.md +127 -0
- package/commands/ace/plan-feature.md +89 -89
- package/commands/ace/plan-story.md +15 -1
- package/commands/ace/review-story.md +109 -109
- package/commands/ace/update.md +56 -54
- package/hooks/ace-check-update.js +62 -62
- package/hooks/ace-statusline.js +89 -89
- package/package.json +4 -3
|
@@ -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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<trigger>
|
|
23
|
-
<trigger>
|
|
24
|
-
<trigger>
|
|
25
|
-
<trigger>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<trigger>
|
|
31
|
-
<trigger>Receives
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<condition>You
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<rule>If
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
the
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
<
|
|
112
|
-
<
|
|
113
|
-
<
|
|
114
|
-
<
|
|
115
|
-
|
|
116
|
-
<
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
In
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
.
|
|
135
|
-
|
|
136
|
-
.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
</
|
|
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
|
+
```
|