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,123 @@
1
+ ---
2
+
3
+ code: wize-investigate
4
+ description: "Use quando um bug ou comportamento inesperado surgir e precisar de investigação estruturada com root cause analysis."
5
+ name: Investigate
6
+ phase: 4-implementation
7
+ owner: wize-agent-dev # Shuri (+ wize-agent-test-architect Hawkeye on call)
8
+ status: ready
9
+ ---
10
+
11
+ # Investigate
12
+
13
+ **Goal.** Structured root-cause analysis for a failed test, regression, or unexpected behavior. Produces a written report so the team (and future-you) can retrace the steps.
14
+
15
+ Shuri drives. Hawkeye on call for test-specific analysis. Wizer is on call for cross-cutting impact.
16
+
17
+ ## When to run
18
+
19
+ - A test fails and the cause is not obvious from the diff.
20
+ - A regression appears in production or CI.
21
+ - A user reports a bug with unclear repro steps.
22
+ - An incident triggers post-mortem.
23
+
24
+ ## When NOT to run
25
+
26
+ - The cause is obvious from the diff → use `wize-quick-dev` to fix directly.
27
+ - A new feature is needed (use `wize-create-story`).
28
+ - A security finding is suspected (escalate immediately; do not investigate solo).
29
+
30
+ ## Inputs
31
+
32
+ - The failing test, error log, or user report.
33
+ - The commit range since the last known-good state.
34
+ - The relevant story file (if any).
35
+ - A free-form description of the symptoms.
36
+
37
+ ## Output
38
+
39
+ - `.wize/implementation/investigations/{YYYY-MM-DD}-{short-slug}.md` — a written report.
40
+
41
+ ## Steps
42
+
43
+ ### 1. Frame
44
+
45
+ One paragraph: what broke, when it was first noticed, who reported it, and how serious. If you cannot write this in 3 sentences, the report is too broad.
46
+
47
+ ### 2. Reproduce
48
+
49
+ Step-by-step: how to reproduce locally. Include environment (OS, Node version, branch), commands, expected vs. actual output. If unreproducible, mark "not reproducible after N attempts" and stop.
50
+
51
+ ### 3. Hypothesize
52
+
53
+ List 3 root causes, ranked by likelihood. For each:
54
+ - What would explain the symptoms.
55
+ - A 1-line test to confirm or refute.
56
+ - Confidence: low / medium / high.
57
+
58
+ ### 4. Verify
59
+
60
+ For each hypothesis, run the 1-line test. Record: confirmed / refuted / inconclusive. If all refuted, return to step 3 and re-rank.
61
+
62
+ ### 5. Conclude
63
+
64
+ Pick the surviving root cause. State:
65
+ - **Root cause:** {description}.
66
+ - **Fix path:** {one paragraph: what to change and why}.
67
+ - **Effort:** S / M / L.
68
+ - **Risk of fix:** low / medium / high.
69
+ - **Recommended next step:** open a quick-dev, open a story, or escalate.
70
+
71
+ ### 6. Hand off
72
+
73
+ Notify the next workflow:
74
+ - S / low risk → `/wize-quick-dev` (Shuri fixes directly).
75
+ - M+ or higher risk → `/wize-create-story` (new story for the fix).
76
+ - Escalation → `/wize-correct-course` (involve PM + Wizer).
77
+
78
+ ## Output template
79
+
80
+ ```markdown
81
+ ---
82
+ date: 2026-06-16
83
+ author: Shuri
84
+ severity: high
85
+ related_story: E04-S02
86
+ related_test: test/document-project-classify.test.js
87
+ status: concluded
88
+ ---
89
+
90
+ # Investigation — {short-slug}
91
+
92
+ ## Frame
93
+ {one paragraph}
94
+
95
+ ## Reproduce
96
+ 1. ...
97
+ 2. ...
98
+ **Expected:** {x}
99
+ **Actual:** {y}
100
+
101
+ ## Hypotheses
102
+ 1. **{hypothesis}** — Confidence: high. Test: {1-liner}. Result: confirmed.
103
+ 2. ...
104
+
105
+ ## Conclude
106
+ - **Root cause:** {description}
107
+ - **Fix path:** {one paragraph}
108
+ - **Effort:** M
109
+ - **Risk of fix:** low
110
+ - **Next:** /wize-create-story (E04-S05)
111
+ ```
112
+
113
+ ## Anti-patterns Shuri rejects
114
+
115
+ - Skipping the hypothesis ranking. (Ranking forces you to consider alternatives.)
116
+ - Stopping at "I think it's X" without the verification test. (Confirmation bias.)
117
+ - Mixing the investigation with the fix. (Investigate, then propose; do not edit code yet.)
118
+ - One-paragraph reports. (If it's a real investigation, it's at least 5 sections.)
119
+ - Sharing the report only in chat. (Always write to disk for archival.)
120
+
121
+ ## Hand-off
122
+
123
+ > "Investigation concluded. Root cause: {summary}. Next: `/wize-create-story` (M+ fix) or `/wize-quick-dev` (S fix)."
@@ -1,33 +1,151 @@
1
1
  ---
