agile-context-engineering 0.2.2 → 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 (146) hide show
  1. package/.claude-plugin/plugin.json +10 -0
  2. package/CHANGELOG.md +82 -0
  3. package/README.md +27 -18
  4. package/agents/ace-product-owner.md +1 -1
  5. package/agents/ace-technical-application-architect.md +28 -0
  6. package/agents/ace-wiki-mapper.md +144 -29
  7. package/bin/install.js +67 -63
  8. package/hooks/ace-check-update.js +17 -9
  9. package/package.json +7 -5
  10. package/shared/lib/ace-core.js +308 -0
  11. package/shared/lib/ace-core.test.js +308 -0
  12. package/shared/lib/ace-github.js +753 -0
  13. package/shared/lib/ace-story.js +400 -0
  14. package/shared/lib/ace-story.test.js +250 -0
  15. package/{agile-context-engineering → shared}/utils/ui-formatting.md +299 -299
  16. package/skills/execute-story/SKILL.md +110 -0
  17. package/skills/execute-story/script.js +305 -0
  18. package/skills/execute-story/script.test.js +261 -0
  19. package/skills/execute-story/walkthrough-template.xml +255 -0
  20. package/{agile-context-engineering/workflows/execute-story.xml → skills/execute-story/workflow.xml} +83 -9
  21. package/skills/help/SKILL.md +69 -0
  22. package/skills/help/script.js +318 -0
  23. package/skills/help/script.test.js +183 -0
  24. package/{agile-context-engineering/workflows/help.xml → skills/help/workflow.xml} +8 -8
  25. package/skills/init-coding-standards/SKILL.md +72 -0
  26. package/{agile-context-engineering/templates/wiki/coding-standards.xml → skills/init-coding-standards/coding-standards-template.xml} +38 -0
  27. package/skills/init-coding-standards/script.js +59 -0
  28. package/skills/init-coding-standards/script.test.js +70 -0
  29. package/{agile-context-engineering/workflows/init-coding-standards.xml → skills/init-coding-standards/workflow.xml} +4 -9
  30. package/skills/map-cross-cutting/SKILL.md +89 -0
  31. package/skills/map-cross-cutting/workflow.xml +330 -0
  32. package/skills/map-guide/SKILL.md +89 -0
  33. package/skills/map-guide/workflow.xml +320 -0
  34. package/skills/map-pattern/SKILL.md +89 -0
  35. package/skills/map-pattern/workflow.xml +331 -0
  36. package/skills/map-story/SKILL.md +127 -0
  37. package/skills/map-story/templates/guide.xml +137 -0
  38. package/skills/map-story/templates/pattern.xml +159 -0
  39. package/skills/map-story/templates/system-cross-cutting.xml +197 -0
  40. package/skills/map-story/templates/walkthrough.xml +255 -0
  41. package/{agile-context-engineering/workflows/map-story.xml → skills/map-story/workflow.xml} +258 -9
  42. package/skills/map-subsystem/SKILL.md +111 -0
  43. package/skills/map-subsystem/script.js +60 -0
  44. package/skills/map-subsystem/script.test.js +68 -0
  45. package/skills/map-subsystem/templates/decizions.xml +115 -0
  46. package/skills/map-subsystem/templates/guide.xml +137 -0
  47. package/{agile-context-engineering/templates/wiki → skills/map-subsystem/templates}/module-discovery.xml +3 -3
  48. package/skills/map-subsystem/templates/pattern.xml +159 -0
  49. package/skills/map-subsystem/templates/system-cross-cutting.xml +197 -0
  50. package/skills/map-subsystem/templates/system.xml +381 -0
  51. package/skills/map-subsystem/templates/walkthrough.xml +255 -0
  52. package/{agile-context-engineering/workflows/map-subsystem.xml → skills/map-subsystem/workflow.xml} +17 -21
  53. package/skills/map-sys-doc/SKILL.md +90 -0
  54. package/skills/map-sys-doc/system.xml +381 -0
  55. package/skills/map-sys-doc/workflow.xml +336 -0
  56. package/skills/map-system/SKILL.md +85 -0
  57. package/skills/map-system/script.js +84 -0
  58. package/skills/map-system/script.test.js +73 -0
  59. package/skills/map-system/templates/wiki-readme.xml +297 -0
  60. package/{agile-context-engineering/workflows/map-system.xml → skills/map-system/workflow.xml} +11 -16
  61. package/skills/map-walkthrough/SKILL.md +92 -0
  62. package/skills/map-walkthrough/walkthrough.xml +255 -0
  63. package/skills/map-walkthrough/workflow.xml +457 -0
  64. package/skills/plan-backlog/SKILL.md +75 -0
  65. package/skills/plan-backlog/script.js +136 -0
  66. package/skills/plan-backlog/script.test.js +83 -0
  67. package/{agile-context-engineering/workflows/plan-backlog.xml → skills/plan-backlog/workflow.xml} +13 -21
  68. package/skills/plan-feature/SKILL.md +76 -0
  69. package/skills/plan-feature/script.js +148 -0
  70. package/skills/plan-feature/script.test.js +80 -0
  71. package/{agile-context-engineering/workflows/plan-feature.xml → skills/plan-feature/workflow.xml} +21 -29
  72. package/skills/plan-product-vision/SKILL.md +75 -0
  73. package/skills/plan-product-vision/script.js +60 -0
  74. package/skills/plan-product-vision/script.test.js +69 -0
  75. package/{agile-context-engineering/workflows/plan-product-vision.xml → skills/plan-product-vision/workflow.xml} +4 -9
  76. package/skills/plan-story/SKILL.md +116 -0
  77. package/skills/plan-story/script.js +326 -0
  78. package/skills/plan-story/script.test.js +240 -0
  79. package/skills/plan-story/story-template.xml +451 -0
  80. package/{agile-context-engineering/workflows/plan-story.xml → skills/plan-story/workflow.xml} +1285 -909
  81. package/skills/research-external-solution/SKILL.md +107 -0
  82. package/skills/research-external-solution/script.js +238 -0
  83. package/skills/research-external-solution/script.test.js +134 -0
  84. package/{agile-context-engineering/workflows/research-external-solution.xml → skills/research-external-solution/workflow.xml} +4 -6
  85. package/skills/research-integration-solution/SKILL.md +98 -0
  86. package/{agile-context-engineering/templates/product/story-integration-solution.xml → skills/research-integration-solution/integration-solution-template.xml} +1 -0
  87. package/skills/research-integration-solution/script.js +231 -0
  88. package/skills/research-integration-solution/script.test.js +134 -0
  89. package/{agile-context-engineering/workflows/research-integration-solution.xml → skills/research-integration-solution/workflow.xml} +4 -5
  90. package/skills/research-story-wiki/SKILL.md +92 -0
  91. package/skills/research-story-wiki/script.js +231 -0
  92. package/skills/research-story-wiki/script.test.js +138 -0
  93. package/{agile-context-engineering/templates/product/story-wiki.xml → skills/research-story-wiki/story-wiki-template.xml} +4 -0
  94. package/{agile-context-engineering/workflows/research-story-wiki.xml → skills/research-story-wiki/workflow.xml} +5 -6
  95. package/skills/research-technical-solution/SKILL.md +103 -0
  96. package/skills/research-technical-solution/script.js +231 -0
  97. package/skills/research-technical-solution/script.test.js +134 -0
  98. package/{agile-context-engineering/workflows/research-technical-solution.xml → skills/research-technical-solution/workflow.xml} +4 -5
  99. package/skills/review-story/SKILL.md +100 -0
  100. package/skills/review-story/script.js +257 -0
  101. package/skills/review-story/script.test.js +169 -0
  102. package/skills/review-story/story-template.xml +451 -0
  103. package/{agile-context-engineering/workflows/review-story.xml → skills/review-story/workflow.xml} +1 -3
  104. package/skills/update/SKILL.md +53 -0
  105. package/{agile-context-engineering/workflows/update.xml → skills/update/workflow.xml} +237 -207
  106. package/agile-context-engineering/src/ace-tools.js +0 -2881
  107. package/agile-context-engineering/src/ace-tools.test.js +0 -1089
  108. package/agile-context-engineering/templates/_command.md +0 -54
  109. package/agile-context-engineering/templates/_workflow.xml +0 -17
  110. package/agile-context-engineering/templates/config.json +0 -0
  111. package/agile-context-engineering/templates/product/integration-solution.xml +0 -0
  112. package/agile-context-engineering/templates/wiki/wiki-readme.xml +0 -276
  113. package/commands/ace/execute-story.md +0 -137
  114. package/commands/ace/help.md +0 -93
  115. package/commands/ace/init-coding-standards.md +0 -83
  116. package/commands/ace/map-story.md +0 -156
  117. package/commands/ace/map-subsystem.md +0 -138
  118. package/commands/ace/map-system.md +0 -92
  119. package/commands/ace/plan-backlog.md +0 -83
  120. package/commands/ace/plan-feature.md +0 -89
  121. package/commands/ace/plan-product-vision.md +0 -81
  122. package/commands/ace/plan-story.md +0 -145
  123. package/commands/ace/research-external-solution.md +0 -138
  124. package/commands/ace/research-integration-solution.md +0 -135
  125. package/commands/ace/research-story-wiki.md +0 -116
  126. package/commands/ace/research-technical-solution.md +0 -147
  127. package/commands/ace/review-story.md +0 -109
  128. package/commands/ace/update.md +0 -54
  129. /package/{agile-context-engineering → shared}/utils/questioning.xml +0 -0
  130. /package/{agile-context-engineering/templates/product/story.xml → skills/execute-story/story-template.xml} +0 -0
  131. /package/{agile-context-engineering/templates/wiki → skills/map-cross-cutting}/system-cross-cutting.xml +0 -0
  132. /package/{agile-context-engineering/templates/wiki → skills/map-guide}/guide.xml +0 -0
  133. /package/{agile-context-engineering/templates/wiki → skills/map-pattern}/pattern.xml +0 -0
  134. /package/{agile-context-engineering/templates/wiki → skills/map-story/templates}/decizions.xml +0 -0
  135. /package/{agile-context-engineering/templates/wiki → skills/map-story/templates}/system.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-architecture.xml +0 -0
  140. /package/{agile-context-engineering/templates/wiki → skills/map-system/templates}/system-structure.xml +0 -0
  141. /package/{agile-context-engineering/templates/wiki → skills/map-system/templates}/testing-framework.xml +0 -0
  142. /package/{agile-context-engineering/templates/product/product-backlog.xml → skills/plan-backlog/product-backlog-template.xml} +0 -0
  143. /package/{agile-context-engineering/templates/product/feature.xml → skills/plan-feature/feature-template.xml} +0 -0
  144. /package/{agile-context-engineering/templates/product/product-vision.xml → skills/plan-product-vision/product-vision-template.xml} +0 -0
  145. /package/{agile-context-engineering/templates/product/external-solution.xml → skills/research-external-solution/external-solution-template.xml} +0 -0
  146. /package/{agile-context-engineering/templates/product/story-technical-solution.xml → skills/research-technical-solution/technical-solution-template.xml} +0 -0
