@onion-architect-ai/cli 4.1.0-beta.1 → 4.1.0-beta.2

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 (207) hide show
  1. package/dist/cli.js +8 -7
  2. package/dist/cli.js.map +1 -1
  3. package/package.json +4 -3
  4. package/templates/.cursor/agents/compliance/iso-22301-specialist.md +917 -0
  5. package/templates/.cursor/agents/compliance/iso-27001-specialist.md +641 -0
  6. package/templates/.cursor/agents/compliance/pmbok-specialist.md +669 -0
  7. package/templates/.cursor/agents/compliance/security-information-master.md +824 -0
  8. package/templates/.cursor/agents/compliance/soc2-specialist.md +818 -0
  9. package/templates/.cursor/agents/deployment/docker-specialist.md +1192 -0
  10. package/templates/.cursor/agents/meta/agent-creator-specialist.md +1135 -0
  11. package/templates/.cursor/agents/meta/command-creator-specialist.md +1519 -0
  12. package/templates/.cursor/agents/meta/metaspec-gate-keeper.md +240 -0
  13. package/templates/.cursor/agents/meta/onion.md +753 -0
  14. package/templates/.cursor/agents/research/research-agent.md +292 -0
  15. package/templates/.cursor/agents/review/corporate-compliance-specialist.md +370 -0
  16. package/templates/.cursor/commands/common/prompts/README.md +187 -0
  17. package/templates/.cursor/commands/common/prompts/clickup-patterns.md +144 -0
  18. package/templates/.cursor/commands/common/prompts/code-review-checklist.md +168 -0
  19. package/templates/.cursor/commands/common/prompts/git-workflow-patterns.md +235 -0
  20. package/templates/.cursor/commands/common/prompts/output-formats.md +240 -0
  21. package/templates/.cursor/commands/common/prompts/technical.md +172 -0
  22. package/templates/.cursor/commands/common/prompts/validation-rules.md +173 -0
  23. package/templates/.cursor/commands/common/templates/abstraction-template.md +400 -0
  24. package/templates/.cursor/commands/common/templates/agent-template.md +353 -0
  25. package/templates/.cursor/commands/common/templates/business_context_template.md +748 -0
  26. package/templates/.cursor/commands/common/templates/command-template.md +273 -0
  27. package/templates/.cursor/commands/common/templates/technical_context_template.md +526 -0
  28. package/templates/.cursor/commands/development/runflow-dev.md +465 -0
  29. package/templates/.cursor/commands/docs/build-compliance-docs.md +143 -0
  30. package/templates/.cursor/commands/git/README.md +606 -0
  31. package/templates/.cursor/commands/meta/all-tools.md +50 -0
  32. package/templates/.cursor/commands/meta/analyze-complex-problem.md +186 -0
  33. package/templates/.cursor/commands/meta/create-abstraction.md +859 -0
  34. package/templates/.cursor/commands/meta/create-agent-express.md +83 -0
  35. package/templates/.cursor/commands/meta/create-agent.md +210 -0
  36. package/templates/.cursor/commands/meta/create-command.md +203 -0
  37. package/templates/.cursor/commands/meta/create-knowledge-base.md +143 -0
  38. package/templates/.cursor/commands/meta/create-task-structure.md +150 -0
  39. package/templates/.cursor/commands/meta/setup-integration.md +257 -0
  40. package/templates/.cursor/commands/onion/setup.md +843 -0
  41. package/templates/.cursor/commands/onion.md +168 -0
  42. package/templates/.cursor/commands/product/README.md +230 -0
  43. package/templates/.cursor/commands/quick/analisys.md +17 -0
  44. package/templates/.cursor/commands/validate/collab/pair-testing.md +633 -0
  45. package/templates/.cursor/commands/validate/collab/three-amigos.md +505 -0
  46. package/templates/.cursor/commands/validate/qa-points/estimate.md +660 -0
  47. package/templates/.cursor/commands/validate/test-strategy/analyze.md +1134 -0
  48. package/templates/.cursor/commands/validate/test-strategy/create.md +392 -0
  49. package/templates/.cursor/commands/validate/workflow.md +360 -0
  50. package/templates/.cursor/commands/warm-up.md +91 -0
  51. package/templates/.cursor/docs/architecture/acoplamento-clickup-problema-analise.md +446 -0
  52. package/templates/.cursor/docs/architecture/desacoplamento-roadmap.md +360 -0
  53. package/templates/.cursor/docs/architecture/validacao-fase-1.md +219 -0
  54. package/templates/.cursor/docs/c4/c4-detection-rules.md +395 -0
  55. package/templates/.cursor/docs/c4/c4-documentation-templates.md +579 -0
  56. package/templates/.cursor/docs/c4/c4-mermaid-patterns.md +331 -0
  57. package/templates/.cursor/docs/c4/c4-templates.md +256 -0
  58. package/templates/.cursor/docs/clickup/clickup-acceptance-criteria-strategy.md +329 -0
  59. package/templates/.cursor/docs/clickup/clickup-auto-update-strategy.md +318 -0
  60. package/templates/.cursor/docs/clickup/clickup-comment-formatter.md +239 -0
  61. package/templates/.cursor/docs/clickup/clickup-description-fix.md +355 -0
  62. package/templates/.cursor/docs/clickup/clickup-dual-comment-strategy.md +505 -0
  63. package/templates/.cursor/docs/clickup/clickup-formatting.md +302 -0
  64. package/templates/.cursor/docs/clickup/separador-tamanho-otimizado.md +256 -0
  65. package/templates/.cursor/docs/engineer/pre-pr-acceptance-validation.md +256 -0
  66. package/templates/.cursor/docs/onion/ESPERANTO.md +278 -0
  67. package/templates/.cursor/docs/onion/agents-reference.md +832 -0
  68. package/templates/.cursor/docs/onion/clickup-integration.md +738 -0
  69. package/templates/.cursor/docs/onion/commands-guide.md +807 -0
  70. package/templates/.cursor/docs/onion/engineering-flows.md +865 -0
  71. package/templates/.cursor/docs/onion/getting-started.md +741 -0
  72. package/templates/.cursor/docs/onion/maintenance-checklist.md +388 -0
  73. package/templates/.cursor/docs/onion/naming-conventions.md +268 -0
  74. package/templates/.cursor/docs/onion/practical-examples.md +782 -0
  75. package/templates/.cursor/docs/product/story-points-integration.md +254 -0
  76. package/templates/.cursor/docs/product/story-points-validation.md +224 -0
  77. package/templates/.cursor/docs/reviews/task-manager-docs-review-2025-11-24.md +167 -0
  78. package/templates/.cursor/docs/strategies/clickup-comment-patterns.md +766 -0
  79. package/templates/.cursor/docs/strategies/clickup-integration-tests.md +599 -0
  80. package/templates/.cursor/docs/strategies/clickup-mcp-wrappers-tests.md +854 -0
  81. package/templates/.cursor/docs/strategies/clickup-regression-tests.md +589 -0
  82. package/templates/.cursor/docs/strategies/visual-patterns.md +308 -0
  83. package/templates/.cursor/docs/templates/README.md +624 -0
  84. package/templates/.cursor/docs/templates/adr-template.md +226 -0
  85. package/templates/.cursor/docs/templates/analysis-template.md +280 -0
  86. package/templates/.cursor/docs/templates/execution-plan-template.md +430 -0
  87. package/templates/.cursor/docs/templates/guide-template.md +367 -0
  88. package/templates/.cursor/docs/templates/phase-execution-prompt-template.md +504 -0
  89. package/templates/.cursor/docs/templates/reference-template.md +522 -0
  90. package/templates/.cursor/docs/templates/solution-template.md +390 -0
  91. package/templates/.cursor/docs/tools/README.md +325 -0
  92. package/templates/.cursor/docs/tools/agents.md +330 -0
  93. package/templates/.cursor/docs/tools/commands.md +606 -0
  94. package/templates/.cursor/docs/tools/cursor.md +498 -0
  95. package/templates/.cursor/docs/tools/mcps.md +858 -0
  96. package/templates/.cursor/docs/tools/rules.md +423 -0
  97. package/templates/.cursor/rules/language-and-documentation.mdc +371 -0
  98. package/templates/.cursor/rules/onion-patterns.mdc +197 -0
  99. package/templates/.cursor/rules/validation-rules.mdc +194 -0
  100. package/templates/.cursor/utils/clickup-mcp-wrappers.md +671 -0
  101. package/templates/.cursor/utils/date-time-standards.md +182 -0
  102. package/templates/.cursor/utils/task-manager/README.md +94 -0
  103. package/templates/.cursor/utils/task-manager/adapters/asana.md +377 -0
  104. package/templates/.cursor/utils/task-manager/adapters/clickup.md +467 -0
  105. package/templates/.cursor/utils/task-manager/adapters/linear.md +421 -0
  106. package/templates/.cursor/utils/task-manager/detector.md +290 -0
  107. package/templates/.cursor/utils/task-manager/factory.md +363 -0
  108. package/templates/.cursor/utils/task-manager/interface.md +248 -0
  109. package/templates/.cursor/utils/task-manager/types.md +409 -0
  110. package/templates/.cursor/validation/product-task-validation.md +344 -0
  111. package/templates/.onion/contexts/business/.context-config.yml +52 -0
  112. package/templates/.onion/contexts/business/README.md +222 -0
  113. package/templates/.onion/contexts/business/agents/branding-specialist.md +1030 -0
  114. package/templates/.onion/contexts/business/agents/clickup-specialist.md +397 -0
  115. package/templates/.onion/contexts/business/agents/extract-meeting-specialist.md +395 -0
  116. package/templates/.onion/contexts/business/agents/gamma-specialist.md +1169 -0
  117. package/templates/.onion/contexts/business/agents/meeting-consolidator.md +483 -0
  118. package/templates/.onion/contexts/business/agents/pain-price-specialist.md +509 -0
  119. package/templates/.onion/contexts/business/agents/presentation-orchestrator.md +1191 -0
  120. package/templates/.onion/contexts/business/agents/product-agent.md +202 -0
  121. package/templates/.onion/contexts/business/agents/story-points-specialist.md +539 -0
  122. package/templates/.onion/contexts/business/agents/storytelling-specialist.md +891 -0
  123. package/templates/.onion/contexts/business/agents/task-specialist.md +618 -0
  124. package/templates/.onion/contexts/business/agents/whisper-specialist.md +373 -0
  125. package/templates/.onion/contexts/business/commands/advanced/analyze-pain-price.md +709 -0
  126. package/templates/.onion/contexts/business/commands/advanced/branding.md +460 -0
  127. package/templates/.onion/contexts/business/commands/advanced/checklist-sync.md +241 -0
  128. package/templates/.onion/contexts/business/commands/advanced/presentation.md +189 -0
  129. package/templates/.onion/contexts/business/commands/advanced/transform-consolidated.md +592 -0
  130. package/templates/.onion/contexts/business/commands/help.md +212 -0
  131. package/templates/.onion/contexts/business/commands/intermediate/check.md +48 -0
  132. package/templates/.onion/contexts/business/commands/intermediate/collect.md +96 -0
  133. package/templates/.onion/contexts/business/commands/intermediate/consolidate-meetings.md +306 -0
  134. package/templates/.onion/contexts/business/commands/intermediate/convert-to-tasks.md +220 -0
  135. package/templates/.onion/contexts/business/commands/intermediate/extract-meeting.md +241 -0
  136. package/templates/.onion/contexts/business/commands/intermediate/feature.md +431 -0
  137. package/templates/.onion/contexts/business/commands/intermediate/light-arch.md +97 -0
  138. package/templates/.onion/contexts/business/commands/intermediate/task-check.md +340 -0
  139. package/templates/.onion/contexts/business/commands/intermediate/validate-task.md +294 -0
  140. package/templates/.onion/contexts/business/commands/intermediate/whisper.md +325 -0
  141. package/templates/.onion/contexts/business/commands/starter/estimate.md +519 -0
  142. package/templates/.onion/contexts/business/commands/starter/refine.md +186 -0
  143. package/templates/.onion/contexts/business/commands/starter/spec.md +107 -0
  144. package/templates/.onion/contexts/business/commands/starter/task.md +585 -0
  145. package/templates/.onion/contexts/business/commands/starter/warm-up.md +187 -0
  146. package/templates/.onion/contexts/technical/.context-config.yml +64 -0
  147. package/templates/.onion/contexts/technical/README.md +238 -0
  148. package/templates/.onion/contexts/technical/agents/branch-code-reviewer.md +200 -0
  149. package/templates/.onion/contexts/technical/agents/branch-doc-writer.md +162 -0
  150. package/templates/.onion/contexts/technical/agents/branch-metaspec-checker.md +68 -0
  151. package/templates/.onion/contexts/technical/agents/branch-test-planner.md +177 -0
  152. package/templates/.onion/contexts/technical/agents/c4-architecture-specialist.md +712 -0
  153. package/templates/.onion/contexts/technical/agents/c4-documentation-specialist.md +658 -0
  154. package/templates/.onion/contexts/technical/agents/code-reviewer.md +155 -0
  155. package/templates/.onion/contexts/technical/agents/cursor-specialist.md +249 -0
  156. package/templates/.onion/contexts/technical/agents/docs-reverse-engineer.md +418 -0
  157. package/templates/.onion/contexts/technical/agents/gitflow-specialist.md +1207 -0
  158. package/templates/.onion/contexts/technical/agents/linux-security-specialist.md +676 -0
  159. package/templates/.onion/contexts/technical/agents/mermaid-specialist.md +516 -0
  160. package/templates/.onion/contexts/technical/agents/nodejs-specialist.md +673 -0
  161. package/templates/.onion/contexts/technical/agents/nx-migration-specialist.md +867 -0
  162. package/templates/.onion/contexts/technical/agents/nx-monorepo-specialist.md +619 -0
  163. package/templates/.onion/contexts/technical/agents/postgres-specialist.md +1124 -0
  164. package/templates/.onion/contexts/technical/agents/react-developer.md +132 -0
  165. package/templates/.onion/contexts/technical/agents/runflow-specialist.md +278 -0
  166. package/templates/.onion/contexts/technical/agents/system-doc-orchestrator.md +1388 -0
  167. package/templates/.onion/contexts/technical/agents/test-agent.md +425 -0
  168. package/templates/.onion/contexts/technical/agents/test-engineer.md +295 -0
  169. package/templates/.onion/contexts/technical/agents/test-planner.md +118 -0
  170. package/templates/.onion/contexts/technical/agents/zen-engine-specialist.md +421 -0
  171. package/templates/.onion/contexts/technical/commands/advanced/bump.md +43 -0
  172. package/templates/.onion/contexts/technical/commands/advanced/consolidate-documents.md +424 -0
  173. package/templates/.onion/contexts/technical/commands/advanced/e2e.md +392 -0
  174. package/templates/.onion/contexts/technical/commands/advanced/feature-finish.md +90 -0
  175. package/templates/.onion/contexts/technical/commands/advanced/feature-publish.md +91 -0
  176. package/templates/.onion/contexts/technical/commands/advanced/feature-start.md +158 -0
  177. package/templates/.onion/contexts/technical/commands/advanced/hotfix-finish.md +98 -0
  178. package/templates/.onion/contexts/technical/commands/advanced/hotfix-start.md +94 -0
  179. package/templates/.onion/contexts/technical/commands/advanced/hotfix.md +186 -0
  180. package/templates/.onion/contexts/technical/commands/advanced/refine-vision.md +27 -0
  181. package/templates/.onion/contexts/technical/commands/advanced/release-finish.md +98 -0
  182. package/templates/.onion/contexts/technical/commands/advanced/release-start.md +95 -0
  183. package/templates/.onion/contexts/technical/commands/advanced/reverse-consolidate.md +160 -0
  184. package/templates/.onion/contexts/technical/commands/advanced/validate-phase-sync.md +118 -0
  185. package/templates/.onion/contexts/technical/commands/help.md +329 -0
  186. package/templates/.onion/contexts/technical/commands/intermediate/build-business-docs.md +276 -0
  187. package/templates/.onion/contexts/technical/commands/intermediate/build-index.md +128 -0
  188. package/templates/.onion/contexts/technical/commands/intermediate/build-tech-docs.md +204 -0
  189. package/templates/.onion/contexts/technical/commands/intermediate/code-review.md +215 -0
  190. package/templates/.onion/contexts/technical/commands/intermediate/docs-health.md +142 -0
  191. package/templates/.onion/contexts/technical/commands/intermediate/fast-commit.md +45 -0
  192. package/templates/.onion/contexts/technical/commands/intermediate/integration.md +523 -0
  193. package/templates/.onion/contexts/technical/commands/intermediate/pr-update.md +198 -0
  194. package/templates/.onion/contexts/technical/commands/intermediate/pre-pr.md +91 -0
  195. package/templates/.onion/contexts/technical/commands/intermediate/start.md +266 -0
  196. package/templates/.onion/contexts/technical/commands/intermediate/sync-sessions.md +320 -0
  197. package/templates/.onion/contexts/technical/commands/intermediate/unit.md +378 -0
  198. package/templates/.onion/contexts/technical/commands/intermediate/validate-docs.md +159 -0
  199. package/templates/.onion/contexts/technical/commands/starter/docs.md +39 -0
  200. package/templates/.onion/contexts/technical/commands/starter/help.md +306 -0
  201. package/templates/.onion/contexts/technical/commands/starter/init.md +139 -0
  202. package/templates/.onion/contexts/technical/commands/starter/plan.md +111 -0
  203. package/templates/.onion/contexts/technical/commands/starter/pr.md +136 -0
  204. package/templates/.onion/contexts/technical/commands/starter/sync.md +228 -0
  205. package/templates/.onion/contexts/technical/commands/starter/warm-up.md +173 -0
  206. package/templates/.onion/contexts/technical/commands/starter/work.md +169 -0
  207. package/templates/.onion/core/commands/help.md +388 -0
