agile-context-engineering 0.1.0 → 0.2.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 (83) hide show
  1. package/LICENSE +30 -0
  2. package/README.md +272 -78
  3. package/agents/ace-code-discovery-analyst.md +245 -0
  4. package/agents/ace-code-integration-analyst.md +248 -0
  5. package/agents/ace-code-reviewer.md +375 -0
  6. package/agents/ace-product-owner.md +361 -0
  7. package/agents/ace-project-researcher.md +606 -0
  8. package/agents/ace-research-synthesizer.md +228 -0
  9. package/agents/ace-technical-application-architect.md +287 -0
  10. package/agents/ace-wiki-mapper.md +334 -0
  11. package/agile-context-engineering/src/ace-tools.js +2881 -0
  12. package/agile-context-engineering/src/ace-tools.test.js +1089 -0
  13. package/agile-context-engineering/templates/_command.md +54 -0
  14. package/agile-context-engineering/templates/_workflow.xml +17 -0
  15. package/agile-context-engineering/templates/config.json +0 -0
  16. package/agile-context-engineering/templates/product/external-solution.xml +832 -0
  17. package/agile-context-engineering/templates/product/feature.xml +361 -0
  18. package/agile-context-engineering/templates/product/integration-solution.xml +0 -0
  19. package/agile-context-engineering/templates/product/product-backlog.xml +231 -0
  20. package/agile-context-engineering/templates/product/product-vision.xml +227 -0
  21. package/agile-context-engineering/templates/product/story-integration-solution.xml +1014 -0
  22. package/agile-context-engineering/templates/product/story-technical-solution.xml +1025 -0
  23. package/agile-context-engineering/templates/product/story-wiki.xml +190 -0
  24. package/agile-context-engineering/templates/product/story.xml +451 -0
  25. package/agile-context-engineering/templates/wiki/coding-standards.xml +493 -0
  26. package/agile-context-engineering/templates/wiki/decizions.xml +115 -0
  27. package/agile-context-engineering/templates/wiki/guide.xml +137 -0
  28. package/agile-context-engineering/templates/wiki/module-discovery.xml +174 -0
  29. package/agile-context-engineering/templates/wiki/pattern.xml +159 -0
  30. package/agile-context-engineering/templates/wiki/subsystem-architecture.xml +343 -0
  31. package/agile-context-engineering/templates/wiki/subsystem-structure.xml +235 -0
  32. package/agile-context-engineering/templates/wiki/system-architecture.xml +254 -0
  33. package/agile-context-engineering/templates/wiki/system-cross-cutting.xml +197 -0
  34. package/agile-context-engineering/templates/wiki/system-structure.xml +178 -0
  35. package/agile-context-engineering/templates/wiki/system.xml +381 -0
  36. package/agile-context-engineering/templates/wiki/tech-debt-index.xml +125 -0
  37. package/agile-context-engineering/templates/wiki/testing-framework.xml +283 -0
  38. package/agile-context-engineering/utils/questioning.xml +111 -0
  39. package/agile-context-engineering/utils/ui-formatting.md +300 -0
  40. package/agile-context-engineering/workflows/execute-story.xml +1145 -0
  41. package/agile-context-engineering/workflows/help.xml +540 -0
  42. package/agile-context-engineering/workflows/init-coding-standards.xml +386 -0
  43. package/agile-context-engineering/workflows/map-story.xml +797 -0
  44. package/agile-context-engineering/workflows/map-subsystem.xml +1177 -0
  45. package/agile-context-engineering/workflows/map-system.xml +647 -0
  46. package/agile-context-engineering/workflows/plan-backlog.xml +1356 -0
  47. package/agile-context-engineering/workflows/plan-feature.xml +1495 -0
  48. package/agile-context-engineering/workflows/plan-product-vision.xml +342 -0
  49. package/agile-context-engineering/workflows/plan-story.xml +909 -0
  50. package/agile-context-engineering/workflows/research-external-solution.xml +659 -0
  51. package/agile-context-engineering/workflows/research-integration-solution.xml +712 -0
  52. package/agile-context-engineering/workflows/research-story-wiki.xml +474 -0
  53. package/agile-context-engineering/workflows/research-technical-solution.xml +762 -0
  54. package/agile-context-engineering/workflows/review-story.xml +281 -0
  55. package/bin/install.js +102 -166
  56. package/commands/ace/execute-story.md +137 -0
  57. package/commands/ace/help.md +93 -0
  58. package/commands/ace/init-coding-standards.md +83 -0
  59. package/commands/ace/map-story.md +156 -0
  60. package/commands/ace/map-subsystem.md +138 -0
  61. package/commands/ace/map-system.md +90 -0
  62. package/commands/ace/plan-backlog.md +83 -0
  63. package/commands/ace/plan-feature.md +89 -0
  64. package/commands/ace/plan-product-vision.md +81 -0
  65. package/commands/ace/plan-story.md +145 -0
  66. package/commands/ace/research-external-solution.md +138 -0
  67. package/commands/ace/research-integration-solution.md +135 -0
  68. package/commands/ace/research-story-wiki.md +116 -0
  69. package/commands/ace/research-technical-solution.md +147 -0
  70. package/commands/ace/review-story.md +109 -0
  71. package/package.json +5 -8
  72. package/agents/executor.md +0 -88
  73. package/agents/planner.md +0 -78
  74. package/agents/researcher.md +0 -77
  75. package/agents/verifier.md +0 -116
  76. package/commands/ace-execute-story.md +0 -114
  77. package/commands/ace-init.md +0 -254
  78. package/commands/ace-plan-epic.md +0 -79
  79. package/commands/ace-plan-feature.md +0 -78
  80. package/commands/ace-plan-project.md +0 -205
  81. package/commands/ace-plan-story.md +0 -97
  82. package/commands/ace-refine-story.md +0 -90
  83. package/commands/ace-verify-story.md +0 -127