2
+
2
3
  code: wize-quick-dev
4
+ description: "Use quando a demanda for pequena e bem delimitada (bug fix, copy edit, refactor) e não justificar o ciclo completo."
3
5
  name: Quick Dev (lifecycle shortcut)
4
6
  phase: 4-implementation
5
7
  owner: wize-agent-dev # Shuri
6
- status: stub
8
+ status: ready
7
9
  ---
8
10
 
9
11
  # Quick Dev
10
12
 
11
- **Goal.** When the task is small and well-scoped (bug fix, copy edit, small refactor), skip the full lifecycle.
13
+ **Goal.** When the task is small and well-scoped (bug fix, copy edit, small refactor, dep bump, brownfield maintenance), skip Phase 1–3 and execute with light TEA. Save the full lifecycle for new value.
14
+
15
+ Wizer authorizes the shortcut (via routing). Shuri runs it. Hawkeye does smoke-only.
16
+
17
+ ## Operating contract (light)
18
+
19
+ Still a **mission contract**, just a small one: `.wize/` + `AGENTS.md` + skills are the instructions. Inspect before editing, reuse ladder before new code, smallest sufficient change, test-first when the change has a testable surface, run the real smoke + checks, no success claim without evidence. If it grows past ~1h or touches a new feature/architecture/UX/security surface, stop and re-route to Full Lifecycle — don't force it through here.
20
+
21
+ ## When to use (yes)
22
+
23
+ - Bug fix with a clear root cause.
24
+ - Copy or content edit.
25
+ - Small refactor with no behavior change.
26
+ - Dependency bump (security or minor).
27
+ - Brownfield maintenance: rename, structural cleanup, dead-code removal.
28
+ - Hotfix during incident response (post-mortem after).
29
+
30
+ ## When NOT to use (no)
31
+
32
+ - New feature, even small.
33
+ - Cross-cutting change touching architecture.
34
+ - Changes where ACs need to be agreed.
35
+ - Anything that should be a story.
36
+ - Anything that touches security/auth/payments without senior review.
37
+
38
+ ## Decision tree
39
+
40
+ ```
41
+ Question Yes No
42
+ Is there an AC to write? → full lifecycle → next
43
+ Does it touch architecture? → full lifecycle → next
44
+ Does it need UX input? → full lifecycle → next
45
+ Could it surprise a user? → full lifecycle → next
46
+ Is it ≤ 1 hour to a careful dev? → quick-dev → full lifecycle
47
+ ```
48
+
49
+ ## Inputs
12
50
 
13
- ## When to use
14
- - Bug fix with clear root cause
15
- - Copy or content edit
16
- - Small refactor with no behavior change
17
- - Dependency bump
18
- - Brownfield maintenance
51
+ - Issue / Slack message / PR comment describing the problem.
52
+ - Repo state.
53
+ - `.wize/config/tea.toml` (smoke-only policy when `policy = "advisory"`).
19
54
 
