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.
Files changed (147) hide show
  1. package/.claude-plugin/plugin.json +10 -0
  2. package/LICENSE +51 -51
  3. package/README.md +332 -324
  4. package/agents/ace-product-owner.md +1 -1
  5. package/agents/ace-research-synthesizer.md +228 -228
  6. package/agents/ace-wiki-mapper.md +449 -445
  7. package/bin/install.js +60 -64
  8. package/hooks/ace-check-update.js +70 -62
  9. package/hooks/ace-statusline.js +89 -89
  10. package/package.json +5 -4
  11. package/shared/lib/ace-core.js +308 -0
  12. package/shared/lib/ace-core.test.js +308 -0
  13. package/shared/lib/ace-github.js +753 -0
  14. package/shared/lib/ace-story.js +400 -0
  15. package/shared/lib/ace-story.test.js +250 -0
  16. package/{agile-context-engineering → shared}/utils/questioning.xml +110 -110
  17. package/{agile-context-engineering → shared}/utils/ui-formatting.md +299 -299
  18. package/skills/execute-story/SKILL.md +110 -0
  19. package/skills/execute-story/script.js +305 -0
  20. package/skills/execute-story/script.test.js +261 -0
  21. package/skills/execute-story/walkthrough-template.xml +255 -0
  22. package/{agile-context-engineering/workflows/execute-story.xml → skills/execute-story/workflow.xml} +1219 -1219
  23. package/skills/help/SKILL.md +69 -0
  24. package/skills/help/script.js +318 -0
  25. package/skills/help/script.test.js +183 -0
  26. package/{agile-context-engineering/workflows/help.xml → skills/help/workflow.xml} +540 -540
  27. package/skills/init-coding-standards/SKILL.md +72 -0
  28. package/skills/init-coding-standards/script.js +59 -0
  29. package/skills/init-coding-standards/script.test.js +70 -0
  30. package/{agile-context-engineering/workflows/init-coding-standards.xml → skills/init-coding-standards/workflow.xml} +381 -386
  31. package/skills/map-cross-cutting/SKILL.md +89 -0
  32. package/{agile-context-engineering/templates/wiki → skills/map-cross-cutting}/system-cross-cutting.xml +197 -197
  33. package/skills/map-cross-cutting/workflow.xml +330 -0
  34. package/skills/map-guide/SKILL.md +89 -0
  35. package/{agile-context-engineering/templates/wiki → skills/map-guide}/guide.xml +137 -137
  36. package/skills/map-guide/workflow.xml +320 -0
  37. package/skills/map-pattern/SKILL.md +89 -0
  38. package/{agile-context-engineering/templates/wiki → skills/map-pattern}/pattern.xml +159 -159
  39. package/skills/map-pattern/workflow.xml +331 -0
  40. package/skills/map-story/SKILL.md +127 -0
  41. package/{agile-context-engineering/templates/wiki → skills/map-story/templates}/decizions.xml +115 -115
  42. package/skills/map-story/templates/guide.xml +137 -0
  43. package/skills/map-story/templates/pattern.xml +159 -0
  44. package/skills/map-story/templates/system-cross-cutting.xml +197 -0
  45. package/{agile-context-engineering/templates/wiki → skills/map-story/templates}/system.xml +381 -381
  46. package/{agile-context-engineering/templates/wiki → skills/map-story/templates}/walkthrough.xml +255 -255
  47. package/{agile-context-engineering/workflows/map-story.xml → skills/map-story/workflow.xml} +1046 -1046
  48. package/skills/map-subsystem/SKILL.md +111 -0
  49. package/skills/map-subsystem/script.js +60 -0
  50. package/skills/map-subsystem/script.test.js +68 -0
  51. package/skills/map-subsystem/templates/decizions.xml +115 -0
  52. package/skills/map-subsystem/templates/guide.xml +137 -0
  53. package/{agile-context-engineering/templates/wiki → skills/map-subsystem/templates}/module-discovery.xml +174 -174
  54. package/skills/map-subsystem/templates/pattern.xml +159 -0
  55. package/skills/map-subsystem/templates/system-cross-cutting.xml +197 -0
  56. package/skills/map-subsystem/templates/system.xml +381 -0
  57. package/skills/map-subsystem/templates/walkthrough.xml +255 -0
  58. package/{agile-context-engineering/workflows/map-subsystem.xml → skills/map-subsystem/workflow.xml} +15 -20
  59. package/skills/map-sys-doc/SKILL.md +90 -0
  60. package/skills/map-sys-doc/system.xml +381 -0
  61. package/skills/map-sys-doc/workflow.xml +336 -0
  62. package/skills/map-system/SKILL.md +85 -0
  63. package/skills/map-system/script.js +84 -0
  64. package/skills/map-system/script.test.js +73 -0
  65. package/{agile-context-engineering/templates/wiki → skills/map-system/templates}/system-architecture.xml +254 -254
  66. package/{agile-context-engineering/templates/wiki → skills/map-system/templates}/wiki-readme.xml +296 -296
  67. package/{agile-context-engineering/workflows/map-system.xml → skills/map-system/workflow.xml} +11 -16
  68. package/skills/map-walkthrough/SKILL.md +92 -0
  69. package/skills/map-walkthrough/walkthrough.xml +255 -0
  70. package/skills/plan-backlog/SKILL.md +75 -0
  71. package/{agile-context-engineering/templates/product/product-backlog.xml → skills/plan-backlog/product-backlog-template.xml} +231 -231
  72. package/skills/plan-backlog/script.js +136 -0
  73. package/skills/plan-backlog/script.test.js +83 -0
  74. package/{agile-context-engineering/workflows/plan-backlog.xml → skills/plan-backlog/workflow.xml} +13 -21
  75. package/skills/plan-feature/SKILL.md +76 -0
  76. package/skills/plan-feature/script.js +148 -0
  77. package/skills/plan-feature/script.test.js +80 -0
  78. package/{agile-context-engineering/workflows/plan-feature.xml → skills/plan-feature/workflow.xml} +1487 -1495
  79. package/skills/plan-product-vision/SKILL.md +75 -0
  80. package/skills/plan-product-vision/script.js +60 -0
  81. package/skills/plan-product-vision/script.test.js +69 -0
  82. package/{agile-context-engineering/workflows/plan-product-vision.xml → skills/plan-product-vision/workflow.xml} +4 -9
  83. package/skills/plan-story/SKILL.md +116 -0
  84. package/skills/plan-story/script.js +326 -0
  85. package/skills/plan-story/script.test.js +240 -0
  86. package/skills/plan-story/story-template.xml +451 -0
  87. package/{agile-context-engineering/workflows/plan-story.xml → skills/plan-story/workflow.xml} +1285 -944
  88. package/skills/research-external-solution/SKILL.md +107 -0
  89. package/skills/research-external-solution/script.js +238 -0
  90. package/skills/research-external-solution/script.test.js +134 -0
  91. package/{agile-context-engineering/workflows/research-external-solution.xml → skills/research-external-solution/workflow.xml} +4 -6
  92. package/skills/research-integration-solution/SKILL.md +98 -0
  93. package/skills/research-integration-solution/script.js +231 -0
  94. package/skills/research-integration-solution/script.test.js +134 -0
  95. package/{agile-context-engineering/workflows/research-integration-solution.xml → skills/research-integration-solution/workflow.xml} +3 -5
  96. package/skills/research-story-wiki/SKILL.md +92 -0
  97. package/skills/research-story-wiki/script.js +231 -0
  98. package/skills/research-story-wiki/script.test.js +138 -0
  99. package/{agile-context-engineering/workflows/research-story-wiki.xml → skills/research-story-wiki/workflow.xml} +3 -5
  100. package/skills/research-technical-solution/SKILL.md +103 -0
  101. package/skills/research-technical-solution/script.js +231 -0
  102. package/skills/research-technical-solution/script.test.js +134 -0
  103. package/{agile-context-engineering/workflows/research-technical-solution.xml → skills/research-technical-solution/workflow.xml} +3 -5
  104. package/skills/review-story/SKILL.md +100 -0
  105. package/skills/review-story/script.js +257 -0
  106. package/skills/review-story/script.test.js +169 -0
  107. package/skills/review-story/story-template.xml +451 -0
  108. package/{agile-context-engineering/workflows/review-story.xml → skills/review-story/workflow.xml} +279 -281
  109. package/skills/update/SKILL.md +53 -0
  110. package/{agile-context-engineering/workflows/update.xml → skills/update/workflow.xml} +12 -13
  111. package/agile-context-engineering/src/ace-tools.js +0 -2881
  112. package/agile-context-engineering/src/ace-tools.test.js +0 -1089
  113. package/agile-context-engineering/templates/_command.md +0 -54
  114. package/agile-context-engineering/templates/_workflow.xml +0 -17
  115. package/agile-context-engineering/templates/config.json +0 -0
  116. package/agile-context-engineering/templates/product/integration-solution.xml +0 -0
  117. package/commands/ace/execute-story.md +0 -138
  118. package/commands/ace/help.md +0 -93
  119. package/commands/ace/init-coding-standards.md +0 -83
  120. package/commands/ace/map-story.md +0 -165
  121. package/commands/ace/map-subsystem.md +0 -140
  122. package/commands/ace/map-system.md +0 -92
  123. package/commands/ace/map-walkthrough.md +0 -127
  124. package/commands/ace/plan-backlog.md +0 -83
  125. package/commands/ace/plan-feature.md +0 -89
  126. package/commands/ace/plan-product-vision.md +0 -81
  127. package/commands/ace/plan-story.md +0 -159
  128. package/commands/ace/research-external-solution.md +0 -138
  129. package/commands/ace/research-integration-solution.md +0 -135
  130. package/commands/ace/research-story-wiki.md +0 -116
  131. package/commands/ace/research-technical-solution.md +0 -147
  132. package/commands/ace/review-story.md +0 -109
  133. package/commands/ace/update.md +0 -56
  134. /package/{agile-context-engineering/templates/product/story.xml → skills/execute-story/story-template.xml} +0 -0
  135. /package/{agile-context-engineering/templates/wiki/coding-standards.xml → skills/init-coding-standards/coding-standards-template.xml} +0 -0
  136. /package/{agile-context-engineering/templates/wiki → skills/map-story/templates}/tech-debt-index.xml +0 -0
  137. /package/{agile-context-engineering/templates/wiki → skills/map-subsystem/templates}/subsystem-architecture.xml +0 -0
  138. /package/{agile-context-engineering/templates/wiki → skills/map-subsystem/templates}/subsystem-structure.xml +0 -0
  139. /package/{agile-context-engineering/templates/wiki → skills/map-system/templates}/system-structure.xml +0 -0
  140. /package/{agile-context-engineering/templates/wiki → skills/map-system/templates}/testing-framework.xml +0 -0
  141. /package/{agile-context-engineering/workflows/map-walkthrough.xml → skills/map-walkthrough/workflow.xml} +0 -0
  142. /package/{agile-context-engineering/templates/product/feature.xml → skills/plan-feature/feature-template.xml} +0 -0
  143. /package/{agile-context-engineering/templates/product/product-vision.xml → skills/plan-product-vision/product-vision-template.xml} +0 -0
  144. /package/{agile-context-engineering/templates/product/external-solution.xml → skills/research-external-solution/external-solution-template.xml} +0 -0
  145. /package/{agile-context-engineering/templates/product/story-integration-solution.xml → skills/research-integration-solution/integration-solution-template.xml} +0 -0
  146. /package/{agile-context-engineering/templates/product/story-wiki.xml → skills/research-story-wiki/story-wiki-template.xml} +0 -0
  147. /package/{agile-context-engineering/templates/product/story-technical-solution.xml → skills/research-technical-solution/technical-solution-template.xml} +0 -0
