aw-spec-cli 0.1.4 → 0.1.5

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 (254) hide show
  1. package/assets/.agents/agent.json +28 -0
  2. package/assets/.agents/skills/aw-spec-orch/SKILL.md +56 -0
  3. package/assets/.agents/skills/aw-spec-orch-demo/SKILL.md +59 -0
  4. package/assets/.aw-spec/DESIGN-FORMAT.md +151 -0
  5. package/assets/.aw-spec/ORCH-DIALECT.md +156 -0
  6. package/assets/.aw-spec/RULE-PARTITION.md +126 -0
  7. package/assets/.aw-spec/extensions/agent-context/extension.yml +12 -9
  8. package/assets/.aw-spec/extensions.yml +12 -19
  9. package/assets/.aw-spec/integrations/aw-spec.manifest.json +1 -9
  10. package/assets/.aw-spec/interpreter/run-skill.py +1158 -0
  11. package/assets/.aw-spec/orchestrator/AGENT-PROFILE.md +94 -0
  12. package/assets/.aw-spec/orchestrator/README.md +300 -0
  13. package/assets/.aw-spec/orchestrator/adapters/claude_agent_sdk.py +74 -0
  14. package/assets/.aw-spec/orchestrator/adapters/google_antigravity.py +74 -0
  15. package/assets/.aw-spec/orchestrator/modules/delta-design.orch.yaml +105 -0
  16. package/assets/.aw-spec/orchestrator/modules/delta-spec.orch.yaml +79 -0
  17. package/assets/.aw-spec/orchestrator/modules/domain-select.orch.yaml +81 -0
  18. package/assets/.aw-spec/orchestrator/modules/tech-select.orch.yaml +75 -0
  19. package/assets/.aw-spec/orchestrator/orchestrator.py +1721 -0
  20. package/assets/.aw-spec/orchestrator/rev-templates/ai-rules.reference.md +40 -0
  21. package/assets/.aw-spec/orchestrator/rev-templates/comandrulemap.skeleton.md +59 -0
  22. package/assets/.aw-spec/orchestrator/rev-templates/commandtechrulemap.skeleton.md +97 -0
  23. package/assets/.aw-spec/orchestrator/rev-templates/domain-constitution.skeleton.md +61 -0
  24. package/assets/.aw-spec/orchestrator/rev-templates/domain-requirements.skeleton.md +48 -0
  25. package/assets/.aw-spec/orchestrator/rev-templates/domain-rule-file.skeleton.md +39 -0
  26. package/assets/.aw-spec/orchestrator/rev-templates/technical-constitution.skeleton.md +106 -0
  27. package/assets/.aw-spec/orchestrator/rev-templates/technical-rule-file.skeleton.md +54 -0
  28. package/assets/.aw-spec/orchestrator/workflows/_smoke.orch.yaml +160 -0
  29. package/assets/.aw-spec/orchestrator/workflows/aw-spec-add-component.orch.yaml +244 -0
  30. package/assets/.aw-spec/orchestrator/workflows/aw-spec-adopt.orch.yaml +775 -0
  31. package/assets/.aw-spec/orchestrator/workflows/aw-spec-analyze-delta-design.orch.yaml +248 -0
  32. package/assets/.aw-spec/orchestrator/workflows/aw-spec-analyze-design.orch.yaml +261 -0
  33. package/assets/.aw-spec/orchestrator/workflows/aw-spec-analyze-slice.orch.yaml +425 -0
  34. package/assets/.aw-spec/orchestrator/workflows/aw-spec-build.orch.yaml +188 -0
  35. package/assets/.aw-spec/orchestrator/workflows/aw-spec-characterize.orch.yaml +474 -0
  36. package/assets/.aw-spec/orchestrator/workflows/aw-spec-close-delta.orch.yaml +181 -0
  37. package/assets/.aw-spec/orchestrator/workflows/aw-spec-constitution.orch.yaml +284 -0
  38. package/assets/.aw-spec/orchestrator/workflows/aw-spec-demo.orch.yaml +103 -0
  39. package/assets/.aw-spec/orchestrator/workflows/aw-spec-dependency-tree.orch.yaml +69 -0
  40. package/assets/.aw-spec/orchestrator/workflows/aw-spec-deploy.orch.yaml +85 -0
  41. package/assets/.aw-spec/orchestrator/workflows/aw-spec-design.orch.yaml +382 -0
  42. package/assets/.aw-spec/orchestrator/workflows/aw-spec-finalize-delta.orch.yaml +382 -0
  43. package/assets/.aw-spec/orchestrator/workflows/aw-spec-foundation.orch.yaml +246 -0
  44. package/assets/.aw-spec/orchestrator/workflows/aw-spec-implement-delta.orch.yaml +231 -0
  45. package/assets/.aw-spec/orchestrator/workflows/aw-spec-implement.orch.yaml +258 -0
  46. package/assets/.aw-spec/orchestrator/workflows/aw-spec-inventory.orch.yaml +236 -0
  47. package/assets/.aw-spec/orchestrator/workflows/aw-spec-onboard.orch.yaml +949 -0
  48. package/assets/.aw-spec/orchestrator/workflows/aw-spec-parity.orch.yaml +293 -0
  49. package/assets/.aw-spec/orchestrator/workflows/aw-spec-run.orch.yaml +177 -0
  50. package/assets/.aw-spec/orchestrator/workflows/aw-spec-select-domain.orch.yaml +79 -0
  51. package/assets/.aw-spec/orchestrator/workflows/aw-spec-select-feature.orch.yaml +128 -0
  52. package/assets/.aw-spec/orchestrator/workflows/aw-spec-specify.orch.yaml +412 -0
  53. package/assets/.aw-spec/scripts/bash/aw-inventory.sh +14 -0
  54. package/assets/.aw-spec/scripts/bash/aw-parity.sh +13 -0
  55. package/assets/.aw-spec/scripts/bash/aw-rev-constitution.sh +13 -0
  56. package/assets/.aw-spec/scripts/bash/aw-spec-actions.sh +1899 -0
  57. package/assets/.aw-spec/scripts/bash/aw-xref.sh +15 -0
  58. package/assets/.aw-spec/scripts/bash/common.sh +11 -60
  59. package/assets/.aw-spec/scripts/powershell/aw-inventory.ps1 +14 -0
  60. package/assets/.aw-spec/scripts/powershell/aw-parity.ps1 +13 -0
  61. package/assets/.aw-spec/scripts/powershell/aw-rev-constitution.ps1 +13 -0
  62. package/assets/.aw-spec/scripts/powershell/aw-spec-actions.ps1 +1563 -0
  63. package/assets/.aw-spec/scripts/powershell/aw-xref.ps1 +15 -0
  64. package/assets/.aw-spec/scripts/python/aw-inventory.py +683 -0
  65. package/assets/.aw-spec/scripts/python/aw-parity.py +380 -0
  66. package/assets/.aw-spec/scripts/python/aw-rev-constitution.py +312 -0
  67. package/assets/.aw-spec/scripts/python/aw-xref.py +1330 -0
  68. package/assets/.aw-spec/scripts/python/validate_okf.py +349 -0
  69. package/assets/.aw-spec/templates/constitution-domain-template.md +75 -0
  70. package/assets/.aw-spec/templates/constitution-technical-template.md +70 -0
  71. package/assets/.aw-spec/templates/delta-design-template.md +69 -0
  72. package/assets/.aw-spec/templates/delta-spec-template.md +60 -0
  73. package/assets/.aw-spec/templates/design-template.md +383 -0
  74. package/assets/.aw-spec/templates/okf-concept-template.md +103 -0
  75. package/assets/.aw-spec/templates/parity-manifest-template.json +49 -0
  76. package/assets/.aw-spec/templates/source-map-template.md +85 -0
  77. package/assets/.aw-spec/templates/spec-template.md +192 -71
  78. package/assets/.claude/agent.json +27 -0
  79. package/assets/.claude/skills/aw-spec-orch/SKILL.md +55 -0
  80. package/assets/.claude/skills/aw-spec-orch-demo/SKILL.md +59 -0
  81. package/assets/.kilocode/agent.json +28 -0
  82. package/assets/.kilocode/workflows/aw-spec-orch-demo.md +59 -0
  83. package/assets/.kilocode/workflows/aw-spec-orch.md +55 -0
  84. package/assets/docs/architecture/clean-architecture.md +1 -1
  85. package/assets/docs/architecture/cqrs.md +1 -1
  86. package/assets/docs/architecture/eventing.md +1 -1
  87. package/assets/docs/architecture/folder-structure.md +1 -1
  88. package/assets/docs/architecture/modular-monolith.md +1 -1
  89. package/assets/docs/architecture/persistence.md +1 -1
  90. package/assets/docs/architecture/testing.md +1 -1
  91. package/assets/docs/architecture/vertical-slices.md +1 -1
  92. package/assets/docs/components/Email/README.md +1 -1
  93. package/assets/docs/components/Jobs/README.md +1 -1
  94. package/assets/docs/components/QrGenerator/README.md +1 -1
  95. package/assets/docs/components/README.md +1 -1
  96. package/assets/docs/domain/domain-driven-design.md +1 -1
  97. package/assets/docs/domainspecs/healthcare/api-versioning.domain.md +1 -1
  98. package/assets/docs/domainspecs/healthcare/auditing.domain.md +86 -18
  99. package/assets/docs/domainspecs/healthcare/authorization.domain.md +1 -1
  100. package/assets/docs/domainspecs/healthcare/clinical-terms.md +1 -1
  101. package/assets/docs/domainspecs/healthcare/coding-standards.domain.md +1 -1
  102. package/assets/docs/domainspecs/healthcare/comandrulemap.md +58 -124
  103. package/assets/docs/domainspecs/healthcare/commandtechrulemap.md +119 -0
  104. package/assets/docs/domainspecs/healthcare/consent.md +1 -1
  105. package/assets/docs/domainspecs/healthcare/cqrs.domain.md +1 -1
  106. package/assets/docs/domainspecs/healthcare/data-classification.domain.md +1 -1
  107. package/assets/docs/domainspecs/healthcare/dependency-policy.domain.md +1 -1
  108. package/assets/docs/domainspecs/healthcare/dicom.md +1 -1
  109. package/assets/docs/domainspecs/healthcare/domain-driven-design.domain.md +1 -1
  110. package/assets/docs/domainspecs/healthcare/eventing.domain.md +1 -1
  111. package/assets/docs/domainspecs/healthcare/fhir.md +1 -1
  112. package/assets/docs/domainspecs/healthcare/folder-structure.domain.md +1 -1
  113. package/assets/docs/domainspecs/healthcare/hipaa.md +1 -1
  114. package/assets/docs/domainspecs/healthcare/hl7.md +1 -1
  115. package/assets/docs/domainspecs/healthcare/integration-terms.md +1 -1
  116. package/assets/docs/domainspecs/healthcare/persistence.domain.md +1 -1
  117. package/assets/docs/domainspecs/healthcare/terminology.md +1 -1
  118. package/assets/docs/domainspecs/healthcare/testing.domain.md +1 -1
  119. package/assets/docs/domainspecs/healthcare/vertical-slices.domain.md +1 -1
  120. package/assets/docs/domainspecs/healthcare/zero-trust.domain.md +1 -1
  121. package/assets/docs/domainspecs/pharma/api-versioning.domain.md +1 -1
  122. package/assets/docs/domainspecs/pharma/atc.md +1 -1
  123. package/assets/docs/domainspecs/pharma/auditing.domain.md +80 -16
  124. package/assets/docs/domainspecs/pharma/authorization.domain.md +1 -1
  125. package/assets/docs/domainspecs/pharma/coding-standards.domain.md +1 -1
  126. package/assets/docs/domainspecs/pharma/comandrulemap.md +64 -142
  127. package/assets/docs/domainspecs/pharma/commandtechrulemap.md +119 -0
  128. package/assets/docs/domainspecs/pharma/cqrs.domain.md +1 -1
  129. package/assets/docs/domainspecs/pharma/data-classification.domain.md +1 -1
  130. package/assets/docs/domainspecs/pharma/data-provenance.md +1 -1
  131. package/assets/docs/domainspecs/pharma/dependency-policy.domain.md +1 -1
  132. package/assets/docs/domainspecs/pharma/domain-driven-design.domain.md +1 -1
  133. package/assets/docs/domainspecs/pharma/eventing.domain.md +1 -1
  134. package/assets/docs/domainspecs/pharma/fhir.md +1 -1
  135. package/assets/docs/domainspecs/pharma/folder-structure.domain.md +1 -1
  136. package/assets/docs/domainspecs/pharma/hl7.md +1 -1
  137. package/assets/docs/domainspecs/pharma/idmp.md +1 -1
  138. package/assets/docs/domainspecs/pharma/integration-terms.md +1 -1
  139. package/assets/docs/domainspecs/pharma/ndc.md +1 -1
  140. package/assets/docs/domainspecs/pharma/persistence.domain.md +1 -1
  141. package/assets/docs/domainspecs/pharma/pharma-terms.md +1 -1
  142. package/assets/docs/domainspecs/pharma/product-lifecycle.domain.md +1 -1
  143. package/assets/docs/domainspecs/pharma/regulatory-compliance.md +1 -1
  144. package/assets/docs/domainspecs/pharma/terminology.md +1 -1
  145. package/assets/docs/domainspecs/pharma/testing.domain.md +1 -1
  146. package/assets/docs/domainspecs/pharma/vertical-slices.domain.md +1 -1
  147. package/assets/docs/domainspecs/pharma/zero-trust.domain.md +1 -1
  148. package/assets/docs/governance/api-versioning.md +1 -1
  149. package/assets/docs/governance/coding-standards.md +1 -1
  150. package/assets/docs/governance/dependency-policy.md +1 -1
  151. package/assets/docs/requirement-spec.txt +27 -0
  152. package/assets/docs/security/auditing.md +54 -11
  153. package/assets/docs/security/authorization.md +1 -1
  154. package/assets/docs/security/data-classification.md +1 -1
  155. package/assets/docs/security/zero-trust.md +1 -1
  156. package/dist/commands/init.d.ts.map +1 -1
  157. package/dist/commands/init.js +7 -54
  158. package/dist/commands/init.js.map +1 -1
  159. package/dist/index.js +0 -2
  160. package/dist/index.js.map +1 -1
  161. package/dist/utils/paths.js +2 -2
  162. package/dist/utils/paths.js.map +1 -1
  163. package/package.json +1 -1
  164. package/assets/.agents/skills/aw-spec-addcomponent/SKILL.md +0 -129
  165. package/assets/.agents/skills/aw-spec-agent-context-update/SKILL.md +0 -31
  166. package/assets/.agents/skills/aw-spec-analyze/SKILL.md +0 -296
  167. package/assets/.agents/skills/aw-spec-checklist/SKILL.md +0 -374
  168. package/assets/.agents/skills/aw-spec-clarify/SKILL.md +0 -320
  169. package/assets/.agents/skills/aw-spec-constitution/SKILL.md +0 -194
  170. package/assets/.agents/skills/aw-spec-fast-implement/SKILL.md +0 -268
  171. package/assets/.agents/skills/aw-spec-foundation/SKILL.md +0 -358
  172. package/assets/.agents/skills/aw-spec-implement/SKILL.md +0 -279
  173. package/assets/.agents/skills/aw-spec-minimal-implementation/SKILL.md +0 -209
  174. package/assets/.agents/skills/aw-spec-plan/SKILL.md +0 -221
  175. package/assets/.agents/skills/aw-spec-select-domain/SKILL.md +0 -73
  176. package/assets/.agents/skills/aw-spec-specify/SKILL.md +0 -382
  177. package/assets/.agents/skills/aw-spec-tasks/SKILL.md +0 -259
  178. package/assets/.agents/skills/aw-spec-taskstoissues/SKILL.md +0 -107
  179. package/assets/.aw-spec/integrations/claude.manifest.json +0 -17
  180. package/assets/.aw-spec/scripts/bash/check-prerequisites.sh +0 -189
  181. package/assets/.aw-spec/scripts/bash/create-new-feature.sh +0 -299
  182. package/assets/.aw-spec/scripts/bash/setup-plan.sh +0 -84
  183. package/assets/.aw-spec/scripts/bash/setup-tasks.sh +0 -91
  184. package/assets/.aw-spec/templates/checklist-template.md +0 -40
  185. package/assets/.aw-spec/templates/constitution-template.md +0 -57
  186. package/assets/.aw-spec/templates/plan-template.md +0 -113
  187. package/assets/.aw-spec/templates/tasks-template.md +0 -252
  188. package/assets/.aw-spec/workflows/aw-spec/workflow.yml +0 -77
  189. package/assets/.aw-spec/workflows/workflow-registry.json +0 -13
  190. package/assets/.claude/skills/aw-spec-addcomponent/SKILL.md +0 -129
  191. package/assets/.claude/skills/aw-spec-agent-context-update/SKILL.md +0 -31
  192. package/assets/.claude/skills/aw-spec-analyze/SKILL.md +0 -296
  193. package/assets/.claude/skills/aw-spec-checklist/SKILL.md +0 -374
  194. package/assets/.claude/skills/aw-spec-clarify/SKILL.md +0 -320
  195. package/assets/.claude/skills/aw-spec-constitution/SKILL.md +0 -194
  196. package/assets/.claude/skills/aw-spec-fast-implement/SKILL.md +0 -268
  197. package/assets/.claude/skills/aw-spec-foundation/SKILL.md +0 -358
  198. package/assets/.claude/skills/aw-spec-implement/SKILL.md +0 -279
  199. package/assets/.claude/skills/aw-spec-minimal-implementation/SKILL.md +0 -209
  200. package/assets/.claude/skills/aw-spec-plan/SKILL.md +0 -221
  201. package/assets/.claude/skills/aw-spec-select-domain/SKILL.md +0 -73
  202. package/assets/.claude/skills/aw-spec-specify/SKILL.md +0 -382
  203. package/assets/.claude/skills/aw-spec-tasks/SKILL.md +0 -259
  204. package/assets/.claude/skills/aw-spec-taskstoissues/SKILL.md +0 -107
  205. package/assets/.kilocode/rules/specify-rules.md +0 -4
  206. package/assets/.kilocode/workflows/aw-spec-addcomponent.md +0 -129
  207. package/assets/.kilocode/workflows/aw-spec-agent-context.update.md +0 -31
  208. package/assets/.kilocode/workflows/aw-spec-analyze.md +0 -296
  209. package/assets/.kilocode/workflows/aw-spec-checklist.md +0 -374
  210. package/assets/.kilocode/workflows/aw-spec-clarify.md +0 -320
  211. package/assets/.kilocode/workflows/aw-spec-constitution.md +0 -194
  212. package/assets/.kilocode/workflows/aw-spec-fast-implement.md +0 -263
  213. package/assets/.kilocode/workflows/aw-spec-foundation.md +0 -358
  214. package/assets/.kilocode/workflows/aw-spec-implement.md +0 -279
  215. package/assets/.kilocode/workflows/aw-spec-minimal-implementation.md +0 -204
  216. package/assets/.kilocode/workflows/aw-spec-plan.md +0 -221
  217. package/assets/.kilocode/workflows/aw-spec-select-domain.md +0 -73
  218. package/assets/.kilocode/workflows/aw-spec-specify.md +0 -382
  219. package/assets/.kilocode/workflows/aw-spec-tasks.md +0 -259
  220. package/assets/.kilocode/workflows/aw-spec-taskstoissues.md +0 -107
  221. package/assets/docs/UI.Visualization/PACKAGING.md +0 -191
  222. package/assets/docs/UI.Visualization/UI.Visualization.Reference.pack.txt +0 -11768
  223. package/assets/docs/UI.Visualization/UI.Visualization.pack.txt +0 -11214
  224. package/assets/docs/UI.Visualization/pack-foundation.ps1 +0 -165
  225. package/assets/docs/UI.Visualization/pack-foundation.sh +0 -206
  226. package/assets/docs/UI.Visualization/pack-reference-foundation.ps1 +0 -159
  227. package/assets/docs/UI.Visualization/pack-reference-foundation.sh +0 -205
  228. package/assets/docs/UI.Visualization/unpack-foundation.ps1 +0 -126
  229. package/assets/docs/UI.Visualization/unpack-foundation.sh +0 -217
  230. package/assets/docs/UI.Visualization/unpack-reference-foundation.ps1 +0 -129
  231. package/assets/docs/UI.Visualization/unpack-reference-foundation.sh +0 -218
  232. package/assets/docs/command.txt +0 -295
  233. package/assets/docs/domainspecs/UIVisualization/chart-bubble.md +0 -70
  234. package/assets/docs/domainspecs/UIVisualization/chart-dimred.md +0 -58
  235. package/assets/docs/domainspecs/UIVisualization/chart-heatmap.md +0 -62
  236. package/assets/docs/domainspecs/UIVisualization/chart-network.md +0 -69
  237. package/assets/docs/domainspecs/UIVisualization/chart-parallel.md +0 -75
  238. package/assets/docs/domainspecs/UIVisualization/chart-scurve.md +0 -66
  239. package/assets/docs/domainspecs/UIVisualization/chart-survival.md +0 -69
  240. package/assets/docs/domainspecs/UIVisualization/chart-trellis.md +0 -68
  241. package/assets/docs/domainspecs/UIVisualization/chart-violin.md +0 -61
  242. package/assets/docs/domainspecs/UIVisualization/chart-volcano.md +0 -63
  243. package/assets/docs/domainspecs/UIVisualization/charting-standards.domain.md +0 -80
  244. package/assets/docs/domainspecs/UIVisualization/clean-architecture.domain.md +0 -87
  245. package/assets/docs/domainspecs/UIVisualization/coding-standards.domain.md +0 -47
  246. package/assets/docs/domainspecs/UIVisualization/comandrulemap.md +0 -130
  247. package/assets/docs/domainspecs/UIVisualization/component-contracts.domain.md +0 -67
  248. package/assets/docs/domainspecs/UIVisualization/data-source.domain.md +0 -68
  249. package/assets/docs/domainspecs/UIVisualization/domain-requirements.md +0 -110
  250. package/assets/docs/domainspecs/UIVisualization/folder-structure.domain.md +0 -55
  251. package/assets/docs/domainspecs/UIVisualization/state-management.domain.md +0 -67
  252. package/assets/docs/domainspecs/UIVisualization/testing.domain.md +0 -52
  253. package/assets/docs/domainspecs/UIVisualization/ui-viz-terms.md +0 -39
  254. package/assets/docs/pharma-constitution.my-ref.md +0 -86