20
- ## When NOT to use
21
- - New feature
22
- - Cross-cutting change touching architecture
23
- - Anything where ACs need to be agreed
55
+ ## Output
56
+
57
+ - Code change (single PR).
58
+ - Single-line entry appended to `.wize/implementation/quick-dev-log.md`.
59
+ - Conventional commit.
24
60
 
25
61
  ## Steps
26
- 1. **Frame.** One paragraph: what changes and why.
27
- 2. **Implement.** TDD or smoke-test-and-fix, depending on risk.
28
- 3. **Hawkeye lite.** Smoke test + lint only (no design/trace/nfr/review).
29
- 4. **Gate.** Tiny `gate.md` (PASS or CONCERNS) appended to a rolling `.wize/implementation/quick-dev-log.md`.
30
- 5. **Commit.** Conventional commit referencing the change.
62
+
63
+ ### 1. Frame in one paragraph
64
+
65
+ What changes, why, and what could break. If the paragraph is hard to write, you're not in quick-dev territory.
66
+
67
+ ### 2. Implement
68
+
69
+ - TDD when reasonable; smoke-test-and-fix when the cost of TDD is greater than the value.
70
+ - Run Shuri's reuse ladder (see `wize-agent-dev` persona) before writing anything new: does this need to exist → already in the codebase → stdlib → native/framework feature → installed dependency → one-liner → only then new code. Don't introduce new abstractions.
71
+
72
+ ### 3. Hawkeye lite
73
+
74
+ - Smoke test: imports load, the changed flow doesn't break.
75
+ - Lint + format + type-check clean.
76
+ - No `tea-design / trace / review / nfr` written.
77
+ - Single one-line gate entry instead of full `gate.md`.
78
+
79
+ ### 4. Log
80
+
81
+ Append one line to `.wize/implementation/quick-dev-log.md`:
82
+
83
+ ```
84
+ 2026-06-11 | shuri | dep-bump zod 3.22→3.23 | smoke PASS | PR #418
85
+ 2026-06-11 | shuri | fix copy on /signin help link | smoke PASS | PR #419
86
+ 2026-06-11 | shuri | rename UserService → AccountService | smoke PASS | PR #420
87
+ ```
88
+
89
+ ### 5. Knowledge update (only if applicable)
90
+
91
+ Most quick-dev changes don't touch the baseline axes (copy edit, small refactor, dep bump in a stable lib). When they do — typically a **dependency bump** or a **rename that breaks a public contract** — add **one line** to the matching `document-project/*.md` file:
92
+
93
+ ```markdown
94
+ ## 2026-06-11
95
+ - Dependencies: bump zod 3.22 → 3.23. No API changes; validateInviteEmail unaffected.
96
+ - Conventions: `AccountService` replaces `UserService` (rename); imports updated repo-wide.
97
+ ```
98
+
99
+ Heuristic: *"would a new dev hitting `document-project/*.md` next week be misled if I don't add this?"* Yes → write. No → skip.
100
+
101
+ ### 6. Commit + open PR
102
+
103
+ Conventional commit. PR description: the paragraph from step 1.
104
+
105
+ ```
106
+ fix(auth): typo in error message for AC-04-2 follow-up
107
+
108
+ The error shown after rate-limit said "Sloow down" — corrected to "Slow down".
109
+ No behavior change; copy-only.
110
+ ```
111
+
112
+ ## Quick-dev log template
113
+
114
+ ```markdown
115
+ # Quick-dev log
116
+
117
+ | Date | Owner | What | Smoke | PR |
118
+ |---|---|---|---|---|
119
+ | 2026-06-11 | shuri | … | PASS | #N |
120
+ ```
121
+
122
+ ## Done report (compact)
123
+
124
+ Report in four lines — no ceremony:
125
+
126
+ 1. What changed + why.
127
+ 2. Files changed.
128
+ 3. Checks run + results (smoke, lint, format, type-check). Name any that couldn't run and why.
129
+ 4. Recommended next action, if any.
31
130
 
