wize-dev-kit 0.16.0 β†’ 0.16.1

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 (228) hide show
  1. package/AGENTS.md +37 -0
  2. package/ARCH.md +77 -24
  3. package/CHANGELOG.md +4 -0
  4. package/DECISIONS.md +27 -1
  5. package/README.es.md +295 -0
  6. package/README.pt-BR.md +293 -0
  7. package/ROSTER.md +11 -3
  8. package/adapters/README.md +8 -7
  9. package/adapters/antigravity/README.md +5 -5
  10. package/adapters/claude-code/README.md +1 -1
  11. package/adapters/codex/README.md +5 -5
  12. package/adapters/codex/adapter.yaml +1 -1
  13. package/adapters/codex/render.js +1 -1
  14. package/adapters/continue/README.md +5 -5
  15. package/adapters/cursor/README.md +2 -2
  16. package/adapters/generic/README.md +1 -1
  17. package/adapters/hermes/README.md +23 -0
  18. package/adapters/hermes/adapter.yaml +8 -0
  19. package/adapters/hermes/render.js +17 -0
  20. package/adapters/kimi-code/README.md +5 -5
  21. package/adapters/kimi-code/render.js +2 -2
  22. package/adapters/opencode/README.md +3 -3
  23. package/adapters/opencode/render.js +27 -1
  24. package/adapters/windsurf/README.md +3 -3
  25. package/docs/harnesses/antigravity.md +20 -0
  26. package/docs/harnesses/antigravity.pt-BR.md +20 -0
  27. package/docs/harnesses/claude-code.md +23 -0
  28. package/docs/harnesses/claude-code.pt-BR.md +23 -0
  29. package/docs/harnesses/codex.md +21 -0
  30. package/docs/harnesses/codex.pt-BR.md +21 -0
  31. package/docs/harnesses/continue.md +21 -0
  32. package/docs/harnesses/continue.pt-BR.md +21 -0
  33. package/docs/harnesses/cursor.md +22 -0
  34. package/docs/harnesses/cursor.pt-BR.md +22 -0
  35. package/docs/harnesses/generic.md +20 -0
  36. package/docs/harnesses/generic.pt-BR.md +20 -0
  37. package/docs/harnesses/hermes.md +26 -0
  38. package/docs/harnesses/hermes.pt-BR.md +26 -0
  39. package/docs/harnesses/kimi-code.md +19 -0
  40. package/docs/harnesses/kimi-code.pt-BR.md +19 -0
  41. package/docs/harnesses/opencode.md +31 -0
  42. package/docs/harnesses/opencode.pt-BR.md +31 -0
  43. package/docs/harnesses/windsurf.md +22 -0
  44. package/docs/harnesses/windsurf.pt-BR.md +22 -0
  45. package/package.json +1 -1
  46. package/schemas/agent.schema.json +2 -2
  47. package/schemas/workflow.schema.json +1 -1
  48. package/src/app-overlay/wize-app-release-channels/workflow.md +2 -0
  49. package/src/app-overlay/wize-app-scaffold/workflow.md +2 -0
  50. package/src/app-overlay/wize-app-store-listing/workflow.md +2 -0
  51. package/src/builder-skills/wize-create-agent/workflow.md +2 -0
  52. package/src/builder-skills/wize-create-skill/workflow.md +2 -0
  53. package/src/builder-skills/wize-create-workflow/workflow.md +2 -0
  54. package/src/core-skills/wize-advanced-elicitation/skill.md +2 -0
  55. package/src/core-skills/wize-brainstorming/skill.md +2 -0
  56. package/src/core-skills/wize-customize/skill.md +116 -0
  57. package/src/core-skills/wize-editorial-review-prose/skill.md +94 -0
  58. package/src/core-skills/wize-editorial-review-structure/skill.md +99 -0
  59. package/src/core-skills/wize-grill/skill.md +77 -0
  60. package/src/core-skills/wize-index-docs/skill.md +119 -0
  61. package/src/core-skills/wize-pre-pr-check/skill.md +134 -0
  62. package/src/core-skills/wize-review-adversarial/skill.md +3 -0
  63. package/src/core-skills/wize-review-edge-case-hunter/skill.md +115 -0
  64. package/src/core-skills/wize-shard-doc/skill.md +2 -0
  65. package/src/core-skills/wize-spec/assets/headless-schemas.md +39 -0
  66. package/src/core-skills/wize-spec/assets/spec-template.md +40 -0
  67. package/src/core-skills/wize-spec/customize.toml +20 -0
  68. package/src/core-skills/wize-spec/skill.md +112 -0
  69. package/src/method-skills/1-analysis/wize-agent-analyst/agent.yaml +3 -0
  70. package/src/method-skills/1-analysis/wize-document-project/documentation-requirements.csv +12 -0
  71. package/src/method-skills/1-analysis/wize-document-project/templates/api-contracts-template.md +38 -0
  72. package/src/method-skills/1-analysis/wize-document-project/templates/architecture-template.md +54 -0
  73. package/src/method-skills/1-analysis/wize-document-project/templates/component-inventory-template.md +40 -0
  74. package/src/method-skills/1-analysis/wize-document-project/templates/contribution-guide-template.md +34 -0
  75. package/src/method-skills/1-analysis/wize-document-project/templates/data-models-template.md +36 -0
  76. package/src/method-skills/1-analysis/wize-document-project/templates/deep-dive-template.md +312 -0
  77. package/src/method-skills/1-analysis/wize-document-project/templates/deployment-guide-template.md +42 -0
  78. package/src/method-skills/1-analysis/wize-document-project/templates/development-guide-template.md +61 -0
  79. package/src/method-skills/1-analysis/wize-document-project/templates/index-template.md +185 -0
  80. package/src/method-skills/1-analysis/wize-document-project/templates/project-overview-template.md +110 -0
  81. package/src/method-skills/1-analysis/wize-document-project/templates/project-scan-report-schema.json +159 -0
  82. package/src/method-skills/1-analysis/wize-document-project/templates/source-tree-template.md +142 -0
  83. package/src/method-skills/1-analysis/wize-document-project/workflow.md +213 -20
  84. package/src/method-skills/1-analysis/wize-domain-research/customize.toml +14 -0
  85. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-01-init.md +49 -0
  86. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-02-domain-analysis.md +39 -0
  87. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-03-competitive-landscape.md +39 -0
  88. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-04-regulatory-focus.md +39 -0
  89. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-05-technical-trends.md +39 -0
  90. package/src/method-skills/1-analysis/wize-domain-research/domain-steps/step-06-research-synthesis.md +43 -0
  91. package/src/method-skills/1-analysis/wize-domain-research/research.template.md +31 -0
  92. package/src/method-skills/1-analysis/wize-domain-research/workflow.md +58 -0
  93. package/src/method-skills/1-analysis/wize-market-research/customize.toml +14 -0
  94. package/src/method-skills/1-analysis/wize-market-research/research.template.md +31 -0
  95. package/src/method-skills/1-analysis/wize-market-research/steps/step-01-init.md +57 -0
  96. package/src/method-skills/1-analysis/wize-market-research/steps/step-02-customer-behavior.md +39 -0
  97. package/src/method-skills/1-analysis/wize-market-research/steps/step-03-customer-pain-points.md +37 -0
  98. package/src/method-skills/1-analysis/wize-market-research/steps/step-04-customer-decisions.md +39 -0
  99. package/src/method-skills/1-analysis/wize-market-research/steps/step-05-competitive-analysis.md +37 -0
  100. package/src/method-skills/1-analysis/wize-market-research/steps/step-06-research-completion.md +47 -0
  101. package/src/method-skills/1-analysis/wize-market-research/workflow.md +66 -0
  102. package/src/method-skills/1-analysis/wize-prfaq/workflow.md +152 -11
  103. package/src/method-skills/1-analysis/wize-product-brief/workflow.md +92 -19
  104. package/src/method-skills/1-analysis/wize-refresh-knowledge/workflow.md +129 -0
  105. package/src/method-skills/1-analysis/wize-research/workflow.md +39 -12
  106. package/src/method-skills/1-analysis/wize-technical-research/customize.toml +14 -0
  107. package/src/method-skills/1-analysis/wize-technical-research/research.template.md +31 -0
  108. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-01-init.md +49 -0
  109. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-02-technical-overview.md +45 -0
  110. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-03-integration-patterns.md +39 -0
  111. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-04-architectural-patterns.md +39 -0
  112. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-05-implementation-research.md +42 -0
  113. package/src/method-skills/1-analysis/wize-technical-research/technical-steps/step-06-research-synthesis.md +46 -0
  114. package/src/method-skills/1-analysis/wize-technical-research/workflow.md +60 -0
  115. package/src/method-skills/1-analysis/wize-trigger-map/workflow.md +82 -16
  116. package/src/method-skills/2-plan-workflows/wize-create-prd/workflow.md +135 -23
  117. package/src/method-skills/2-plan-workflows/wize-edit-prd/workflow.md +110 -0
  118. package/src/method-skills/2-plan-workflows/wize-ux-design/workflow.md +134 -28
  119. package/src/method-skills/2-plan-workflows/wize-ux-scenarios/workflow.md +93 -15
  120. package/src/method-skills/2-plan-workflows/wize-validate-prd/workflow.md +108 -12
  121. package/src/method-skills/3-solutioning/wize-check-implementation-readiness/workflow.md +103 -11
  122. package/src/method-skills/3-solutioning/wize-create-architecture/architecture-decision-template.md +41 -0
  123. package/src/method-skills/3-solutioning/wize-create-architecture/customize.toml +20 -0
  124. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-01-init.md +95 -0
  125. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-01b-continue.md +32 -0
  126. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-02-context.md +126 -0
  127. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-03-starter.md +110 -0
  128. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-04-decisions.md +129 -0
  129. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-05-patterns.md +109 -0
  130. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-06-structure.md +97 -0
  131. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-07-validation.md +124 -0
  132. package/src/method-skills/3-solutioning/wize-create-architecture/steps/step-08-complete.md +59 -0
  133. package/src/method-skills/3-solutioning/wize-create-architecture/workflow.md +55 -48
  134. package/src/method-skills/3-solutioning/wize-create-epics-and-stories/workflow.md +154 -15
  135. package/src/method-skills/3-solutioning/wize-design-system/workflow.md +184 -22
  136. package/src/method-skills/3-solutioning/wize-nfr-principles/workflow.md +145 -17
  137. package/src/method-skills/3-solutioning/wize-project-context/workflow.md +120 -0
  138. package/src/method-skills/3-solutioning/wize-tech-vision/workflow.md +130 -22
  139. package/src/method-skills/4-implementation/wize-agent-dev/persona.md +12 -0
  140. package/src/method-skills/4-implementation/wize-changelog/workflow.md +184 -0
  141. package/src/method-skills/4-implementation/wize-checkpoint-preview/workflow.md +117 -0
  142. package/src/method-skills/4-implementation/wize-code-review/customize.toml +21 -0
  143. package/src/method-skills/4-implementation/wize-code-review/steps/step-01-gather-context.md +64 -0
  144. package/src/method-skills/4-implementation/wize-code-review/steps/step-02-review.md +40 -0
  145. package/src/method-skills/4-implementation/wize-code-review/steps/step-03-triage.md +43 -0
  146. package/src/method-skills/4-implementation/wize-code-review/steps/step-04-present.md +100 -0
  147. package/src/method-skills/4-implementation/wize-code-review/workflow.md +54 -12
  148. package/src/method-skills/4-implementation/wize-correct-course/workflow.md +93 -0
  149. package/src/method-skills/4-implementation/wize-create-story/workflow.md +154 -10
  150. package/src/method-skills/4-implementation/wize-dev-story/workflow.md +185 -17
  151. package/src/method-skills/4-implementation/wize-investigate/workflow.md +123 -0
  152. package/src/method-skills/4-implementation/wize-quick-dev/workflow.md +136 -18
  153. package/src/method-skills/4-implementation/wize-release/workflow.md +162 -0
  154. package/src/method-skills/4-implementation/wize-retrospective/workflow.md +114 -10
  155. package/src/method-skills/4-implementation/wize-sprint-planning/workflow.md +78 -11
  156. package/src/method-skills/4-implementation/wize-sprint-status/workflow.md +45 -11
  157. package/src/method-skills/module.yaml +28 -0
  158. package/src/orchestrator-skills/module.yaml +7 -1
  159. package/src/orchestrator-skills/wize/skill.md +164 -0
  160. package/src/orchestrator-skills/wize-check/skill.md +98 -0
  161. package/src/orchestrator-skills/wize-help/skill.md +227 -67
  162. package/src/orchestrator-skills/wize-onboarding/workflow.md +78 -14
  163. package/src/orchestrator-skills/wize-orchestrator/agent.yaml +2 -0
  164. package/src/orchestrator-skills/wize-orchestrator/persona.md +44 -3
  165. package/src/orchestrator-skills/wize-party-mode/workflow.md +2 -0
  166. package/src/security-overlay/_shared/allowlist.js +154 -0
  167. package/src/security-overlay/_shared/backlog.js +169 -0
  168. package/src/security-overlay/_shared/cli-runner.js +87 -0
  169. package/src/security-overlay/_shared/cvss.js +108 -0
  170. package/src/security-overlay/_shared/detect.js +125 -0
  171. package/src/security-overlay/_shared/install-script.js +205 -0
  172. package/src/security-overlay/_shared/invoke-phase.js +86 -0
  173. package/src/security-overlay/_shared/owasp.js +56 -0
  174. package/src/security-overlay/_shared/partial.js +225 -0
  175. package/src/security-overlay/_shared/preflight.js +175 -0
  176. package/src/security-overlay/_shared/scope-gate.js +172 -0
  177. package/src/security-overlay/_shared/scope-parser.js +147 -0
  178. package/src/security-overlay/agents/red-teamer/agent.yaml +54 -0
  179. package/src/security-overlay/agents/red-teamer/persona.md +49 -0
  180. package/src/security-overlay/data/common.txt +115 -0
  181. package/src/security-overlay/data/owasp-top10.json +15 -0
  182. package/src/security-overlay/data/tool-allowlist.json +31 -0
  183. package/src/security-overlay/skills/wize-sec-enumerate/scripts/run-enumerate.js +180 -0
  184. package/src/security-overlay/skills/wize-sec-enumerate/skill.md +34 -0
  185. package/src/security-overlay/skills/wize-sec-exploit/data/common.txt +117 -0
  186. package/src/security-overlay/skills/wize-sec-exploit/scripts/run-ffuf.js +147 -0
  187. package/src/security-overlay/skills/wize-sec-exploit/scripts/run-nikto.js +145 -0
  188. package/src/security-overlay/skills/wize-sec-exploit/scripts/run-nuclei.js +176 -0
  189. package/src/security-overlay/skills/wize-sec-exploit/scripts/run-sqlmap.js +139 -0
  190. package/src/security-overlay/skills/wize-sec-pentest/scripts/run-pipeline.js +184 -0
  191. package/src/security-overlay/skills/wize-sec-pentest/skill.md +54 -0
  192. package/src/security-overlay/skills/wize-sec-recon/scripts/run-gitleaks.js +139 -0
  193. package/src/security-overlay/skills/wize-sec-recon/scripts/run-osv.js +227 -0
  194. package/src/security-overlay/skills/wize-sec-recon/scripts/run-recon.js +162 -0
  195. package/src/security-overlay/skills/wize-sec-recon/skill.md +37 -0
  196. package/src/security-overlay/skills/wize-sec-report/scripts/render-report.js +1033 -0
  197. package/src/security-overlay/skills/wize-sec-scope/scripts/generate-scope.js +106 -0
  198. package/src/security-overlay/skills/wize-sec-scope/skill.md +52 -0
  199. package/src/tea-skills/wize-qa-generate-e2e-tests/workflow.md +121 -0
  200. package/src/tea-skills/wize-tea-design/workflow.md +107 -13
  201. package/src/tea-skills/wize-tea-gate/workflow.md +118 -25
  202. package/src/tea-skills/wize-tea-nfr/workflow.md +107 -14
  203. package/src/tea-skills/wize-tea-review/workflow.md +123 -13
  204. package/src/tea-skills/wize-tea-risk/workflow.md +113 -10
  205. package/src/tea-skills/wize-tea-trace/workflow.md +86 -12
  206. package/src/web-overlay/wize-web-deploy/workflow.md +2 -0
  207. package/src/web-overlay/wize-web-scaffold/workflow.md +2 -0
  208. package/src/web-overlay/wize-web-seo-audit/workflow.md +2 -0
  209. package/tools/installer/baseline.js +133 -0
  210. package/tools/installer/commands/agent.js +197 -0
  211. package/tools/installer/commands/doctor.js +320 -0
  212. package/tools/installer/commands/document-project.js +93 -0
  213. package/tools/installer/commands/sync.js +45 -0
  214. package/tools/installer/commands/update.js +172 -0
  215. package/tools/installer/document-project/batch-scanner.js +93 -0
  216. package/tools/installer/document-project/classify.js +170 -0
  217. package/tools/installer/document-project/modes/deep-dive.js +196 -0
  218. package/tools/installer/document-project/modes/full-rescan.js +15 -0
  219. package/tools/installer/document-project/modes/initial-scan.js +100 -0
  220. package/tools/installer/document-project/modes/quick.js +211 -0
  221. package/tools/installer/document-project/render-index.js +101 -0
  222. package/tools/installer/document-project/state.js +110 -0
  223. package/tools/installer/onboarding.js +14 -20
  224. package/tools/installer/render-shared.js +159 -15
  225. package/tools/installer/setup-helpers.js +1 -0
  226. package/tools/installer/validators/run-all.js +3 -2
  227. package/tools/installer/version-check.js +117 -0
  228. package/tools/installer/wize-cli.js +500 -70
