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,116 @@
1
+ ---
2
+
3
+ code: wize-customize
4
+ description: "Use quando precisar personalizar um agente, skill ou workflow built-in sem alterar os arquivos originais do kit."
5
+ name: Customize
6
+ module: core
7
+ status: ready
8
+ ---
9
+
10
+ # Customize
11
+
12
+ **Goal.** Guide the user through creating an override (customize.toml) for a built-in agent, skill, or workflow. The override lives at `.wize/custom/{type}/{code}/customize.toml` and is loaded by the adapter at sync time.
13
+
14
+ Wizer drives. Tony on call for agent structure.
15
+
16
+ ## When to use
17
+
18
+ - "Override the persona of `wize-agent-pm`."
19
+ - "Customize the wording in `wize-product-brief`."
20
+ - "Add a tool to `wize-orchestrator`."
21
+
22
+ ## When NOT to use
23
+
24
+ - Creating a brand-new agent/skill/workflow → use `wize-create-agent` (or `wize-create-skill` / `wize-create-workflow`).
25
+ - Updating built-ins directly (the kit does not support forking built-ins; the next update would clobber your changes).
26
+
27
+ ## Inputs
28
+
29
+ - A target: agent code, skill code, or workflow code.
30
+ - A scope: what to override (name, title, persona, tools, body).
31
+
32
+ ## Output
33
+
34
+ - A new file at `.wize/custom/{type}/{code}/customize.toml` (or update of an existing one).
35
+ - A re-run of `wize-dev-kit sync` to apply the override.
36
+
37
+ ## Steps
38
+
39
+ ### 1. Identify the target
40
+
41
+ The user names the code (e.g., `wize-agent-pm`). The skill validates:
42
+
43
+ - Code shape: `wize-{kind}-{slug}`.
44
+ - Exists in the kit's built-in roster.
45
+
46
+ If the target does not exist, suggest `wize-create-agent` instead.
47
+
48
+ ### 2. Inspect the existing override
49
+
50
+ If `.wize/custom/{type}/{code}/customize.toml` exists, read it. The user is updating; otherwise creating.
51
+
52
+ ### 3. Ask what to change
53
+
54
+ The skill asks the user to pick from the overrideable fields:
55
+
56
+ - `name` (display name)
57
+ - `title` (job title)
58
+ - `persona` (markdown body)
59
+ - `tools` (list of tool names the agent can call)
60
+ - `icon` (emoji)
61
+
62
+ One field per run. Re-run for additional fields.
63
+
64
+ ### 4. Generate the customize.toml
65
+
66
+ Write the new (or merged) customize.toml. Keep the structure as comments so the user can see the template.
67
+
68
+ ```toml
69
+ # Override for {code} — generated by /wize-customize
70
+ # Re-running the skill merges; lines you delete are restored on next install.
71
+
72
+ [persona]
73
+ # name = "Your name here"
74
+ # title = "Your title here"
75
+
76
+ [tools]
77
+ # Add tool names the agent can call. Empty = default set.
78
+ # tools = []
79
+ ```
80
+
81
+ ### 5. Re-sync
82
+
83
+ Run `wize-dev-kit sync` (or instruct the user to). The override is loaded by the adapter and emitted to the IDE targets.
84
+
85
+ ### 6. Hand off
86
+
87
+ Notify the user of:
88
+
89
+ - File written: `.wize/custom/{type}/{code}/customize.toml`.
90
+ - Sync completed (or instructions to run it).
91
+ - Where to verify the override (e.g., `.claude/skills/{code}/SKILL.md`).
92
+
93
+ ## Output template
94
+
95
+ The skill does not write a markdown output; it writes the customize.toml and re-syncs.
96
+
97
+ ```toml
98
+ # Override for wize-agent-pm — generated by /wize-customize
99
+
100
+ [persona]
101
+ name = "Hill" # shortened from "Maria Hill"
102
+
103
+ [tools]
104
+ # tools = [] # default set
105
+ ```
106
+
107
+ ## Anti-patterns Wizer rejects
108
+
109
+ - Suggesting direct edits to built-in files in `node_modules/wize-dev-kit/`. (Next update clobbers.)
110
+ - Creating a customize.toml with no overrideable fields filled. (Empty = no-op.)
111
+ - Auto-running `wize-dev-kit sync` silently. (Confirm with the user first.)
112
+ - Customizing the same field twice in one run. (One field per run.)
113
+
114
+ ## Hand-off
115
+
116
+ > "Override written at `.wize/custom/{type}/{code}/customize.toml`. Sync applied. Verify in `.claude/skills/{code}/SKILL.md` (or your IDE target)."
@@ -0,0 +1,94 @@
1
+ ---
2
+
3
+ code: wize-editorial-review-prose
4
+ description: "Use quando um artefato Wize (brief, PRD, ADR, gate) precisar de revisão de prosa — clareza, tom, jargão e precisão."
5
+ name: Editorial Review — Prose
6
+ module: core
7
+ status: ready
8
+ ---
9
+
10
+ # Editorial Review — Prose
11
+
12
+ **Goal.** Catch prose drift in Wize artifacts (brief, PRD, ADR, gate, story, retrospective). Peggy Carter runs the review; the user applies the fixes.
13
+
14
+ Peggy drives. Wizer is on call for the call to action ("rewrite the whole section" or "leave it").
15
+
16
+ ## When to use
17
+
18
+ - "Review the prose in this PRD."
19
+ - "Find jargon and hedging in the brief."
20
+ - "Is this gate file clear?"
21
+
22
+ ## When NOT to use
23
+
24
+ - Spelling/grammar (use a linter; out of scope here).
25
+ - Structure (missing sections, wrong ordering) → use `wize-editorial-review-structure`.
26
+ - Tone change (tone is intentional; leave it).
27
+
28
+ ## Inputs
29
+
30
+ - A markdown file under `.wize/`.
31
+ - A line range (optional; default = whole file).
32
+
33
+ ## Output
34
+
35
+ - A markdown review with line-level findings, each tagged with severity (nit / suggest / recommend).
36
+
37
+ ## Steps
38
+
39
+ ### 1. Read
40
+
41
+ Read the file (or line range). Skip code blocks. Skip frontmatter.
42
+
43
+ ### 2. Hunt (4 areas)
44
+
45
+ - **Voice.** Active voice preferred. Flag passive constructions ("was decided by", "is being implemented").
46
+ - **Jargon.** Acronyms not defined on first use. Discipline-specific terms (e.g., "JTBD", "NFR") that are not in the project glossary.
47
+ - **Hedging.** Softeners that hide commitment: "might", "could possibly", "we should consider", "it would be nice". Suggest a stronger verb.
48
+ - **Pronouns.** Ambiguous "this", "it", "they" without a clear referent. Suggest a specific noun.
49
+
50
+ ### 3. Rank
51
+
52
+ Per finding:
53
+
54
+ - **Nit** — minor; user can ignore.
55
+ - **Suggest** — worth a 5-second fix.
56
+ - **Recommend** — blocks the artifact's clarity; should be fixed.
57
+
58
+ ### 4. Hand off
59
+
60
+ Output is a markdown list. The user applies or rejects each finding. Peggy does not auto-edit.
61
+
62
+ ## Output template
63
+
64
+ ```markdown
65
+ ---
66
+ date: 2026-06-17
67
+ file: planning/prd.md
68
+ author: Peggy
69
+ ---
70
+
71
+ # Prose review — prd.md
72
+
73
+ ## Recommendations
74
+ - L42: "we should consider using a token bucket" → "we use a token bucket". Hedging hides the decision. **[recommend]**
75
+ - L78: "this might affect the user" → "this affects new signups". Pronoun + hedging. **[recommend]**
76
+
77
+ ## Suggests
78
+ - L15: "rate-limit" appears 4 times. First use: spell out "rate-limit (per-IP cap on request rate)". **[suggest]**
79
+ - L23: passive "is implemented by" → active "we implement". **[suggest]**
80
+
81
+ ## Nits
82
+ - L88: comma splice. **[nit]**
83
+ ```
84
+
85
+ ## Anti-patterns Peggy rejects
86
+
87
+ - Auto-editing the source file. (Suggest; never write.)
88
+ - Commenting on tone or style preference. (Tone is intentional; structure is a separate review.)
89
+ - Marking everything as recommend. (Cap at 5 recommends per review.)
90
+ - Reviewing code blocks. (Out of scope.)
91
+
92
+ ## Hand-off
93
+
94
+ > "Prose review complete for `{file}`. {N} findings. {M} recommends, {K} suggests, {L} nits. Apply or reject per finding."
@@ -0,0 +1,99 @@
1
+ ---
2
+
3
+ code: wize-editorial-review-structure
4
+ description: "Use quando um artefato Wize precisar de revisão estrutural — seções obrigatórias, ordenação e níveis de heading."
5
+ name: Editorial Review — Structure
6
+ module: core
7
+ status: ready
8
+ ---
9
+
10
+ # Editorial Review — Structure
11
+
12
+ **Goal.** Catch structural drift in Wize artifacts: missing required sections, wrong ordering, inconsistent heading levels. Peggy Carter runs the review; the user applies the fixes.
13
+
14
+ Peggy drives. Tony on call for architecture artifacts; Maria Hill for PRD; Hawkeye for gates.
15
+
16
+ ## When to use
17
+
18
+ - "Review the structure of this PRD."
19
+ - "Is this ADR complete?"
20
+ - "Does this gate file have all required sections?"
21
+
22
+ ## When NOT to use
23
+
24
+ - Prose quality → use `wize-editorial-review-prose`.
25
+ - Content correctness (does the AC actually hold?) → use `wize-tea-review` or `wize-validate-prd`.
26
+
27
+ ## Inputs
28
+
29
+ - A markdown file under `.wize/`.
30
+ - (Optional) the artifact type (PRD, ADR, gate, story, brief) — auto-detected from path.
31
+
32
+ ## Output
33
+
34
+ - A markdown review with section-level findings (missing, misordered, mistyped).
35
+
36
+ ## Steps
37
+
38
+ ### 1. Detect
39
+
40
+ Infer the artifact type from the path:
41
+
42
+ | Path | Type |
43
+ |---|---|
44
+ | `planning/brief.md` | brief |
45
+ | `planning/prd.md` | prd |
46
+ | `solutioning/adrs/ADR-*.md` | adr |
47
+ | `solutioning/architecture.md` | architecture |
48
+ | `implementation/tea/{epic}/{story}/gate.md` | gate |
49
+ | `solutioning/stories/*/*.md` | story |
50
+ | `solutioning/epics/*/*.md` | epic |
51
+
52
+ ### 2. Check against the template
53
+
54
+ Each type has a required set of H2 sections. Use the template in the relevant workflow file (e.g., for PRD, see `wize-create-prd/workflow.md`). Compare against the file.
55
+
56
+ ### 3. Hunt (4 areas)
57
+
58
+ - **Missing sections.** Required H2 not present.
59
+ - **Misordered sections.** H2 present but in wrong order relative to the template.
60
+ - **Inconsistent heading levels.** H3 used where H2 is expected (or vice versa).
61
+ - **Empty sections.** H2 with no content (a heading and nothing else).
62
+
63
+ ### 4. Hand off
64
+
65
+ Output is a markdown list with section-level findings. Severity: **must-fix** (missing) / **should-fix** (misordered) / **nit** (heading level).
66
+
67
+ ## Output template
68
+
69
+ ```markdown
70
+ ---
71
+ date: 2026-06-17
72
+ file: planning/prd.md
73
+ type: prd
74
+ author: Peggy
75
+ ---
76
+
77
+ # Structure review — prd.md (PRD)
78
+
79
+ ## Must-fix
80
+ - Missing H2: "Out of scope".
81
+ - Missing H2: "Open questions".
82
+
83
+ ## Should-fix
84
+ - H2 "Success criteria" appears after "Non-goals"; should be before (per template).
85
+
86
+ ## Nits
87
+ - H3 used in "Constraints" where H4 would match the rest of the doc.
88
+ ```
89
+
90
+ ## Anti-patterns Peggy rejects
91
+
92
+ - Suggesting a different section order than the template. (The template is the source of truth.)
93
+ - Reviewing prose. (Use the prose skill.)
94
+ - Marking optional sections (e.g., "Glossary" in PRD) as missing.
95
+ - Auto-rewriting the file. (Suggest; never write.)
96
+
97
+ ## Hand-off
98
+
99
+ > "Structure review complete for `{file}` ({type}). {M} must-fix, {K} should-fix, {L} nits. Apply or reject per finding."
@@ -0,0 +1,77 @@
1
+ ---
2
+
3
+ code: wize-grill
4
+ description: "Use quando uma demanda chegar vaga e precisar de entrevista exaustiva para alcançar entendimento compartilhado antes de produzir qualquer artefato."
5
+ name: Grill
6
+ module: core
7
+ status: ready
8
+ ---
9
+
10
+ # Grill
11
+
12
+ **Goal.** Interview the user exhaustively about a demand until both sides reach **shared understanding** — before any artifact is drafted. Sharper answers make a sharper brief, PRD, epic, story, or plan. Grill is an input-quality tool, not an artifact of its own.
13
+
14
+ Any persona about to author an artifact can invoke it: Pepper before a brief, Maria Hill before a PRD, Tony before epics/stories/architecture, Wizer when a demand arrives fuzzy. Wizer also **suggests** it from `/wize` (or `/wize-help`) — always suggest, never force.
15
+
16
+ ## The five rules
17
+
18
+ 1. **One question at a time.** Ask, then wait for the answer. A batch of questions is bewildering and produces shallow answers.
19
+ 2. **Every question ships with a recommendation.** State your recommended answer and a one-line reason. The user confirms or corrects — far cheaper than answering from scratch.
20
+ 3. **Facts are looked up; decisions are asked.** If the answer lives in the repo, `.wize/`, or the environment (stack, existing behavior, conventions, prior artifacts), fetch it — never ask. Only genuine decisions — trade-offs, priorities, scope calls — go to the user.
21
+ 4. **Walk the decision tree in dependency order.** Resolve upstream decisions before the downstream ones that depend on them. Don't ask about scope before the problem is agreed.
22
+ 5. **No drafting until confirmed.** Close with a compact summary of every decision made and ask for confirmation of shared understanding. Only then hand back to the authoring workflow.
23
+
24
+ ## Question ladder (dependency order)
25
+
26
+ Climb top-down; **skip any rung an existing artifact already answers** (brief, trigger map, PRD, architecture — check first, rule 3).
27
+
28
+ | Rung | Resolves | Feeds |
29
+ |---|---|---|
30
+ | 1. Problem | What hurts, for whom, what's the evidence it hurts | Brief vision / story context |
31
+ | 2. Outcome | The observable result that means "solved" — metric, target, deadline | Success criteria / PRD goals |
32
+ | 3. Audience | Primary user (role + JTBD), who else is affected | Brief audience / trigger map |
33
+ | 4. Scope | What's in, what's explicitly out, non-goals | PRD scope table / story restrictions |
34
+ | 5. Constraints | Deadline, budget, compliance, integrations, protected behaviors | Brief constraints / restrictions |
35
+ | 6. Risks & assumptions | What, if wrong, changes the plan | PRD assumptions / risk profile |
36
+ | 7. Validation | How we'll verify — which checks, which ACs, what "done" means | ACs / validation contract |
37
+
38
+ When an answer comes back vague, apply a technique from `wize-advanced-elicitation` (5 Whys, laddering, premortem) to that one rung before moving on.
39
+
40
+ ## Calibration — how hard to grill
41
+
42
+ | Demand class | Depth |
43
+ |---|---|
44
+ | **Quick Dev** (bug fix, copy edit, dep bump) | Don't grill. One clarifying question max — grilling a typo fix is theater. |
45
+ | **Full Lifecycle, incremental** (new story in a known epic) | Short pass: rungs 4, 5, 7 only — the upstream rungs live in the PRD. |
46
+ | **Full Lifecycle, new value** (new feature, new product, new plan) | Full ladder. |
47
+
48
+ Momentum shortcut: after **three consecutive "as you recommend"** answers, switch to batch mode — state the remaining recommendations as one list and ask for a single confirmation. Respect the user's time; the point is clarity, not ceremony.
49
+
50
+ ## Where answers land
51
+
52
+ Grill produces no separate file. Route each decision to its home:
53
+
54
+ - **Decisions** → the target artifact's fields (brief sections, PRD scope/ACs, story restrictions/validation contract) — in the artifact's own words, not chat quotes.
55
+ - **Unresolved questions** → the artifact's *Open questions*, each with owner + priority (`blocker` / `important` / `nice-to-know`).
56
+ - **Load-bearing trade-offs** → the artifact's decision log (or `DECISIONS.md` / an ADR when architectural).
57
+
58
+ ## Stop conditions
59
+
60
+ Stop grilling when **any** of these hits:
61
+
62
+ - Every relevant rung is resolved or explicitly parked as an open question with an owner.
63
+ - The user says "enough" / "just go" — park the rest as open questions and proceed with your recommendations, flagged as assumptions.
64
+ - The summary is confirmed — shared understanding reached.
65
+
66
+ ## Anti-patterns
67
+
68
+ - Multiple questions in one message.
69
+ - Asking a fact `grep` or `.wize/` would answer.
70
+ - A question without a recommendation ("So… what do you want?").
71
+ - Grilling a Quick Dev demand.
72
+ - Re-opening a confirmed decision without new information.
73
+ - Continuing to interrogate after confirmation — grill is a phase, not a personality.
74
+
75
+ ## Hand-off
76
+
77
+ > Shared understanding confirmed: {n} decisions captured, {m} open questions parked with owners. Handing back to {persona} / `{workflow}` to draft the {artifact}.
@@ -0,0 +1,119 @@
1
+ ---
2
+
3
+ code: wize-index-docs
4
+ description: "Use quando precisar reconstruir o índice da base de conhecimento (.wize/knowledge/index.md) a partir da árvore real de artefatos."
5
+ name: Index Docs
6
+ module: core
7
+ status: ready
8
+ ---
9
+
10
+ # Index Docs
11
+
12
+ **Goal.** Rebuild `.wize/knowledge/index.md` from the actual tree. One file that lists every artifact with a one-line description and a relative link. New devs read this file first.
13
+
14
+ Wizer drives. Peggy polishes the one-line descriptions on the second pass.
15
+
16
+ ## When to run
17
+
18
+ - After any major artifact is created or moved.
19
+ - Before sprint planning (to confirm what exists).
20
+ - When onboarding a new team member.
21
+
22
+ ## When NOT to run
23
+
24
+ - Inside an IDE target folder (`.claude/`, `.cursor/`, etc.) — out of scope.
25
+ - As a CI step on every commit (too noisy; manual).
26
+
27
+ ## Inputs
28
+
29
+ - The `.wize/` tree (read-only scan).
30
+ - A user message: "Rebuild the index" or similar.
31
+
32
+ ## Output
33
+
34
+ - `.wize/knowledge/index.md` with sections: Planning, Solutioning, Implementation, Knowledge, Custom.
35
+
36
+ ## Steps
37
+
38
+ ### 1. Scan
39
+
40
+ Walk `.wize/` recursively. Skip hidden directories (`.DS_Store` etc.). For each file:
41
+
42
+ - Read its YAML frontmatter.
43
+ - If `description` is present, use it.
44
+ - Else use the first `# Heading` line.
45
+ - Else use the file name (kebab-case to title case).
46
+
47
+ ### 2. Group
48
+
49
+ Sort into 5 sections by file path:
50
+
51
+ | Section | Path prefix |
52
+ |---|---|
53
+ | Planning | `.wize/planning/` |
54
+ | Solutioning | `.wize/solutioning/` |
55
+ | Implementation | `.wize/implementation/` |
56
+ | Knowledge | `.wize/knowledge/` (excluding the index file itself) |
57
+ | Custom | `.wize/custom/` |
58
+
59
+ ### 3. Write
60
+
61
+ Generate `.wize/knowledge/index.md` with:
62
+
63
+ - YAML frontmatter (`generated`, `last_updated`, `total_files`).
64
+ - One H2 per section.
65
+ - One bullet per file: `- [{title}]({relative_path}) — {one-line description}`.
66
+ - A footer with the total file count and the timestamp.
67
+
68
+ If a section is empty, omit the heading.
69
+
70
+ ### 4. Hand off
71
+
72
+ Output is the index file. The user can review and adjust manually if the one-liners are stale. Re-run to overwrite.
73
+
74
+ ## Output template
75
+
76
+ ```markdown
77
+ ---
78
+ generated: 2026-06-17
79
+ last_updated: 2026-06-17
80
+ total_files: 24
81
+ ---
82
+
83
+ # Wize artifacts index
84
+
85
+ ## Planning (5)
86
+ - [Brief — site-qwize](planning/brief.md) — Pepper's one-pager for the site.
87
+ - [PRD — site-qwize](planning/prd.md) — Maria Hill's PRD for v1.
88
+ - [Trigger map](planning/trigger-map.md) — WDS user-psychology map.
89
+ - [UX scenarios](planning/ux/ux-scenarios.md) — Mantis's 8-question dialog.
90
+ - [Tech vision](planning/tech-vision.md) — Fury's stack pick.
91
+
92
+ ## Solutioning (4)
93
+ - [Architecture](solutioning/architecture.md) — Tony's 8-step architecture.
94
+ - [ADR-001](solutioning/adrs/ADR-001-...) — ...
95
+ ...
96
+
97
+ ## Implementation (8)
98
+ - [Sprint 1 status](implementation/sprint-status.md) — closed.
99
+ - [Risk profile](implementation/tea/risk-profile.md) — 13 risks mitigated.
100
+ ...
101
+
102
+ ## Knowledge (6)
103
+ - [Document project overview](knowledge/document-project/overview.md) — ...
104
+ ...
105
+
106
+ ## Custom (1)
107
+ - [Agent: runbooks](custom/agents/wize-agent-runbooks/agent.yaml) — ...
108
+ ```
109
+
110
+ ## Anti-patterns Wizer rejects
111
+
112
+ - Including IDE target folders (`.claude/`, `.cursor/`, `.kimi/`, etc.) in the index.
113
+ - Dumping file contents (just the description + link).
114
+ - Auto-running on every commit (manual or scheduled only).
115
+ - Mixing in files outside `.wize/`.
116
+
117
+ ## Hand-off
118
+
119
+ > "Index rebuilt at `.wize/knowledge/index.md`. {N} files indexed across 5 sections. Next: `/wize` (or `/wize-help`) reads this file when answering."
@@ -0,0 +1,134 @@
1
+ ---
2
+ code: wize-pre-pr-check
3
+ name: wize-pre-pr-check
4
+ module: core
5
+ description: "Quando for abrir um Pull Request ou PR leia"
6
+ ---
7
+
8
+ # Pre-PR Check
9
+
10
+ **Goal.** Rodar os checks obrigatórios localmente antes de abrir um PR, falhando cedo e rápido. Evita ciclagem cara de CI no Actions — principalmente lint, format, build e testes rápidos. O objetivo é ser um portão (gate) antes de submeter código.
11
+
12
+ **Agnóstica de tecnologia.** Não prescreve ferramentas específicas; lê os comandos disponíveis no repositório e executa o que for aplicável.
13
+
14
+ ## When to run
15
+
16
+ - Imediatamente antes de `git push` para uma branch de PR.
17
+ - Antes de abrir o PR no GitHub/GitLab.
18
+ - Após `git commit` na branch de feature, como sanity check.
19
+ - A qualquer momento durante o desenvolvimento — fail fast.
20
+
21
+ ## When NOT to run
22
+
23
+ - Quando o CI já está verde e o PR está em revisão (o gate já passou).
24
+ - Quando o repositório não tem scripts/ferramentas de lint/test configurados.
25
+
26
+ ## Operating contract
27
+
28
+ - **Leia o projeto antes de rodar.** Procura por `package.json`, `composer.json`, `Makefile`, `justfile`, `pyproject.toml`, `Cargo.toml`, etc. para descobrir os comandos de check existentes.
29
+ - **Só execute o que existir.** Se não houver `eslint`, pule o passo de lint. Se não houver `phpstan`, pule o passo de análise estática. Nunca exija uma ferramenta que não esteja configurada no repo.
30
+ - **Pare no primeiro erro.** A menos que o usuário peça `--continue`, um check que falha interrompe a cadeia — corrija antes de continuar.
31
+ - **Não seja um substituto completo do CI.** O CI continua sendo a fonte da verdade para testes de integração, e2e, banco de dados, Docker, etc. Este gate é para checks rápidos e baratos.
32
+ - **Custo zero no Actions.** Tudo roda localmente.
33
+
34
+ ## Inputs
35
+
36
+ - Estado atual do working tree (staged + unstaged).
37
+ - Arquivos de config do projeto para descobrir comandos.
38
+
39
+ ## Outputs
40
+
41
+ - Relatório compacto de quais checks passaram/falharam.
42
+ - Se falhou: mensagem de erro + arquivo(s) sugerido(s) para corrigir.
43
+ - Se passou: confirmação pronta para PR.
44
+
45
+ ## Steps
46
+
47
+ ### 1. Detectar stack
48
+
49
+ Procurar nos arquivos de config do projeto quais ferramentas estão disponíveis:
50
+
51
+ | Fonte | O que extrair |
52
+ |-------|---------------|
53
+ | `package.json` → `scripts` | `lint`, `format`, `format:check`, `type-check`, `build`, `test`, `test:unit` |
54
+ | `composer.json` → `scripts` | `test`, `phpstan`, `pint`, `phpcs` |
55
+ | `Makefile` / `justfile` | targets `lint`, `format`, `check`, `test` |
56
+ | `pyproject.toml` / `setup.cfg` | `flake8`, `black`, `mypy`, `pytest` |
57
+ | `Cargo.toml` | `cargo check`, `cargo test`, `cargo clippy`, `cargo fmt` |
58
+ | `.github/workflows/*.yml` | steps de `lint`, `format`, `build`, `test` (como referência, não para rodar) |
59
+
60
+ Heurística de prioridade: scripts do gerenciador de pacote local (`npm run`, `composer run`) > binários diretos (`vendor/bin/pint`) > comandos genéricos (`cargo clippy`).
61
+
62
+ ### 2. Selecionar checks por velocidade
63
+
64
+ Separar em **rápido** (executa em segundos) e **lento** (minutos):
65
+
66
+ **Rápido (executar sempre):**
67
+ - Lint (ESLint, PHPStan, Clippy, Ruff, etc.)
68
+ - Format check (Prettier, Pint, Black, rustfmt)
69
+ - Type check (tsc, mypy)
70
+ - Análise estática (PHPStan, Psalm)
71
+
72
+ **Lento (executar quando houver mudanças relevantes):**
73
+ - Build (Vite, Webpack, Cargo build)
74
+ - Testes unitários (Vitest, Jest, Pest, pytest, `cargo test`)
75
+ - Guard-rails custom (scripts próprios do projeto, ex: `check:orphans`)
76
+
77
+ **Muito lento (opcional / em dia de merge):**
78
+ - Testes de integração
79
+ - E2E (Playwright, Cypress)
80
+ - Build de Docker
81
+
82
+ ### 3. Rodar o gate
83
+
84
+ Na ordem: format → lint → type-check → build → testes unitários → guard-rails.
85
+
86
+ Comandos típicos por stack (detectados em tempo real, não hardcoded):
87
+
88
+ | Stack | Comandos comuns |
89
+ |-------|-----------------|
90
+ | Node/JS/TS | `npm run format:check`, `npm run lint`, `npm run check:type` (ou `tsc --noEmit`), `npm run build`, `npm run test` |
91
+ | PHP/Laravel | `vendor/bin/pint --test`, `vendor/bin/phpstan analyse`, `php artisan test` |
92
+ | Python | `black --check`, `ruff check`, `mypy`, `pytest` |
93
+ | Rust | `cargo fmt -- --check`, `cargo clippy`, `cargo check`, `cargo test` |
94
+ | Go | `gofmt -l`, `golangci-lint run`, `go test ./...` |
95
+
96
+ Se um check falhar, pare e reporte. Não prossiga para o próximo.
97
+
98
+ ### 4. Reportar
99
+
100
+ Formato compacto, uma linha por check:
101
+
102
+ ```
103
+ ✓ format:check (npm run format:check) — 0.8s
104
+ ✓ lint (vendor/bin/pint --test) — 2.1s
105
+ ✗ phpstan (vendor/bin/phpstan) — 4.5s → FAIL
106
+ app/Http/Controllers/LegalController.php:11 — FQCN não importado
107
+ → Corrija antes de abrir o PR.
108
+ ```
109
+
110
+ Se tudo passar:
111
+
112
+ ```
113
+ ✓ format:check — PASS (0.8s)
114
+ ✓ lint — PASS (2.1s)
115
+ ✓ phpstan — PASS (4.5s)
116
+ ✓ build — PASS (32s)
117
+ ✓ test:unit — PASS (30s)
118
+ ─────────────────────────────
119
+ Gate limpo. Pode abrir o PR.
120
+ ```
121
+
122
+ ## Anti-patterns
123
+
124
+ - **Rodar checks que não existem no repo.** Se não há `composer.json`, não tente `vendor/bin/pint`.
125
+ - **Ignorar falhas de lint.** Lint fail = PR fail. Corrija antes.
126
+ - **Executar E2E localmente toda vez.** E2E é caro; deixe para o CI ou rode antes de merge.
127
+ - **Substituir o CI.** Este gate é complementar, não substituto.
128
+
129
+ ## Hand-off
130
+
131
+ > Gate `wize-pre-pr-check` concluído. `{passados}/{total}` checks passaram. `{tempo_total}s`. Pronto para PR.
132
+
133
+ Se houve falha:
134
+ > Gate `wize-pre-pr-check` interrompido em `{check_falho}`. Corrija e re-execute antes de abrir o PR.
@@ -1,8 +1,11 @@
1
1
  ---
2
+
2
3
  code: wize-review-adversarial
4
+ description: "Use quando um artefato (story, arquitetura, PRD) precisar de revisão adversarial — testar a ideia sob quatro personas hostis."
3
5
  name: Adversarial Review
4
6
  module: core
5
7
  status: stub
8
+ subtask: true
6
9
  ---
7
10
 
8
11
  # Adversarial Review