32
131
  ## Disabling
33
- Set `quick_dev_enabled = false` in `.wize/config/project.toml` to force full lifecycle for everything.
132
+
133
+ To force every change through the full lifecycle (for very high-stakes products), set in `.wize/config/project.toml`:
134
+
135
+ ```toml
136
+ [install]
137
+ quick_dev_enabled = false
138
+ ```
139
+
140
+ Wizer respects this; quick-dev becomes unavailable; every change must go through Pepper → … → Hawkeye gate.
141
+
142
+ ## Anti-patterns Shuri rejects in herself
143
+
144
+ - Reaching for quick-dev to skip writing an AC because she doesn't want to argue with Hill.
145
+ - Quick-dev that touches security/auth/payments.
146
+ - A "small refactor" that ends up changing behavior.
147
+ - Skipping the log entry.
148
+
149
+ ## Hand-off
150
+
151
+ > `dep-bump zod 3.23` is in. PR #418, smoke PASS. Logged. No further TEA artifacts; moving on.
@@ -0,0 +1,162 @@
1
+ ---
2
+ code: wize-release
3
+ description: "Use quando todas as stories do sprint estiverem gated e você precisar gerar release: bump de versão, changelog e tag git."
4
+ name: Release
5
+ phase: 4-implementation
6
+ owner: wize-agent-dev # Shuri + Maria Hill
7
+ status: ready
8
+ ---
9
+
10
+ # Release
11
+
12
+ **Goal.** Bump de versão, changelog a partir das stories gated e tag git. O release é o passo entre "todas as stories passaram no gate" e a retrospectiva.
13
+
14
+ Shuri executa. Maria Hill confirma o escopo (quais epics entram).
15
+
16
+ ## Pré-requisitos
17
+
18
+ Antes de iniciar, verificar:
19
+
20
+ 1. **Sprint ativo** — `sprint-status.yaml` deve ter `development_status` com stories.
21
+ 2. **Todas as stories gated** — cada story no sprint ativo deve estar `done` no `sprint-status.yaml`. Stories com gate `FAIL` bloqueiam o release. Stories com `CONCERNS` precisam de waiver documentado.
22
+ 3. **Git limpo** — `git status --porcelain` deve estar vazio (ou conter apenas arquivos não rastreados que não fazem parte do release).
23
+ 4. **Branch main** — releases saem da `main`. Se estiver em feature branch, abortar e orientar merge via PR.
24
+
25
+ Se qualquer pré-requisito falhar, reportar o bloqueio e parar. Não fazer release parcial.
26
+
27
+ ## Inputs
28
+
29
+ - `.wize/implementation/sprint-status.yaml` — stories concluídas
30
+ - `.wize/solutioning/stories/{epic}/*.md` — detalhes das stories
31
+ - `package.json` — versão atual
32
+ - `CHANGELOG.md` — changelog existente (se houver)
33
+ - `git tag --list 'v*'` — tags existentes
34
+
35
+ ## Outputs
36
+
37
+ - `package.json` com versão atualizada
38
+ - `CHANGELOG.md` atualizado com a nova versão
39
+ - Tag git `v{semver}`
40
+ - `sprint-status.yaml` atualizado (sprint marcado como concluído)
41
+ - Resumo do release no terminal
42
+
43
+ ## Steps
44
+
45
+ ### 1. Verificar pré-requisitos
46
+
47
+ ```bash
48
+ git status --porcelain # deve estar vazio
49
+ git branch --show-current # deve ser main
50
+ ```
51
+
52
+ Ler `sprint-status.yaml` e validar que todas as stories do sprint ativo estão `done`. Se houver stories `backlog`, `ready-for-dev`, `in-progress` ou `review`, listar cada uma e abortar.
53
+
54
+ ### 2. Coletar stories concluídas
55
+
56
+ Varrer `development_status` no `sprint-status.yaml`. Para cada story com status `done`:
57
+
58
+ 1. Localizar o arquivo da story em `.wize/solutioning/stories/{epic}/{story}.md`
59
+ 2. Extrair do frontmatter: `story_id`, `epic`, `status`
60
+ 3. Extrair do corpo: título (linha `# Story:`), acceptance criteria
61
+
62
+ Agrupar por epic. Se o epic tiver `epic_id` no `sprint-status.yaml`, usar o nome do arquivo do epic em `.wize/solutioning/epics/` para obter o título legível.
63
+
64
+ ### 3. Determinar o bump de versão
65
+
66
+ Ler a versão atual de `package.json`:
67
+
68
+ ```
69
+ Versão atual: 0.11.0
70
+ Qual o bump?
71
+ 1. patch (0.11.1) — correções, hotfix, docs
72
+ 2. minor (0.12.0) — novas features compatíveis
73
+ 3. major (1.0.0) — breaking changes
74
+ ```
75
+
76
+ Em modo interativo, perguntar ao usuário. Em modo não-interativo, usar o primeiro argumento (`patch`, `minor` ou `major`). Se nenhum argumento for passado, default `patch`.
77
+
78
+ Calcular a nova versão com `semver.inc(current, bump)` — usar Node built-in (regex parse + increment, sem dependência externa).
79
+
80
+ ### 4. Gerar changelog
81
+
82
+ Delegar a geração do changelog ao `wize-changelog`:
83
+
84
+ 1. Invocar o fluxo do `wize-changelog` com a nova versão e a lista de stories coletadas no passo 2.
85
+ 2. O changelog é gerado no formato Keep a Changelog e pré-pendido ao `CHANGELOG.md`.
86
+
87
+ Se `CHANGELOG.md` não existir, criar com o cabeçalho padrão.
88
+
89
+ ### 5. Bump de versão
90
+
91
+ Atualizar o campo `version` em `package.json` com a nova versão. Preservar a formatação existente (indentação, aspas duplas).
92
+
93
+ ### 6. Commit e tag
94
+
95
+ ```bash
96
+ git add package.json CHANGELOG.md
97
+ git commit -m "chore: release v{version}"
98
+ git tag v{version} -m "Release v{version}"
99
+ ```
100
+
101
+ A mensagem de commit deve listar os epics incluídos no release.
102
+
103
+ ### 7. Atualizar sprint-status.yaml
104
+
105
+ Adicionar ao `sprint-status.yaml`:
106
+
107
+ ```yaml
108
+ release:
109
+ version: "{version}"
110
+ date: "{YYYY-MM-DD}"
111
+ sprint: "{active_cycle}"
112
+ stories_released: {count}
113
+ ```
114
+
115
+ Marcar o sprint como concluído e adicionar entrada de retrospectiva pendente.
116
+
117
+ ### 8. Resumo
118
+
119
+ Emitir no terminal:
120
+
121
+ ```
122
+ ✓ Release v{version} criado
123
+
124
+ Epics incluídos:
125
+ - {epic_name} ({story_count} stories)
126
+
127
+ Changelog: CHANGELOG.md
128
+ Tag: v{version}
129
+ Commit: {commit_hash}
130
+
131
+ Próximos passos:
132
+ - git push origin main --tags
133
+ - /wize-retrospective
134
+ ```
135
+
136
+ **Não executar `git push` automaticamente.** O push é sempre manual — o desenvolvedor revisa antes de publicar.
137
+
138
+ ## Bump semver (built-in, zero-dep)
139
+
140
+ ```js
141
+ function bumpVersion(current, type) {
142
+ const [major, minor, patch] = current.split('.').map(Number);
143
+ switch (type) {
144
+ case 'major': return `${major + 1}.0.0`;
145
+ case 'minor': return `${major}.${minor + 1}.0`;
146
+ case 'patch': return `${major}.${minor}.${patch + 1}`;
147
+ default: throw new Error(`Tipo de bump inválido: ${type}. Use patch, minor ou major.`);
148
+ }
149
+ }
150
+ ```
151
+
152
+ ## Anti-patterns
153
+
154
+ - Fazer release com stories não gated — o gate existe para proteger a main.
155
+ - Fazer release de feature branch — releases saem da main.
156
+ - Push automático — o desenvolvedor revisa antes de publicar.
157
+ - Pular o changelog — "depois eu escrevo" = nunca escreve.
158
+ - Bump manual de versão — usar o bump semver para evitar off-by-one.
159
+
160
+ ## Hand-off
161
+
162
+ > Release v{version} criado. Changelog atualizado, tag aplicada. Execute `git push origin main --tags` quando revisar. Depois: `/wize-retrospective`.
@@ -1,36 +1,140 @@
1
1
  ---
