@ngocsangairvds/vsaf 3.0.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 (282) hide show
  1. package/.claude/skills/bmad-advanced-elicitation/SKILL.md +136 -0
  2. package/.claude/skills/bmad-advanced-elicitation/methods.csv +51 -0
  3. package/.claude/skills/bmad-agent-analyst/SKILL.md +59 -0
  4. package/.claude/skills/bmad-agent-analyst/bmad-skill-manifest.yaml +11 -0
  5. package/.claude/skills/bmad-agent-architect/SKILL.md +54 -0
  6. package/.claude/skills/bmad-agent-architect/bmad-skill-manifest.yaml +11 -0
  7. package/.claude/skills/bmad-agent-dev/SKILL.md +69 -0
  8. package/.claude/skills/bmad-agent-dev/bmad-skill-manifest.yaml +11 -0
  9. package/.claude/skills/bmad-agent-pm/SKILL.md +59 -0
  10. package/.claude/skills/bmad-agent-pm/bmad-skill-manifest.yaml +11 -0
  11. package/.claude/skills/bmad-agent-tech-writer/SKILL.md +57 -0
  12. package/.claude/skills/bmad-agent-tech-writer/bmad-skill-manifest.yaml +11 -0
  13. package/.claude/skills/bmad-agent-tech-writer/explain-concept.md +20 -0
  14. package/.claude/skills/bmad-agent-tech-writer/mermaid-gen.md +20 -0
  15. package/.claude/skills/bmad-agent-tech-writer/validate-doc.md +19 -0
  16. package/.claude/skills/bmad-agent-tech-writer/write-document.md +20 -0
  17. package/.claude/skills/bmad-agent-ux-designer/SKILL.md +55 -0
  18. package/.claude/skills/bmad-agent-ux-designer/bmad-skill-manifest.yaml +11 -0
  19. package/.claude/skills/bmad-brainstorming/SKILL.md +6 -0
  20. package/.claude/skills/bmad-brainstorming/brain-methods.csv +62 -0
  21. package/.claude/skills/bmad-brainstorming/steps/step-01-session-setup.md +214 -0
  22. package/.claude/skills/bmad-brainstorming/steps/step-01b-continue.md +124 -0
  23. package/.claude/skills/bmad-brainstorming/steps/step-02a-user-selected.md +229 -0
  24. package/.claude/skills/bmad-brainstorming/steps/step-02b-ai-recommended.md +239 -0
  25. package/.claude/skills/bmad-brainstorming/steps/step-02c-random-selection.md +211 -0
  26. package/.claude/skills/bmad-brainstorming/steps/step-02d-progressive-flow.md +266 -0
  27. package/.claude/skills/bmad-brainstorming/steps/step-03-technique-execution.md +401 -0
  28. package/.claude/skills/bmad-brainstorming/steps/step-04-idea-organization.md +305 -0
  29. package/.claude/skills/bmad-brainstorming/template.md +15 -0
  30. package/.claude/skills/bmad-brainstorming/workflow.md +53 -0
  31. package/.claude/skills/bmad-check-implementation-readiness/SKILL.md +6 -0
  32. package/.claude/skills/bmad-check-implementation-readiness/steps/step-01-document-discovery.md +179 -0
  33. package/.claude/skills/bmad-check-implementation-readiness/steps/step-02-prd-analysis.md +168 -0
  34. package/.claude/skills/bmad-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +169 -0
  35. package/.claude/skills/bmad-check-implementation-readiness/steps/step-04-ux-alignment.md +129 -0
  36. package/.claude/skills/bmad-check-implementation-readiness/steps/step-05-epic-quality-review.md +241 -0
  37. package/.claude/skills/bmad-check-implementation-readiness/steps/step-06-final-assessment.md +126 -0
  38. package/.claude/skills/bmad-check-implementation-readiness/templates/readiness-report-template.md +4 -0
  39. package/.claude/skills/bmad-check-implementation-readiness/workflow.md +47 -0
  40. package/.claude/skills/bmad-checkpoint-preview/SKILL.md +29 -0
  41. package/.claude/skills/bmad-checkpoint-preview/generate-trail.md +38 -0
  42. package/.claude/skills/bmad-checkpoint-preview/step-01-orientation.md +105 -0
  43. package/.claude/skills/bmad-checkpoint-preview/step-02-walkthrough.md +89 -0
  44. package/.claude/skills/bmad-checkpoint-preview/step-03-detail-pass.md +106 -0
  45. package/.claude/skills/bmad-checkpoint-preview/step-04-testing.md +74 -0
  46. package/.claude/skills/bmad-checkpoint-preview/step-05-wrapup.md +24 -0
  47. package/.claude/skills/bmad-code-review/SKILL.md +6 -0
  48. package/.claude/skills/bmad-code-review/steps/step-01-gather-context.md +85 -0
  49. package/.claude/skills/bmad-code-review/steps/step-02-review.md +34 -0
  50. package/.claude/skills/bmad-code-review/steps/step-03-triage.md +49 -0
  51. package/.claude/skills/bmad-code-review/steps/step-04-present.md +129 -0
  52. package/.claude/skills/bmad-code-review/workflow.md +55 -0
  53. package/.claude/skills/bmad-correct-course/SKILL.md +6 -0
  54. package/.claude/skills/bmad-correct-course/checklist.md +288 -0
  55. package/.claude/skills/bmad-correct-course/workflow.md +267 -0
  56. package/.claude/skills/bmad-create-architecture/SKILL.md +6 -0
  57. package/.claude/skills/bmad-create-architecture/architecture-decision-template.md +12 -0
  58. package/.claude/skills/bmad-create-architecture/data/domain-complexity.csv +13 -0
  59. package/.claude/skills/bmad-create-architecture/data/project-types.csv +7 -0
  60. package/.claude/skills/bmad-create-architecture/steps/step-01-init.md +153 -0
  61. package/.claude/skills/bmad-create-architecture/steps/step-01b-continue.md +173 -0
  62. package/.claude/skills/bmad-create-architecture/steps/step-02-context.md +224 -0
  63. package/.claude/skills/bmad-create-architecture/steps/step-03-starter.md +329 -0
  64. package/.claude/skills/bmad-create-architecture/steps/step-04-decisions.md +318 -0
  65. package/.claude/skills/bmad-create-architecture/steps/step-05-patterns.md +359 -0
  66. package/.claude/skills/bmad-create-architecture/steps/step-06-structure.md +379 -0
  67. package/.claude/skills/bmad-create-architecture/steps/step-07-validation.md +359 -0
  68. package/.claude/skills/bmad-create-architecture/steps/step-08-complete.md +76 -0
  69. package/.claude/skills/bmad-create-architecture/workflow.md +32 -0
  70. package/.claude/skills/bmad-create-epics-and-stories/SKILL.md +6 -0
  71. package/.claude/skills/bmad-create-epics-and-stories/steps/step-01-validate-prerequisites.md +255 -0
  72. package/.claude/skills/bmad-create-epics-and-stories/steps/step-02-design-epics.md +212 -0
  73. package/.claude/skills/bmad-create-epics-and-stories/steps/step-03-create-stories.md +255 -0
  74. package/.claude/skills/bmad-create-epics-and-stories/steps/step-04-final-validation.md +131 -0
  75. package/.claude/skills/bmad-create-epics-and-stories/templates/epics-template.md +61 -0
  76. package/.claude/skills/bmad-create-epics-and-stories/workflow.md +51 -0
  77. package/.claude/skills/bmad-create-prd/SKILL.md +6 -0
  78. package/.claude/skills/bmad-create-prd/data/domain-complexity.csv +15 -0
  79. package/.claude/skills/bmad-create-prd/data/prd-purpose.md +197 -0
  80. package/.claude/skills/bmad-create-prd/data/project-types.csv +11 -0
  81. package/.claude/skills/bmad-create-prd/steps-c/step-01-init.md +178 -0
  82. package/.claude/skills/bmad-create-prd/steps-c/step-01b-continue.md +161 -0
  83. package/.claude/skills/bmad-create-prd/steps-c/step-02-discovery.md +208 -0
  84. package/.claude/skills/bmad-create-prd/steps-c/step-02b-vision.md +142 -0
  85. package/.claude/skills/bmad-create-prd/steps-c/step-02c-executive-summary.md +158 -0
  86. package/.claude/skills/bmad-create-prd/steps-c/step-03-success.md +214 -0
  87. package/.claude/skills/bmad-create-prd/steps-c/step-04-journeys.md +201 -0
  88. package/.claude/skills/bmad-create-prd/steps-c/step-05-domain.md +194 -0
  89. package/.claude/skills/bmad-create-prd/steps-c/step-06-innovation.md +211 -0
  90. package/.claude/skills/bmad-create-prd/steps-c/step-07-project-type.md +222 -0
  91. package/.claude/skills/bmad-create-prd/steps-c/step-08-scoping.md +216 -0
  92. package/.claude/skills/bmad-create-prd/steps-c/step-09-functional.md +219 -0
  93. package/.claude/skills/bmad-create-prd/steps-c/step-10-nonfunctional.md +230 -0
  94. package/.claude/skills/bmad-create-prd/steps-c/step-11-polish.md +221 -0
  95. package/.claude/skills/bmad-create-prd/steps-c/step-12-complete.md +115 -0
  96. package/.claude/skills/bmad-create-prd/templates/prd-template.md +10 -0
  97. package/.claude/skills/bmad-create-prd/workflow.md +61 -0
  98. package/.claude/skills/bmad-create-story/SKILL.md +6 -0
  99. package/.claude/skills/bmad-create-story/checklist.md +357 -0
  100. package/.claude/skills/bmad-create-story/discover-inputs.md +88 -0
  101. package/.claude/skills/bmad-create-story/template.md +49 -0
  102. package/.claude/skills/bmad-create-story/workflow.md +380 -0
  103. package/.claude/skills/bmad-create-ux-design/SKILL.md +6 -0
  104. package/.claude/skills/bmad-create-ux-design/steps/step-01-init.md +135 -0
  105. package/.claude/skills/bmad-create-ux-design/steps/step-01b-continue.md +127 -0
  106. package/.claude/skills/bmad-create-ux-design/steps/step-02-discovery.md +190 -0
  107. package/.claude/skills/bmad-create-ux-design/steps/step-03-core-experience.md +217 -0
  108. package/.claude/skills/bmad-create-ux-design/steps/step-04-emotional-response.md +220 -0
  109. package/.claude/skills/bmad-create-ux-design/steps/step-05-inspiration.md +235 -0
  110. package/.claude/skills/bmad-create-ux-design/steps/step-06-design-system.md +253 -0
  111. package/.claude/skills/bmad-create-ux-design/steps/step-07-defining-experience.md +255 -0
  112. package/.claude/skills/bmad-create-ux-design/steps/step-08-visual-foundation.md +225 -0
  113. package/.claude/skills/bmad-create-ux-design/steps/step-09-design-directions.md +225 -0
  114. package/.claude/skills/bmad-create-ux-design/steps/step-10-user-journeys.md +242 -0
  115. package/.claude/skills/bmad-create-ux-design/steps/step-11-component-strategy.md +249 -0
  116. package/.claude/skills/bmad-create-ux-design/steps/step-12-ux-patterns.md +238 -0
  117. package/.claude/skills/bmad-create-ux-design/steps/step-13-responsive-accessibility.md +265 -0
  118. package/.claude/skills/bmad-create-ux-design/steps/step-14-complete.md +171 -0
  119. package/.claude/skills/bmad-create-ux-design/ux-design-template.md +13 -0
  120. package/.claude/skills/bmad-create-ux-design/workflow.md +35 -0
  121. package/.claude/skills/bmad-dev-story/SKILL.md +6 -0
  122. package/.claude/skills/bmad-dev-story/checklist.md +80 -0
  123. package/.claude/skills/bmad-dev-story/workflow.md +450 -0
  124. package/.claude/skills/bmad-distillator/SKILL.md +177 -0
  125. package/.claude/skills/bmad-distillator/agents/distillate-compressor.md +116 -0
  126. package/.claude/skills/bmad-distillator/agents/round-trip-reconstructor.md +68 -0
  127. package/.claude/skills/bmad-distillator/resources/compression-rules.md +51 -0
  128. package/.claude/skills/bmad-distillator/resources/distillate-format-reference.md +227 -0
  129. package/.claude/skills/bmad-distillator/resources/splitting-strategy.md +78 -0
  130. package/.claude/skills/bmad-distillator/scripts/analyze_sources.py +300 -0
  131. package/.claude/skills/bmad-distillator/scripts/tests/test_analyze_sources.py +204 -0
  132. package/.claude/skills/bmad-document-project/SKILL.md +6 -0
  133. package/.claude/skills/bmad-document-project/checklist.md +245 -0
  134. package/.claude/skills/bmad-document-project/documentation-requirements.csv +12 -0
  135. package/.claude/skills/bmad-document-project/instructions.md +128 -0
  136. package/.claude/skills/bmad-document-project/templates/deep-dive-template.md +345 -0
  137. package/.claude/skills/bmad-document-project/templates/index-template.md +169 -0
  138. package/.claude/skills/bmad-document-project/templates/project-overview-template.md +103 -0
  139. package/.claude/skills/bmad-document-project/templates/project-scan-report-schema.json +160 -0
  140. package/.claude/skills/bmad-document-project/templates/source-tree-template.md +135 -0
  141. package/.claude/skills/bmad-document-project/workflow.md +25 -0
  142. package/.claude/skills/bmad-document-project/workflows/deep-dive-instructions.md +299 -0
  143. package/.claude/skills/bmad-document-project/workflows/deep-dive-workflow.md +34 -0
  144. package/.claude/skills/bmad-document-project/workflows/full-scan-instructions.md +1107 -0
  145. package/.claude/skills/bmad-document-project/workflows/full-scan-workflow.md +34 -0
  146. package/.claude/skills/bmad-domain-research/SKILL.md +6 -0
  147. package/.claude/skills/bmad-domain-research/domain-steps/step-01-init.md +137 -0
  148. package/.claude/skills/bmad-domain-research/domain-steps/step-02-domain-analysis.md +229 -0
  149. package/.claude/skills/bmad-domain-research/domain-steps/step-03-competitive-landscape.md +238 -0
  150. package/.claude/skills/bmad-domain-research/domain-steps/step-04-regulatory-focus.md +206 -0
  151. package/.claude/skills/bmad-domain-research/domain-steps/step-05-technical-trends.md +234 -0
  152. package/.claude/skills/bmad-domain-research/domain-steps/step-06-research-synthesis.md +444 -0
  153. package/.claude/skills/bmad-domain-research/research.template.md +29 -0
  154. package/.claude/skills/bmad-domain-research/workflow.md +51 -0
  155. package/.claude/skills/bmad-edit-prd/SKILL.md +6 -0
  156. package/.claude/skills/bmad-edit-prd/data/prd-purpose.md +197 -0
  157. package/.claude/skills/bmad-edit-prd/steps-e/step-e-01-discovery.md +242 -0
  158. package/.claude/skills/bmad-edit-prd/steps-e/step-e-01b-legacy-conversion.md +204 -0
  159. package/.claude/skills/bmad-edit-prd/steps-e/step-e-02-review.md +245 -0
  160. package/.claude/skills/bmad-edit-prd/steps-e/step-e-03-edit.md +250 -0
  161. package/.claude/skills/bmad-edit-prd/steps-e/step-e-04-complete.md +163 -0
  162. package/.claude/skills/bmad-edit-prd/workflow.md +62 -0
  163. package/.claude/skills/bmad-editorial-review-prose/SKILL.md +86 -0
  164. package/.claude/skills/bmad-editorial-review-structure/SKILL.md +179 -0
  165. package/.claude/skills/bmad-generate-project-context/SKILL.md +6 -0
  166. package/.claude/skills/bmad-generate-project-context/project-context-template.md +21 -0
  167. package/.claude/skills/bmad-generate-project-context/steps/step-01-discover.md +186 -0
  168. package/.claude/skills/bmad-generate-project-context/steps/step-02-generate.md +321 -0
  169. package/.claude/skills/bmad-generate-project-context/steps/step-03-complete.md +278 -0
  170. package/.claude/skills/bmad-generate-project-context/workflow.md +39 -0
  171. package/.claude/skills/bmad-help/SKILL.md +75 -0
  172. package/.claude/skills/bmad-index-docs/SKILL.md +66 -0
  173. package/.claude/skills/bmad-market-research/SKILL.md +6 -0
  174. package/.claude/skills/bmad-market-research/research.template.md +29 -0
  175. package/.claude/skills/bmad-market-research/steps/step-01-init.md +184 -0
  176. package/.claude/skills/bmad-market-research/steps/step-02-customer-behavior.md +239 -0
  177. package/.claude/skills/bmad-market-research/steps/step-03-customer-pain-points.md +251 -0
  178. package/.claude/skills/bmad-market-research/steps/step-04-customer-decisions.md +261 -0
  179. package/.claude/skills/bmad-market-research/steps/step-05-competitive-analysis.md +173 -0
  180. package/.claude/skills/bmad-market-research/steps/step-06-research-completion.md +478 -0
  181. package/.claude/skills/bmad-market-research/workflow.md +51 -0
  182. package/.claude/skills/bmad-party-mode/SKILL.md +125 -0
  183. package/.claude/skills/bmad-prfaq/SKILL.md +96 -0
  184. package/.claude/skills/bmad-prfaq/agents/artifact-analyzer.md +60 -0
  185. package/.claude/skills/bmad-prfaq/agents/web-researcher.md +49 -0
  186. package/.claude/skills/bmad-prfaq/assets/prfaq-template.md +62 -0
  187. package/.claude/skills/bmad-prfaq/bmad-manifest.json +16 -0
  188. package/.claude/skills/bmad-prfaq/references/customer-faq.md +55 -0
  189. package/.claude/skills/bmad-prfaq/references/internal-faq.md +51 -0
  190. package/.claude/skills/bmad-prfaq/references/press-release.md +60 -0
  191. package/.claude/skills/bmad-prfaq/references/verdict.md +79 -0
  192. package/.claude/skills/bmad-product-brief/SKILL.md +82 -0
  193. package/.claude/skills/bmad-product-brief/agents/artifact-analyzer.md +60 -0
  194. package/.claude/skills/bmad-product-brief/agents/opportunity-reviewer.md +44 -0
  195. package/.claude/skills/bmad-product-brief/agents/skeptic-reviewer.md +44 -0
  196. package/.claude/skills/bmad-product-brief/agents/web-researcher.md +49 -0
  197. package/.claude/skills/bmad-product-brief/bmad-manifest.json +17 -0
  198. package/.claude/skills/bmad-product-brief/prompts/contextual-discovery.md +57 -0
  199. package/.claude/skills/bmad-product-brief/prompts/draft-and-review.md +86 -0
  200. package/.claude/skills/bmad-product-brief/prompts/finalize.md +75 -0
  201. package/.claude/skills/bmad-product-brief/prompts/guided-elicitation.md +70 -0
  202. package/.claude/skills/bmad-product-brief/resources/brief-template.md +60 -0
  203. package/.claude/skills/bmad-qa-generate-e2e-tests/SKILL.md +6 -0
  204. package/.claude/skills/bmad-qa-generate-e2e-tests/checklist.md +33 -0
  205. package/.claude/skills/bmad-qa-generate-e2e-tests/workflow.md +136 -0
  206. package/.claude/skills/bmad-quick-dev/SKILL.md +6 -0
  207. package/.claude/skills/bmad-quick-dev/compile-epic-context.md +62 -0
  208. package/.claude/skills/bmad-quick-dev/spec-template.md +88 -0
  209. package/.claude/skills/bmad-quick-dev/step-01-clarify-and-route.md +91 -0
  210. package/.claude/skills/bmad-quick-dev/step-02-plan.md +47 -0
  211. package/.claude/skills/bmad-quick-dev/step-03-implement.md +39 -0
  212. package/.claude/skills/bmad-quick-dev/step-04-review.md +49 -0
  213. package/.claude/skills/bmad-quick-dev/step-05-present.md +63 -0
  214. package/.claude/skills/bmad-quick-dev/step-oneshot.md +61 -0
  215. package/.claude/skills/bmad-quick-dev/workflow.md +75 -0
  216. package/.claude/skills/bmad-retrospective/SKILL.md +6 -0
  217. package/.claude/skills/bmad-retrospective/workflow.md +1479 -0
  218. package/.claude/skills/bmad-review-adversarial-general/SKILL.md +37 -0
  219. package/.claude/skills/bmad-review-edge-case-hunter/SKILL.md +67 -0
  220. package/.claude/skills/bmad-shard-doc/SKILL.md +105 -0
  221. package/.claude/skills/bmad-sprint-planning/SKILL.md +6 -0
  222. package/.claude/skills/bmad-sprint-planning/checklist.md +33 -0
  223. package/.claude/skills/bmad-sprint-planning/sprint-status-template.yaml +56 -0
  224. package/.claude/skills/bmad-sprint-planning/workflow.md +263 -0
  225. package/.claude/skills/bmad-sprint-status/SKILL.md +6 -0
  226. package/.claude/skills/bmad-sprint-status/workflow.md +261 -0
  227. package/.claude/skills/bmad-technical-research/SKILL.md +6 -0
  228. package/.claude/skills/bmad-technical-research/research.template.md +29 -0
  229. package/.claude/skills/bmad-technical-research/technical-steps/step-01-init.md +137 -0
  230. package/.claude/skills/bmad-technical-research/technical-steps/step-02-technical-overview.md +239 -0
  231. package/.claude/skills/bmad-technical-research/technical-steps/step-03-integration-patterns.md +248 -0
  232. package/.claude/skills/bmad-technical-research/technical-steps/step-04-architectural-patterns.md +202 -0
  233. package/.claude/skills/bmad-technical-research/technical-steps/step-05-implementation-research.md +233 -0
  234. package/.claude/skills/bmad-technical-research/technical-steps/step-06-research-synthesis.md +487 -0
  235. package/.claude/skills/bmad-technical-research/workflow.md +52 -0
  236. package/.claude/skills/bmad-validate-prd/SKILL.md +6 -0
  237. package/.claude/skills/bmad-validate-prd/data/domain-complexity.csv +15 -0
  238. package/.claude/skills/bmad-validate-prd/data/prd-purpose.md +197 -0
  239. package/.claude/skills/bmad-validate-prd/data/project-types.csv +11 -0
  240. package/.claude/skills/bmad-validate-prd/steps-v/step-v-01-discovery.md +221 -0
  241. package/.claude/skills/bmad-validate-prd/steps-v/step-v-02-format-detection.md +188 -0
  242. package/.claude/skills/bmad-validate-prd/steps-v/step-v-02b-parity-check.md +206 -0
  243. package/.claude/skills/bmad-validate-prd/steps-v/step-v-03-density-validation.md +171 -0
  244. package/.claude/skills/bmad-validate-prd/steps-v/step-v-04-brief-coverage-validation.md +211 -0
  245. package/.claude/skills/bmad-validate-prd/steps-v/step-v-05-measurability-validation.md +225 -0
  246. package/.claude/skills/bmad-validate-prd/steps-v/step-v-06-traceability-validation.md +214 -0
  247. package/.claude/skills/bmad-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md +202 -0
  248. package/.claude/skills/bmad-validate-prd/steps-v/step-v-08-domain-compliance-validation.md +240 -0
  249. package/.claude/skills/bmad-validate-prd/steps-v/step-v-09-project-type-validation.md +260 -0
  250. package/.claude/skills/bmad-validate-prd/steps-v/step-v-10-smart-validation.md +206 -0
  251. package/.claude/skills/bmad-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +261 -0
  252. package/.claude/skills/bmad-validate-prd/steps-v/step-v-12-completeness-validation.md +239 -0
  253. package/.claude/skills/bmad-validate-prd/steps-v/step-v-13-report-complete.md +229 -0
  254. package/.claude/skills/bmad-validate-prd/workflow.md +61 -0
  255. package/.claude/skills/gitnexus/gitnexus-cli/SKILL.md +82 -0
  256. package/.claude/skills/gitnexus/gitnexus-debugging/SKILL.md +89 -0
  257. package/.claude/skills/gitnexus/gitnexus-exploring/SKILL.md +78 -0
  258. package/.claude/skills/gitnexus/gitnexus-guide/SKILL.md +64 -0
  259. package/.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md +97 -0
  260. package/.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md +121 -0
  261. package/.claude/skills/openspec-apply-change/SKILL.md +156 -0
  262. package/.claude/skills/openspec-archive-change/SKILL.md +114 -0
  263. package/.claude/skills/openspec-explore/SKILL.md +288 -0
  264. package/.claude/skills/openspec-propose/SKILL.md +110 -0
  265. package/.claude/skills/vsaf-build/SKILL.md +52 -0
  266. package/.claude/skills/vsaf-doc/SKILL.md +66 -0
  267. package/.claude/skills/vsaf-memory-protocol.md +51 -0
  268. package/.claude/skills/vsaf-onboard/SKILL.md +55 -0
  269. package/.claude/skills/vsaf-plan/SKILL.md +68 -0
  270. package/.claude/skills/vsaf-ship/SKILL.md +76 -0
  271. package/.claude/skills/vsaf-test/SKILL.md +70 -0
  272. package/README.md +124 -0
  273. package/assets/templates/.claude/settings.json +82 -0
  274. package/assets/templates/CLAUDE.md +248 -0
  275. package/assets/templates/Makefile +77 -0
  276. package/assets/templates/scripts/session-end-check.sh +28 -0
  277. package/bin/vsaf.js +68 -0
  278. package/package.json +22 -0
  279. package/src/global.js +98 -0
  280. package/src/project.js +94 -0
  281. package/src/status.js +51 -0
  282. package/src/utils.js +42 -0