@@ -1,114 +0,0 @@
1
- # /ace:execute-story - Execute a Story
2
-
3
- Execute a refined story by completing all tasks with atomic commits.
4
-
5
- ## Usage
6
-
7
- ```
8
- /ace:execute-story <story-id>
9
- /ace:execute-story E1-F1-S1
10
- ```
11
-
12
- ### Arguments
13
-
14
- - `story-id` - The story identifier to execute
15
-
16
- ## Behavior
17
-
18
- This command executes a story by:
19
- - Working through each task in sequence
20
- - Making atomic commits per task
21
- - Updating task status as work progresses
22
- - Running tests after each significant change
23
-
24
- ## Instructions for Claude
25
-
26
- <ace-execute-story>
27
-
28
- ### Prerequisites
29
-
30
- 1. Verify ACE is initialized
31
- 2. Verify story is refined (has tasks)
32
- 3. Check for blockers
33
- 4. Ensure clean git state
34
-
35
- ### Execution Process
36
-
37
- 1. **Pre-flight Check**
38
- ```bash
39
- git status # Ensure clean working tree
40
- ```
41
-
42
- 2. **For Each Task:**
43
-
44
- a. **Read task details**
45
- - Understand what to do
46
- - Know the done criteria
47
-
48
- b. **Implement the task**
49
- - Make focused changes
50
- - Follow existing code patterns
51
- - Write/update tests as needed
52
-
53
- c. **Verify done criteria**
54
- - Run relevant tests
55
- - Check acceptance criteria
56
-
57
- d. **Commit atomically**
58
- ```bash
59
- git add <specific-files>
60
- git commit -m "feat(E1-F1-S1-T1): <task description>"
61
- ```
62
-
63
- e. **Update task status**
64
- - Mark task as completed in story file
65
-
66
- 3. **After All Tasks:**
67
- - Run full test suite
68
- - Update story status to "Done"
69
- - Update STATE.md
70
-
71
- ### Commit Message Format
72
-
73
- ```
74
- <type>(<story-task>): <description>
75
-
76
- [optional body]
77
-
78
- Co-Authored-By: Claude <noreply@anthropic.com>
79
- ```
80
-
81
- Types:
82
- - `feat` - New feature
83
- - `fix` - Bug fix
84
- - `refactor` - Code refactoring
85
- - `test` - Adding tests
86
- - `docs` - Documentation
87
- - `chore` - Maintenance
88
-
89
- ### Error Handling
90
-
91
- If a task fails:
92
- 1. Document the issue
93
- 2. Ask user for guidance
94
- 3. Do NOT proceed to next task until resolved
95
- 4. Consider creating a blocker in STATE.md
96
-
97
- ### Output
98
-
99
- ```
100
- ✓ Story E1-F1-S1 executed!
101
-
102
- Completed Tasks:
103
- ✓ T1: <description> (commit abc123)
104
- ✓ T2: <description> (commit def456)
105
- ✓ T3: <description> (commit ghi789)
106
-
107
- Tests: All passing
108
-
109
- Next steps:
110
- - Run /ace:verify-story E1-F1-S1
111
- - Or continue with next story
112
- ```
113
-
114
- </ace-execute-story>
@@ -1,254 +0,0 @@
1
- # /ace:init - Initialize ACE in Your Project
2
-
3
- Initialize Agile Context Engineering (ACE) for spec-driven development with Claude Code or OpenCode.
4
-
5
- ## Usage
6
-
7
- ```
8
- /ace:init [--github]
9
- ```
10
-
11
- ### Options
12
-
13
- - `--github` - Create items as GitHub issues instead of local files (requires `gh` CLI)
14
-
15
- ## Behavior
16
-
17
- When invoked, this command will:
18
-
19
- 1. **Check prerequisites**
20
- - Verify you're in a git repository
21
- - Check if ACE is already initialized
22
- - If `--github` flag is used, verify `gh` CLI is authenticated
23
-
24
- 2. **Create ACE directory structure**
25
- ```
26
- .ace/
27
- ├── config.json # ACE configuration
28
- ├── backlog/ # Epic and feature definitions
29
- ├── sprints/ # Sprint planning and tracking
30
- └── research/ # Domain research and findings
31
- ```
32
-
33
- 3. **Create initial project files**
34
- - `PROJECT.md` - Project vision and goals
35
- - `BACKLOG.md` - Product backlog overview
36
- - `STATE.md` - Current project state and decisions
37
-
38
- 4. **Configure GitHub integration** (if `--github` flag used)
39
- - Create GitHub labels for epics, features, stories
40
- - Set up issue templates
41
-
42
- ## Instructions for Claude
43
-
44
- <ace-init>
45
-
46
- ### Step 1: Verify Prerequisites
47
-
48
- Check if we're in a git repository:
49
- ```bash
50
- git rev-parse --is-inside-work-tree
51
- ```
52
-
53
- Check if ACE is already initialized:
54
- - Look for `.ace/config.json` file
55
- - If exists, ask user if they want to reinitialize
56
-
57
- ### Step 2: Gather Project Information
58
-
59
- Ask the user for:
60
- 1. **Project name** - What is this project called?
61
- 2. **Project description** - One-line description of what this project does
62
- 3. **Storage preference** - Local files or GitHub issues?
63
- 4. **GitHub integration** - If GitHub, which repo? (auto-detect from git remote if possible)
64
-
65
- ### Step 3: Create Directory Structure
66
-
67
- Create the following structure:
68
-
69
- ```
70
- .ace/
71
- ├── config.json
72
- ├── backlog/
73
- ├── sprints/
74
- └── research/
75
- ```
76
-
77
- ### Step 4: Create Configuration File
78
-
79
- Create `.ace/config.json`:
80
-
81
- ```json
82
- {
83
- "version": "0.1.0",
84
- "projectName": "<project-name>",
85
- "description": "<project-description>",
86
- "storage": "local|github",
87
- "github": {
88
- "enabled": false,
89
- "repo": null,
90
- "labels": {
91
- "epic": "ace:epic",
92
- "feature": "ace:feature",
93
- "story": "ace:story",
94
- "task": "ace:task"
95
- }
96
- },
97
- "createdAt": "<timestamp>",
98
- "hierarchy": {
99
- "levels": ["epic", "feature", "story", "task"],
100
- "current": {
101
- "epic": null,
102
- "feature": null,
103
- "story": null,
104
- "sprint": null
105
- }
106
- }
107
- }
108
- ```
109
-
110
- ### Step 5: Create PROJECT.md
111
-
112
- Create `PROJECT.md` in the repository root:
113
-
114
- ```markdown
115
- # <Project Name>
116
-
117
- > <One-line description>
118
-
119
- ## Vision
120
-
121
- <!-- Describe the long-term vision for this project -->
122
-
123
- ## Goals
124
-
125
- <!-- List 3-5 key goals this project aims to achieve -->
126
-
127
- ## Non-Goals
128
-
129
- <!-- What is explicitly out of scope -->
130
-
131
- ## Success Criteria
132
-
133
- <!-- How will you measure success? -->
134
-
135
- ---
136
-
137
- *Managed with [ACE](https://github.com/agile-context-engineering/ace) - Agile Context Engineering*
138
- ```
139
-
140
- ### Step 6: Create BACKLOG.md
141
-
142
- Create `BACKLOG.md` in the repository root:
143
-
144
- ```markdown
145
- # Product Backlog
146
-
147
- ## Epics
148
-
149
- <!-- Epics are large bodies of work that can be broken down into features -->
150
-
151
- | ID | Epic | Status | Features |
152
- |----|------|--------|----------|
153
- | - | - | - | - |
154
-
155
- ## Prioritized Features
156
-
157
- <!-- Features ready for sprint planning -->
158
-
159
- | Priority | Feature | Epic | Stories | Status |
160
- |----------|---------|------|---------|--------|
161
- | - | - | - | - | - |
162
-
163
- ---
164
-
165
- *Use `/ace:plan-epic` to add epics, `/ace:plan-feature` to break them into features*
166
- ```
167
-
168
- ### Step 7: Create STATE.md
169
-
170
- Create `STATE.md` in the repository root:
171
-
172
- ```markdown
173
- # Project State
174
-
175
- > Last updated: <timestamp>
176
-
177
- ## Current Sprint
178
-
179
- **Sprint:** None
180
- **Goal:** N/A
181
- **Status:** Not started
182
-
183
- ## Active Work
184
-
185
- <!-- Currently in-progress items -->
186
-
187
- | Item | Type | Assignee | Status |
188
- |------|------|----------|--------|
189
- | - | - | - | - |
190
-
191
- ## Decisions Log
192
-
193
- <!-- Important decisions made during development -->
194
-
195
- | Date | Decision | Context | Alternatives Considered |
196
- |------|----------|---------|------------------------|
197
- | - | - | - | - |
198
-
199
- ## Blockers
200
-
201
- <!-- Current blockers and their status -->
202
-
203
- | Blocker | Impact | Owner | Status |
204
- |---------|--------|-------|--------|
205
- | - | - | - | - |
206
-
207
- ## Context Notes
208
-
209
- <!-- Important context for future sessions -->
210
-
211
- ---
212
-
213
- *Updated automatically by ACE commands*
214
- ```
215
-
216
- ### Step 8: GitHub Setup (if enabled)
217
-
218
- If GitHub integration is enabled:
219
-
220
- 1. Create labels:
221
- ```bash
222
- gh label create "ace:epic" --color "7057ff" --description "ACE Epic - large body of work"
223
- gh label create "ace:feature" --color "0075ca" --description "ACE Feature - deliverable functionality"
224
- gh label create "ace:story" --color "008672" --description "ACE Story - user-facing work item"
225
- gh label create "ace:task" --color "d73a4a" --description "ACE Task - technical work item"
226
- gh label create "ace:blocked" --color "b60205" --description "ACE Blocked - waiting on dependency"
227
- gh label create "ace:sprint" --color "fbca04" --description "ACE Sprint - current sprint item"
228
- ```
229
-
230
- 2. Update config.json with GitHub settings
231
-
232
- ### Step 9: Confirm Success
233
-
234
- Output a summary:
235
-
236
- ```
237
- ✓ ACE initialized successfully!
238
-
239
- Created:
240
- - .ace/config.json
241
- - .ace/backlog/
242
- - .ace/sprints/
243
- - .ace/research/
244
- - PROJECT.md
245
- - BACKLOG.md
246
- - STATE.md
247
-
248
- Next steps:
249
- 1. Edit PROJECT.md to define your vision and goals
250
- 2. Run /ace:plan-project to create your initial epics
251
- 3. Run /ace:plan-epic to break epics into features
252
- ```
253
-
254
- </ace-init>
@@ -1,79 +0,0 @@
1
- # /ace:plan-epic - Plan an Epic
2
-
3
- Break down an epic into features and define acceptance criteria.
4
-
5
- ## Usage
6
-
7
- ```
8
- /ace:plan-epic <epic-id>
9
- /ace:plan-epic E1
10
- ```
11
-
12
- ### Arguments
13
-
14
- - `epic-id` - The epic identifier (e.g., E1, E2)
15
-
16
- ## Behavior
17
-
18
- This command helps you detail an epic by:
19
- - Defining all features within the epic
20
- - Setting acceptance criteria
21
- - Identifying dependencies between features
22
- - Estimating relative complexity
23
-
24
- ## Instructions for Claude
25
-
26
- <ace-plan-epic>
27
-
28
- ### Prerequisites
29
-
30
- 1. Verify ACE is initialized
31
- 2. Verify the epic exists in `.ace/backlog/`
32
- 3. Read the epic file and understand context
33
-
34
- ### Planning Flow
35
-
36
- 1. **Review Epic Context**
37
- - Read the epic definition
38
- - Understand the user value
39
- - Review any existing features
40
-
41
- 2. **Feature Breakdown**
42
- - Identify 3-8 features for this epic
43
- - Each feature should be completable in 1-2 sprints
44
- - Features should deliver demonstrable value
45
-
46
- 3. **For Each Feature, Capture:**
47
- - ID: E1-F1, E1-F2, etc.
48
- - Name: Clear, action-oriented name
49
- - Description: What this feature delivers
50
- - User stories preview: High-level story count estimate
51
- - Dependencies: Other features this depends on
52
- - Acceptance criteria: How we know it's done
53
-
54
- 4. **Create Feature Files**
55
- - Save to `.ace/backlog/<epic-id>/F1-feature-name.md`
56
-
57
- 5. **Update Epic File**
58
- - Add features table
59
- - Update status
60
-
61
- 6. **GitHub Integration** (if enabled)
62
- - Create feature issues linked to epic
63
- - Add `ace:feature` label
64
-
65
- ### Output
66
-
67
- ```
68
- ✓ Epic E1 planned!
69
-
70
- Features:
71
- E1-F1: <Feature Name>
72
- E1-F2: <Feature Name>
73
- ...
74
-
75
- Next steps:
76
- - Run /ace:plan-feature E1-F1 to break into stories
77
- ```
78
-
79
- </ace-plan-epic>
@@ -1,78 +0,0 @@
1
- # /ace:plan-feature - Plan a Feature
2
-
3
- Break down a feature into user stories ready for sprint planning.
4
-
5
- ## Usage
6
-
7
- ```
8
- /ace:plan-feature <feature-id>
9
- /ace:plan-feature E1-F1
10
- ```
11
-
12
- ### Arguments
13
-
14
- - `feature-id` - The feature identifier (e.g., E1-F1)
15
-
16
- ## Behavior
17
-
18
- This command helps you detail a feature by:
19
- - Defining user stories using the "As a... I want... So that..." format
20
- - Setting story acceptance criteria
21
- - Identifying technical considerations
22
- - Preparing stories for sprint planning
23
-
24
- ## Instructions for Claude
25
-
26
- <ace-plan-feature>
27
-
28
- ### Prerequisites
29
-
30
- 1. Verify ACE is initialized
31
- 2. Verify the feature exists
32
- 3. Read feature and parent epic context
33
-
34
- ### Planning Flow
35
-
36
- 1. **Review Feature Context**
37
- - Understand what this feature delivers
38
- - Review acceptance criteria
39
- - Understand dependencies
40
-
41
- 2. **Story Breakdown**
42
- - Create 2-5 user stories per feature
43
- - Each story should be completable in 1-3 days
44
- - Stories should be independently valuable
45
-
46
- 3. **For Each Story, Capture:**
47
- - ID: E1-F1-S1, etc.
48
- - Title: Action-oriented title
49
- - User Story: "As a [user], I want [goal], so that [benefit]"
50
- - Acceptance Criteria: Testable conditions
51
- - Technical Notes: Implementation considerations
52
- - Estimate: Story points (1, 2, 3, 5, 8)
53
-
54
- 4. **Create Story Files**
55
- - Save to `.ace/backlog/<epic>/<feature>/S1-story-name.md`
56
-
57
- 5. **GitHub Integration** (if enabled)
58
- - Create story issues linked to feature
59
- - Add `ace:story` label
60
-
61
- ### Output
62
-
63
- ```
64
- ✓ Feature E1-F1 planned!
65
-
66
- Stories:
67
- E1-F1-S1: <Story Title> (3 pts)
68
- E1-F1-S2: <Story Title> (2 pts)
69
- ...
70
-
71
- Total Points: X
72
-
73
- Next steps:
74
- - Run /ace:refine-story E1-F1-S1 to prepare for execution
75
- - Add stories to sprint with /ace:sprint-plan
76
- ```
77
-
78
- </ace-plan-feature>