2
+
2
3
  code: wize-retrospective
4
+ description: "Use quando o sprint terminar e precisar de retrospectiva facilitada com todo o time."
3
5
  name: Retrospective
4
6
  phase: 4-implementation
5
7
  owner: wize-orchestrator # Wizer facilitates; whole team contributes
6
- status: stub
8
+ status: ready
7
9
  ---
8
10
 
9
11
  # Retrospective
10
12
 
11
- **Goal.** Capture what worked, what didn't, and what we change next sprint.
13
+ **Goal.** Capture what worked, what didn't, what surprised, and **one concrete change for next sprint**. A retro that ends in a vibe is a retro that didn't ship a change.
14
+
15
+ Wizer facilitates. Hill enforces output discipline. Everyone (including Pepper, Mantis, Fury) contributes.
16
+
17
+ ## When to run
18
+
19
+ - End of every sprint (cadence).
20
+ - After any incident (separate; pulls from incident timeline).
21
+ - At major milestones (epic close, release, year-end).
12
22
 
13
23
  ## Inputs
24
+
14
25
  - `.wize/implementation/sprint-status.md` (current sprint)
15
26
  - All `gate.md` files from current sprint
27
+ - `tea/nfr/{epic}.md` if an epic closed this sprint
28
+ - Quick-dev log
29
+
30
+ ## Output
16
31
 
