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

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 -19
  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,254 @@
1
+ # 📊 Integração Automática de Story Points
2
+
3
+ Documentação da integração automática de estimativas de story points nos comandos do Sistema Onion.
4
+
5
+ ## 🎯 Objetivo
6
+
7
+ Automaticamente calcular e atualizar story points em todas as tarefas criadas ou modificadas pelos comandos do Sistema Onion, garantindo:
8
+ - Estimativas precisas baseadas no Framework de Story Points
9
+ - Rastreabilidade de mudanças (histórico)
10
+ - Consistência entre task principal e subtasks
11
+ - Alertas para épicos (>13 pontos)
12
+
13
+ ## 🔄 Comandos Integrados
14
+
15
+ ### ✅ `/product/task`
16
+ **Quando:** Ao criar task com decomposição hierárquica
17
+
18
+ **Ações:**
19
+ 1. Estima story points para **task principal** após decomposição
20
+ 2. Estima story points para **cada subtask** individualmente
21
+ 3. Valida consistência (soma subtasks vs task principal)
22
+ 4. Alerta se task > 13 pontos (épico)
23
+ 5. Insere estimativas em custom fields e descrições
24
+ 6. Adiciona comentário com análise completa
25
+
26
+ **Output:**
27
+ ```
28
+ 🎲 STORY POINTS:
29
+ ∟ Task Principal: [X] pontos
30
+ ∟ Subtasks: [Y] pontos ([N] subtasks)
31
+ ∟ Total: [Z] pontos
32
+ ```
33
+
34
+ ### ✅ `/product/collect`
35
+ **Quando:** Ao coletar nova ideia/feature/bug
36
+
37
+ **Ações:**
38
+ 1. Estima story points após criar task
39
+ 2. Atualiza custom field "Story Points"
40
+ 3. Adiciona comentário com análise inicial
41
+ 4. Alerta se > 13 pontos (pode precisar refinement)
42
+
43
+ **Nota:** Estimativa inicial pode ser refinada posteriormente.
44
+
45
+ ### ✅ `/product/refine`
46
+ **Quando:** Ao refinar requisitos de uma task existente
47
+
48
+ **Ações:**
49
+ 1. **Lê estimativa anterior** (custom field + comentários)
50
+ 2. **Recalcula** story points com requisitos refinados
51
+ 3. **Compara** estimativa anterior vs nova
52
+ 4. **Documenta histórico** de mudanças
53
+ 5. **Atualiza** custom field com nova estimativa
54
+ 6. **Adiciona comentário** com:
55
+ - Estimativa anterior
56
+ - Nova estimativa
57
+ - Delta (mudança)
58
+ - Motivo da mudança
59
+ - Análise atualizada
60
+
61
+ **Template de Histórico:**
62
+ ```
63
+ 📊 HISTÓRICO DE ESTIMATIVAS:
64
+ | Data | Estimativa | Mudança | Motivo |
65
+ |------|------------|---------|--------|
66
+ | [data inicial] | [X] pontos | - | Criação inicial |
67
+ | [data refinamento] | [Y] pontos | [+/-Z] | Refinamento de requisitos |
68
+ ```
69
+
70
+ ### ✅ `/product/feature`
71
+ **Quando:** Ao criar feature de backlog
72
+
73
+ **Ações:**
74
+ 1. Estima story points após criar task
75
+ 2. Atualiza custom field "Story Points"
76
+ 3. Adiciona comentário com estimativa inicial
77
+ 4. Nota que estimativa pode ser refinada
78
+
79
+ **Nota:** Features de backlog têm estimativas iniciais para planejamento.
80
+
81
+ ## 🔧 Agente Utilizado
82
+
83
+ **@story-points-framework-specialist**
84
+
85
+ Este agente é invocado automaticamente pelos comandos para:
86
+ - Análise de domínio (técnico/negócio/infra/integração)
87
+ - Seleção metodológica (Planning Poker / T-Shirt / Decomposição)
88
+ - Aplicação de checklists (3/5/8/13 pontos)
89
+ - Contextualização por senioridade
90
+ - Detecção de épicos
91
+
92
+ **Base de Conhecimento:**
93
+ - `docs/knowbase/frameworks/framework_story_points.md`
94
+
95
+ ## 📋 Fluxo de Estimativa
96
+
97
+ ### 1. Criação de Task (`/product/task`)
98
+
99
+ ```
100
+ 1. Decompor hierarquicamente (task → subtasks → action items)
101
+ 2. Estimar task principal
102
+ └─ @story-points-framework-specialist
103
+ 3. Estimar cada subtask
104
+ └─ @story-points-framework-specialist (para cada)
105
+ 4. Validar consistência
106
+ └─ Se soma(subtasks) > principal: ajustar
107
+ └─ Se principal > 13: alertar épico
108
+ 5. Criar task com estimativas
109
+ └─ Custom field "Story Points"
110
+ └─ Descrição com análise
111
+ └─ Comentário inicial
112
+ ```
113
+
114
+ ### 2. Refinamento (`/product/refine`)
115
+
116
+ ```
117
+ 1. Ler estimativa anterior
118
+ └─ Custom field atual
119
+ └─ Comentários anteriores
120
+ 2. Recalcular com requisitos refinados
121
+ └─ @story-points-framework-specialist
122
+ 3. Comparar e documentar
123
+ └─ Calcular delta
124
+ └─ Identificar mudanças que afetaram
125
+ 4. Atualizar task
126
+ └─ Custom field atualizado
127
+ └─ Comentário com histórico
128
+ └─ Descrição atualizada
129
+ ```
130
+
131
+ ## 📊 Estrutura de Dados
132
+
133
+ ### Custom Field "Story Points"
134
+ - **Tipo:** Number
135
+ - **Localização:** Task principal e subtasks
136
+ - **Atualização:** Automática em criação e refinamento
137
+
138
+ ### Comentários de Estimativa
139
+
140
+ **Formato Padrão:**
141
+ ```
142
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
143
+ 📊 ESTIMATIVA DE STORY POINTS
144
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
145
+
146
+ 🎲 Story Points: [X] pontos
147
+
148
+ ⚡ ANÁLISE:
149
+ ∟ Complexidade: [alta/média/baixa]
150
+ ∟ Risco: [alto/médio/baixo]
151
+ ∟ Incerteza: [alta/média/baixa]
152
+
153
+ 💡 RECOMENDAÇÕES:
154
+ [lista de recomendações]
155
+
156
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
157
+ ```
158
+
159
+ **Formato de Histórico (Refine):**
160
+ ```
161
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
162
+ 🔄 ESTIMATIVA ATUALIZADA APÓS REFINAMENTO
163
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
164
+
165
+ 📅 Data: [data]
166
+
167
+ 📊 HISTÓRICO:
168
+ ∟ Estimativa anterior: [X] pontos
169
+ ∟ Nova estimativa: [Y] pontos
170
+ ∟ Mudança: [+/-Z] pontos
171
+
172
+ 📝 MUDANÇAS QUE AFETARAM A ESTIMATIVA:
173
+ - [mudança 1]
174
+ - [mudança 2]
175
+
176
+ 💡 RECOMENDAÇÕES:
177
+ [recomendações atualizadas]
178
+
179
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
180
+ ```
181
+
182
+ ## ⚠️ Regras e Validações
183
+
184
+ ### Validação de Consistência
185
+
186
+ **Regra:** Soma das subtasks não deve ser muito diferente da task principal
187
+
188
+ ```typescript
189
+ if (sum(subtasks) > mainTask * 1.5) {
190
+ // Ajustar task principal para soma das subtasks
191
+ mainTask = sum(subtasks);
192
+ log("⚠️ Ajustada estimativa da task principal para consistência");
193
+ }
194
+ ```
195
+
196
+ ### Detecção de Épicos
197
+
198
+ **Regra:** Tasks > 13 pontos devem ser alertadas
199
+
200
+ ```typescript
201
+ if (storyPoints > 13) {
202
+ alert("⚠️ Task identificada como ÉPICO");
203
+ suggest("Quebrar em múltiplas tasks menores");
204
+ log("Recomendação: usar estratégia de quebra por camadas/funcionalidades");
205
+ }
206
+ ```
207
+
208
+ ### Histórico Obrigatório
209
+
210
+ **Regra:** Mudanças de estimativa devem sempre manter histórico
211
+
212
+ ```typescript
213
+ const history = {
214
+ date: new Date(),
215
+ previous: previousEstimate,
216
+ current: newEstimate,
217
+ delta: newEstimate - previousEstimate,
218
+ reason: "Refinamento de requisitos",
219
+ changes: identifiedChanges
220
+ };
221
+
222
+ // Sempre adicionar ao histórico antes de atualizar
223
+ addToHistory(taskId, history);
224
+ updateEstimate(taskId, newEstimate);
225
+ ```
226
+
227
+ ## 🔗 Comandos Relacionados
228
+
229
+ - `/product/estimate` - Estimativa manual/standalone
230
+ - `/product/task` - Criação com estimativa automática
231
+ - `/product/collect` - Coleta com estimativa inicial
232
+ - `/product/refine` - Refinamento com recalculo automático
233
+ - `/product/feature` - Feature backlog com estimativa
234
+
235
+ ## 📚 Referências
236
+
237
+ - **Agente:** @story-points-framework-specialist
238
+ - **Framework:** `docs/knowbase/frameworks/framework_story_points.md`
239
+ - **Comando de Estimativa:** `/product/estimate`
240
+ - **Padrões ClickUp:** `.cursor/docs/clickup/clickup-auto-update-strategy.md`
241
+
242
+ ## 🚀 Próximos Passos
243
+
244
+ 1. **Configurar Custom Field:** Garantir que "Story Points" existe no ClickUp/Asana
245
+ 2. **Calibrar Baseline:** Estabelecer histórias de referência
246
+ 3. **Tracking de Velocity:** Implementar dashboard de velocity
247
+ 4. **Accuracy Rate:** Calcular precisão das estimativas ao longo do tempo
248
+
249
+ ---
250
+
251
+ **Versão:** 3.0.0
252
+ **Última atualização:** 2025-11-24
253
+ **Mantido por:** Sistema Onion
254
+
@@ -0,0 +1,224 @@
1
+ # 🎲 Validação de Story Points no `/engineer/start`
2
+
3
+ Documentação sobre a validação automática de story points antes de iniciar desenvolvimento.
4
+
5
+ ## 🎯 Objetivo
6
+
7
+ Garantir que tasks tenham estimativas de story points antes de iniciar desenvolvimento, melhorando:
8
+ - Planejamento de sprints
9
+ - Tracking de velocity
10
+ - Previsibilidade de entrega
11
+ - Consistência nas estimativas
12
+
13
+ ## ⚡ Quando Ocorre
14
+
15
+ A validação acontece automaticamente no comando `/engineer/start` após:
16
+ 1. Carregar task do gerenciador configurado
17
+ 2. Ler custom field "Story Points"
18
+ 3. Antes de iniciar análise e arquitetura
19
+
20
+ ## 🔍 Tipos de Validação
21
+
22
+ ### 1. Task Sem Estimativa
23
+
24
+ **Condição:** `storyPoints === null || storyPoints === 0 || storyPoints === undefined`
25
+
26
+ **Ação:**
27
+ ```
28
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
29
+ ⚠️ ATENÇÃO: TASK SEM ESTIMATIVA DE STORY POINTS
30
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
31
+
32
+ 📋 Task: [nome da task]
33
+ 🎲 Story Points: Não estimado
34
+
35
+ 💡 RECOMENDAÇÕES:
36
+ ∟ Estimar antes de iniciar desenvolvimento
37
+ ∟ Usar: /product/estimate "[nome da task]"
38
+ ∟ Ou: @story-points-framework-specialist
39
+
40
+ ⚠️ Continuar sem estimativa pode afetar:
41
+ - Planejamento de sprint
42
+ - Tracking de velocity
43
+ - Previsibilidade de entrega
44
+
45
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
46
+ ```
47
+
48
+ **Comportamento:**
49
+ - ⚠️ **Alerta** (não bloqueia)
50
+ - 💡 **Oferece** estimar agora
51
+ - ✅ **Permite** continuar sem estimativa (com aviso)
52
+
53
+ ### 2. Task Identificada como Épico
54
+
55
+ **Condição:** `storyPoints > 13`
56
+
57
+ **Ação:**
58
+ ```
59
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
60
+ ⚠️ ALERTA: TASK IDENTIFICADA COMO ÉPICO
61
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
62
+
63
+ 📋 Task: [nome da task]
64
+ 🎲 Story Points: [X] pontos (> 13)
65
+
66
+ 💡 RECOMENDAÇÕES:
67
+ ∟ Considerar quebrar em múltiplas tasks menores
68
+ ∟ Usar: /product/refine para detalhar requisitos
69
+ ∟ Verificar se realmente precisa ser uma única task
70
+
71
+ ⚠️ Tasks > 13 pontos têm:
72
+ - Maior margem de erro na estimativa
73
+ - Risco de não caber no sprint
74
+ - Dificuldade de tracking de progresso
75
+
76
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
77
+ ```
78
+
79
+ **Comportamento:**
80
+ - ⚠️ **Alerta** sobre riscos
81
+ - 💡 **Sugere** quebrar task
82
+ - ❓ **Pergunta** se deseja continuar mesmo assim
83
+ - ✅ **Permite** continuar após confirmação
84
+
85
+ ### 3. Task com Estimativa Válida
86
+
87
+ **Condição:** `storyPoints >= 1 && storyPoints <= 13`
88
+
89
+ **Ação:**
90
+ ```
91
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
92
+ ✅ VALIDAÇÃO DE ESTIMATIVA
93
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
94
+
95
+ 📋 Task: [nome da task]
96
+ 🎲 Story Points: [X] pontos
97
+
98
+ ✅ Estimativa válida para desenvolvimento
99
+
100
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
101
+ ```
102
+
103
+ **Comportamento:**
104
+ - ✅ **Confirma** estimativa válida
105
+ - 🚀 **Prossegue** normalmente
106
+
107
+ ## 🔧 Implementação
108
+
109
+ ### Código de Validação
110
+
111
+ ```typescript
112
+ // No comando /engineer/start, após carregar task
113
+ const task = await taskManager.getTask(taskId);
114
+ const storyPoints = task.customFields?.find(f => f.name === 'Story Points')?.value;
115
+
116
+ if (!storyPoints || storyPoints === 0) {
117
+ // Validação 1: Sem estimativa
118
+ await showWarningNoEstimate(task);
119
+ const shouldEstimate = await askUser('Deseja estimar story points agora? (s/n)');
120
+ if (shouldEstimate) {
121
+ await invokeStoryPointsEstimation(task);
122
+ }
123
+ } else if (storyPoints > 13) {
124
+ // Validação 2: Épico
125
+ await showWarningEpic(task, storyPoints);
126
+ const shouldContinue = await askUser('Deseja continuar mesmo assim? (s/n)');
127
+ if (!shouldContinue) {
128
+ console.log('💡 Sugestão: Use /product/refine para detalhar e quebrar a task');
129
+ return;
130
+ }
131
+ } else {
132
+ // Validação 3: OK
133
+ await showSuccessEstimate(task, storyPoints);
134
+ }
135
+ ```
136
+
137
+ ### Integração com Agente
138
+
139
+ ```typescript
140
+ async function invokeStoryPointsEstimation(task: Task) {
141
+ // Invocar agente de estimativa
142
+ const estimate = await invokeAgent('story-points-framework-specialist', {
143
+ taskDescription: task.name + '\n' + task.description,
144
+ assigneeLevel: task.assignee?.level || 'pleno'
145
+ });
146
+
147
+ // Atualizar task com estimativa
148
+ await taskManager.updateTask(task.id, {
149
+ customFields: {
150
+ 'Story Points': estimate.points
151
+ }
152
+ });
153
+
154
+ // Adicionar comentário
155
+ await taskManager.addComment(task.id, formatEstimateComment(estimate));
156
+ }
157
+ ```
158
+
159
+ ## 📊 Fluxo Completo
160
+
161
+ ```mermaid
162
+ graph TD
163
+ A[/engineer/start] --> B[Carregar Task]
164
+ B --> C{Task tem Story Points?}
165
+ C -->|Não| D[Alerta: Sem Estimativa]
166
+ D --> E{Deseja estimar?}
167
+ E -->|Sim| F[Invocar @story-points-framework-specialist]
168
+ E -->|Não| G[Continuar com aviso]
169
+ F --> H[Atualizar Task]
170
+ H --> I[Prosseguir]
171
+ C -->|Sim| J{Story Points > 13?}
172
+ J -->|Sim| K[Alerta: Épico]
173
+ K --> L{Deseja continuar?}
174
+ L -->|Sim| I
175
+ L -->|Não| M[Sugerir refinement]
176
+ J -->|Não| N[Validar Estimativa]
177
+ N --> I
178
+ G --> I
179
+ ```
180
+
181
+ ## ⚠️ Regras Importantes
182
+
183
+ ### Não Bloqueia Desenvolvimento
184
+
185
+ **Princípio:** Validação é **informativa**, não bloqueante.
186
+
187
+ - ⚠️ Alerta sobre problemas
188
+ - 💡 Oferece soluções
189
+ - ✅ Permite continuar após confirmação
190
+
191
+ ### Estimativa Opcional mas Recomendada
192
+
193
+ **Princípio:** Estimativas melhoram planejamento, mas não são obrigatórias.
194
+
195
+ - Tasks sem estimativa podem ser desenvolvidas
196
+ - Sistema alerta sobre impacto
197
+ - Usuário decide se estima ou não
198
+
199
+ ### Épicos Podem Ser Desenvolvidos
200
+
201
+ **Princípio:** Tasks grandes podem existir, mas devem ser conscientes.
202
+
203
+ - Sistema alerta sobre riscos
204
+ - Sugere quebra quando apropriado
205
+ - Permite continuar após confirmação
206
+
207
+ ## 🔗 Comandos Relacionados
208
+
209
+ - `/product/estimate` - Estimar task manualmente
210
+ - `/product/refine` - Refinar e recalcular estimativa
211
+ - `/product/task` - Criar task com estimativa automática
212
+
213
+ ## 📚 Referências
214
+
215
+ - **Agente:** @story-points-framework-specialist
216
+ - **Framework:** `docs/knowbase/frameworks/framework_story_points.md`
217
+ - **Integração:** `.cursor/docs/product/story-points-integration.md`
218
+
219
+ ---
220
+
221
+ **Versão:** 3.0.0
222
+ **Última atualização:** 2025-11-24
223
+ **Mantido por:** Sistema Onion
224
+
@@ -0,0 +1,167 @@
1
+ # 📋 Revisão de Documentação - Task Manager
2
+ **Data**: 2025-11-24
3
+ **Revisado por**: Sistema Onion
4
+ **Escopo**: Documentos relacionados ao Task Manager
5
+
6
+ ---
7
+
8
+ ## ✅ **PROBLEMAS CORRIGIDOS**
9
+
10
+ ### 1. **Referências Incorretas de Arquivos**
11
+
12
+ #### Problema Identificado
13
+ Múltiplos documentos referenciavam `.cursor/utils/clickup-formatting.md`, mas o arquivo correto está em `.cursor/docs/clickup/clickup-formatting.md`.
14
+
15
+ #### Arquivos Corrigidos
16
+ - ✅ `.cursor/commands/product/task.md` (linha 545)
17
+ - ✅ `.cursor/docs/tools/rules.md` (linhas 143 e 168)
18
+ - ✅ `.cursor/commands/git/README.md` (linha 359)
19
+ - ✅ `.cursor/utils/date-time-standards.md` (linha 123)
20
+
21
+ #### Correção Aplicada
22
+ ```diff
23
+ - **Formatação:** `.cursor/utils/clickup-formatting.md`
24
+ + **Formatação:** `.cursor/docs/clickup/clickup-formatting.md`
25
+ ```
26
+
27
+ ---
28
+
29
+ ## 📊 **VALIDAÇÃO DE ESTRUTURA**
30
+
31
+ ### Documentos do Task Manager
32
+
33
+ #### ✅ **Interface e Tipos**
34
+ - `.cursor/utils/task-manager/interface.md` ✅ Bem formatado
35
+ - `.cursor/utils/task-manager/types.md` ✅ Bem formatado
36
+ - `.cursor/utils/task-manager/detector.md` ✅ Bem formatado
37
+ - `.cursor/utils/task-manager/factory.md` ✅ Bem formatado
38
+ - `.cursor/utils/task-manager/README.md` ✅ Bem formatado
39
+
40
+ #### ✅ **Adapters**
41
+ - `.cursor/utils/task-manager/adapters/clickup.md` ✅ Bem formatado
42
+ - `.cursor/utils/task-manager/adapters/asana.md` ✅ Bem formatado
43
+ - `.cursor/utils/task-manager/adapters/linear.md` ✅ Bem formatado (stub)
44
+
45
+ #### ✅ **Formatação ClickUp**
46
+ - `.cursor/docs/clickup/clickup-formatting.md` ✅ Bem formatado
47
+ - `.cursor/commands/common/prompts/clickup-patterns.md` ✅ Bem formatado
48
+
49
+ #### ✅ **Comando Principal**
50
+ - `.cursor/commands/product/task.md` ✅ Referências corrigidas
51
+
52
+ ---
53
+
54
+ ## 🔍 **ANÁLISE DE CONSISTÊNCIA**
55
+
56
+ ### Padrões de Formatação
57
+
58
+ #### ✅ **Estratégia Dual Documentada Corretamente**
59
+ - **Descriptions**: Markdown nativo (`markdown_description`)
60
+ - **Comments**: Unicode visual (`comment_text`)
61
+
62
+ Ambos os documentos (`clickup-formatting.md` e `clickup-patterns.md`) estão alinhados com esta estratégia.
63
+
64
+ #### ✅ **Templates Consistentes**
65
+ - Templates de descriptions seguem padrão markdown
66
+ - Templates de comments seguem padrão Unicode visual
67
+ - Separadores consistentes: `━━━━━━━━━━━━━━` (22 caracteres)
68
+
69
+ #### ✅ **Referências Cruzadas**
70
+ - Comando `/product/task.md` referencia corretamente:
71
+ - Interface do Task Manager ✅
72
+ - Adapters específicos ✅
73
+ - Padrões de formatação ✅
74
+
75
+ ---
76
+
77
+ ## 📚 **ESTRUTURA DE DOCUMENTAÇÃO**
78
+
79
+ ### Hierarquia Validada
80
+
81
+ ```
82
+ .cursor/
83
+ ├── utils/task-manager/ ✅ Abstração do Task Manager
84
+ │ ├── interface.md ✅ Contrato ITaskManager
85
+ │ ├── types.md ✅ Tipos compartilhados
86
+ │ ├── detector.md ✅ Detecção de provedor
87
+ │ ├── factory.md ✅ Factory de adapters
88
+ │ ├── README.md ✅ Visão geral
89
+ │ └── adapters/
90
+ │ ├── clickup.md ✅ Adapter ClickUp
91
+ │ ├── asana.md ✅ Adapter Asana
92
+ │ └── linear.md ✅ Adapter Linear (stub)
93
+
94
+ ├── docs/clickup/ ✅ Documentação ClickUp
95
+ │ └── clickup-formatting.md ✅ Templates e padrões
96
+
97
+ └── commands/
98
+ ├── product/task.md ✅ Comando principal
99
+ └── common/prompts/
100
+ └── clickup-patterns.md ✅ Padrões de formatação
101
+ ```
102
+
103
+ ---
104
+
105
+ ## ✅ **CHECKLIST DE VALIDAÇÃO**
106
+
107
+ ### Formatação
108
+ - [x] Todos os documentos seguem padrão markdown consistente
109
+ - [x] Emojis usados de forma consistente
110
+ - [x] Separadores Unicode padronizados
111
+ - [x] Tabelas formatadas corretamente
112
+
113
+ ### Referências
114
+ - [x] Todas as referências de arquivos estão corretas
115
+ - [x] Links cruzados funcionam
116
+ - [x] Referências a adapters estão corretas
117
+ - [x] Referências a templates estão corretas
118
+
119
+ ### Conteúdo
120
+ - [x] Estratégia dual bem documentada
121
+ - [x] Templates completos e consistentes
122
+ - [x] Exemplos de uso presentes
123
+ - [x] Mapeamentos de status documentados
124
+
125
+ ### Estrutura
126
+ - [x] Hierarquia de arquivos lógica
127
+ - [x] Organização por responsabilidade
128
+ - [x] READMEs informativos
129
+ - [x] Documentação completa
130
+
131
+ ---
132
+
133
+ ## 🎯 **RECOMENDAÇÕES**
134
+
135
+ ### ✅ **Nenhuma Ação Necessária**
136
+ Todos os documentos estão bem formatados e consistentes após as correções de referências.
137
+
138
+ ### 📝 **Observações**
139
+ 1. **Linear Adapter**: Documentado como stub - correto para implementação futura
140
+ 2. **Formatação Dual**: Estratégia bem documentada em múltiplos lugares
141
+ 3. **Templates**: Padrões consistentes entre documentos
142
+
143
+ ---
144
+
145
+ ## 📊 **ESTATÍSTICAS**
146
+
147
+ - **Documentos revisados**: 12
148
+ - **Referências corrigidas**: 4
149
+ - **Problemas encontrados**: 4
150
+ - **Problemas corrigidos**: 4
151
+ - **Taxa de sucesso**: 100%
152
+
153
+ ---
154
+
155
+ ## 🚀 **PRÓXIMOS PASSOS**
156
+
157
+ Nenhuma ação adicional necessária. Todos os documentos estão:
158
+ - ✅ Bem formatados
159
+ - ✅ Consistentes entre si
160
+ - ✅ Com referências corretas
161
+ - ✅ Estruturados logicamente
162
+
163
+ ---
164
+
165
+ **Revisão concluída**: 2025-11-24
166
+ **Status**: ✅ APROVADO
167
+