@@ -0,0 +1,95 @@
1
+ # Step 1: Architecture Workflow Initialization
2
+
3
+ ## Mandatory execution rules
4
+
5
+ - πŸ›‘ Never generate content without user input.
6
+ - πŸ“– Always read the complete step file before acting.
7
+ - βœ… Treat this as collaborative discovery between architectural peers.
8
+ - πŸ’¬ Focus on initialization and setup only.
9
+ - πŸšͺ Detect existing workflow state and handle continuation properly.
10
+ - ⚠️ No time estimates.
11
+ - βœ… Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
12
+
13
+ ## Execution protocols
14
+
15
+ - 🎯 Show analysis before taking action.
16
+ - πŸ’Ύ Initialize the document and update frontmatter.
17
+ - πŸ“– Set `stepsCompleted: [1]` before loading the next step.
18
+ - 🚫 Do not load the next step until setup is complete and the user confirms.
19
+
20
+ ## Context boundaries
21
+
22
+ - Variables from `workflow.md` are available.
23
+ - Previous context is what is in the output document + frontmatter.
24
+ - Input document discovery happens in this step.
25
+
26
+ ## Task
27
+
28
+ Initialize the Architecture workflow by detecting continuation state, discovering input documents, and setting up the document for collaborative architectural decision making.
29
+
30
+ ## Initialization sequence
31
+
32
+ ### 1. Check for existing workflow
33
+
34
+ Check if `{output_folder}/solutioning/architecture.md` exists.
35
+
36
+ - If it exists and has frontmatter with `stepsCompleted`, stop here and load `./step-01b-continue.md`.
37
+ - If it exists but has no `stepsCompleted`, treat it as a legacy document: warn the user and offer to continue from it or start fresh.
38
+ - If it does not exist, this is a fresh workflow.
39
+
40
+ ### 2. Discover input documents
41
+
42
+ Search in `{output_folder}/planning/`, `{output_folder}/knowledge/`, and `{project-root}/docs/` for:
43
+
44
+ - Product Brief (`*brief*.md`)
45
+ - PRD (`*prd*.md`)
46
+ - UX Scenarios / UX Design (`*ux*.md`)
47
+ - Research (`*research*.md`)
48
+ - Project Context (`**/project-context.md`)
49
+
50
+ Confirm what was found with the user before proceeding.
51
+
52
+ ### 3. Validate required inputs
53
+
54
+ If no PRD is found:
55
+
56
+ > Architecture requires a PRD to work from. Please run `wize-create-prd` first or provide the PRD file path.
57
+
58
+ Do not proceed without a PRD.
59
+
60
+ ### 4. Create initial document
61
+
62
+ Copy `../architecture-decision-template.md` to `{output_folder}/solutioning/architecture.md`.
63
+
64
+ Set frontmatter:
65
+
66
+ ```yaml
67
+ status: draft
68
+ owner: Tony Stark
69
+ created: "{{date}}"
70
+ stepsCompleted: []
71
+ inputDocuments: [{{list of discovered files}}]
72
+ ```
73
+
74
+ ### 5. Report setup to user
75
+
76
+ ```
77
+ Welcome {{user_name}}! I've set up your Architecture workspace for {{project_name}}.
78
+
79
+ Documents found:
80
+ - PRD: {count or "None β€” required"}
81
+ - UX Design: {count or "None"}
82
+ - Research: {count or "None"}
83
+ - Project docs: {count or "None"}
84
+ - Project context: {count of rules or "None"}
85
+
86
+ Files loaded: {list or "No additional documents"}
87
+
88
+ Ready to begin architectural decision making. Do you have any other documents you'd like to include?
89
+
90
+ [C] Continue to project context analysis
91
+ ```
92
+
93
+ ## Next step
94
+
95
+ After the user selects [C], load `./step-02-context.md`.
@@ -0,0 +1,32 @@
1
+ # Step 1b: Continue Existing Architecture Workflow
2
+
3
+ ## Purpose
4
+
5
+ Resume an architecture workflow that was previously started.
6
+
7
+ ## Rules
8
+
9
+ - Read the existing `{output_folder}/solutioning/architecture.md` fully, including frontmatter.
10
+ - Report the current `stepsCompleted` to the user.
11
+ - Ask whether to continue from the last completed step or restart from a specific step.
12
+ - Never discard already-written content without explicit user confirmation.
13
+
14
+ ## Continue menu
15
+
16
+ ```
17
+ Existing architecture document found.
18
+
19
+ Steps completed: {stepsCompleted}
20
+ Last saved: {updated or created date}
21
+
22
+ What would you like to do?
23
+ [C] Continue from the next step ({next_step})
24
+ [R] Restart from step 1
25
+ [S] Pick a specific step to revisit
26
+ ```
27
+
28
+ ## Routing
29
+
30
+ - [C] β†’ load the step immediately after the highest value in `stepsCompleted`.
31
+ - [R] β†’ confirm overwrite risk, then return to `step-01-init.md` fresh setup.
32
+ - [S] β†’ present the list of steps and load the selected one.
@@ -0,0 +1,126 @@
1
+ # Step 2: Project Context Analysis
2
+
3
+ ## Mandatory execution rules
4
+
5
+ - πŸ›‘ Never generate content without user input.
6
+ - πŸ“– Always read the complete step file before acting.
7
+ - βœ… Treat this as collaborative discovery.
8
+ - 🎯 Analyze loaded documents; don't assume or generate requirements.
9
+ - ⚠️ No time estimates.
10
+ - βœ… Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
11
+
12
+ ## Execution protocols
13
+
14
+ - 🎯 Show analysis before taking action.
15
+ - ⚠️ Present A/P/C menu after generating project context analysis.
16
+ - πŸ’Ύ Only save when the user chooses C (Continue).
17
+ - πŸ“– Update frontmatter `stepsCompleted: [1, 2]` before loading the next step.
18
+ - 🚫 Do not load the next step until C is selected.
19
+
20
+ ## Collaboration menu (A/P/C)
21
+
22
+ - **A (Advanced Elicitation)** β€” invoke `wize-advanced-elicitation` for deeper architectural implications.
23
+ - **P (Party Mode)** β€” invoke `wize-party-mode` to bring Tony, Fury, and Pepper into the conversation.
24
+ - **C (Continue)** β€” save the content and proceed.
25
+
26
+ After A or P, return to this menu.
27
+
28
+ ## Context boundaries
29
+
30
+ - Current document and frontmatter from step 1 are available.
31
+ - Input documents are loaded.
32
+ - Focus on architectural implications only β€” no technology decisions yet.
33
+
34
+ ## Task
35
+
36
+ Analyze the loaded project documents to understand architectural scope, requirements, and constraints.
37
+
38
+ ## Analysis sequence
39
+
40
+ ### 1. Review project requirements
41
+
42
+ **From PRD:**
43
+
44
+ - Extract functional requirements and their architectural implications.
45
+ - Identify non-functional requirements (performance, security, compliance).
46
+ - Note technical constraints or dependencies.
47
+
48
+ **From Epics/Stories (if available):**
49
+
50
+ - Map epic structure to architectural components.
51
+ - Identify cross-cutting concerns that span multiple epics.
52
+
53
+ **From UX Design (if available):**
54
+
55
+ - Component complexity, real-time needs, platform-specific UI, accessibility level, responsive breakpoints, offline capability.
56
+
57
+ ### 2. Project scale assessment
58
+
59
+ Complexity indicators:
60
+
61
+ - Real-time features
62
+ - Multi-tenancy
63
+ - Regulatory compliance
64
+ - Integration density
65
+ - User interaction complexity
66
+ - Data complexity and volume
67
+
68
+ ### 3. Reflect understanding to the user
69
+
70
+ Present a concise summary:
71
+
72
+ ```
73
+ I'm reviewing your project documentation for {{project_name}}.
74
+
75
+ I see {{fr_count}} functional requirements and {{nfr_count}} non-functional requirements.
76
+ {epics_loaded?}I also see {{epic_count}} epics with {{story_count}} stories.{/epics_loaded?}
77
+ {ux_loaded?}A UX specification is present.{/ux_loaded?}
78
+
79
+ Key architectural aspects:
80
+ - [core functionality]
81
+ - [critical NFRs]
82
+ - [unique technical challenges]
83
+ - [compliance requirements]
84
+
85
+ Scale indicators:
86
+ - Complexity: [low/medium/high/enterprise]
87
+ - Primary domain: [web/mobile/api/backend/full-stack/etc]
88
+ - Cross-cutting concerns: [list]
89
+
90
+ Does this match your understanding?
91
+ ```
92
+
93
+ ### 4. Generate project context content
94
+
95
+ Prepare the section to append:
96
+
97
+ ```markdown
98
+ ## Project Context Analysis
99
+
100
+ ### Requirements Overview
101
+
102
+ **Functional Requirements:**
103
+ {{analysis}}
104
+
105
+ **Non-Functional Requirements:**
106
+ {{analysis}}
107
+
108
+ **Scale & Complexity:**
109
+ - Primary domain: {{domain}}
110
+ - Complexity level: {{level}}
111
+ - Architectural components: {{count}}
112
+
113
+ ### Technical Constraints & Dependencies
114
+ {{list}}
115
+
116
+ ### Cross-Cutting Concerns Identified
117
+ {{list}}
118
+ ```
119
+
120
+ ### 5. Present content and menu
121
+
122
+ Show the drafted content and present A/P/C. Only append when the user chooses C.
123
+
124
+ ## Next step
125
+
126
+ After C, load `./step-03-starter.md`.
@@ -0,0 +1,110 @@
1
+ # Step 3: Starter Template Evaluation
2
+
3
+ ## Mandatory execution rules
4
+
5
+ - πŸ›‘ Never generate content without user input.
6
+ - βœ… Treat this as collaborative discovery.
7
+ - 🌐 Search the web to verify current versions and options.
8
+ - ⚠️ No time estimates.
9
+ - βœ… Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
10
+
11
+ ## Execution protocols
12
+
13
+ - 🎯 Show analysis before taking action.
14
+ - ⚠️ Present A/P/C menu after starter analysis.
15
+ - πŸ’Ύ Only save when the user chooses C.
16
+ - πŸ“– Update frontmatter `stepsCompleted: [1, 2, 3]` before loading the next step.
17
+
18
+ ## Collaboration menu (A/P/C)
19
+
20
+ - **A (Advanced Elicitation)** β€” explore unconventional starter options.
21
+ - **P (Party Mode)** β€” evaluate starter trade-offs from multiple perspectives.
22
+ - **C (Continue)** β€” save and move to architectural decisions.
23
+
24
+ ## Context boundaries
25
+
26
+ - Project context from step 2 is available.
27
+ - No architectural decisions made yet β€” this step evaluates foundations.
28
+
29
+ ## Task
30
+
31
+ Discover technical preferences and evaluate starter template options, establishing solid architectural foundations.
32
+
33
+ ## Starter evaluation sequence
34
+
35
+ ### 0. Check existing technical preferences
36
+
37
+ If `.wize/knowledge/document-project/conventions.md` or `project-context.md` exist, surface any already-documented technical rules.
38
+
39
+ ### 1. Discover user technical preferences
40
+
41
+ Ask about:
42
+
43
+ - Languages and frameworks
44
+ - Databases
45
+ - Cloud / hosting / deployment
46
+ - Third-party services (auth, payments, analytics)
47
+ - Team experience level
48
+
49
+ ### 2. Identify primary technology domain
50
+
51
+ Map the project to one of:
52
+
53
+ - Web application
54
+ - Mobile app
55
+ - API / backend
56
+ - CLI tool
57
+ - Full-stack
58
+ - Desktop
59
+
60
+ ### 3. Research current starter options
61
+
62
+ Search the web for current, maintained starter templates matching the domain.
63
+
64
+ ### 4. Present starter options
65
+
66
+ For each viable starter, document:
67
+
68
+ - Technology decisions already made by the starter
69
+ - Architectural patterns established
70
+ - Development experience features
71
+ - Maintenance status
72
+
73
+ ### 5. Get selection
74
+
75
+ Present a recommended starter and ask for confirmation.
76
+
77
+ ### 6. Generate starter content
78
+
79
+ Append to `architecture.md`:
80
+
81
+ ```markdown
82
+ ## Starter Template Evaluation
83
+
84
+ ### Primary Technology Domain
85
+ {{domain}}
86
+
87
+ ### Starter Options Considered
88
+ {{analysis}}
89
+
90
+ ### Selected Starter: {{starter_name}}
91
+
92
+ **Rationale:** {{why}}
93
+
94
+ **Initialization Command:**
95
+ ```bash
96
+ {{command}}
97
+ ```
98
+
99
+ **Architectural Decisions Provided by Starter:**
100
+ - Language & Runtime: ...
101
+ - Styling Solution: ...
102
+ - Build Tooling: ...
103
+ - Testing Framework: ...
104
+ - Code Organization: ...
105
+ - Development Experience: ...
106
+ ```
107
+
108
+ ## Next step
109
+
110
+ After C, load `./step-04-decisions.md`.
@@ -0,0 +1,129 @@
1
+ # Step 4: Core Architectural Decisions
2
+
3
+ ## Mandatory execution rules
4
+
5
+ - πŸ›‘ Never generate content without user input.
6
+ - βœ… Treat this as collaborative discovery between peers.
7
+ - 🌐 Search the web to verify current technology versions.
8
+ - ⚠️ No time estimates.
9
+ - βœ… Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
10
+
11
+ ## Execution protocols
12
+
13
+ - 🎯 Show analysis before taking action.
14
+ - ⚠️ Present A/P/C menu after each major decision category.
15
+ - πŸ’Ύ Only save when the user chooses C.
16
+ - πŸ“– Update frontmatter `stepsCompleted: [1, 2, 3, 4]` before loading the next step.
17
+
18
+ ## Collaboration menu (A/P/C)
19
+
20
+ - **A (Advanced Elicitation)** β€” explore innovative approaches to a specific decision.
21
+ - **P (Party Mode)** β€” review trade-offs from multiple perspectives.
22
+ - **C (Continue)** β€” save current decisions and proceed.
23
+
24
+ ## Context boundaries
25
+
26
+ - Project context from step 2 is available.
27
+ - Starter template choice from step 3 is available.
28
+ - Focus on decisions not already made by the starter or existing preferences.
29
+
30
+ ## Task
31
+
32
+ Facilitate collaborative architectural decision making for the remaining critical choices.
33
+
34
+ ## Decision categories
35
+
36
+ ### Category 1: Data Architecture
37
+
38
+ - Database choice (if not determined by starter)
39
+ - Data modeling approach
40
+ - Validation strategy
41
+ - Migration approach
42
+ - Caching strategy
43
+
44
+ ### Category 2: Authentication & Security
45
+
46
+ - Authentication method
47
+ - Authorization patterns
48
+ - Security middleware
49
+ - Encryption approach
50
+ - API security strategy
51
+
52
+ ### Category 3: API & Communication
53
+
54
+ - API design patterns (REST, GraphQL, tRPC, etc.)
55
+ - Error handling standards
56
+ - Rate limiting
57
+ - Inter-service communication
58
+
59
+ ### Category 4: Frontend Architecture (if applicable)
60
+
61
+ - State management
62
+ - Component architecture
63
+ - Routing
64
+ - Performance optimization
65
+
66
+ ### Category 5: Infrastructure & Deployment
67
+
68
+ - Hosting strategy
69
+ - CI/CD approach
70
+ - Environment configuration
71
+ - Monitoring and logging
72
+ - Scaling strategy
73
+
74
+ ## Decision format
75
+
76
+ For each decision, record:
77
+
78
+ - Category
79
+ - Decision
80
+ - Version (if applicable)
81
+ - Rationale
82
+ - Affects (components or epics)
83
+ - Provided by starter? (yes/no)
84
+
85
+ ## Generate decisions content
86
+
87
+ Append to `architecture.md`:
88
+
89
+ ```markdown
90
+ ## Core Architectural Decisions
91
+
92
+ ### Decision Priority Analysis
93
+
94
+ **Critical Decisions (block implementation):**
95
+ {{list}}
96
+
97
+ **Important Decisions (shape architecture):**
98
+ {{list}}
99
+
100
+ **Deferred Decisions (post-MVP):**
101
+ {{list}}
102
+
103
+ ### Data Architecture
104
+ ...
105
+
106
+ ### Authentication & Security
107
+ ...
108
+
109
+ ### API & Communication Patterns
110
+ ...
111
+
112
+ ### Frontend Architecture
113
+ ...
114
+
115
+ ### Infrastructure & Deployment
116
+ ...
117
+
118
+ ### Decision Impact Analysis
119
+
120
+ **Implementation Sequence:**
121
+ {{ordered list}}
122
+
123
+ **Cross-Component Dependencies:**
124
+ {{how decisions affect each other}}
125
+ ```
126
+
127
+ ## Next step
128
+
129
+ After C, load `./step-05-patterns.md`.
@@ -0,0 +1,109 @@
1
+ # Step 5: Implementation Patterns & Consistency Rules
2
+
3
+ ## Mandatory execution rules
4
+
5
+ - πŸ›‘ Never generate content without user input.
6
+ - βœ… Treat this as collaborative discovery.
7
+ - 🎯 Focus on patterns that prevent AI agent implementation conflicts.
8
+ - 🎯 Emphasize what agents could decide differently if not specified.
9
+ - ⚠️ No time estimates.
10
+ - βœ… Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
11
+
12
+ ## Execution protocols
13
+
14
+ - 🎯 Show analysis before taking action.
15
+ - ⚠️ Present A/P/C menu after generating patterns content.
16
+ - πŸ’Ύ Only save when the user chooses C.
17
+ - πŸ“– Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5]` before loading the next step.
18
+
19
+ ## Collaboration menu (A/P/C)
20
+
21
+ - **A (Advanced Elicitation)** β€” develop additional consistency patterns.
22
+ - **P (Party Mode)** β€” identify conflict points from multiple perspectives.
23
+ - **C (Continue)** β€” save and move to project structure.
24
+
25
+ ## Context boundaries
26
+
27
+ - Core decisions from step 4 are complete.
28
+ - Technology stack is decided.
29
+ - Focus on HOW agents should implement, not WHAT.
30
+
31
+ ## Task
32
+
33
+ Define implementation patterns and consistency rules so multiple AI agents write compatible code.
34
+
35
+ ## Pattern categories
36
+
37
+ ### Naming patterns
38
+
39
+ - Database table/column naming
40
+ - API endpoint naming
41
+ - File and directory naming
42
+ - Component/function/variable naming
43
+ - Route parameter formats
44
+
45
+ ### Structure patterns
46
+
47
+ - Where tests live
48
+ - How components are organized
49
+ - Where utilities and helpers go
50
+ - Configuration file organization
51
+
52
+ ### Format patterns
53
+
54
+ - API response wrappers
55
+ - Error response structures
56
+ - Date/time formats
57
+ - JSON field naming (snake_case vs camelCase)
58
+
59
+ ### Communication patterns
60
+
61
+ - Event naming conventions
62
+ - Event payload structures
63
+ - State update patterns
64
+ - Action naming conventions
65
+ - Logging formats and levels
66
+
67
+ ### Process patterns
68
+
69
+ - Loading state handling
70
+ - Error recovery
71
+ - Retry implementation
72
+ - Authentication flow
73
+ - Validation timing and methods
74
+
75
+ ## Generate patterns content
76
+
77
+ Append to `architecture.md`:
78
+
79
+ ```markdown
80
+ ## Implementation Patterns & Consistency Rules
81
+
82
+ ### Naming Patterns
83
+ ...
84
+
85
+ ### Structure Patterns
86
+ ...
87
+
88
+ ### Format Patterns
89
+ ...
90
+
91
+ ### Communication Patterns
92
+ ...
93
+
94
+ ### Process Patterns
95
+ ...
96
+
97
+ ### Enforcement Guidelines
98
+
99
+ **All AI agents MUST:**
100
+ - ...
101
+
102
+ ### Pattern Examples
103
+ **Good:** ...
104
+ **Anti-patterns:** ...
105
+ ```
106
+
107
+ ## Next step
108
+
109
+ After C, load `./step-06-structure.md`.
@@ -0,0 +1,97 @@
1
+ # Step 6: Project Structure & Boundaries
2
+
3
+ ## Mandatory execution rules
4
+
5
+ - πŸ›‘ Never generate content without user input.
6
+ - βœ… Treat this as collaborative discovery.
7
+ - πŸ—ΊοΈ Create a complete project tree, not generic placeholders.
8
+ - πŸ—ΊοΈ Map requirements/epics to architectural components.
9
+ - ⚠️ No time estimates.
10
+ - βœ… Speak in `{communication_language}`; write artifacts in `{document_output_language}`.
11
+
12
+ ## Execution protocols
13
+
14
+ - 🎯 Show analysis before taking action.
15
+ - ⚠️ Present A/P/C menu after generating project structure.
16
+ - πŸ’Ύ Only save when the user chooses C.
17
+ - πŸ“– Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5, 6]` before loading the next step.
18
+
19
+ ## Collaboration menu (A/P/C)
20
+
21
+ - **A (Advanced Elicitation)** β€” explore innovative project organization.
22
+ - **P (Party Mode)** β€” evaluate structure trade-offs.
23
+ - **C (Continue)** β€” save and move to validation.
24
+
25
+ ## Context boundaries
26
+
27
+ - All previous decisions are complete.
28
+ - Implementation patterns are defined.
29
+ - Focus on physical project structure and component boundaries.
30
+
31
+ ## Task
32
+
33
+ Define the complete project structure and architectural boundaries based on all decisions made.
34
+
35
+ ## Structure sequence
36
+
37
+ ### 1. Analyze requirements mapping
38
+
39
+ Map epics or FR categories to directories/services.
40
+
41
+ ### 2. Define project directory structure
42
+
43
+ Create a complete, technology-specific tree:
44
+
45
+ - Root configuration files
46
+ - Source code organization
47
+ - Test organization
48
+ - Build and distribution
49
+
50
+ ### 3. Define integration boundaries
51
+
52
+ - API boundaries
53
+ - Component boundaries
54
+ - Service boundaries
55
+ - Data boundaries
56
+
57
+ ### 4. Map requirements to structure
58
+
59
+ For each epic or feature cluster:
60
+
61
+ ```markdown
62
+ Epic: User Management
63
+ - Components: src/components/features/users/
64
+ - Services: src/services/users/
65
+ - API Routes: src/app/api/users/
66
+ - Database: prisma/migrations/...
67
+ - Tests: tests/features/users/
68
+ ```
69
+
70
+ ## Generate structure content
71
+
72
+ Append to `architecture.md`:
73
+
74
+ ```markdown
75
+ ## Project Structure & Boundaries
76
+
77
+ ### Complete Project Directory Structure
78
+ ```
79
+ {{tree}}
80
+ ```
81
+
82
+ ### Architectural Boundaries
83
+ ...
84
+
85
+ ### Requirements to Structure Mapping
86
+ ...
87
+
88
+ ### Integration Points
89
+ ...
90
+
91
+ ### File Organization Patterns
92
+ ...
93
+ ```
94
+
95
+ ## Next step
96
+
97
+ After C, load `./step-07-validation.md`.