@@ -1,374 +0,0 @@
1
- ---
2
- name: "aw-spec-checklist"
3
- description: "Generate a custom checklist for the current feature based on user requirements."
4
- argument-hint: "Domain or focus area for the checklist"
5
- compatibility: "Requires aw-spec project structure with .aw-spec/ directory"
6
- metadata:
7
- author: "github-aw-spec"
8
- source: "templates/commands/checklist.md"
9
- user-invocable: true
10
- disable-model-invocation: false
11
- ---
12
-
13
-
14
- ## Checklist Purpose: "Unit Tests for English"
15
-
16
- **CRITICAL CONCEPT**: Checklists are **UNIT TESTS FOR REQUIREMENTS WRITING** - they validate the quality, clarity, and completeness of requirements in a given domain.
17
-
18
- **NOT for verification/testing**:
19
-
20
- - ❌ NOT "Verify the button clicks correctly"
21
- - ❌ NOT "Test error handling works"
22
- - ❌ NOT "Confirm the API returns 200"
23
- - ❌ NOT checking if code/implementation matches the spec
24
-
25
- **FOR requirements quality validation**:
26
-
27
- - ✅ "Are visual hierarchy requirements defined for all card types?" (completeness)
28
- - ✅ "Is 'prominent display' quantified with specific sizing/positioning?" (clarity)
29
- - ✅ "Are hover state requirements consistent across all interactive elements?" (consistency)
30
- - ✅ "Are accessibility requirements defined for keyboard navigation?" (coverage)
31
- - ✅ "Does the spec define what happens when logo image fails to load?" (edge cases)
32
-
33
- **Metaphor**: If your spec is code written in English, the checklist is its unit test suite. You're testing whether the requirements are well-written, complete, unambiguous, and ready for implementation - NOT whether the implementation works.
34
-
35
- ## User Input
36
-
37
- ```text
38
- $ARGUMENTS
39
- ```
40
-
41
- You **MUST** consider the user input before proceeding (if not empty).
42
-
43
- ## Pre-Execution Checks
44
-
45
- **Check for extension hooks (before checklist generation)**:
46
- - Check if `.aw-spec/extensions.yml` exists in the project root.
47
- - If it exists, read it and look for entries under the `hooks.before_checklist` key
48
- - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
49
- - Filter out hooks where `enabled` is explicitly `false`. Treat hooks without an `enabled` field as enabled by default.
50
- - For each remaining hook, do **not** attempt to interpret or evaluate hook `condition` expressions:
51
- - If the hook has no `condition` field, or it is null/empty, treat the hook as executable
52
- - If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation
53
- - When constructing slash commands from hook command names, replace dots (`.`) with hyphens (`-`). For example, `aw-spec.git.commit` → `/aw-spec-git-commit`.
54
- - For each executable hook, output the following based on its `optional` flag:
55
- - **Optional hook** (`optional: true`):
56
- ```
57
- ## Extension Hooks
58
-
59
- **Optional Pre-Hook**: {extension}
60
- Command: `/{command}`
61
- Description: {description}
62
-
63
- Prompt: {prompt}
64
- To execute: `/{command}`
65
- ```
66
- - **Mandatory hook** (`optional: false`):
67
- ```
68
- ## Extension Hooks
69
-
70
- **Automatic Pre-Hook**: {extension}
71
- Executing: `/{command}`
72
- EXECUTE_COMMAND: {command}
73
-
74
- Wait for the result of the hook command before proceeding to the Execution Steps.
75
- ```
76
- - If no hooks are registered or `.aw-spec/extensions.yml` does not exist, skip silently
77
-
78
- ## Execution Steps
79
-
80
- 1. **Setup**: Run `.aw-spec/scripts/bash/check-prerequisites.sh --json` from repo root and parse JSON for FEATURE_DIR and AVAILABLE_DOCS list.
81
- - All file paths must be absolute.
82
- - For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
83
-
84
- 2. **IF EXISTS**: Load `.aw-spec/memory/constitution.md` for project principles and governance constraints.
85
-
86
- 3. **Clarify intent (dynamic)**: Derive up to THREE initial contextual clarifying questions (no pre-baked catalog). They MUST:
87
- - Be generated from the user's phrasing + extracted signals from spec/plan/tasks
88
- - Only ask about information that materially changes checklist content
89
- - Be skipped individually if already unambiguous in `$ARGUMENTS`
90
- - Prefer precision over breadth
91
-
92
- Generation algorithm:
93
- 1. Extract signals: feature domain keywords (e.g., auth, latency, UX, API), risk indicators ("critical", "must", "compliance"), stakeholder hints ("QA", "review", "security team"), and explicit deliverables ("a11y", "rollback", "contracts").
94
- 2. Cluster signals into candidate focus areas (max 4) ranked by relevance.
95
- 3. Identify probable audience & timing (author, reviewer, QA, release) if not explicit.
96
- 4. Detect missing dimensions: scope breadth, depth/rigor, risk emphasis, exclusion boundaries, measurable acceptance criteria.
97
- 5. Formulate questions chosen from these archetypes:
98
- - Scope refinement (e.g., "Should this include integration touchpoints with X and Y or stay limited to local module correctness?")
99
- - Risk prioritization (e.g., "Which of these potential risk areas should receive mandatory gating checks?")
100
- - Depth calibration (e.g., "Is this a lightweight pre-commit sanity list or a formal release gate?")
101
- - Audience framing (e.g., "Will this be used by the author only or peers during PR review?")
102
- - Boundary exclusion (e.g., "Should we explicitly exclude performance tuning items this round?")
103
- - Scenario class gap (e.g., "No recovery flows detected—are rollback / partial failure paths in scope?")
104
-
105
- Question formatting rules:
106
- - If presenting options, generate a compact table with columns: Option | Candidate | Why It Matters
107
- - Limit to A–E options maximum; omit table if a free-form answer is clearer
108
- - Never ask the user to restate what they already said
109
- - Avoid speculative categories (no hallucination). If uncertain, ask explicitly: "Confirm whether X belongs in scope."
110
-
111
- Defaults when interaction impossible:
112
- - Depth: Standard
113
- - Audience: Reviewer (PR) if code-related; Author otherwise
114
- - Focus: Top 2 relevance clusters
115
-
116
- Output the questions (label Q1/Q2/Q3). After answers: if ≥2 scenario classes (Alternate / Exception / Recovery / Non-Functional domain) remain unclear, you MAY ask up to TWO more targeted follow‑ups (Q4/Q5) with a one-line justification each (e.g., "Unresolved recovery path risk"). Do not exceed five total questions. Skip escalation if user explicitly declines more.
117
-
118
- 4. **Understand user request**: Combine `$ARGUMENTS` + clarifying answers:
119
- - Derive checklist theme (e.g., security, review, deploy, ux)
120
- - Consolidate explicit must-have items mentioned by user
121
- - Map focus selections to category scaffolding
122
- - Infer any missing context from spec/plan/tasks (do NOT hallucinate)
123
-
124
- 5. **Load feature context**: Read from FEATURE_DIR:
125
- - spec.md: Feature requirements and scope
126
- - plan.md (if exists): Technical details, dependencies
127
- - tasks.md (if exists): Implementation tasks
128
-
129
- **Context Loading Strategy**:
130
- - Load only necessary portions relevant to active focus areas (avoid full-file dumping)
131
- - Prefer summarizing long sections into concise scenario/requirement bullets
132
- - Use progressive disclosure: add follow-on retrieval only if gaps detected
133
- - If source docs are large, generate interim summary items instead of embedding raw text
134
-
135
- 6. **Generate checklist** - Create "Unit Tests for Requirements":
136
- - Create `FEATURE_DIR/checklists/` directory if it doesn't exist
137
- - Generate unique checklist filename:
138
- - Use short, descriptive name based on domain (e.g., `ux.md`, `api.md`, `security.md`)
139
- - Format: `[domain].md`
140
- - File handling behavior:
141
- - If file does NOT exist: Create new file and number items starting from CHK001
142
- - If file exists: Append new items to existing file, continuing from the last CHK ID (e.g., if last item is CHK015, start new items at CHK016)
143
- - Never delete or replace existing checklist content - always preserve and append
144
-
145
- **CORE PRINCIPLE - Test the Requirements, Not the Implementation**:
146
- Every checklist item MUST evaluate the REQUIREMENTS THEMSELVES for:
147
- - **Completeness**: Are all necessary requirements present?
148
- - **Clarity**: Are requirements unambiguous and specific?
149
- - **Consistency**: Do requirements align with each other?
150
- - **Measurability**: Can requirements be objectively verified?
151
- - **Coverage**: Are all scenarios/edge cases addressed?
152
-
153
- **Category Structure** - Group items by requirement quality dimensions:
154
- - **Requirement Completeness** (Are all necessary requirements documented?)
155
- - **Requirement Clarity** (Are requirements specific and unambiguous?)
156
- - **Requirement Consistency** (Do requirements align without conflicts?)
157
- - **Acceptance Criteria Quality** (Are success criteria measurable?)
158
- - **Scenario Coverage** (Are all flows/cases addressed?)
159
- - **Edge Case Coverage** (Are boundary conditions defined?)
160
- - **Non-Functional Requirements** (Performance, Security, Accessibility, etc. - are they specified?)
161
- - **Dependencies & Assumptions** (Are they documented and validated?)
162
- - **Ambiguities & Conflicts** (What needs clarification?)
163
-
164
- **HOW TO WRITE CHECKLIST ITEMS - "Unit Tests for English"**:
165
-
166
- ❌ **WRONG** (Testing implementation):
167
- - "Verify landing page displays 3 episode cards"
168
- - "Test hover states work on desktop"
169
- - "Confirm logo click navigates home"
170
-
171
- ✅ **CORRECT** (Testing requirements quality):
172
- - "Are the exact number and layout of featured episodes specified?" [Completeness]
173
- - "Is 'prominent display' quantified with specific sizing/positioning?" [Clarity]
174
- - "Are hover state requirements consistent across all interactive elements?" [Consistency]
175
- - "Are keyboard navigation requirements defined for all interactive UI?" [Coverage]
176
- - "Is the fallback behavior specified when logo image fails to load?" [Edge Cases]
177
- - "Are loading states defined for asynchronous episode data?" [Completeness]
178
- - "Does the spec define visual hierarchy for competing UI elements?" [Clarity]
179
-
180
- **ITEM STRUCTURE**:
181
- Each item should follow this pattern:
182
- - Question format asking about requirement quality
183
- - Focus on what's WRITTEN (or not written) in the spec/plan
184
- - Include quality dimension in brackets [Completeness/Clarity/Consistency/etc.]
185
- - Reference spec section `[Spec §X.Y]` when checking existing requirements
186
- - Use `[Gap]` marker when checking for missing requirements
187
-
188
- **EXAMPLES BY QUALITY DIMENSION**:
189
-
190
- Completeness:
191
- - "Are error handling requirements defined for all API failure modes? [Gap]"
192
- - "Are accessibility requirements specified for all interactive elements? [Completeness]"
193
- - "Are mobile breakpoint requirements defined for responsive layouts? [Gap]"
194
-
195
- Clarity:
196
- - "Is 'fast loading' quantified with specific timing thresholds? [Clarity, Spec §NFR-2]"
197
- - "Are 'related episodes' selection criteria explicitly defined? [Clarity, Spec §FR-5]"
198
- - "Is 'prominent' defined with measurable visual properties? [Ambiguity, Spec §FR-4]"
199
-
200
- Consistency:
201
- - "Do navigation requirements align across all pages? [Consistency, Spec §FR-10]"
202
- - "Are card component requirements consistent between landing and detail pages? [Consistency]"
203
-
204
- Coverage:
205
- - "Are requirements defined for zero-state scenarios (no episodes)? [Coverage, Edge Case]"
206
- - "Are concurrent user interaction scenarios addressed? [Coverage, Gap]"
207
- - "Are requirements specified for partial data loading failures? [Coverage, Exception Flow]"
208
-
209
- Measurability:
210
- - "Are visual hierarchy requirements measurable/testable? [Acceptance Criteria, Spec §FR-1]"
211
- - "Can 'balanced visual weight' be objectively verified? [Measurability, Spec §FR-2]"
212
-
213
- **Scenario Classification & Coverage** (Requirements Quality Focus):
214
- - Check if requirements exist for: Primary, Alternate, Exception/Error, Recovery, Non-Functional scenarios
215
- - For each scenario class, ask: "Are [scenario type] requirements complete, clear, and consistent?"
216
- - If scenario class missing: "Are [scenario type] requirements intentionally excluded or missing? [Gap]"
217
- - Include resilience/rollback when state mutation occurs: "Are rollback requirements defined for migration failures? [Gap]"
218
-
219
- **Traceability Requirements**:
220
- - MINIMUM: ≥80% of items MUST include at least one traceability reference
221
- - Each item should reference: spec section `[Spec §X.Y]`, or use markers: `[Gap]`, `[Ambiguity]`, `[Conflict]`, `[Assumption]`
222
- - If no ID system exists: "Is a requirement & acceptance criteria ID scheme established? [Traceability]"
223
-
224
- **Surface & Resolve Issues** (Requirements Quality Problems):
225
- Ask questions about the requirements themselves:
226
- - Ambiguities: "Is the term 'fast' quantified with specific metrics? [Ambiguity, Spec §NFR-1]"
227
- - Conflicts: "Do navigation requirements conflict between §FR-10 and §FR-10a? [Conflict]"
228
- - Assumptions: "Is the assumption of 'always available podcast API' validated? [Assumption]"
229
- - Dependencies: "Are external podcast API requirements documented? [Dependency, Gap]"
230
- - Missing definitions: "Is 'visual hierarchy' defined with measurable criteria? [Gap]"
231
-
232
- **Content Consolidation**:
233
- - Soft cap: If raw candidate items > 40, prioritize by risk/impact
234
- - Merge near-duplicates checking the same requirement aspect
235
- - If >5 low-impact edge cases, create one item: "Are edge cases X, Y, Z addressed in requirements? [Coverage]"
236
-
237
- **🚫 ABSOLUTELY PROHIBITED** - These make it an implementation test, not a requirements test:
238
- - ❌ Any item starting with "Verify", "Test", "Confirm", "Check" + implementation behavior
239
- - ❌ References to code execution, user actions, system behavior
240
- - ❌ "Displays correctly", "works properly", "functions as expected"
241
- - ❌ "Click", "navigate", "render", "load", "execute"
242
- - ❌ Test cases, test plans, QA procedures
243
- - ❌ Implementation details (frameworks, APIs, algorithms)
244
-
245
- **✅ REQUIRED PATTERNS** - These test requirements quality:
246
- - ✅ "Are [requirement type] defined/specified/documented for [scenario]?"
247
- - ✅ "Is [vague term] quantified/clarified with specific criteria?"
248
- - ✅ "Are requirements consistent between [section A] and [section B]?"
249
- - ✅ "Can [requirement] be objectively measured/verified?"
250
- - ✅ "Are [edge cases/scenarios] addressed in requirements?"
251
- - ✅ "Does the spec define [missing aspect]?"
252
-
253
- 7. **Structure Reference**: Generate the checklist following the canonical template in `.aw-spec/templates/checklist-template.md` for title, meta section, category headings, and ID formatting. If template is unavailable, use: H1 title, purpose/created meta lines, `##` category sections containing `- [ ] CHK### <requirement item>` lines with globally incrementing IDs starting at CHK001.
254
-
255
- 8. **Report**: Output full path to checklist file, item count, and summarize whether the run created a new file or appended to an existing one. Summarize:
256
- - Focus areas selected
257
- - Depth level
258
- - Actor/timing
259
- - Any explicit user-specified must-have items incorporated
260
-
261
- **Important**: Each `/aw-spec-checklist` command invocation uses a short, descriptive checklist filename and either creates a new file or appends to an existing one. This allows:
262
-
263
- - Multiple checklists of different types (e.g., `ux.md`, `test.md`, `security.md`)
264
- - Simple, memorable filenames that indicate checklist purpose
265
- - Easy identification and navigation in the `checklists/` folder
266
-
267
- To avoid clutter, use descriptive types and clean up obsolete checklists when done.
268
-
269
- ## Example Checklist Types & Sample Items
270
-
271
- **UX Requirements Quality:** `ux.md`
272
-
273
- Sample items (testing the requirements, NOT the implementation):
274
-
275
- - "Are visual hierarchy requirements defined with measurable criteria? [Clarity, Spec §FR-1]"
276
- - "Is the number and positioning of UI elements explicitly specified? [Completeness, Spec §FR-1]"
277
- - "Are interaction state requirements (hover, focus, active) consistently defined? [Consistency]"
278
- - "Are accessibility requirements specified for all interactive elements? [Coverage, Gap]"
279
- - "Is fallback behavior defined when images fail to load? [Edge Case, Gap]"
280
- - "Can 'prominent display' be objectively measured? [Measurability, Spec §FR-4]"
281
-
282
- **API Requirements Quality:** `api.md`
283
-
284
- Sample items:
285
-
286
- - "Are error response formats specified for all failure scenarios? [Completeness]"
287
- - "Are rate limiting requirements quantified with specific thresholds? [Clarity]"
288
- - "Are authentication requirements consistent across all endpoints? [Consistency]"
289
- - "Are retry/timeout requirements defined for external dependencies? [Coverage, Gap]"
290
- - "Is versioning strategy documented in requirements? [Gap]"
291
-
292
- **Performance Requirements Quality:** `performance.md`
293
-
294
- Sample items:
295
-
296
- - "Are performance requirements quantified with specific metrics? [Clarity]"
297
- - "Are performance targets defined for all critical user journeys? [Coverage]"
298
- - "Are performance requirements under different load conditions specified? [Completeness]"
299
- - "Can performance requirements be objectively measured? [Measurability]"
300
- - "Are degradation requirements defined for high-load scenarios? [Edge Case, Gap]"
301
-
302
- **Security Requirements Quality:** `security.md`
303
-
304
- Sample items:
305
-
306
- - "Are authentication requirements specified for all protected resources? [Coverage]"
307
- - "Are data protection requirements defined for sensitive information? [Completeness]"
308
- - "Is the threat model documented and requirements aligned to it? [Traceability]"
309
- - "Are security requirements consistent with compliance obligations? [Consistency]"
310
- - "Are security failure/breach response requirements defined? [Gap, Exception Flow]"
311
-
312
- ## Anti-Examples: What NOT To Do
313
-
314
- **❌ WRONG - These test implementation, not requirements:**
315
-
316
- ```markdown
317
- - [ ] CHK001 - Verify landing page displays 3 episode cards [Spec §FR-001]
318
- - [ ] CHK002 - Test hover states work correctly on desktop [Spec §FR-003]
319
- - [ ] CHK003 - Confirm logo click navigates to home page [Spec §FR-010]
320
- - [ ] CHK004 - Check that related episodes section shows 3-5 items [Spec §FR-005]
321
- ```
322
-
323
- **✅ CORRECT - These test requirements quality:**
324
-
325
- ```markdown
326
- - [ ] CHK001 - Are the number and layout of featured episodes explicitly specified? [Completeness, Spec §FR-001]
327
- - [ ] CHK002 - Are hover state requirements consistently defined for all interactive elements? [Consistency, Spec §FR-003]
328
- - [ ] CHK003 - Are navigation requirements clear for all clickable brand elements? [Clarity, Spec §FR-010]
329
- - [ ] CHK004 - Is the selection criteria for related episodes documented? [Gap, Spec §FR-005]
330
- - [ ] CHK005 - Are loading state requirements defined for asynchronous episode data? [Gap]
331
- - [ ] CHK006 - Can "visual hierarchy" requirements be objectively measured? [Measurability, Spec §FR-001]
332
- ```
333
-
334
- **Key Differences:**
335
-
336
- - Wrong: Tests if the system works correctly
337
- - Correct: Tests if the requirements are written correctly
338
- - Wrong: Verification of behavior
339
- - Correct: Validation of requirement quality
340
- - Wrong: "Does it do X?"
341
- - Correct: "Is X clearly specified?"
342
-
343
- ## Post-Execution Checks
344
-
345
- **Check for extension hooks (after checklist generation)**:
346
- Check if `.aw-spec/extensions.yml` exists in the project root.
347
- - If it exists, read it and look for entries under the `hooks.after_checklist` key
348
- - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
349
- - Filter out hooks where `enabled` is explicitly `false`. Treat hooks without an `enabled` field as enabled by default.
350
- - For each remaining hook, do **not** attempt to interpret or evaluate hook `condition` expressions:
351
- - If the hook has no `condition` field, or it is null/empty, treat the hook as executable
352
- - If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation
353
- - When constructing slash commands from hook command names, replace dots (`.`) with hyphens (`-`). For example, `aw-spec.git.commit` → `/aw-spec-git-commit`.
354
- - For each executable hook, output the following based on its `optional` flag:
355
- - **Optional hook** (`optional: true`):
356
- ```
357
- ## Extension Hooks
358
-
359
- **Optional Hook**: {extension}
360
- Command: `/{command}`
361
- Description: {description}
362
-
363
- Prompt: {prompt}
364
- To execute: `/{command}`
365
- ```
366
- - **Mandatory hook** (`optional: false`):
367
- ```
368
- ## Extension Hooks
369
-
370
- **Automatic Hook**: {extension}
371
- Executing: `/{command}`
372
- EXECUTE_COMMAND: {command}
373
- ```
374
- - If no hooks are registered or `.aw-spec/extensions.yml` does not exist, skip silently