@@ -1,147 +0,0 @@
1
- ---
2
- name: ace:research-technical-solution
3
- description: COMPREHENSIVE Technical Solution Design for a Story — Architecture, Patterns, Algorithms, Sequence Diagrams, and Implementation Plan
4
- argument-hint: "story=<file-path|github-url>"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Write
9
- - Edit
10
- - AskUserQuestion
11
- - Glob
12
- - Grep
13
- - Agent
14
- ---
15
-
16
- ```xml
17
- <command>
18
-
19
- <execution-time>
20
- <runs-after>
21
- <trigger>After /ace:plan-story — once story requirements (pass 1-2) are complete</trigger>
22
- <trigger>After /ace:research-integration-solution — integration analysis (pass 4) MUST exist</trigger>
23
- <trigger>Optionally after /ace:research-external-solution — external analysis (pass 3) if applicable</trigger>
24
- </runs-after>
25
- <use-when>
26
- <condition>Story requirements, wiki references, and integration analysis are available (passes 1-4 complete)</condition>
27
- <condition>Need to design a concrete technical solution for the story</condition>
28
- <condition>Want a detailed implementation blueprint with class diagrams, sequence diagrams, algorithms, and file structure</condition>
29
- <condition>Need a comprehensive technical design to guide AI agents implementing the story</condition>
30
- </use-when>
31
- </execution-time>
32
-
33
- <input>
34
- <flags>
35
- </flags>
36
-
37
- <parameters>
38
- <required>
39
- <param name="story" type="file | github-url">
40
- Story source — can be either:
41
- - **File path**: Path to a markdown file containing the story (from plan-story command)
42
- - **GitHub URL or issue number**: GitHub story reference
43
- Must be a valid, accessible file or GitHub issue.
44
- Contains the user story, acceptance criteria, and Relevant Wiki references
45
- that define what to design a technical solution for.
46
-
47
- **All context is extracted from the story document:**
48
- - Feature file (from story description/metadata)
49
- - Story requirements (User Story, Description, AC)
50
- - Wiki references (from Relevant Wiki section — pass 2)
51
- - External analysis (auto-detected in story directory — OPTIONAL)
52
- - Integration analysis (auto-detected in story directory — MANDATORY)
53
-
54
- If not valid, stop and prompt the user.
55
- </param>
56
- </required>
57
-
58
- <optional>
59
- <!-- No optional parameters.
60
- All context is extracted from the story document and story directory:
61
- - Feature file (from story description/metadata)
62
- - Story requirements (User Story, Description, AC)
63
- - Wiki references (from Relevant Wiki section — pass 2)
64
- - External analysis (auto-detected in story directory)
65
- - Integration analysis (auto-detected in story directory)
66
- -->
67
- </optional>
68
- </parameters>
69
- </input>
70
-
71
- <execution-context>
72
- <research-technical-workflow>@~/.claude/agile-context-engineering/workflows/research-technical-solution.xml</research-technical-workflow>
73
- <technical-solution-template>@~/.claude/agile-context-engineering/templates/product/story-technical-solution.xml</technical-solution-template>
74
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
75
- </execution-context>
76
-
77
- <output>
78
- <objective>
79
- Use business requirements, integration analysis, and optionally external/industry-standard
80
- analysis to create a CONCRETE TECHNICAL SOLUTION DESIGN for the story, following Clean
81
- Architecture principles, SOLID patterns, OOP best practices, considering external analysis
82
- for approach, algorithms and formulas (when most efficient and performant), while following
83
- the integration analysis so that we don't break our already complex codebase.
84
-
85
- **CRITICAL**: The technical solution MUST include detailed sequence diagrams for EVERY
86
- scenario in the Acceptance Criteria, showing the complete flow of data and control
87
- through all architectural layers.
88
-
89
- The analysis covers:
90
- - Complete component and boundary architecture
91
- - Design patterns and technical decisions
92
- - Full class diagrams and interfaces (one per file!)
93
- - Data models and structures
94
- - Algorithms and business logic
95
- - Event flow and entry points
96
- - MANDATORY sequence diagrams for ALL AC scenarios
97
- - Complete file structure tree
98
- - DI container configuration
99
- - Testing strategy (unit, integration, e2e)
100
- - Implementation order and dependencies
101
-
102
- **Output**: The entire technical solution is written INTO the story document
103
- (appended as the Technical Solution section) AND updated in the GitHub issue.
104
- No separate output file is created.
105
- </objective>
106
-
107
- <artifacts>
108
- Written directly into the story file and GitHub issue — pass 5 of the story specification pipeline.
109
- See story.xml: &lt;section name="technical-solution" pass="5" template="story-technical-solution.xml"&gt;
110
- </artifacts>
111
- </output>
112
-
113
- <process>
114
- For this command use the `ace-technical-application-architect` agent
115
- that's specialized in application architecture and is intimate with the codebase.
116
-
117
- Execute the research-technical-solution workflow from
118
- `@~/.claude/agile-context-engineering/workflows/research-technical-solution.xml` end-to-end.
119
- Preserve all workflow gates (validation, approvals, commits).
120
- </process>
121
-
122
- <example-usage>
123
- ```
124
- # Example with file path story
125
- /ace:research-technical-solution \
126
- story=.ace/artifacts/product/e1-auth/f3-oauth/s1-buttons/s1-buttons.md
127
-
128
- # Example with GitHub story
129
- /ace:research-technical-solution \
130
- story=https://github.com/owner/repo/issues/83
131
-
132
- # Example with just issue number (uses current repo)
133
- /ace:research-technical-solution \
134
- story=83
135
- ```
136
- </example-usage>
137
-
138
- <next-steps>
139
- **After this command:**
140
- - The story is now fully refined (pass 5 complete) — ready for implementation
141
- - `/ace:execute-story story=...` — Execute the story implementation
142
- - `/ace:refine-story story=...` — Re-refine if scope changes
143
- - `/ace:help` — Check project initialization status
144
- </next-steps>
145
-
146
- </command>
147
- ```
@@ -1,109 +0,0 @@
1
- ---
2
- name: ace:review-story
3
- description: Standalone code review — performs 3-level artifact verification, anti-pattern detection, coding standards enforcement, and tech debt discovery against a story's implementation
4
- argument-hint: "story=<file-path|github-url>"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Glob
9
- - Grep
10
- ---
11
-
12
- ```xml
13
- <command>
14
-
15
- <execution-time>
16
- <runs-after>
17
- <trigger>After /ace:execute-story — to re-run code review after manual changes</trigger>
18
- <trigger>Anytime — to review a story implementation standalone</trigger>
19
- </runs-after>
20
- <use-when>
21
- <condition>A story has been implemented and needs code review</condition>
22
- <condition>Re-checking after manual changes post-execution</condition>
23
- <condition>Verifying stories implemented outside ACE</condition>
24
- <condition>Pre-merge quality gate</condition>
25
- </use-when>
26
- </execution-time>
27
-
28
- <input>
29
- <flags>
30
- </flags>
31
-
32
- <parameters>
33
- <required>
34
- <param name="story" type="file | github-url">
35
- Story source — can be either:
36
- - **File path**: Path to a fully-planned story markdown file
37
- (must have AC + Technical Solution sections)
38
- - **GitHub URL or issue number**: GitHub story reference
39
- Must be a valid, accessible file or GitHub issue.
40
- The story MUST have Acceptance Criteria and Technical Solution.
41
- </param>
42
- </required>
43
- </parameters>
44
- </input>
45
-
46
- <execution-context>
47
- <review-story-workflow>@~/.claude/agile-context-engineering/workflows/review-story.xml</review-story-workflow>
48
- <story-template>@~/.claude/agile-context-engineering/templates/product/story.xml</story-template>
49
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
50
- </execution-context>
51
-
52
- <output>
53
- <objective>
54
- Review a story's implementation directly (the session IS the reviewer):
55
- 1. Load story context (AC, Technical Solution, Out of Scope)
56
- 2. Identify changed/created files related to the story
57
- 3. Run 3-level artifact verification (EXISTS → SUBSTANTIVE → WIRED)
58
- 4. Detect anti-patterns (dead code, stubs, TODOs, hardcoded values)
59
- 5. Enforce coding standards (mandatory, blocker-level)
60
- 6. Check AC coverage (all Gherkin scenarios implemented)
61
- 7. Discover pre-existing tech debt in touched files
62
- 8. Report results with structured format
63
- </objective>
64
-
65
- <artifacts>
66
- No files modified — this command is read-only.
67
- Outputs a structured review report to the conversation.
68
- </artifacts>
69
- </output>
70
-
71
- <process>
72
- For this command use the `ace-code-reviewer` agent
73
- that's specialized in code review.
74
-
75
- Execute the review-story workflow from
76
- `@~/.claude/agile-context-engineering/workflows/review-story.xml` end-to-end.
77
-
78
- **CRITICAL REQUIREMENTS:**
79
- - Story MUST have Acceptance Criteria — STOP if missing
80
- - Story MUST have Technical Solution — STOP if missing
81
- - This is a READ-ONLY command — do NOT modify any code
82
- - Coding standards violations are BLOCKERS, not warnings
83
- - Dead code and backwards-compatible shims must be flagged for DELETION
84
- </process>
85
-
86
- <example-usage>
87
- ```
88
- # Review a story from a file path
89
- /ace:review-story \
90
- story=.ace/artifacts/product/e1-auth/f3-oauth/s1-buttons/s1-buttons.md
91
-
92
- # Review from a GitHub issue
93
- /ace:review-story \
94
- story=https://github.com/owner/repo/issues/95
95
-
96
- # With just an issue number
97
- /ace:review-story story=#95
98
- ```
99
- </example-usage>
100
-
101
- <next-steps>
102
- **After this command:**
103
- - `/ace:execute-story story=...` — Re-execute to fix reported issues
104
- - `/ace:review-story story=...` — Re-run review after fixes
105
- - `/ace:help` — Check project status
106
- </next-steps>
107
-
108
- </command>
109
- ```
@@ -1,54 +0,0 @@
1
- ---
2
- name: ace:update
3
- description: Update ACE to latest version
4
- argument-hint: ""
5
- allowed-tools:
6
- - Bash
7
- - AskUserQuestion
8
- ---
9
-
10
- ```xml
11
- <command>
12
-
13
- <execution-time>
14
- <runs-after>
15
- <trigger>When statusline shows the update indicator</trigger>
16
- <trigger>When user wants to check for or install ACE updates</trigger>
17
- </runs-after>
18
- </execution-time>
19
-
20
- <input>
21
- <parameters>
22
- <required></required>
23
- <optional></optional>
24
- </parameters>
25
- </input>
26
-
27
- <execution-context>
28
- <update-workflow>@~/.claude/agile-context-engineering/workflows/update.xml</update-workflow>
29
- <ui-formatting>@~/.claude/agile-context-engineering/utils/ui-formatting.md</ui-formatting>
30
- </execution-context>
31
-
32
- <output>
33
- <objective>
34
- Check for ACE updates, install if available.
35
- Automatically detects local vs global installation and Claude vs Crush runtime.
36
- </objective>
37
- </output>
38
-
39
- <process>
40
- Execute the update workflow from
41
- `@~/.claude/agile-context-engineering/workflows/update.xml` end-to-end.
42
-
43
- The workflow handles all logic including:
44
- 1. Installation detection (local/global, Claude/Crush)
45
- 2. Latest version checking via npm
46
- 3. Version comparison
47
- 4. Clean install warning display
48
- 5. User confirmation
49
- 6. Update execution
50
- 7. Cache clearing and restart reminder
51
- </process>
52
-
53
- </command>
54
- ```