agile-context-engineering 0.3.0 → 0.5.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/.claude-plugin/plugin.json +10 -0
- package/LICENSE +51 -51
- package/README.md +332 -324
- package/agents/ace-product-owner.md +1 -1
- package/agents/ace-research-synthesizer.md +228 -228
- package/agents/ace-wiki-mapper.md +449 -445
- package/bin/install.js +60 -64
- package/hooks/ace-check-update.js +70 -62
- package/hooks/ace-statusline.js +89 -89
- package/package.json +5 -4
- package/shared/lib/ace-core.js +308 -0
- package/shared/lib/ace-core.test.js +308 -0
- package/shared/lib/ace-github.js +753 -0
- package/shared/lib/ace-story.js +400 -0
- package/shared/lib/ace-story.test.js +250 -0
- package/{agile-context-engineering → shared}/utils/questioning.xml +110 -110
- package/{agile-context-engineering → shared}/utils/ui-formatting.md +299 -299
- package/skills/execute-story/SKILL.md +110 -0
- package/skills/execute-story/script.js +305 -0
- package/skills/execute-story/script.test.js +261 -0
- package/skills/execute-story/walkthrough-template.xml +255 -0
- package/{agile-context-engineering/workflows/execute-story.xml → skills/execute-story/workflow.xml} +1219 -1219
- package/skills/help/SKILL.md +69 -0
- package/skills/help/script.js +318 -0
- package/skills/help/script.test.js +183 -0
- package/{agile-context-engineering/workflows/help.xml → skills/help/workflow.xml} +540 -540
- package/skills/init-coding-standards/SKILL.md +72 -0
- package/skills/init-coding-standards/script.js +59 -0
- package/skills/init-coding-standards/script.test.js +70 -0
- package/{agile-context-engineering/workflows/init-coding-standards.xml → skills/init-coding-standards/workflow.xml} +381 -386
- package/skills/map-cross-cutting/SKILL.md +89 -0
- package/{agile-context-engineering/templates/wiki → skills/map-cross-cutting}/system-cross-cutting.xml +197 -197
- package/skills/map-cross-cutting/workflow.xml +330 -0
- package/skills/map-guide/SKILL.md +89 -0
- package/{agile-context-engineering/templates/wiki → skills/map-guide}/guide.xml +137 -137
- package/skills/map-guide/workflow.xml +320 -0
- package/skills/map-pattern/SKILL.md +89 -0
- package/{agile-context-engineering/templates/wiki → skills/map-pattern}/pattern.xml +159 -159
- package/skills/map-pattern/workflow.xml +331 -0
- package/skills/map-story/SKILL.md +127 -0
- package/{agile-context-engineering/templates/wiki → skills/map-story/templates}/decizions.xml +115 -115
- package/skills/map-story/templates/guide.xml +137 -0
- package/skills/map-story/templates/pattern.xml +159 -0
- package/skills/map-story/templates/system-cross-cutting.xml +197 -0
- package/{agile-context-engineering/templates/wiki → skills/map-story/templates}/system.xml +381 -381
- package/{agile-context-engineering/templates/wiki → skills/map-story/templates}/walkthrough.xml +255 -255
- package/{agile-context-engineering/workflows/map-story.xml → skills/map-story/workflow.xml} +1046 -1046
- package/skills/map-subsystem/SKILL.md +111 -0
- package/skills/map-subsystem/script.js +60 -0
- package/skills/map-subsystem/script.test.js +68 -0
- package/skills/map-subsystem/templates/decizions.xml +115 -0
- package/skills/map-subsystem/templates/guide.xml +137 -0
- package/{agile-context-engineering/templates/wiki → skills/map-subsystem/templates}/module-discovery.xml +174 -174
- package/skills/map-subsystem/templates/pattern.xml +159 -0
- package/skills/map-subsystem/templates/system-cross-cutting.xml +197 -0
- package/skills/map-subsystem/templates/system.xml +381 -0
- package/skills/map-subsystem/templates/walkthrough.xml +255 -0
- package/{agile-context-engineering/workflows/map-subsystem.xml → skills/map-subsystem/workflow.xml} +15 -20
- package/skills/map-sys-doc/SKILL.md +90 -0
- package/skills/map-sys-doc/system.xml +381 -0
- package/skills/map-sys-doc/workflow.xml +336 -0
- package/skills/map-system/SKILL.md +85 -0
- package/skills/map-system/script.js +84 -0
- package/skills/map-system/script.test.js +73 -0
- package/{agile-context-engineering/templates/wiki → skills/map-system/templates}/system-architecture.xml +254 -254
- package/{agile-context-engineering/templates/wiki → skills/map-system/templates}/wiki-readme.xml +296 -296
- package/{agile-context-engineering/workflows/map-system.xml → skills/map-system/workflow.xml} +11 -16
- package/skills/map-walkthrough/SKILL.md +92 -0
- package/skills/map-walkthrough/walkthrough.xml +255 -0
- package/skills/plan-backlog/SKILL.md +75 -0
- package/{agile-context-engineering/templates/product/product-backlog.xml → skills/plan-backlog/product-backlog-template.xml} +231 -231
- package/skills/plan-backlog/script.js +136 -0
- package/skills/plan-backlog/script.test.js +83 -0
- package/{agile-context-engineering/workflows/plan-backlog.xml → skills/plan-backlog/workflow.xml} +13 -21
- package/skills/plan-feature/SKILL.md +76 -0
- package/skills/plan-feature/script.js +148 -0
- package/skills/plan-feature/script.test.js +80 -0
- package/{agile-context-engineering/workflows/plan-feature.xml → skills/plan-feature/workflow.xml} +1487 -1495
- package/skills/plan-product-vision/SKILL.md +75 -0
- package/skills/plan-product-vision/script.js +60 -0
- package/skills/plan-product-vision/script.test.js +69 -0
- package/{agile-context-engineering/workflows/plan-product-vision.xml → skills/plan-product-vision/workflow.xml} +4 -9
- package/skills/plan-story/SKILL.md +116 -0
- package/skills/plan-story/script.js +326 -0
- package/skills/plan-story/script.test.js +240 -0
- package/skills/plan-story/story-template.xml +451 -0
- package/{agile-context-engineering/workflows/plan-story.xml → skills/plan-story/workflow.xml} +1285 -944
- package/skills/research-external-solution/SKILL.md +107 -0
- package/skills/research-external-solution/script.js +238 -0
- package/skills/research-external-solution/script.test.js +134 -0
- package/{agile-context-engineering/workflows/research-external-solution.xml → skills/research-external-solution/workflow.xml} +4 -6
- package/skills/research-integration-solution/SKILL.md +98 -0
- package/skills/research-integration-solution/script.js +231 -0
- package/skills/research-integration-solution/script.test.js +134 -0
- package/{agile-context-engineering/workflows/research-integration-solution.xml → skills/research-integration-solution/workflow.xml} +3 -5
- package/skills/research-story-wiki/SKILL.md +92 -0
- package/skills/research-story-wiki/script.js +231 -0
- package/skills/research-story-wiki/script.test.js +138 -0
- package/{agile-context-engineering/workflows/research-story-wiki.xml → skills/research-story-wiki/workflow.xml} +3 -5
- package/skills/research-technical-solution/SKILL.md +103 -0
- package/skills/research-technical-solution/script.js +231 -0
- package/skills/research-technical-solution/script.test.js +134 -0
- package/{agile-context-engineering/workflows/research-technical-solution.xml → skills/research-technical-solution/workflow.xml} +3 -5
- package/skills/review-story/SKILL.md +100 -0
- package/skills/review-story/script.js +257 -0
- package/skills/review-story/script.test.js +169 -0
- package/skills/review-story/story-template.xml +451 -0
- package/{agile-context-engineering/workflows/review-story.xml → skills/review-story/workflow.xml} +279 -281
- package/skills/update/SKILL.md +53 -0
- package/{agile-context-engineering/workflows/update.xml → skills/update/workflow.xml} +12 -13
- package/agile-context-engineering/src/ace-tools.js +0 -2881
- package/agile-context-engineering/src/ace-tools.test.js +0 -1089
- package/agile-context-engineering/templates/_command.md +0 -54
- package/agile-context-engineering/templates/_workflow.xml +0 -17
- package/agile-context-engineering/templates/config.json +0 -0
- package/agile-context-engineering/templates/product/integration-solution.xml +0 -0
- package/commands/ace/execute-story.md +0 -138
- package/commands/ace/help.md +0 -93
- package/commands/ace/init-coding-standards.md +0 -83
- package/commands/ace/map-story.md +0 -165
- package/commands/ace/map-subsystem.md +0 -140
- package/commands/ace/map-system.md +0 -92
- package/commands/ace/map-walkthrough.md +0 -127
- package/commands/ace/plan-backlog.md +0 -83
- package/commands/ace/plan-feature.md +0 -89
- package/commands/ace/plan-product-vision.md +0 -81
- package/commands/ace/plan-story.md +0 -159
- package/commands/ace/research-external-solution.md +0 -138
- package/commands/ace/research-integration-solution.md +0 -135
- package/commands/ace/research-story-wiki.md +0 -116
- package/commands/ace/research-technical-solution.md +0 -147
- package/commands/ace/review-story.md +0 -109
- package/commands/ace/update.md +0 -56
- /package/{agile-context-engineering/templates/product/story.xml → skills/execute-story/story-template.xml} +0 -0
- /package/{agile-context-engineering/templates/wiki/coding-standards.xml → skills/init-coding-standards/coding-standards-template.xml} +0 -0
- /package/{agile-context-engineering/templates/wiki → skills/map-story/templates}/tech-debt-index.xml +0 -0
- /package/{agile-context-engineering/templates/wiki → skills/map-subsystem/templates}/subsystem-architecture.xml +0 -0
- /package/{agile-context-engineering/templates/wiki → skills/map-subsystem/templates}/subsystem-structure.xml +0 -0
- /package/{agile-context-engineering/templates/wiki → skills/map-system/templates}/system-structure.xml +0 -0
- /package/{agile-context-engineering/templates/wiki → skills/map-system/templates}/testing-framework.xml +0 -0
- /package/{agile-context-engineering/workflows/map-walkthrough.xml → skills/map-walkthrough/workflow.xml} +0 -0
- /package/{agile-context-engineering/templates/product/feature.xml → skills/plan-feature/feature-template.xml} +0 -0
- /package/{agile-context-engineering/templates/product/product-vision.xml → skills/plan-product-vision/product-vision-template.xml} +0 -0
- /package/{agile-context-engineering/templates/product/external-solution.xml → skills/research-external-solution/external-solution-template.xml} +0 -0
- /package/{agile-context-engineering/templates/product/story-integration-solution.xml → skills/research-integration-solution/integration-solution-template.xml} +0 -0
- /package/{agile-context-engineering/templates/product/story-wiki.xml → skills/research-story-wiki/story-wiki-template.xml} +0 -0
- /package/{agile-context-engineering/templates/product/story-technical-solution.xml → skills/research-technical-solution/technical-solution-template.xml} +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ace:COMMAND_NAME
|
|
3
|
-
description: COMMAND_DESCRIPTION
|
|
4
|
-
argument-hint: ""
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Bash
|
|
8
|
-
- Glob
|
|
9
|
-
- Grep
|
|
10
|
-
- Write
|
|
11
|
-
- Task
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
```xml
|
|
15
|
-
<command>
|
|
16
|
-
|
|
17
|
-
<execution-time>
|
|
18
|
-
</execution-time>
|
|
19
|
-
|
|
20
|
-
<input>
|
|
21
|
-
<flags>
|
|
22
|
-
</flags>
|
|
23
|
-
|
|
24
|
-
<parameters>
|
|
25
|
-
<required>
|
|
26
|
-
</required>
|
|
27
|
-
|
|
28
|
-
<optional>
|
|
29
|
-
</optional>
|
|
30
|
-
</parameters>
|
|
31
|
-
</input>
|
|
32
|
-
|
|
33
|
-
<execution-context>
|
|
34
|
-
</execution-context>
|
|
35
|
-
|
|
36
|
-
<output>
|
|
37
|
-
<objective>
|
|
38
|
-
</objective>
|
|
39
|
-
|
|
40
|
-
<artifacts>
|
|
41
|
-
</artifacts>
|
|
42
|
-
</output>
|
|
43
|
-
|
|
44
|
-
<process>
|
|
45
|
-
</process>
|
|
46
|
-
|
|
47
|
-
<success_criteria>
|
|
48
|
-
</success_criteria>
|
|
49
|
-
|
|
50
|
-
<next-steps>
|
|
51
|
-
</next-steps>
|
|
52
|
-
|
|
53
|
-
</command>
|
|
54
|
-
```
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<workflow>
|
|
2
|
-
|
|
3
|
-
<purpose>
|
|
4
|
-
</purpose>
|
|
5
|
-
|
|
6
|
-
<mandatory-context>
|
|
7
|
-
[TODO] Read all files referenced by the invoking prompt's execution-context before starting. Also Read any document or text passed as parameter in the invoking command that called this template.
|
|
8
|
-
</mandatory-context>
|
|
9
|
-
|
|
10
|
-
<process>
|
|
11
|
-
<step name="1">
|
|
12
|
-
</step>
|
|
13
|
-
|
|
14
|
-
<step name="2">
|
|
15
|
-
</step>
|
|
16
|
-
</process>
|
|
17
|
-
</workflow>
|
|
File without changes
|
|
File without changes
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ace:execute-story
|
|
3
|
-
description: Execute a fully-planned story — loads AC + Technical Solution, creates execution plan via Plan Mode, implements (solo or agent teams), runs code review, updates state, and triggers wiki mapping
|
|
4
|
-
argument-hint: "story=<file-path|github-url> [--agent-teams-off]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Bash
|
|
8
|
-
- Write
|
|
9
|
-
- Edit
|
|
10
|
-
- AskUserQuestion
|
|
11
|
-
- Glob
|
|
12
|
-
- Grep
|
|
13
|
-
- Agent
|
|
14
|
-
- EnterPlanMode
|
|
15
|
-
- ExitPlanMode
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
```xml
|
|
19
|
-
<command>
|
|
20
|
-
|
|
21
|
-
<execution-time>
|
|
22
|
-
<runs-after>
|
|
23
|
-
<trigger>After /ace:plan-story — once a story has AC + Technical Solution</trigger>
|
|
24
|
-
<trigger>Anytime — to execute a fully-planned story specification</trigger>
|
|
25
|
-
</runs-after>
|
|
26
|
-
<use-when>
|
|
27
|
-
<condition>A story has both Acceptance Criteria AND Technical Solution sections</condition>
|
|
28
|
-
<condition>Story status is "Refined" (ready for implementation)</condition>
|
|
29
|
-
</use-when>
|
|
30
|
-
</execution-time>
|
|
31
|
-
|
|
32
|
-
<input>
|
|
33
|
-
<flags>
|
|
34
|
-
<flag name="--agent-teams-off">
|
|
35
|
-
Force solo execution mode regardless of agent_teams setting.
|
|
36
|
-
Overrides the agent_teams flag in settings.json.
|
|
37
|
-
Use when you want single-context execution even if teams are enabled.
|
|
38
|
-
</flag>
|
|
39
|
-
</flags>
|
|
40
|
-
|
|
41
|
-
<parameters>
|
|
42
|
-
<required>
|
|
43
|
-
<param name="story" type="file | github-url">
|
|
44
|
-
Story source — can be either:
|
|
45
|
-
- **File path**: Path to a fully-planned story markdown file
|
|
46
|
-
(must have AC + Technical Solution sections)
|
|
47
|
-
- **GitHub URL or issue number**: GitHub story reference
|
|
48
|
-
Must be a valid, accessible file or GitHub issue.
|
|
49
|
-
The story MUST have been through /ace:plan-story (has AC + Technical Solution).
|
|
50
|
-
</param>
|
|
51
|
-
</required>
|
|
52
|
-
</parameters>
|
|
53
|
-
</input>
|
|
54
|
-
|
|
55
|
-
<execution-context>
|
|
56
|
-
<execute-story-workflow>@~/.claude/agile-context-engineering/workflows/execute-story.xml</execute-story-workflow>
|
|
57
|
-
<story-template>@~/.claude/agile-context-engineering/templates/product/story.xml</story-template>
|
|
58
|
-
<walkthrough-template>@~/.claude/agile-context-engineering/templates/wiki/walkthrough.xml</walkthrough-template>
|
|
59
|
-
<questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
|
|
60
|
-
<ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
|
|
61
|
-
</execution-context>
|
|
62
|
-
|
|
63
|
-
<output>
|
|
64
|
-
<objective>
|
|
65
|
-
Take a fully-planned story (with AC + Technical Solution) and:
|
|
66
|
-
1. Create an execution plan via Claude Code Plan Mode
|
|
67
|
-
2. Execute the plan — solo or with Agent Teams
|
|
68
|
-
3. Run code review (3-level verification, anti-pattern detection, coding standards)
|
|
69
|
-
4. Present results to user for verification/approval
|
|
70
|
-
5. Commit implementation (single commit after approval)
|
|
71
|
-
6. Update state: story file, feature file, product backlog, GitHub
|
|
72
|
-
7. Trigger wiki mapping (background) with tech debt integration
|
|
73
|
-
|
|
74
|
-
Two execution modes:
|
|
75
|
-
- **Solo Mode** (default or --agent-teams-off): Single context, plan mode → execute
|
|
76
|
-
- **Agent Teams Mode** (when enabled + plan recommends): Lead + teammates for parallel work
|
|
77
|
-
</objective>
|
|
78
|
-
|
|
79
|
-
<artifacts>
|
|
80
|
-
Story file updated with Summary & State section and Wiki Updates section.
|
|
81
|
-
Feature file updated with story status.
|
|
82
|
-
Product backlog updated with story (and possibly feature) status.
|
|
83
|
-
Wiki documents updated/created based on implementation changes.
|
|
84
|
-
</artifacts>
|
|
85
|
-
</output>
|
|
86
|
-
|
|
87
|
-
<process>
|
|
88
|
-
**STRICT WORKFLOW EXECUTION — Follow the execute-story workflow STEP BY STEP.
|
|
89
|
-
Do NOT skip steps. Do NOT improvise. Do NOT start reading code or planning
|
|
90
|
-
until step 1 (init & validate) is fully complete with the init command output parsed.**
|
|
91
|
-
|
|
92
|
-
Execute the execute-story workflow from
|
|
93
|
-
`@~/.claude/agile-context-engineering/workflows/execute-story.xml` end-to-end.
|
|
94
|
-
|
|
95
|
-
**MANDATORY FIRST ACTION: Run the init command (step 1.2) BEFORE doing anything else.
|
|
96
|
-
Do NOT read the story file manually. Do NOT explore the codebase. Do NOT start planning.
|
|
97
|
-
The init command validates the story and provides all paths and context needed.**
|
|
98
|
-
|
|
99
|
-
**CRITICAL REQUIREMENTS:**
|
|
100
|
-
- Story MUST have Acceptance Criteria — STOP if missing
|
|
101
|
-
- Story MUST have Technical Solution — STOP if missing
|
|
102
|
-
- NO intermediary commits during implementation
|
|
103
|
-
- ONE single commit per story after user approval (code + state + docs)
|
|
104
|
-
- Code review is MANDATORY — blockers must be fixed before approval
|
|
105
|
-
- Coding standards violations are BLOCKERS, not warnings
|
|
106
|
-
- Dead code and backwards-compatible shims must be DELETED
|
|
107
|
-
</process>
|
|
108
|
-
|
|
109
|
-
<example-usage>
|
|
110
|
-
```
|
|
111
|
-
# Execute a story from a file path
|
|
112
|
-
/ace:execute-story \
|
|
113
|
-
story=.ace/artifacts/product/e1-auth/f3-oauth/s1-buttons/s1-buttons.md
|
|
114
|
-
|
|
115
|
-
# Execute from a GitHub issue
|
|
116
|
-
/ace:execute-story \
|
|
117
|
-
story=https://github.com/owner/repo/issues/95
|
|
118
|
-
|
|
119
|
-
# Force solo mode (no agent teams)
|
|
120
|
-
/ace:execute-story \
|
|
121
|
-
story=.ace/artifacts/product/e1-auth/f3-oauth/s1-buttons/s1-buttons.md \
|
|
122
|
-
--agent-teams-off
|
|
123
|
-
|
|
124
|
-
# With just an issue number
|
|
125
|
-
/ace:execute-story story=#95
|
|
126
|
-
```
|
|
127
|
-
</example-usage>
|
|
128
|
-
|
|
129
|
-
<next-steps>
|
|
130
|
-
**After this command:**
|
|
131
|
-
- `/ace:execute-story story=...` — Execute the next story in the feature
|
|
132
|
-
- `/ace:review-story story=...` — Re-run code review (standalone)
|
|
133
|
-
- `/ace:plan-story story=...` — Plan the next story
|
|
134
|
-
- `/ace:help` — Check project status
|
|
135
|
-
</next-steps>
|
|
136
|
-
|
|
137
|
-
</command>
|
|
138
|
-
```
|
package/commands/ace/help.md
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ace:help
|
|
3
|
-
description: Check project initialization status and suggest next steps
|
|
4
|
-
argument-hint: ""
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Bash
|
|
8
|
-
- Write
|
|
9
|
-
- AskUserQuestion
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
```xml
|
|
13
|
-
<command>
|
|
14
|
-
|
|
15
|
-
<execution-time>
|
|
16
|
-
<runs-after>
|
|
17
|
-
<trigger>At any time — to check which ACE documents exist and what to do next</trigger>
|
|
18
|
-
<trigger>At the start of a new project — to see the initialization checklist</trigger>
|
|
19
|
-
</runs-after>
|
|
20
|
-
<use-when>
|
|
21
|
-
<condition>Starting a new project and want to see what needs to be set up</condition>
|
|
22
|
-
<condition>Returning to a project and want to check initialization status</condition>
|
|
23
|
-
<condition>Unsure which ACE command to run next</condition>
|
|
24
|
-
</use-when>
|
|
25
|
-
</execution-time>
|
|
26
|
-
|
|
27
|
-
<input>
|
|
28
|
-
<flags>
|
|
29
|
-
</flags>
|
|
30
|
-
|
|
31
|
-
<parameters>
|
|
32
|
-
<required>
|
|
33
|
-
</required>
|
|
34
|
-
|
|
35
|
-
<optional>
|
|
36
|
-
</optional>
|
|
37
|
-
</parameters>
|
|
38
|
-
</input>
|
|
39
|
-
|
|
40
|
-
<execution-context>
|
|
41
|
-
<help-workflow>@~/.claude/agile-context-engineering/workflows/help.xml</help-workflow>
|
|
42
|
-
<questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
|
|
43
|
-
<ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
|
|
44
|
-
</execution-context>
|
|
45
|
-
|
|
46
|
-
<output>
|
|
47
|
-
<objective>
|
|
48
|
-
Detect which ACE documents exist (product vision, system architecture, system structure,
|
|
49
|
-
coding standards, testing framework). Display a status dashboard showing what's done
|
|
50
|
-
and what's missing. Suggest the next command to run based on gaps.
|
|
51
|
-
</objective>
|
|
52
|
-
|
|
53
|
-
<artifacts>
|
|
54
|
-
- .ace/settings.json (created on first run if missing)
|
|
55
|
-
</artifacts>
|
|
56
|
-
</output>
|
|
57
|
-
|
|
58
|
-
<process>
|
|
59
|
-
Execute the help workflow from
|
|
60
|
-
`@~/.claude/agile-context-engineering/workflows/help.xml` end-to-end.
|
|
61
|
-
This is a lightweight state-check and routing workflow.
|
|
62
|
-
|
|
63
|
-
CRITICAL MANDATORY STEP — DO NOT SKIP:
|
|
64
|
-
Before displaying the status dashboard, you MUST run:
|
|
65
|
-
```bash
|
|
66
|
-
node ~/.claude/agile-context-engineering/src/ace-tools.js sync-agent-teams --raw
|
|
67
|
-
```
|
|
68
|
-
Then you MUST use `AskUserQuestion` to ask the user whether they want to
|
|
69
|
-
enable or disable Claude Code Agent Teams (experimental feature).
|
|
70
|
-
This step is NOT optional. You MUST present this question every time.
|
|
71
|
-
|
|
72
|
-
When the user chooses to enable or disable Agent Teams, you MUST run the
|
|
73
|
-
bash command — NEVER directly edit .ace/settings.json or .claude/settings.json:
|
|
74
|
-
```bash
|
|
75
|
-
node ~/.claude/agile-context-engineering/src/ace-tools.js write-agent-teams true
|
|
76
|
-
```
|
|
77
|
-
or
|
|
78
|
-
```bash
|
|
79
|
-
node ~/.claude/agile-context-engineering/src/ace-tools.js write-agent-teams false
|
|
80
|
-
```
|
|
81
|
-
The write-agent-teams command updates BOTH .ace/settings.json AND .claude/settings.json.
|
|
82
|
-
Direct file edits will cause the two files to go out of sync.
|
|
83
|
-
</process>
|
|
84
|
-
|
|
85
|
-
<next-steps>
|
|
86
|
-
**Specialized commands for each document:**
|
|
87
|
-
- `/ace:plan-product-vision` — Create or update the product vision
|
|
88
|
-
- `/ace:map-system` — Map codebase structure, architecture, and testing framework
|
|
89
|
-
- `/ace:init-coding-standards` — Generate tailored coding standards
|
|
90
|
-
</next-steps>
|
|
91
|
-
|
|
92
|
-
</command>
|
|
93
|
-
```
|
|
@@ -1,83 +0,0 @@
|
|
|
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,165 +0,0 @@
|
|
|
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
|
-
```
|