@@ -0,0 +1,62 @@
1
+ ---
2
+ main_config: '{project-root}/_bmad/bmm/config.yaml'
3
+ ---
4
+
5
+ # PRD Edit Workflow
6
+
7
+ **Goal:** Edit and improve existing PRDs through structured enhancement workflow.
8
+
9
+ **Your Role:** PRD improvement specialist.
10
+
11
+ You will continue to operate with your given name, identity, and communication_style, merged with the details of this role description.
12
+
13
+ ## WORKFLOW ARCHITECTURE
14
+
15
+ This uses **step-file architecture** for disciplined execution:
16
+
17
+ ### Core Principles
18
+
19
+ - **Micro-file Design**: Each step is a self contained instruction file that is a part of an overall workflow that must be followed exactly
20
+ - **Just-In-Time Loading**: Only the current step file is in memory - never load future step files until told to do so
21
+ - **Sequential Enforcement**: Sequence within the step files must be completed in order, no skipping or optimization allowed
22
+ - **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array when a workflow produces a document
23
+ - **Append-Only Building**: Build documents by appending content as directed to the output file
24
+
25
+ ### Step Processing Rules
26
+
27
+ 1. **READ COMPLETELY**: Always read the entire step file before taking any action
28
+ 2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate
29
+ 3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection
30
+ 4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue)
31
+ 5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step
32
+ 6. **LOAD NEXT**: When directed, read fully and follow the next step file
33
+
34
+ ### Critical Rules (NO EXCEPTIONS)
35
+
36
+ - 🛑 **NEVER** load multiple step files simultaneously
37
+ - 📖 **ALWAYS** read entire step file before execution
38
+ - 🚫 **NEVER** skip steps or optimize the sequence
39
+ - 💾 **ALWAYS** update frontmatter of output files when writing the final output for a specific step
40
+ - 🎯 **ALWAYS** follow the exact instructions in the step file
41
+ - ⏸️ **ALWAYS** halt at menus and wait for user input
42
+ - 📋 **NEVER** create mental todo lists from future steps
43
+
44
+ ## Activation
45
+
46
+ 1. Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve::
47
+ - Use `{user_name}` for greeting
48
+ - Use `{communication_language}` for all communications
49
+ - Use `{document_output_language}` for output documents
50
+ - Use `{planning_artifacts}` for output location and artifact scanning
51
+ - Use `{project_knowledge}` for additional context scanning
52
+
53
+ ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the configured `{communication_language}`.
54
+ ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}`.
55
+
56
+ 2. Route to Edit Workflow
57
+
58
+ "**Edit Mode: Improving an existing PRD.**"
59
+
60
+ Prompt for PRD path: "Which PRD would you like to edit? Please provide the path to the PRD.md file."
61
+
62
+ Then read fully and follow: `./steps-e/step-e-01-discovery.md`
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: bmad-editorial-review-prose
3
+ description: 'Clinical copy-editor that reviews text for communication issues. Use when user says review for prose or improve the prose'
4
+ ---
5
+
6
+ # Editorial Review - Prose
7
+
8
+ **Goal:** Review text for communication issues that impede comprehension and output suggested fixes in a three-column table.
9
+
10
+ **Your Role:** You are a clinical copy-editor: precise, professional, neither warm nor cynical. Apply Microsoft Writing Style Guide principles as your baseline. Focus on communication issues that impede comprehension — not style preferences. NEVER rewrite for preference — only fix genuine issues. Follow ALL steps in the STEPS section IN EXACT ORDER. DO NOT skip steps or change the sequence. HALT immediately when halt-conditions are met. Each action within a step is a REQUIRED action to complete that step.
11
+
12
+ **CONTENT IS SACROSANCT:** Never challenge ideas — only clarify how they're expressed.
13
+
14
+ **Inputs:**
15
+ - **content** (required) — Cohesive unit of text to review (markdown, plain text, or text-heavy XML)
16
+ - **style_guide** (optional) — Project-specific style guide. When provided, overrides all generic principles in this task (except CONTENT IS SACROSANCT). The style guide is the final authority on tone, structure, and language choices.
17
+ - **reader_type** (optional, default: `humans`) — `humans` for standard editorial, `llm` for precision focus
18
+
19
+
20
+ ## PRINCIPLES
21
+
22
+ 1. **Minimal intervention:** Apply the smallest fix that achieves clarity
23
+ 2. **Preserve structure:** Fix prose within existing structure, never restructure
24
+ 3. **Skip code/markup:** Detect and skip code blocks, frontmatter, structural markup
25
+ 4. **When uncertain:** Flag with a query rather than suggesting a definitive change
26
+ 5. **Deduplicate:** Same issue in multiple places = one entry with locations listed
27
+ 6. **No conflicts:** Merge overlapping fixes into single entries
28
+ 7. **Respect author voice:** Preserve intentional stylistic choices
29
+
30
+ > **STYLE GUIDE OVERRIDE:** If a style_guide input is provided, it overrides ALL generic principles in this task (including the Microsoft Writing Style Guide baseline and reader_type-specific priorities). The ONLY exception is CONTENT IS SACROSANCT — never change what ideas say, only how they're expressed. When style guide conflicts with this task, style guide wins.
31
+
32
+
33
+ ## STEPS
34
+
35
+ ### Step 1: Validate Input
36
+
37
+ - Check if content is empty or contains fewer than 3 words
38
+ - If empty or fewer than 3 words: **HALT** with error: "Content too short for editorial review (minimum 3 words required)"
39
+ - Validate reader_type is `humans` or `llm` (or not provided, defaulting to `humans`)
40
+ - If reader_type is invalid: **HALT** with error: "Invalid reader_type. Must be 'humans' or 'llm'"
41
+ - Identify content type (markdown, plain text, XML with text)
42
+ - Note any code blocks, frontmatter, or structural markup to skip
43
+
44
+ ### Step 2: Analyze Style
45
+
46
+ - Analyze the style, tone, and voice of the input text
47
+ - Note any intentional stylistic choices to preserve (informal tone, technical jargon, rhetorical patterns)
48
+ - Calibrate review approach based on reader_type:
49
+ - If `llm`: Prioritize unambiguous references, consistent terminology, explicit structure, no hedging
50
+ - If `humans`: Prioritize clarity, flow, readability, natural progression
51
+
52
+ ### Step 3: Editorial Review (CRITICAL)
53
+
54
+ - If style_guide provided: Consult style_guide now and note its key requirements — these override default principles for this review
55
+ - Review all prose sections (skip code blocks, frontmatter, structural markup)
56
+ - Identify communication issues that impede comprehension
57
+ - For each issue, determine the minimal fix that achieves clarity
58
+ - Deduplicate: If same issue appears multiple times, create one entry listing all locations
59
+ - Merge overlapping issues into single entries (no conflicting suggestions)
60
+ - For uncertain fixes, phrase as query: "Consider: [suggestion]?" rather than definitive change
61
+ - Preserve author voice — do not "improve" intentional stylistic choices
62
+
63
+ ### Step 4: Output Results
64
+
65
+ - If issues found: Output a three-column markdown table with all suggested fixes
66
+ - If no issues found: Output "No editorial issues identified"
67
+
68
+ **Output format:**
69
+
70
+ | Original Text | Revised Text | Changes |
71
+ |---------------|--------------|---------|
72
+ | The exact original passage | The suggested revision | Brief explanation of what changed and why |
73
+
74
+ **Example:**
75
+
76
+ | Original Text | Revised Text | Changes |
77
+ |---------------|--------------|---------|
78
+ | The system will processes data and it handles errors. | The system processes data and handles errors. | Fixed subject-verb agreement ("will processes" to "processes"); removed redundant "it" |
79
+ | Users can chose from options (lines 12, 45, 78) | Users can choose from options | Fixed spelling: "chose" to "choose" (appears in 3 locations) |
80
+
81
+
82
+ ## HALT CONDITIONS
83
+
84
+ - HALT with error if content is empty or fewer than 3 words
85
+ - HALT with error if reader_type is not `humans` or `llm`
86
+ - If no issues found after thorough review, output "No editorial issues identified" (this is valid completion, not an error)
@@ -0,0 +1,179 @@
1
+ ---
2
+ name: bmad-editorial-review-structure
3
+ description: 'Structural editor that proposes cuts, reorganization, and simplification while preserving comprehension. Use when user requests structural review or editorial review of structure'
4
+ ---
5
+
6
+ # Editorial Review - Structure
7
+
8
+ **Goal:** Review document structure and propose substantive changes to improve clarity and flow -- run this BEFORE copy editing.
9
+
10
+ **Your Role:** You are a structural editor focused on HIGH-VALUE DENSITY. Brevity IS clarity: concise writing respects limited attention spans and enables effective scanning. Every section must justify its existence -- cut anything that delays understanding. True redundancy is failure. Follow ALL steps in the STEPS section IN EXACT ORDER. DO NOT skip steps or change the sequence. HALT immediately when halt-conditions are met. Each action within a step is a REQUIRED action to complete that step.
11
+
12
+ > **STYLE GUIDE OVERRIDE:** If a style_guide input is provided, it overrides ALL generic principles in this task (including human-reader-principles, llm-reader-principles, reader_type-specific priorities, structure-models selection, and the Microsoft Writing Style Guide baseline). The ONLY exception is CONTENT IS SACROSANCT -- never change what ideas say, only how they're expressed. When style guide conflicts with this task, style guide wins.
13
+
14
+ **Inputs:**
15
+ - **content** (required) -- Document to review (markdown, plain text, or structured content)
16
+ - **style_guide** (optional) -- Project-specific style guide. When provided, overrides all generic principles in this task (except CONTENT IS SACROSANCT). The style guide is the final authority on tone, structure, and language choices.
17
+ - **purpose** (optional) -- Document's intended purpose (e.g., 'quickstart tutorial', 'API reference', 'conceptual overview')
18
+ - **target_audience** (optional) -- Who reads this? (e.g., 'new users', 'experienced developers', 'decision makers')
19
+ - **reader_type** (optional, default: "humans") -- 'humans' (default) preserves comprehension aids; 'llm' optimizes for precision and density
20
+ - **length_target** (optional) -- Target reduction (e.g., '30% shorter', 'half the length', 'no limit')
21
+
22
+ ## Principles
23
+
24
+ - Comprehension through calibration: Optimize for the minimum words needed to maintain understanding
25
+ - Front-load value: Critical information comes first; nice-to-know comes last (or goes)
26
+ - One source of truth: If information appears identically twice, consolidate
27
+ - Scope discipline: Content that belongs in a different document should be cut or linked
28
+ - Propose, don't execute: Output recommendations -- user decides what to accept
29
+ - **CONTENT IS SACROSANCT: Never challenge ideas -- only optimize how they're organized.**
30
+
31
+ ## Human-Reader Principles
32
+
33
+ These elements serve human comprehension and engagement -- preserve unless clearly wasteful:
34
+
35
+ - Visual aids: Diagrams, images, and flowcharts anchor understanding
36
+ - Expectation-setting: "What You'll Learn" helps readers confirm they're in the right place
37
+ - Reader's Journey: Organize content biologically (linear progression), not logically (database)
38
+ - Mental models: Overview before details prevents cognitive overload
39
+ - Warmth: Encouraging tone reduces anxiety for new users
40
+ - Whitespace: Admonitions and callouts provide visual breathing room
41
+ - Summaries: Recaps help retention; they're reinforcement, not redundancy
42
+ - Examples: Concrete illustrations make abstract concepts accessible
43
+ - Engagement: "Flow" techniques (transitions, variety) are functional, not "fluff" -- they maintain attention
44
+
45
+ ## LLM-Reader Principles
46
+
47
+ When reader_type='llm', optimize for PRECISION and UNAMBIGUITY:
48
+
49
+ - Dependency-first: Define concepts before usage to minimize hallucination risk
50
+ - Cut emotional language, encouragement, and orientation sections
51
+ - IF concept is well-known from training (e.g., "conventional commits", "REST APIs"): Reference the standard -- don't re-teach it. ELSE: Be explicit -- don't assume the LLM will infer correctly.
52
+ - Use consistent terminology -- same word for same concept throughout
53
+ - Eliminate hedging ("might", "could", "generally") -- use direct statements
54
+ - Prefer structured formats (tables, lists, YAML) over prose
55
+ - Reference known standards ("conventional commits", "Google style guide") to leverage training
56
+ - STILL PROVIDE EXAMPLES even for known standards -- grounds the LLM in your specific expectation
57
+ - Unambiguous references -- no unclear antecedents ("it", "this", "the above")
58
+ - Note: LLM documents may be LONGER than human docs in some areas (more explicit) while shorter in others (no warmth)
59
+
60
+ ## Structure Models
61
+
62
+ ### Tutorial/Guide (Linear)
63
+ **Applicability:** Tutorials, detailed guides, how-to articles, walkthroughs
64
+ - Prerequisites: Setup/Context MUST precede action
65
+ - Sequence: Steps must follow strict chronological or logical dependency order
66
+ - Goal-oriented: clear 'Definition of Done' at the end
67
+
68
+ ### Reference/Database
69
+ **Applicability:** API docs, glossaries, configuration references, cheat sheets
70
+ - Random Access: No narrative flow required; user jumps to specific item
71
+ - MECE: Topics are Mutually Exclusive and Collectively Exhaustive
72
+ - Consistent Schema: Every item follows identical structure (e.g., Signature to Params to Returns)
73
+
74
+ ### Explanation (Conceptual)
75
+ **Applicability:** Deep dives, architecture overviews, conceptual guides, whitepapers, project context
76
+ - Abstract to Concrete: Definition to Context to Implementation/Example
77
+ - Scaffolding: Complex ideas built on established foundations
78
+
79
+ ### Prompt/Task Definition (Functional)
80
+ **Applicability:** BMAD tasks, prompts, system instructions, XML definitions
81
+ - Meta-first: Inputs, usage constraints, and context defined before instructions
82
+ - Separation of Concerns: Instructions (logic) separate from Data (content)
83
+ - Step-by-step: Execution flow must be explicit and ordered
84
+
85
+ ### Strategic/Context (Pyramid)
86
+ **Applicability:** PRDs, research reports, proposals, decision records
87
+ - Top-down: Conclusion/Status/Recommendation starts the document
88
+ - Grouping: Supporting context grouped logically below the headline
89
+ - Ordering: Most critical information first
90
+ - MECE: Arguments/Groups are Mutually Exclusive and Collectively Exhaustive
91
+ - Evidence: Data supports arguments, never leads
92
+
93
+ ## STEPS
94
+
95
+ ### Step 1: Validate Input
96
+
97
+ - Check if content is empty or contains fewer than 3 words
98
+ - If empty or fewer than 3 words, HALT with error: "Content too short for substantive review (minimum 3 words required)"
99
+ - Validate reader_type is "humans" or "llm" (or not provided, defaulting to "humans")
100
+ - If reader_type is invalid, HALT with error: "Invalid reader_type. Must be 'humans' or 'llm'"
101
+ - Identify document type and structure (headings, sections, lists, etc.)
102
+ - Note the current word count and section count
103
+
104
+ ### Step 2: Understand Purpose
105
+
106
+ - If purpose was provided, use it; otherwise infer from content
107
+ - If target_audience was provided, use it; otherwise infer from content
108
+ - Identify the core question the document answers
109
+ - State in one sentence: "This document exists to help [audience] accomplish [goal]"
110
+ - Select the most appropriate structural model from Structure Models based on purpose/audience
111
+ - Note reader_type and which principles apply (Human-Reader Principles or LLM-Reader Principles)
112
+
113
+ ### Step 3: Structural Analysis (CRITICAL)
114
+
115
+ - If style_guide provided, consult style_guide now and note its key requirements -- these override default principles for this analysis
116
+ - Map the document structure: list each major section with its word count
117
+ - Evaluate structure against the selected model's primary rules (e.g., 'Does recommendation come first?' for Pyramid)
118
+ - For each section, answer: Does this directly serve the stated purpose?
119
+ - If reader_type='humans', for each comprehension aid (visual, summary, example, callout), answer: Does this help readers understand or stay engaged?
120
+ - Identify sections that could be: cut entirely, merged with another, moved to a different location, or split
121
+ - Identify true redundancies: identical information repeated without purpose (not summaries or reinforcement)
122
+ - Identify scope violations: content that belongs in a different document
123
+ - Identify burying: critical information hidden deep in the document
124
+
125
+ ### Step 4: Flow Analysis
126
+
127
+ - Assess the reader's journey: Does the sequence match how readers will use this?
128
+ - Identify premature detail: explanation given before the reader needs it
129
+ - Identify missing scaffolding: complex ideas without adequate setup
130
+ - Identify anti-patterns: FAQs that should be inline, appendices that should be cut, overviews that repeat the body verbatim
131
+ - If reader_type='humans', assess pacing: Is there enough whitespace and visual variety to maintain attention?
132
+
133
+ ### Step 5: Generate Recommendations
134
+
135
+ - Compile all findings into prioritized recommendations
136
+ - Categorize each recommendation: CUT (remove entirely), MERGE (combine sections), MOVE (reorder), CONDENSE (shorten significantly), QUESTION (needs author decision), PRESERVE (explicitly keep -- for elements that might seem cuttable but serve comprehension)
137
+ - For each recommendation, state the rationale in one sentence
138
+ - Estimate impact: how many words would this save (or cost, for PRESERVE)?
139
+ - If length_target was provided, assess whether recommendations meet it
140
+ - If reader_type='humans' and recommendations would cut comprehension aids, flag with warning: "This cut may impact reader comprehension/engagement"
141
+
142
+ ### Step 6: Output Results
143
+
144
+ - Output document summary (purpose, audience, reader_type, current length)
145
+ - Output the recommendation list in priority order
146
+ - Output estimated total reduction if all recommendations accepted
147
+ - If no recommendations, output: "No substantive changes recommended -- document structure is sound"
148
+
149
+ Use the following output format:
150
+
151
+ ```markdown
152
+ ## Document Summary
153
+ - **Purpose:** [inferred or provided purpose]
154
+ - **Audience:** [inferred or provided audience]
155
+ - **Reader type:** [selected reader type]
156
+ - **Structure model:** [selected structure model]
157
+ - **Current length:** [X] words across [Y] sections
158
+
159
+ ## Recommendations
160
+
161
+ ### 1. [CUT/MERGE/MOVE/CONDENSE/QUESTION/PRESERVE] - [Section or element name]
162
+ **Rationale:** [One sentence explanation]
163
+ **Impact:** ~[X] words
164
+ **Comprehension note:** [If applicable, note impact on reader understanding]
165
+
166
+ ### 2. ...
167
+
168
+ ## Summary
169
+ - **Total recommendations:** [N]
170
+ - **Estimated reduction:** [X] words ([Y]% of original)
171
+ - **Meets length target:** [Yes/No/No target specified]
172
+ - **Comprehension trade-offs:** [Note any cuts that sacrifice reader engagement for brevity]
173
+ ```
174
+
175
+ ## HALT CONDITIONS
176
+
177
+ - HALT with error if content is empty or fewer than 3 words
178
+ - HALT with error if reader_type is not "humans" or "llm"
179
+ - If no structural issues found, output "No substantive changes recommended" (this is valid completion, not an error)
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: bmad-generate-project-context
3
+ description: 'Create project-context.md with AI rules. Use when the user says "generate project context" or "create project context"'
4
+ ---
5
+
6
+ Follow the instructions in ./workflow.md.
@@ -0,0 +1,21 @@
1
+ ---
2
+ project_name: '{{project_name}}'
3
+ user_name: '{{user_name}}'
4
+ date: '{{date}}'
5
+ sections_completed: ['technology_stack']
6
+ existing_patterns_found: { { number_of_patterns_discovered } }
7
+ ---
8
+
9
+ # Project Context for AI Agents
10
+
11
+ _This file contains critical rules and patterns that AI agents must follow when implementing code in this project. Focus on unobvious details that agents might otherwise miss._
12
+
13
+ ---
14
+
15
+ ## Technology Stack & Versions
16
+
17
+ _Documented after discovery phase_
18
+
19
+ ## Critical Implementation Rules
20
+
21
+ _Documented after discovery phase_
@@ -0,0 +1,186 @@
1
+ # Step 1: Context Discovery & Initialization
2
+
3
+ ## MANDATORY EXECUTION RULES (READ FIRST):
4
+
5
+ - 🛑 NEVER generate content without user input
6
+ - ✅ ALWAYS treat this as collaborative discovery between technical peers
7
+ - 📋 YOU ARE A FACILITATOR, not a content generator
8
+ - 💬 FOCUS on discovering existing project context and technology stack
9
+ - 🎯 IDENTIFY critical implementation rules that AI agents need
10
+ - ⚠️ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
11
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
12
+
13
+ ## EXECUTION PROTOCOLS:
14
+
15
+ - 🎯 Show your analysis before taking any action
16
+ - 📖 Read existing project files to understand current context
17
+ - 💾 Initialize document and update frontmatter
18
+ - 🚫 FORBIDDEN to load next step until discovery is complete
19
+
20
+ ## CONTEXT BOUNDARIES:
21
+
22
+ - Variables from workflow.md are available in memory
23
+ - Focus on existing project files and architecture decisions
24
+ - Look for patterns, conventions, and unique requirements
25
+ - Prioritize rules that prevent implementation mistakes
26
+
27
+ ## YOUR TASK:
28
+
29
+ Discover the project's technology stack, existing patterns, and critical implementation rules that AI agents must follow when writing code.
30
+
31
+ ## DISCOVERY SEQUENCE:
32
+
33
+ ### 1. Check for Existing Project Context
34
+
35
+ First, check if project context already exists:
36
+
37
+ - Look for file at `{project_knowledge}/project-context.md or {project-root}/**/project-context.md`
38
+ - If exists: Read complete file to understand existing rules
39
+ - Present to user: "Found existing project context with {number_of_sections} sections. Would you like to update this or create a new one?"
40
+
41
+ ### 2. Discover Project Technology Stack
42
+
43
+ Load and analyze project files to identify technologies:
44
+
45
+ **Architecture Document:**
46
+
47
+ - Look for `{planning_artifacts}/architecture.md`
48
+ - Extract technology choices with specific versions
49
+ - Note architectural decisions that affect implementation
50
+
51
+ **Package Files:**
52
+
53
+ - Check for `package.json`, `requirements.txt`, `Cargo.toml`, etc.
54
+ - Extract exact versions of all dependencies
55
+ - Note development vs production dependencies
56
+
57
+ **Configuration Files:**
58
+
59
+ - Look for project language specific configs ( example: `tsconfig.json`)
60
+ - Build tool configs (webpack, vite, next.config.js, etc.)
61
+ - Linting and formatting configs (.eslintrc, .prettierrc, etc.)
62
+ - Testing configurations (jest.config.js, vitest.config.ts, etc.)
63
+
64
+ ### 3. Identify Existing Code Patterns
65
+
66
+ Search through existing codebase for patterns:
67
+
68
+ **Naming Conventions:**
69
+
70
+ - File naming patterns (PascalCase, kebab-case, etc.)
71
+ - Component/function naming conventions
72
+ - Variable naming patterns
73
+ - Test file naming patterns
74
+
75
+ **Code Organization:**
76
+
77
+ - How components are structured
78
+ - Where utilities and helpers are placed
79
+ - How services are organized
80
+ - Test organization patterns
81
+
82
+ **Documentation Patterns:**
83
+
84
+ - Comment styles and conventions
85
+ - Documentation requirements
86
+ - README and API doc patterns
87
+
88
+ ### 4. Extract Critical Implementation Rules
89
+
90
+ Look for rules that AI agents might miss:
91
+
92
+ **Language-Specific Rules:**
93
+
94
+ - TypeScript strict mode requirements
95
+ - Import/export conventions
96
+ - Async/await vs Promise usage patterns
97
+ - Error handling patterns specific to the language
98
+
99
+ **Framework-Specific Rules:**
100
+
101
+ - React hooks usage patterns
102
+ - API route conventions
103
+ - Middleware usage patterns
104
+ - State management patterns
105
+
106
+ **Testing Rules:**
107
+
108
+ - Test structure requirements
109
+ - Mock usage conventions
110
+ - Integration vs unit test boundaries
111
+ - Coverage requirements
112
+
113
+ **Development Workflow Rules:**
114
+
115
+ - Branch naming conventions
116
+ - Commit message patterns
117
+ - PR review requirements
118
+ - Deployment procedures
119
+
120
+ ### 5. Initialize Project Context Document
121
+
122
+ Based on discovery, create or update the context document:
123
+
124
+ #### A. Fresh Document Setup (if no existing context)
125
+
126
+ Copy template from `../project-context-template.md` to `{output_folder}/project-context.md`
127
+ Initialize frontmatter fields.
128
+
129
+ #### B. Existing Document Update
130
+
131
+ Load existing context and prepare for updates
132
+ Set frontmatter `sections_completed` to track what will be updated
133
+
134
+ ### 6. Present Discovery Summary
135
+
136
+ Report findings to user:
137
+
138
+ "Welcome {{user_name}}! I've analyzed your project for {{project_name}} to discover the context that AI agents need.
139
+
140
+ **Technology Stack Discovered:**
141
+ {{list_of_technologies_with_versions}}
142
+
143
+ **Existing Patterns Found:**
144
+
145
+ - {{number_of_patterns}} implementation patterns
146
+ - {{number_of_conventions}} coding conventions
147
+ - {{number_of_rules}} critical rules
148
+
149
+ **Key Areas for Context Rules:**
150
+
151
+ - {{area_1}} (e.g., TypeScript configuration)
152
+ - {{area_2}} (e.g., Testing patterns)
153
+ - {{area_3}} (e.g., Code organization)
154
+
155
+ {if_existing_context}
156
+ **Existing Context:** Found {{sections}} sections already defined. We can update or add to these.
157
+ {/if_existing_context}
158
+
159
+ Ready to create/update your project context. This will help AI agents implement code consistently with your project's standards.
160
+
161
+ [C] Continue to context generation"
162
+
163
+ **HALT — wait for user selection before proceeding.**
164
+
165
+ ## SUCCESS METRICS:
166
+
167
+ ✅ Existing project context properly detected and handled
168
+ ✅ Technology stack accurately identified with versions
169
+ ✅ Critical implementation patterns discovered
170
+ ✅ Project context document properly initialized
171
+ ✅ Discovery findings clearly presented to user
172
+ ✅ User ready to proceed with context generation
173
+
174
+ ## FAILURE MODES:
175
+
176
+ ❌ Not checking for existing project context before creating new one
177
+ ❌ Missing critical technology versions or configurations
178
+ ❌ Overlooking important coding patterns or conventions
179
+ ❌ Not initializing frontmatter properly
180
+ ❌ Not presenting clear discovery summary to user
181
+
182
+ ## NEXT STEP:
183
+
184
+ After user selects [C] to continue, load `./step-02-generate.md` to collaboratively generate the specific project context rules.
185
+
186
+ Remember: Do NOT proceed to step-02 until user explicitly selects [C] from the menu and discovery is confirmed and the initial file has been written as directed in this discovery step!