17
- ## Outputs
18
32
  - `.wize/implementation/retrospective/{YYYY-MM-DD}.md`
19
33
 
20
- ## Template
34
+ ## Format (60 minutes, fixed)
35
+
36
+ | Minutes | Section |
37
+ |---|---|
38
+ | 0–5 | Frame: Wizer reads the sprint stats (capacity, shipped, slipped, gates). |
39
+ | 5–15 | **Worked** — what we want to repeat. |
40
+ | 15–25 | **Didn't work** — what we want to change. |
41
+ | 25–35 | **Surprised us** — externalities, signals, anything not on plan. |
42
+ | 35–45 | Pick **1–3 changes**. Vote with effort/impact dots. |
43
+ | 45–55 | Each change gets an owner + deadline. |
44
+ | 55–60 | Wizer reads back the doc; everyone confirms; close. |
45
+
46
+ Going over 60 minutes is a sign the retro became therapy. Time-box.
47
+
48
+ ## Steps
49
+
50
+ ### 1. Open with stats
51
+
52
+ Wizer reads the sprint dashboard from `sprint-status.md`:
53
+ - Stories committed vs shipped (a count, not a velocity metric — we don't estimate).
54
+ - Number of gates: PASS / CONCERNS / FAIL / WAIVED.
55
+ - Blockers and their resolution times.
56
+ - Carry-over count.
57
+
58
+ Stats anchor the retro in observations, not feelings.
59
+
60
+ ### 2. Worked / didn't / surprised
61
+
62
+ Each engineer brings 2–3 items per section, written in advance ideally. Time-box discussion: any item that takes > 3 min becomes a follow-up.
63
+
64
+ ### 3. Changes (1–3 max)
65
+
66
+ A change is:
67
+ - **Specific:** "Pair-program for E04-S02 because R-3 is high" — not "communicate more."
68
+ - **Owned:** a person.
69
+ - **Bounded:** a deadline or a sprint to land it.
70
+
71
+ If you pick 4+ changes, you'll execute 0. Choose.
72
+
73
+ ### 4. Write the doc
74
+
75
+ Use the template; close the retro with the doc in front of the team.
76
+
77
+ ### 5. Trigger reads
78
+
79
+ Wizer notifies Hill (who plugs the changes into next sprint planning), Hawkeye (who may revise risk profile), Fury (when an NFR principle change emerges).
80
+
81
+ ## Output template
21
82
 
22
83
  ```markdown
23
- # Retrospective — Sprint N
84
+ ---
85
+ sprint: 7
86
+ date: 2026-06-25
87
+ facilitator: Wizer
88
+ attendees: [Hill, Tony, Mantis, Pepper, Fury, Hawkeye, Shuri]
89
+ ---
90
+
91
+ # Retrospective — Sprint 7
92
+
93
+ ## Sprint snapshot
94
+ - Committed: 4 stories + 1 stretch
95
+ - Shipped: 4 stories
96
+ - Stretch: not pulled
97
+ - Gates: 4 PASS, 1 CONCERNS, 0 FAIL
98
+ - Blockers: 1 (vendor sandbox, resolved Day 5)
99
+ - Carry-over to S8: 0
24
100
 
25
101
  ## Worked
26
- - …
102
+ - Pairing on E03-S02 (auth refresh) — issue caught at integration test instead of in prod.
103
+ - TEA design done at planning for R-3 stories paid off.
104
+ - Mantis' "before/after" recordings in PRs accelerated review.
27
105
 
28
106
  ## Didn't work
29
- - …
107
+ - Sprint-status entries went stale mid-sprint (Hill on vacation).
108
+ - E02-S02 was too big for one PR and should have been sliced; it stalled the sprint.
109
+ - Vendor outage with no fallback caught us cold.
30
110
 
31
111
  ## Surprised us
32
- - …
112
+ - A11y audit caught 3 issues on a screen Mantis had already signed off on (axe found dynamic-content edge cases).
113
+ - Cost dashboard showed mailer spend doubled — outbox retry was too aggressive.
114
+
115
+ ## Changes for Sprint 8
116
+
117
+ 1. **Sprint-status delegation rotation** — when Hill is OOO, Wizer takes over. *Owner: Wizer. By: Sprint 8 Day 1.*
118
+ 2. **Slice-check every story at planning** — any story that can't be described as a single PR gets split before it's pulled. *Owner: Tony. By: Sprint 8 planning.*
119
+ 3. **Vendor fallback drill** — quarterly, simulate top-3 vendor outages. *Owner: Hawkeye + Tony. By: end of Q3.*
120
+
121
+ ## Decisions made
122
+ - Mailer retry policy updated (NFR-01-1).
123
+ - Risk profile revised: R-1 mitigation now confirmed.
33
124
 
34
- ## Changes next sprint (owner + due date)
35
- - [ ] … — owner: …
125
+ ## Notes for next sprint
126
+ - Carry zero stories; everyone starts S8 fresh.
127
+ - Stretch goal in S8: catch up on REV-01 (copy fix from S7).
36
128
  ```
129
+
130
+ ## Anti-patterns Wizer rejects (politely)
131
+
132
+ - **A retro without a change.** Then it was venting.
133
+ - **"We need to communicate better."** Specific or it doesn't count.
134
+ - **Adopting > 3 changes.** None will land.
135
+ - **No owner / no deadline.** Hopes, not plans.
136
+ - **Skipping the retro to "save time."** The next sprint costs more.
137
+
138
+ ## Hand-off
139
+
140
+ > Retro at `.wize/implementation/retrospective/2026-06-25.md`. 3 changes; owners assigned. Sprint 8 planning anchors on them. Hawkeye, please update `risk-profile.md` with the R-1 mitigation confirmed.