@@ -1,140 +0,0 @@
1
- ---
2
- name: ace:map-subsystem
3
- description: Map a subsystem's structure, architecture, and knowledge docs into .docs/wiki/subsystems/[name]/
4
- argument-hint: "subsystem='src/api' (or subsystem name) existing-docs=comma separated paths | directory"
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>After /ace:map-system — drill into individual subsystems</trigger>
21
- <trigger>Anytime to refresh an existing subsystem's wiki documents</trigger>
22
- <trigger>When a new subsystem is added and needs to be documented</trigger>
23
- </runs-after>
24
- <use-when>
25
- <condition>A subsystem has not yet been documented in `.docs/wiki/subsystems/`</condition>
26
- <condition>An existing subsystem's docs are stale after a significant refactor</condition>
27
- <condition>You want a deep-dive view of a specific subsystem's internals (components, flows, data)</condition>
28
- </use-when>
29
- </execution-time>
30
-
31
- <input>
32
- <flags>
33
- </flags>
34
-
35
- <parameters>
36
- <required>
37
- <param name="subsystem" type="path | text">
38
- Path to the subsystem (e.g., `src/api`) or its name.
39
- If not provided, pause execution and ask the user for it.
40
- If provided but ambiguous, or not found in the codebase, ask clarifying questions.
41
- </param>
42
- </required>
43
-
44
- <optional>
45
- <param name="existing-docs" type="comma-separated paths or directories">
46
- Pre-existing documentation relevant to this subsystem. Accepts file paths,
47
- directory paths, or a mix of both. When a directory is provided, recursively
48
- discover all files within it (including nested subdirectories).
49
- All resolved file paths are passed through to every map-story invocation
50
- (file mode) alongside any per-module docs discovered during module-discovery.
51
- Use this when the caller already knows about documentation that should
52
- inform knowledge-doc generation.
53
- </param>
54
- </optional>
55
- </parameters>
56
- </input>
57
-
58
- <execution-context>
59
- <map-subsystem-workflow>@~/.claude/agile-context-engineering/workflows/map-subsystem.xml</map-subsystem-workflow>
60
- <subsystem-structure-template>@~/.claude/agile-context-engineering/templates/wiki/subsystem-structure.xml</subsystem-structure-template>
61
- <subsystem-architecture-template>@~/.claude/agile-context-engineering/templates/wiki/subsystem-architecture.xml</subsystem-architecture-template>
62
- <module-discovery-template>@~/.claude/agile-context-engineering/templates/wiki/module-discovery.xml</module-discovery-template>
63
- <map-story-workflow>@~/.claude/agile-context-engineering/workflows/map-story.xml</map-story-workflow>
64
- <system-template>@~/.claude/agile-context-engineering/templates/wiki/system.xml</system-template>
65
- <pattern-template>@~/.claude/agile-context-engineering/templates/wiki/pattern.xml</pattern-template>
66
- <cross-cutting-template>@~/.claude/agile-context-engineering/templates/wiki/system-cross-cutting.xml</cross-cutting-template>
67
- <guide-template>@~/.claude/agile-context-engineering/templates/wiki/guide.xml</guide-template>
68
- <walkthrough-template>@~/.claude/agile-context-engineering/templates/wiki/walkthrough.xml</walkthrough-template>
69
- <decisions-template>@~/.claude/agile-context-engineering/templates/wiki/decizions.xml</decisions-template>
70
- <questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
71
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
72
- </execution-context>
73
-
74
- <output>
75
- <objective>
76
- Resolve the target subsystem, load system-wide wiki context, and determine whether
77
- to create, update, or recreate per-subsystem wiki documents. Then:
78
-
79
- 1. Spawn ace-wiki-mapper agents to produce structure and architecture documents.
80
- 2. Update system-structure.md if this subsystem was not previously listed there.
81
- 3. Update the subsystem responsibility matrix in system-architecture.md if missing.
82
- 4. Run module discovery — trace E2E flows, identify patterns, find cross-cutting
83
- concerns by reading actual source code. Produce module-discovery.md artifact.
84
- 5. For EACH discovered module, run map-story in file mode to create or update
85
- knowledge documentation (systems/, patterns/, cross-cutting/, guides/, walkthroughs/, decisions/).
86
- </objective>
87
-
88
- <artifacts>
89
- - .docs/wiki/subsystems/[subsystem-name]/structure.md
90
- - .docs/wiki/subsystems/[subsystem-name]/architecture.md
91
- - .docs/wiki/subsystems/[subsystem-name]/systems/*.md (created/updated by map-story)
92
- - .docs/wiki/subsystems/[subsystem-name]/patterns/*.md (created/updated by map-story)
93
- - .docs/wiki/subsystems/[subsystem-name]/cross-cutting/*.md (created/updated by map-story)
94
- - .docs/wiki/subsystems/[subsystem-name]/guides/*.md (created/updated by map-story)
95
- - .docs/wiki/subsystems/[subsystem-name]/walkthroughs/*.md (created/updated by map-story)
96
- - .docs/wiki/subsystems/[subsystem-name]/decisions/*.md (created/updated by map-story)
97
- - .ace/artifacts/subsystems/[subsystem-name]/module-discovery/module-discovery.md
98
- - .ace/artifacts/subsystems/[subsystem-name]/module-discovery/existing-docs-inventory.md (if existing-docs directory provided)
99
- - .docs/wiki/system-wide/system-structure.md (subsystem entry added if new)
100
- - .docs/wiki/system-wide/system-architecture.md (subsystem responsibility matrix updated if missing)
101
- </artifacts>
102
- </output>
103
-
104
- <process>
105
- Execute the map-subsystem workflow from
106
- `@~/.claude/agile-context-engineering/workflows/map-subsystem.xml` end-to-end.
107
- Preserve all workflow gates (validation, user questions, commits).
108
-
109
- The workflow has 13 steps:
110
- 1-5: Setup, context loading, subsystem resolution, document triage, directory creation
111
- 6-8: Structure + architecture agents (parallel) + collect results
112
- 9: Update system-wide docs (system-structure.md, system-architecture.md)
113
- 10: Module discovery (3 parallel discovery agents + 1 synthesis agent)
114
- 11: Knowledge documentation — run map-story for EACH discovered module (sequential)
115
- 12: Verify and commit all documents
116
- 13: Completion report
117
-
118
- Steps 10-11 are CRITICAL — they produce the knowledge docs (systems/, patterns/,
119
- cross-cutting/, guides/, walkthroughs/, decisions/) that AI agents need for future implementations.
120
- Do NOT skip them.
121
- </process>
122
-
123
- <next-steps>
124
- **After this command, `/clear` first for a fresh context window, then:**
125
-
126
- For each subsystem found and defined in the Subsystem Responsibility Matrix,
127
- suggest a `/ace:map-subsystem` command. Example:
128
- - `/ace:map-subsystem subsystem="src/api"` — Map the API subsystem
129
- - `/ace:map-subsystem subsystem="src/auth"` — Map the Auth subsystem
130
- - `/ace:map-subsystem subsystem="src/db"` — Map the DB subsystem
131
- (list one per subsystem discovered during this command's execution)
132
-
133
- Also suggest:
134
- - `/ace:init-coding-standards` — Define prescriptive coding standards
135
- - `/ace:help` — Check project initialization status and next steps
136
- - Review and edit files in `.docs/wiki/system-wide/` anytime
137
- </next-steps>
138
-
139
- </command>
140
- ```
@@ -1,92 +0,0 @@
1
- ---
2
- name: ace:map-system
3
- description: Map system-wide codebase structure, architecture, and testing framework into .docs/wiki/system-wide/
4
- argument-hint: "[optional: references='existing artifacts and documents to be considered alongside the codebase']"
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>Before /ace:help (brownfield codebases) — understand existing code first</trigger>
21
- <trigger>After /ace:help (greenfield codebases) — document architecture decisions</trigger>
22
- <trigger>Anytime to refresh system-wide wiki documents</trigger>
23
- </runs-after>
24
- <use-when>
25
- <condition>Onboarding to an existing codebase (brownfield — analyzes code automatically)</condition>
26
- <condition>Starting a new project and need to document architecture decisions (greenfield — interviews you)</condition>
27
- <condition>System-wide documents are stale or missing</condition>
28
- <condition>After major refactoring that changed subsystem boundaries or tech stack</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="references" type="file | text">
42
- Existing architecture docs, ADRs, or design notes
43
- to consider alongside the codebase analysis. Absorbed before analysis begins.
44
- </param>
45
- </optional>
46
- </parameters>
47
- </input>
48
-
49
- <execution-context>
50
- <map-system-workflow>@~/.claude/agile-context-engineering/workflows/map-system.xml</map-system-workflow>
51
- <system-structure-template>@~/.claude/agile-context-engineering/templates/wiki/system-structure.xml</system-structure-template>
52
- <system-architecture-template>@~/.claude/agile-context-engineering/templates/wiki/system-architecture.xml</system-architecture-template>
53
- <testing-framework-template>@~/.claude/agile-context-engineering/templates/wiki/testing-framework.xml</testing-framework-template>
54
- <wiki-readme-template>@~/.claude/agile-context-engineering/templates/wiki/wiki-readme.xml</wiki-readme-template>
55
- <questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
56
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
57
- </execution-context>
58
-
59
- <output>
60
- <objective>
61
- Detect brownfield/greenfield status and existing wiki state. For each system-wide
62
- document (structure, architecture, testing), determine whether to create, update,
63
- recreate, scaffold, or skip. Spawn ace-wiki-mapper agents to produce documents.
64
- For greenfield architecture, conduct deep questioning before generating.
65
- Add CLAUDE.md instructions to keep wiki current with future code changes.
66
- </objective>
67
-
68
- <artifacts>
69
- - .docs/wiki/wiki-readme.md (created if not already present)
70
- - .docs/wiki/system-wide/system-structure.md
71
- - .docs/wiki/system-wide/system-architecture.md
72
- - .docs/wiki/system-wide/testing-framework.md
73
- - CLAUDE.md (wiki maintenance instructions appended)
74
- </artifacts>
75
- </output>
76
-
77
- <process>
78
- Execute the map-system workflow from
79
- `@~/.claude/agile-context-engineering/workflows/map-system.xml` end-to-end.
80
- Preserve all workflow gates (validation, user questions, commits).
81
- </process>
82
-
83
- <next-steps>
84
- **After this command, `/clear` first for a fresh context window, then:**
85
- - `/ace:map-subsystems` — Map individual subsystem internals (structure, dependencies)
86
- - `/ace:init-coding-standards` — Define prescriptive coding standards
87
- - `/ace:help` — Check project initialization status and next steps
88
- - Review and edit files in `.docs/wiki/system-wide/` anytime
89
- </next-steps>
90
-
91
- </command>
92
- ```
@@ -1,127 +0,0 @@
1
- ---
2
- name: ace:map-walkthrough
3
- description: Create deep tutorial-style flow walkthroughs in .docs/wiki/subsystems/[name]/walkthroughs/
4
- argument-hint: "flow='tick data from bybit websocket to timescaledb' subsystem='data-ingestion' emphasis-frameworks='SignalR,Redis Streams'"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Glob
9
- - Grep
10
- - Write
11
- - Edit
12
- - LSP
13
- - AskUserQuestion
14
- - WebSearch
15
- - WebFetch
16
- - mcp__context7__resolve-library-id
17
- - mcp__context7__query-docs
18
- ---
19
-
20
- ```xml
21
- <command>
22
-
23
- <execution-time>
24
- <runs-after>
25
- <trigger>After /ace:map-subsystem — to create deep walkthroughs for complex flows</trigger>
26
- <trigger>Anytime a complex multi-class flow needs human-readable documentation</trigger>
27
- <trigger>When onboarding new developers who need to understand specific flows</trigger>
28
- </runs-after>
29
- <use-when>
30
- <condition>A flow spans 3+ classes across multiple architectural layers</condition>
31
- <condition>External frameworks/libraries are involved that need explanation</condition>
32
- <condition>An intern reading the code alone would not understand what's happening</condition>
33
- <condition>A system doc would need paragraphs of explanation with code snippets</condition>
34
- </use-when>
35
- </execution-time>
36
-
37
- <input>
38
- <flags>
39
- </flags>
40
-
41
- <parameters>
42
- <required>
43
- <param name="flow" type="text">
44
- Natural language description of the end-to-end flow — WHERE it starts
45
- and WHERE it ends. The agent finds the entry point, follows every call
46
- through the entire code, and traces it to the exit point.
47
-
48
- E.g.:
49
- - "tick data from bybit websocket to timescaledb"
50
- - "user message from SignalR hub until LLM response is sent back"
51
- - "order placement from API endpoint to payment confirmation"
52
-
53
- If not provided, pause and ask the user.
54
- </param>
55
- <param name="subsystem" type="path | text">
56
- Subsystem where the walkthrough wiki file is placed.
57
- The flow itself may span MULTIPLE subsystems — the agent follows
58
- the code wherever it goes. This parameter only determines the
59
- wiki location: `.docs/wiki/subsystems/[subsystem]/walkthroughs/`.
60
- If not provided, pause and ask the user.
61
- </param>
62
- </required>
63
-
64
- <optional>
65
- <param name="emphasis-frameworks" type="csv">
66
- Comma-separated frameworks/libraries/APIs/SDKs that should receive deep
67
- explanation throughout the walkthrough. When specified:
68
- - EVERY step touching the framework gets a framework info box
69
- - ALL code interacting with the framework is shown and explained
70
- - The Framework Concepts Reference table becomes MANDATORY
71
-
72
- Each entry is EITHER:
73
- - A name (agent researches via WebSearch/context7):
74
- "SignalR" or "SignalR,EF Core"
75
- - A file path or URL to documentation (agent reads the page, follows
76
- internal links to find pages covering the specific concepts used in
77
- the code, and infers the framework name from content):
78
- "https://learn.microsoft.com/aspnet/signalr/overview" or "docs/signalr-guide.md"
79
- - A mix of both:
80
- "SignalR,docs/custom-redis-wrapper.md,EF Core"
81
- </param>
82
- </optional>
83
- </parameters>
84
- </input>
85
-
86
- <execution-context>
87
- <map-walkthrough-workflow>@~/.claude/agile-context-engineering/workflows/map-walkthrough.xml</map-walkthrough-workflow>
88
- <walkthrough-template>@~/.claude/agile-context-engineering/templates/wiki/walkthrough.xml</walkthrough-template>
89
- <questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
90
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
91
- </execution-context>
92
-
93
- <output>
94
- <objective>
95
- Create or update a deep tutorial-style walkthrough that traces a flow end-to-end.
96
-
97
- The agent reads the flow description, finds the entry point in the codebase,
98
- then follows EVERY SINGLE CALL through the entire code — handler to service
99
- to repository to database (or whatever the flow touches) — using LSP and code
100
- reading. It discovers all files automatically, extracts emphasis framework
101
- usages from the actual code, researches those specific concepts, and writes
102
- the walkthrough with real code snippets and framework info boxes.
103
- </objective>
104
-
105
- <artifacts>
106
- .docs/wiki/subsystems/[subsystem-name]/walkthroughs/[flow-name].md
107
- </artifacts>
108
- </output>
109
-
110
- <process>
111
- For this command use the `ace-wiki-mapper` agent
112
- that's specialized in wiki exploration and documentation writing.
113
-
114
- Execute the map-walkthrough workflow from
115
- `@~/.claude/agile-context-engineering/workflows/map-walkthrough.xml` end-to-end.
116
- Preserve all workflow gates (validation, user questions, commits).
117
- </process>
118
-
119
- <next-steps>
120
- <step>/clear first for a fresh context window</step>
121
- <step>/ace:map-walkthrough — create another walkthrough</step>
122
- <step>/ace:map-subsystem [subsystem] — map or refresh an entire subsystem</step>
123
- <step>Review and edit files in .docs/wiki/subsystems/[subsystem-name]/walkthroughs/</step>
124
- </next-steps>
125
-
126
- </command>
127
- ```
@@ -1,83 +0,0 @@
1
- ---
2
- name: ace:plan-backlog
3
- description: Create or refine the product backlog through vision-aware questioning, wiki analysis, and guided epic/feature planning
4
- argument-hint: "[optional: context='text, file, or URL with product description and suggested epics/features']"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Write
9
- - Task
10
- - AskUserQuestion
11
- ---
12
-
13
- ```xml
14
- <command>
15
-
16
- <execution-time>
17
- <runs-after>
18
- <trigger>After /ace:plan-product-vision — once the vision exists, plan what to build</trigger>
19
- <trigger>After /ace:map-system — once architecture is mapped, leverage wiki context for richer backlog</trigger>
20
- <trigger>Anytime — to create or refresh the product backlog</trigger>
21
- </runs-after>
22
- <use-when>
23
- <condition>Product vision exists and you want to break it into epics and features</condition>
24
- <condition>Starting implementation planning and need a structured backlog</condition>
25
- <condition>Brownfield project where features need to be inventoried from existing code</condition>
26
- <condition>Updating the backlog after scope changes or new discoveries</condition>
27
- </use-when>
28
- </execution-time>
29
-
30
- <input>
31
- <flags>
32
- </flags>
33
-
34
- <parameters>
35
- <required>
36
- </required>
37
-
38
- <optional>
39
- <param name="context" type="file | text">
40
- Product description, suggested epics/features, PRD excerpts, or any
41
- context to seed the backlog planning process. Will be absorbed and
42
- refined through questioning, not used as-is.
43
- </param>
44
- </optional>
45
- </parameters>
46
- </input>
47
-
48
- <execution-context>
49
- <plan-backlog-workflow>@~/.claude/agile-context-engineering/workflows/plan-backlog.xml</plan-backlog-workflow>
50
- <product-backlog-template>@~/.claude/agile-context-engineering/templates/product/product-backlog.xml</product-backlog-template>
51
- <questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
52
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
53
- </execution-context>
54
-
55
- <output>
56
- <objective>
57
- Detect the project environment, load the product vision as the north-star input,
58
- optionally analyze the wiki for existing capabilities and feature status,
59
- optionally research the domain ecosystem for standard features,
60
- absorb any user-provided context, conduct deep questioning to discover all
61
- epics and features, and generate a comprehensive product-backlog.md.
62
- </objective>
63
-
64
- <artifacts>
65
- .ace/artifacts/product/product-backlog.md
66
- </artifacts>
67
- </output>
68
-
69
- <process>
70
- Execute the plan-backlog workflow from
71
- `@~/.claude/agile-context-engineering/workflows/plan-backlog.xml` end-to-end.
72
- Preserve all workflow gates (validation, approvals, commits).
73
- </process>
74
-
75
- <next-steps>
76
- **After this command:**
77
- - `/ace:plan-feature E1` — Break an feature into detailed stories
78
- - `/ace:help` — Check project initialization status
79
- - `/ace:plan-product-vision` — Update the product vision if priorities shifted
80
- </next-steps>
81
-
82
- </command>
83
- ```
@@ -1,89 +0,0 @@
1
- ---
2
- name: ace:plan-feature
3
- description: Plan a feature through backlog-aware questioning, story decomposition, and guided feature specification
4
- argument-hint: "[feature-id] [optional: context='text or file with feature description prompt']"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Write
9
- - Task
10
- - AskUserQuestion
11
- ---
12
-
13
- ```xml
14
- <command>
15
-
16
- <execution-time>
17
- <runs-after>
18
- <trigger>After /ace:plan-backlog — once the backlog exists, plan individual features</trigger>
19
- <trigger>Anytime — to create or refine a feature and its story breakdown</trigger>
20
- </runs-after>
21
- <use-when>
22
- <condition>Product backlog exists and you want to break a feature into stories</condition>
23
- <condition>Starting feature-level planning and need to decompose into stories</condition>
24
- <condition>Refining an existing feature with updated acceptance criteria or scope</condition>
25
- <condition>Adding a new feature to an existing epic</condition>
26
- </use-when>
27
- </execution-time>
28
-
29
- <input>
30
- <flags>
31
- </flags>
32
-
33
- <parameters>
34
- <required>
35
- </required>
36
-
37
- <optional>
38
- <param name="feature-id" type="text">
39
- Feature identifier from the product backlog (e.g., F3, #78).
40
- If provided, locates existing feature for planning or refinement.
41
- If omitted, presents the backlog for selection or allows creating
42
- a new feature.
43
- </param>
44
- <param name="context" type="file | text">
45
- Feature description, acceptance criteria, user stories, or any
46
- context to seed the feature planning process. Will be absorbed and
47
- refined through questioning, not used as-is.
48
- </param>
49
- </optional>
50
- </parameters>
51
- </input>
52
-
53
- <execution-context>
54
- <plan-feature-workflow>@~/.claude/agile-context-engineering/workflows/plan-feature.xml</plan-feature-workflow>
55
- <feature-template>@~/.claude/agile-context-engineering/templates/product/feature.xml</feature-template>
56
- <questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
57
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
58
- </execution-context>
59
-
60
- <output>
61
- <objective>
62
- Detect the project environment, load the product backlog and epic context,
63
- absorb any user-provided feature description, conduct deep questioning to
64
- define feature scope and acceptance criteria, decompose the feature into
65
- stories, and generate feature and story artifact files.
66
- Optionally create GitHub issues if github-project.enabled=true.
67
- </objective>
68
-
69
- <artifacts>
70
- .ace/artifacts/product/<id-epic_name>/<id-feature_name>/<id-feature_name>.md
71
- .ace/artifacts/product/<id-epic_name>/<id-feature_name>/<id-story_name>/<id-story_name>.md
72
- </artifacts>
73
- </output>
74
-
75
- <process>
76
- Execute the plan-feature workflow from
77
- `@~/.claude/agile-context-engineering/workflows/plan-feature.xml` end-to-end.
78
- Preserve all workflow gates (validation, approvals, commits).
79
- </process>
80
-
81
- <next-steps>
82
- **After this command:**
83
- - `/ace:plan-story story-id` — Plan a story
84
- - `/ace:plan-feature feature-id` — Plan another feature
85
- - `/ace:help` — Check project initialization status
86
- </next-steps>
87
-
88
- </command>
89
- ```
@@ -1,81 +0,0 @@
1
- ---
2
- name: ace:plan-product-vision
3
- description: Create or update the product vision through architecture-aware questioning and guided writing
4
- argument-hint: "[optional: context='PRD, specs, or notes to build on']"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Write
9
- - Task
10
- - AskUserQuestion
11
- ---
12
-
13
- ```xml
14
- <command>
15
-
16
- <execution-time>
17
- <runs-after>
18
- <trigger>During /ace:help — as part of initial project setup</trigger>
19
- <trigger>After /ace:map-system — once codebase is mapped, leverage architecture context</trigger>
20
- <trigger>Anytime — to create or refresh the product vision for a project</trigger>
21
- </runs-after>
22
- <use-when>
23
- <condition>Starting a new project and want to define the product vision (greenfield or brownfield)</condition>
24
- <condition>Existing product vision is outdated or missing</condition>
25
- <condition>System architecture has been mapped and you want to align vision with subsystem capabilities</condition>
26
- <condition>Pivoting the product direction and need to rewrite the vision</condition>
27
- </use-when>
28
- </execution-time>
29
-
30
- <input>
31
- <flags>
32
- </flags>
33
-
34
- <parameters>
35
- <required>
36
- </required>
37
-
38
- <optional>
39
- <param name="context" type="file | text">
40
- Existing PRD, specs, or notes to use as a starting point.
41
- Will be refined through the interview process, not used as-is.
42
- </param>
43
- </optional>
44
- </parameters>
45
- </input>
46
-
47
- <execution-context>
48
- <plan-product-vision-workflow>@~/.claude/agile-context-engineering/workflows/plan-product-vision.xml</plan-product-vision-workflow>
49
- <product-vision-template>@~/.claude/agile-context-engineering/templates/product/product-vision.xml</product-vision-template>
50
- <questioning>@~/.claude/agile-context-engineering/utils/questioning.xml</questioning>
51
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
52
- </execution-context>
53
-
54
- <output>
55
- <objective>
56
- Detect the project's brownfield/greenfield status and architecture context.
57
- If brownfield with system architecture, use the Subsystem Responsibility Matrix
58
- to inform high-level capabilities. Interview the user about their product vision,
59
- goals, and audience. Generate a comprehensive product-vision.md.
60
- </objective>
61
-
62
- <artifacts>
63
- .docs/product/product-vision.md
64
- </artifacts>
65
- </output>
66
-
67
- <process>
68
- Execute the plan-product-vision workflow from
69
- `@~/.claude/agile-context-engineering/workflows/plan-product-vision.xml` end-to-end.
70
- Preserve all workflow gates (validation, approvals, commits).
71
- </process>
72
-
73
- <next-steps>
74
- **After this command:**
75
- - `/ace:init-coding-standards` — Establish coding standards for the project
76
- - `/ace:map-system` — Map codebase structure and architecture
77
- - `/ace:help` — Check project initialization status and next steps
78
- </next-steps>
79
-
80
- </command>
81
- ```