@@ -0,0 +1,392 @@
1
+ ---
2
+ name: test-strategy-create
3
+ description: |
4
+ Cria estratégias completas de teste baseadas no Framework de Testes.
5
+ Use para gerar estratégias multi-perspectiva (White-box, Grey-box, Black-box) com cálculo automático de QA Story Points.
6
+ model: sonnet
7
+
8
+ parameters:
9
+ - name: feature-name
10
+ description: Nome da funcionalidade a ser testada
11
+ required: true
12
+ - name: risk-level
13
+ description: Nível de risco (baixo|médio|alto|crítico). Default: médio
14
+ required: false
15
+ - name: complexity
16
+ description: Complexidade (simples|médio|complexo|épico). Default: médio
17
+ required: false
18
+ - name: task-manager
19
+ description: Provedor do task manager (clickup|asana|linear). Usa TASK_MANAGER_PROVIDER se não fornecido
20
+ required: false
21
+ - name: project-id
22
+ description: ID do projeto no task manager
23
+ required: false
24
+ - name: dry-run
25
+ description: Executa sem criar tasks reais
26
+ required: false
27
+
28
+ category: validate
29
+ tags:
30
+ - testing
31
+ - qa
32
+ - strategy
33
+ - test-planning
34
+ - story-points
35
+
36
+ version: "3.0.0"
37
+ updated: "2025-12-03"
38
+
39
+ related_commands:
40
+ - /product/task
41
+ - /product/estimate
42
+ - /engineer/start
43
+
44
+ related_agents:
45
+ - test-engineer
46
+ - test-planner
47
+ ---
48
+
49
+ # 🧪 Criação de Estratégia de Teste
50
+
51
+ Cria estratégias completas de teste baseadas no Framework de Testes (`docs/knowbase/frameworks/framework_testes.md`), gerando automaticamente estratégias multi-perspectiva com cálculo de QA Story Points.
52
+
53
+ ## 🎯 Objetivo
54
+
55
+ Democratizar o uso do framework de testes, automatizando a criação de estratégias completas que incluem:
56
+ - Cálculo automático de QA Story Points
57
+ - Estratégias multi-perspectiva (White-box, Grey-box, Black-box)
58
+ - Integração com task managers para criação de épicos e subtasks estruturadas
59
+ - Relatórios detalhados em markdown
60
+
61
+ ## ⚡ Fluxo de Execução
62
+
63
+ ### Passo 1: Carregar Framework de Testes (OBRIGATÓRIO)
64
+
65
+ **CRÍTICO:** Sempre ler o framework antes de qualquer processamento:
66
+
67
+ ```bash
68
+ # Ler framework completo
69
+ read_file docs/knowbase/frameworks/framework_testes.md
70
+ ```
71
+
72
+ **Extrair e armazenar em memória:**
73
+ - Seção "QA Story Points - Sistema de Estimativa" (linhas ~217-330)
74
+ - Seção "Diferenças entre White-box vs Black-box vs Grey-box" (linhas ~111-165)
75
+ - Seção "Técnicas Específicas por Tipo" (linhas ~464-594)
76
+ - Seção "Métricas de Qualidade" (linhas ~598-649)
77
+ - Seção "Template Universal de Caso de Teste" (linhas ~171-213)
78
+
79
+ **Validar leitura:**
80
+ ```markdown
81
+ SE arquivo não encontrado:
82
+ ❌ ERRO: Framework de testes não encontrado em docs/knowbase/frameworks/framework_testes.md
83
+ 💡 Verifique se o arquivo existe e tente novamente
84
+ ```
85
+
86
+ ### Passo 2: Validar e Normalizar Parâmetros
87
+
88
+ ```markdown
89
+ **Parâmetros recebidos:**
90
+ - feature-name: {{feature-name}} ✅ obrigatório
91
+ - risk-level: {{risk-level}} ou "médio" (default)
92
+ - complexity: {{complexity}} ou "médio" (default)
93
+ - task-manager: {{task-manager}} ou detectar do .env
94
+ - project-id: {{project-id}} ou null
95
+ - dry-run: {{dry-run}} ou false
96
+
97
+ **Normalização:**
98
+ - risk-level: converter para minúsculas, validar (baixo|médio|alto|crítico)
99
+ - complexity: converter para minúsculas, validar (simples|médio|complexo|épico)
100
+ - Se valores inválidos: usar defaults e avisar
101
+ ```
102
+
103
+ **Validações:**
104
+ ```markdown
105
+ SE risk-level não está em [baixo, médio, alto, crítico]:
106
+ ⚠️ AVISO: Risk level inválido, usando "médio"
107
+ risk-level = "médio"
108
+
109
+ SE complexity não está em [simples, médio, complexo, épico]:
110
+ ⚠️ AVISO: Complexity inválida, usando "médio"
111
+ complexity = "médio"
112
+ ```
113
+
114
+ ### Passo 3: Calcular QA Story Points
115
+
116
+ **Implementar fórmula completa do framework:**
117
+
118
+ ```markdown
119
+ **Fórmula:** QA Points = Complexidade Base + Risco + Tipo de Teste
120
+
121
+ **1. Complexidade Base:**
122
+ - simples: 1-2 pontos (usar 1.5)
123
+ - médio: 3-5 pontos (usar 4)
124
+ - complexo: 5-8 pontos (usar 6.5)
125
+ - épico: 8-13 pontos (usar 10.5)
126
+
127
+ **2. Ajuste por Risco:**
128
+ - baixo: +0-1 pontos (usar +0.5)
129
+ - médio: +1-2 pontos (usar +1.5)
130
+ - alto: +2-3 pontos (usar +2.5)
131
+ - crítico: +3-5 pontos (usar +4)
132
+
133
+ **3. Tipo de Teste (baseado em complexidade):**
134
+ - simples: +1 ponto (básico)
135
+ - médio: +2-3 pontos (usar +2.5) (padrão)
136
+ - complexo: +4-6 pontos (usar +5) (extensivo)
137
+ - épico: +4-6 pontos (usar +5) (extensivo)
138
+
139
+ **Cálculo Final:**
140
+ base = [complexidade_base]
141
+ risco = [ajuste_risco]
142
+ tipo = [tipo_teste]
143
+ total = base + risco + tipo
144
+
145
+ **Arredondar para inteiro mais próximo**
146
+ ```
147
+
148
+ **Exemplo de cálculo:**
149
+ ```markdown
150
+ Feature: checkout-flow
151
+ Complexity: complexo (6.5)
152
+ Risk: alto (+2.5)
153
+ Tipo: extensivo (+5)
154
+ Total: 6.5 + 2.5 + 5 = 14 → arredondar para 14 pontos
155
+ ```
156
+
157
+ ### Passo 4: Distribuir QA Points por Perspectiva
158
+
159
+ **Distribuir total calculado entre as 3 perspectivas:**
160
+
161
+ ```markdown
162
+ **Distribuição sugerida (baseada no framework):**
163
+
164
+ Para features simples/médias:
165
+ - White-box: 30% do total
166
+ - Grey-box: 30% do total
167
+ - Black-box: 40% do total
168
+
169
+ Para features complexas/épicas:
170
+ - White-box: 25% do total
171
+ - Grey-box: 35% do total
172
+ - Black-box: 40% do total
173
+
174
+ **Arredondar cada perspectiva para inteiro**
175
+ **Garantir que soma = total calculado**
176
+ ```
177
+
178
+ **Exemplo:**
179
+ ```markdown
180
+ Total: 14 pontos
181
+ Distribuição:
182
+ - White-box: 14 * 0.25 = 3.5 → 4 pontos
183
+ - Grey-box: 14 * 0.35 = 4.9 → 5 pontos
184
+ - Black-box: 14 * 0.40 = 5.6 → 5 pontos
185
+ Total verificado: 4 + 5 + 5 = 14 ✅
186
+ ```
187
+
188
+ ### Passo 5: Gerar Estratégia Multi-Perspectiva
189
+
190
+ **Para cada perspectiva, gerar estratégia baseada no framework:**
191
+
192
+ **White-box:** Code Coverage (>80%), Mutation Testing (>70%), TDD/BDD, Jest/PyTest/JUnit
193
+ **Grey-box:** API Contracts (100%), Integration (>95% pass rate), Fuzzing, Postman
194
+ **Black-box:** Equivalence Partitioning, Boundary Analysis, User Journeys (100% coverage), Cypress/Selenium
195
+
196
+ ### Passo 6: Detectar e Configurar Task Manager
197
+
198
+ **CRÍTICO:** Seguir padrão de `/product/task`:
199
+
200
+ ```bash
201
+ # EXECUTAR PRIMEIRO: Ler .env
202
+ read_file .env
203
+ ```
204
+
205
+ **Extrair do .env:**
206
+ - `TASK_MANAGER_PROVIDER` (clickup|asana|linear|none)
207
+ - Variáveis de API correspondentes
208
+
209
+ **Lógica:**
210
+ ```markdown
211
+ SE {{task-manager}} fornecido:
212
+ usar {{task-manager}}
213
+ SENÃO:
214
+ usar TASK_MANAGER_PROVIDER do .env
215
+ SE não encontrado: modo offline (dry-run implícito)
216
+
217
+ SE dry-run = true:
218
+ ⚠️ Modo dry-run: não criar tasks reais
219
+ Gerar apenas estrutura e relatório
220
+ ```
221
+
222
+ **Resolver project-id:**
223
+ ```markdown
224
+ SE {{project-id}} fornecido:
225
+ usar diretamente
226
+ SENÃO:
227
+ SE clickup: usar CLICKUP_DEFAULT_LIST_ID do .env
228
+ SE asana: usar ASANA_DEFAULT_PROJECT_ID do .env
229
+ SE não encontrado: perguntar ao usuário ou usar padrão
230
+ ```
231
+
232
+ ### Passo 7: Criar Estrutura de Tasks (SE não dry-run)
233
+
234
+ **Estrutura hierárquica a criar:**
235
+
236
+ ```markdown
237
+ 📋 Epic: [Feature Name] - Test Strategy ([X] QA points total)
238
+
239
+ ├── 🔬 White-box Testing ([X] QA points)
240
+ │ ├── Unit Tests Setup
241
+ │ ├── Coverage Implementation
242
+ │ └── Code Review Criteria
243
+
244
+ ├── 🔗 Grey-box Testing ([Y] QA points)
245
+ │ ├── API Contract Tests
246
+ │ ├── Integration Setup
247
+ │ └── Cross-team Validation
248
+
249
+ └── 📱 Black-box Testing ([Z] QA points)
250
+ ├── User Journey Tests
251
+ ├── Acceptance Criteria
252
+ └── Exploratory Testing
253
+ ```
254
+
255
+ **ClickUp:** Criar Epic com `mcp_ClickUp_clickup_create_task`, depois subtasks por perspectiva com parent=epic.id
256
+ **Asana:** Criar Epic com `mcp_asana_asana_create_task`, estrutura hierárquica via parent
257
+ **None/Dry-run:** Salvar estrutura local em `.cursor/sessions/test-strategies/[feature-name].md`
258
+
259
+ ### Passo 8: Gerar Relatório Detalhado
260
+
261
+ **Criar arquivo markdown com:**
262
+ - Resumo (QA Points, Effort, Risk, Complexity)
263
+ - Estratégias detalhadas por perspectiva (White/Grey/Black)
264
+ - Técnicas, métricas e ferramentas de cada perspectiva
265
+ - Task breakdown (IDs e links se criadas)
266
+ - Success metrics e critérios de aceitação
267
+ - Referências ao framework
268
+
269
+ **Salvar:** `reports/test-strategies/test-strategy-[feature-name]-[YYYYMMDD].md`
270
+
271
+ ### Passo 9: Apresentar Resultado Final
272
+
273
+ ## 📤 Output Esperado
274
+
275
+ ```
276
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
277
+ ✅ ESTRATÉGIA DE TESTE CRIADA
278
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
279
+
280
+ 🎯 Feature: {{feature-name}}
281
+ 📊 Framework Analysis:
282
+ ∟ ✓ Framework carregado: framework_testes.md
283
+ ∟ Risk Level: {{risk-level}} (+X points)
284
+ ∟ Complexity: {{complexity}} (X-Y base points)
285
+
286
+ 🧮 QA Story Points Calculation:
287
+ ∟ Base Complexity: [X] points
288
+ ∟ Risk Adjustment: +[Y] points
289
+ ∟ Test Coverage: +[Z] points
290
+ ∟ Total: [TOTAL] QA Story Points
291
+
292
+ 🎭 Multi-Perspective Strategy:
293
+ ├── 🔬 White-box ([X] points) - Unit testing focus
294
+ │ ∟ Coverage: >80%
295
+ │ ∟ Mutation Score: >70%
296
+ │ ∟ Ferramentas: Jest, PyTest, JUnit
297
+
298
+ ├── 🔗 Grey-box ([Y] points) - API integration focus
299
+ │ ∟ Integration Pass Rate: >95%
300
+ │ ∟ API Contract Coverage: 100%
301
+ │ ∟ Ferramentas: Postman, API suites
302
+
303
+ └── 📱 Black-box ([Z] points) - User journey focus
304
+ ∟ User Story Coverage: 100%
305
+ ∟ Bug Detection Rate: >85%
306
+ ∟ Ferramentas: Cypress, Selenium
307
+
308
+ 🔗 Task Manager Integration:
309
+ ∟ Provedor: [clickup/asana/none]
310
+ ∟ Epic criado: [ID] - [URL]
311
+ ∟ Subtasks criadas: [N] tasks
312
+ ∟ Story points atribuídos automaticamente
313
+
314
+ 📄 Strategy Report:
315
+ ∟ Arquivo: reports/test-strategies/test-strategy-[feature]-[date].md
316
+ ∟ Inclui: Estratégia completa + Métricas + Critérios
317
+
318
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
319
+
320
+ 🚀 Próximos Passos:
321
+ 1. Revisar estratégia gerada
322
+ 2. Ajustar pontos se necessário
323
+ 3. Iniciar implementação: /engineer/start [feature-slug]
324
+ 4. Executar testes conforme estratégia
325
+
326
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
327
+ ```
328
+
329
+ ## 📋 Exemplos de Uso
330
+
331
+ **Checkout Flow:** `/test-strategy/create "checkout-flow" alto complexo --task-manager clickup --project-id 123456`
332
+ → ~13-14 QA points, Epic no ClickUp
333
+
334
+ **User Profile (Dry-run):** `/test-strategy/create "user-profile" médio simples --dry-run`
335
+ → ~5-6 QA points, relatório local apenas
336
+
337
+ **Payment Integration:** `/test-strategy/create "payment-integration" critico complexo --task-manager asana`
338
+ → ~15-16 QA points, foco em Black-box
339
+
340
+ ## ⚠️ Validações e Regras
341
+
342
+ ### Validações Obrigatórias
343
+
344
+ 1. **Framework deve existir:**
345
+ ```markdown
346
+ SE framework_testes.md não encontrado:
347
+ ❌ ERRO: Framework não encontrado
348
+ 💡 Verifique: docs/knowbase/frameworks/framework_testes.md
349
+ ```
350
+
351
+ 2. **Feature name não vazio:**
352
+ ```markdown
353
+ SE feature-name vazio:
354
+ ❌ ERRO: Nome da funcionalidade é obrigatório
355
+ ```
356
+
357
+ 3. **Cálculo de pontos válido:**
358
+ ```markdown
359
+ SE total_points > 20:
360
+ ⚠️ ALERTA: Estratégia muito grande (>20 pontos)
361
+ 💡 Considere quebrar feature em partes menores
362
+ ```
363
+
364
+ ### Regras de Negócio
365
+
366
+ 1. **Sempre citar seções do framework** nas estratégias geradas
367
+ 2. **Distribuição de pontos** deve somar exatamente o total calculado
368
+ 3. **Tasks criadas** devem incluir story points como custom field
369
+ 4. **Relatório** deve ser salvo mesmo em dry-run mode
370
+
371
+ ## 🔗 Referências
372
+
373
+ - **Framework:** `docs/knowbase/frameworks/framework_testes.md`
374
+ - **Task Manager:** `.cursor/utils/task-manager/`
375
+ - **Comandos relacionados:** `/product/task`, `/product/estimate`
376
+ - **Agentes relacionados:** @test-engineer, @test-planner
377
+
378
+ ## ⚠️ Notas Importantes
379
+
380
+ - **Framework é obrigatório:** Comando falha se `framework_testes.md` não existir
381
+ - **Cálculo preciso:** QA Story Points seguem fórmula exata do framework
382
+ - **Multi-perspectiva:** Sempre gera estratégias para todas as 3 perspectivas
383
+ - **Dry-run útil:** Use `--dry-run` para validar antes de criar tasks
384
+ - **Citações obrigatórias:** Estratégias devem referenciar seções específicas do framework
385
+ - **Integração opcional:** Funciona sem task manager (modo offline)
386
+
387
+ ---
388
+
389
+ **Versão:** 3.0.0
390
+ **Última atualização:** 2025-12-03
391
+ **Mantido por:** Sistema Onion
392
+