@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,766 @@
1
+ # 📋 Padrões de Comentários ClickUp - Source of Truth
2
+
3
+ ## 🎯 Objetivo
4
+
5
+ Centralizar **TODOS os 12 padrões de comentários** usados no Sistema Onion, garantindo consistência, legibilidade e reusabilidade em toda a integração ClickUp.
6
+
7
+ ---
8
+
9
+ ## 📑 Índice Rápido
10
+
11
+ 1. [Padrão 1: Fase Completada](#padrão-1-fase-completada)
12
+ 2. [Padrão 2: Progress Update](#padrão-2-progress-update)
13
+ 3. [Padrão 3: PR Criada](#padrão-3-pr-criada)
14
+ 4. [Padrão 4: PR Atualizada](#padrão-4-pr-atualizada)
15
+ 5. [Padrão 5: Validação Pre-PR](#padrão-5-validação-pre-pr)
16
+ 6. [Padrão 6: Subfase Completada](#padrão-6-subfase-completada)
17
+ 7. [Padrão 7: Checkpoint/Validação](#padrão-7-checkpointvalidação-intermediária)
18
+ 8. [Padrão 8: Task Arquivada](#padrão-8-task-arquivadafinalizada)
19
+ 9. [Padrão 9: Desenvolvimento Iniciado](#padrão-9-desenvolvimento-iniciado)
20
+ 10. [Padrão 10: Setup/Preparação](#padrão-10-setuppreparação-de-task)
21
+ 11. [Padrão 11: Bloqueio/Aguardando](#padrão-11-bloqueioaguardando)
22
+ 12. [Padrão 12: Reversão/Rollback](#padrão-12-reversãorollback)
23
+
24
+ ---
25
+
26
+ ## 🔧 Padrão 1: Fase Completada
27
+
28
+ ### Quando Usar
29
+ Quando uma **fase completa de desenvolvimento** é finalizada. Fase = etapa maior do plano com múltiplas implementações.
30
+
31
+ ### Contexto
32
+ - Trabalho significativo foi concluído
33
+ - Múltiplos arquivos foram modificados
34
+ - Testes foram adicionados
35
+ - Status pronto para próxima fase
36
+ - Tem detalhes técnicos importantes
37
+
38
+ ### Template: Comentário DETALHADO (Subtask)
39
+
40
+ ```
41
+ 🔧 FASE COMPLETADA: [NOME_FASE]
42
+
43
+ ━━━━━━━━━━━━━━
44
+
45
+ 📁 ARQUIVOS MODIFICADOS:
46
+ ∟ [arquivo1.ts]
47
+ ∟ [arquivo2.tsx]
48
+ ∟ [arquivo3.spec.ts]
49
+ ∟ ... e mais [N] arquivos
50
+
51
+ 🔧 IMPLEMENTAÇÕES:
52
+ ▶ [Implementação 1 - breve descrição]
53
+ ▶ [Implementação 2 - breve descrição]
54
+ ▶ [Implementação 3 - breve descrição]
55
+
56
+ ✅ TESTES ADICIONADOS:
57
+ ∟ [test-file-1.spec.ts] ([N] testes, cobertura X%)
58
+ ∟ [test-file-2.spec.ts] ([N] testes, cobertura Y%)
59
+ ∟ Cobertura Total: [X]%
60
+
61
+ 💡 DECISÕES TÉCNICAS:
62
+ ∟ [Decisão 1 e justificativa]
63
+ ∟ [Decisão 2 e justificativa]
64
+ ∟ [Versões de libs importantes]
65
+
66
+ 🚀 PRÓXIMOS PASSOS:
67
+ ∟ Fase [N+1]: [Nome Próxima Fase]
68
+ ∟ [Ação específica 1]
69
+ ∟ [Ação específica 2]
70
+
71
+ ━━━━━━━━━━━━━━
72
+
73
+ ⏰ Completado: [TIMESTAMP] | 🎯 Status: Done
74
+ ```
75
+
76
+ ### Template: Comentário RESUMIDO (Task Principal)
77
+
78
+ ```
79
+ 📝 PROGRESSO: Fase [N]/[TOTAL] Completada
80
+
81
+ ✅ [NOME_FASE] - Concluída
82
+ ∟ Subtask: #[SUBTASK_ID]
83
+ ∟ Detalhes: Ver comentário na subtask
84
+
85
+ 🎯 Próximo: Fase [N+1] - [NOME_PRÓXIMA_FASE]
86
+
87
+ ⏰ [TIMESTAMP]
88
+ ```
89
+
90
+ ### Campos Variáveis
91
+
92
+ | Campo | Exemplo | Tipo |
93
+ |-------|---------|------|
94
+ | NOME_FASE | "Backend Implementation" | string |
95
+ | arquivo1, arquivo2... | "src/auth/service.ts" | file paths |
96
+ | Implementação 1-N | "JWT token generation" | string |
97
+ | N testes | "12" | number |
98
+ | [X]% | "95%" | percentage |
99
+ | TIMESTAMP | "2025-11-05 16:45" | datetime |
100
+ | NOME_PRÓXIMA_FASE | "Frontend Integration" | string |
101
+ | SUBTASK_ID | "86abc123" | ID |
102
+
103
+ ### Exemplo Prático
104
+
105
+ ```
106
+ 🔧 FASE COMPLETADA: Backend Implementation
107
+
108
+ ━━━━━━━━━━━━━━
109
+
110
+ 📁 ARQUIVOS MODIFICADOS:
111
+ ∟ src/services/auth.service.ts
112
+ ∟ src/controllers/auth.controller.ts
113
+ ∟ src/middleware/jwt.middleware.ts
114
+ ∟ src/models/user.model.ts
115
+ ∟ src/routes/auth.routes.ts
116
+
117
+ 🔧 IMPLEMENTAÇÕES:
118
+ ▶ JWT generation com expiração configurável
119
+ ▶ Refresh token mechanism
120
+ ▶ Password hashing com bcrypt (rounds: 10)
121
+ ▶ Error handling centralizado
122
+ ▶ Rate limiting para endpoints
123
+
124
+ ✅ TESTES ADICIONADOS:
125
+ ∟ auth.service.spec.ts (12 testes, 95%)
126
+ ∟ auth.controller.spec.ts (8 testes, 93%)
127
+ ∟ jwt.middleware.spec.ts (6 testes, 97%)
128
+ ∟ Cobertura Total: 95%
129
+
130
+ 💡 DECISÕES TÉCNICAS:
131
+ ∟ Usamos jsonwebtoken v9.0.0 (mais recente e segura)
132
+ ∟ Access token: 15min, Refresh: 7 dias
133
+ ∟ Bcrypt rounds: 10 (balanceamento perf/segurança)
134
+ ∟ Rate limit: 5 tentativas/15min por IP
135
+
136
+ 🚀 PRÓXIMOS PASSOS:
137
+ ∟ Fase 2: Frontend Integration
138
+ ∟ Criar AuthContext no React
139
+ ∟ Implementar token storage seguro (localStorage com encryption)
140
+
141
+ ━━━━━━━━━━━━━━
142
+
143
+ ⏰ Completado: 2025-11-05 16:45 | 🎯 Status: Done
144
+ ```
145
+
146
+ ---
147
+
148
+ ## 📝 Padrão 2: Progress Update
149
+
150
+ ### Quando Usar
151
+ Atualizar **status executivo da task principal** sobre progresso geral. Resumo para stakeholders que não querem detalhes técnicos.
152
+
153
+ ### Contexto
154
+ - Fase foi completada
155
+ - Precisa reportar progresso geral
156
+ - Audiência: Product Owners, Stakeholders
157
+ - Deve ser breve e objetivo
158
+
159
+ ### Template
160
+
161
+ ```
162
+ 📝 PROGRESSO: Fase [N]/[TOTAL] Completada
163
+
164
+ ✅ [NOME_FASE] - Concluída
165
+ ∟ Subtask: #[SUBTASK_ID]
166
+ ∟ Detalhes: Ver comentário na subtask
167
+
168
+ 🎯 Próximo: Fase [N+1] - [NOME_PRÓXIMA_FASE]
169
+ ∟ Estimativa: [HORAS] horas
170
+
171
+ ⏰ [TIMESTAMP] | 📊 Progresso: [N]/[TOTAL] = X%
172
+ ```
173
+
174
+ ### Exemplo Prático
175
+
176
+ ```
177
+ 📝 PROGRESSO: Fase 1/4 Completada
178
+
179
+ ✅ Backend Implementation - Concluída
180
+ ∟ Subtask: #86abc123
181
+ ∟ Detalhes: Ver comentário na subtask
182
+
183
+ 🎯 Próximo: Fase 2/4 - Frontend Integration
184
+ ∟ Estimativa: 2 horas
185
+
186
+ ⏰ 2025-11-05 16:45 | 📊 Progresso: 1/4 = 25%
187
+ ```
188
+
189
+ ---
190
+
191
+ ## 🚀 Padrão 3: PR Criada
192
+
193
+ ### Quando Usar
194
+ Quando um **Pull Request é criado** no repositório. Documenta mudanças, status de testes.
195
+
196
+ ### Contexto
197
+ - Feature branch foi feita push
198
+ - PR foi aberto no repositório
199
+ - Pronto para code review
200
+ - Todos testes passando
201
+
202
+ ### Template
203
+
204
+ ```
205
+ 🚀 PULL REQUEST CRIADA
206
+
207
+ ━━━━━━━━━━━━━━
208
+
209
+ 📋 MUDANÇAS IMPLEMENTADAS:
210
+ ∟ [Mudança 1]
211
+ ∟ [Mudança 2]
212
+ ∟ Code review solicitado
213
+
214
+ 🔗 DETALHES DO REVIEW:
215
+ ▶ PR: [URL_PR]
216
+ ▶ Branch: [BRANCH_NAME]
217
+ ▶ Status: Ready for review
218
+ ▶ Testes: ✅ Todos passando
219
+
220
+ ✅ VALIDAÇÕES COMPLETADAS:
221
+ ◆ Code review request criado
222
+ ◆ Testes passando (CI green)
223
+ ◆ Documentação atualizada
224
+ ◆ Meta-specs compliance: OK
225
+
226
+ ━━━━━━━━━━━━━━
227
+
228
+ ⏰ Criada: [TIMESTAMP] | 🎯 Próximo: Code review & merge
229
+ ```
230
+
231
+ ### Exemplo Prático
232
+
233
+ ```
234
+ 🚀 PULL REQUEST CRIADA
235
+
236
+ ━━━━━━━━━━━━━━
237
+
238
+ 📋 MUDANÇAS IMPLEMENTADAS:
239
+ ∟ JWT authentication implementation
240
+ ∟ Refresh token mechanism
241
+ ∟ Request middleware for protected routes
242
+ ∟ Comprehensive test suite (95% coverage)
243
+
244
+ 🔗 DETALHES DO REVIEW:
245
+ ▶ PR: https://github.com/project/pull/42
246
+ ▶ Branch: feature/jwt-auth
247
+ ▶ Status: Ready for review
248
+ ▶ Testes: ✅ Todos passando (26 testes)
249
+
250
+ ✅ VALIDAÇÕES COMPLETADAS:
251
+ ◆ Code review request criado
252
+ ◆ Testes passando (CI green) - 26/26
253
+ ◆ Documentação atualizada
254
+ ◆ Meta-specs compliance: OK
255
+
256
+ ━━━━━━━━━━━━━━
257
+
258
+ ⏰ Criada: 2025-11-05 17:30 | 🎯 Próximo: Code review & merge
259
+ ```
260
+
261
+ ---
262
+
263
+ ## 🔄 Padrão 4: PR Atualizada
264
+
265
+ ### Quando Usar
266
+ Quando **mudanças adicionais** são feitas no PR (após feedback do review ou melhorias).
267
+
268
+ ### Contexto
269
+ - PR já existe
270
+ - Novos commits foram adicionados
271
+ - Correções de feedback ou enhancements
272
+ - Testes ainda passando
273
+
274
+ ### Template
275
+
276
+ ```
277
+ 📝 PR ATUALIZADA - [TIPO_COMMIT]
278
+
279
+ ━━━━━━━━━━━━━━
280
+
281
+ 🔄 COMMITS ADICIONAIS REALIZADOS:
282
+ ▶ Commit: [HASH]
283
+ ▶ Tipo: [fix|feat|refactor]
284
+ ▶ Arquivos: [N] modificados
285
+ ▶ Linhas: +[X]/-[Y]
286
+
287
+ 🛠️ MUDANÇAS IMPLEMENTADAS:
288
+ ∟ [Mudança 1]
289
+ ∟ [Mudança 2]
290
+ ∟ [Mudança 3]
291
+
292
+ ✅ STATUS:
293
+ ∟ Testes: ✅ Passando
294
+ ∟ CI: ✅ Green
295
+ ∟ Review: Em progresso
296
+
297
+ ━━━━━━━━━━━━━━
298
+
299
+ ⏰ Atualizada: [TIMESTAMP] | 🚀 Status: Ready for merge
300
+ ```
301
+
302
+ ### Exemplo Prático
303
+
304
+ ```
305
+ 📝 PR ATUALIZADA - fix
306
+
307
+ ━━━━━━━━━━━━━━
308
+
309
+ 🔄 COMMITS ADICIONAIS REALIZADOS:
310
+ ▶ Commit: 8a3f2b1c
311
+ ▶ Tipo: fix
312
+ ▶ Arquivos: 3 modificados
313
+ ▶ Linhas: +15/-8
314
+
315
+ 🛠️ MUDANÇAS IMPLEMENTADAS:
316
+ ∟ Corrigido bug no refresh token expiration
317
+ ∟ Melhorado error handling para edge cases
318
+ ∟ Adicionados testes para nova validação
319
+
320
+ ✅ STATUS:
321
+ ∟ Testes: ✅ Passando (28/28)
322
+ ∟ CI: ✅ Green
323
+ ∟ Review: Em progresso (2 aprovações)
324
+
325
+ ━━━━━━━━━━━━━━
326
+
327
+ ⏰ Atualizada: 2025-11-05 18:15 | 🚀 Status: Ready for merge
328
+ ```
329
+
330
+ ---
331
+
332
+ ## 🔍 Padrão 5: Validação Pre-PR
333
+
334
+ ### Quando Usar
335
+ Quando validações **finais antes do PR** são executadas. Checklist de qualidade.
336
+
337
+ ### Contexto
338
+ - Código pronto para review
339
+ - Validações técnicas feitas
340
+ - Critérios de aceitação verificados
341
+ - Antes de abrir PR
342
+
343
+ ### Template
344
+
345
+ ```
346
+ 🔍 PREPARAÇÃO PARA PULL REQUEST
347
+
348
+ ━━━━━━━━━━━━━━
349
+
350
+ ✅ CRITÉRIOS DE ACEITAÇÃO:
351
+ ◆ [x] Todos os checkboxes marcados
352
+ ◆ Total: [X]/[Y] critérios completos
353
+
354
+ ✅ VERIFICAÇÕES TÉCNICAS:
355
+ ◆ Meta-specs compliance: [✅/❌]
356
+ ◆ Code review: [✅/❌]
357
+ ◆ Documentation: [✅/❌]
358
+ ◆ Tests coverage: [✅/❌]
359
+
360
+ 📊 QUALIDADE:
361
+ ∟ Lint errors: [N]
362
+ ∟ Test coverage: [X]%
363
+ ∟ Documentation: [Updated/Pending]
364
+
365
+ 🚀 STATUS:
366
+ ∟ [PRONTO_PARA_PR/REQUER_AJUSTES]
367
+
368
+ ━━━━━━━━━━━━━━
369
+
370
+ ⏰ Validado: [TIMESTAMP] | 🎯 Próximo: Abrir Pull Request
371
+ ```
372
+
373
+ ### Exemplo Prático
374
+
375
+ ```
376
+ 🔍 PREPARAÇÃO PARA PULL REQUEST
377
+
378
+ ━━━━━━━━━━━━━━
379
+
380
+ ✅ CRITÉRIOS DE ACEITAÇÃO:
381
+ ◆ [x] Todos os checkboxes marcados
382
+ ◆ Total: 7/7 critérios completos ✅
383
+
384
+ ✅ VERIFICAÇÕES TÉCNICAS:
385
+ ◆ Meta-specs compliance: ✅
386
+ ◆ Code review: ✅ (self-review completo)
387
+ ◆ Documentation: ✅ (README atualizado)
388
+ ◆ Tests coverage: ✅ (95%)
389
+
390
+ 📊 QUALIDADE:
391
+ ∟ Lint errors: 0
392
+ ∟ Test coverage: 95%
393
+ ∟ Documentation: Updated
394
+
395
+ 🚀 STATUS:
396
+ ∟ PRONTO PARA PR ✅
397
+
398
+ ━━━━━━━━━━━━━━
399
+
400
+ ⏰ Validado: 2025-11-05 16:30 | 🎯 Próximo: Abrir Pull Request
401
+ ```
402
+
403
+ ---
404
+
405
+ ## 🔶 Padrão 6: Subfase Completada
406
+
407
+ ### Quando Usar
408
+ Quando uma **parte/milestone de uma fase** é completada. Menor que fase completa.
409
+
410
+ ### Contexto
411
+ - Dentro de uma fase maior
412
+ - Validação intermediária
413
+ - Progresso visível
414
+ - Pronto para próximo step
415
+
416
+ ### Template
417
+
418
+ ```
419
+ ✅ SUBFASE COMPLETADA: [NOME_SUBFASE]
420
+
421
+ ━━━━━━━━━━━━━━
422
+
423
+ 📋 ATIVIDADES CONCLUÍDAS:
424
+ ∟ [Atividade 1]
425
+ ∟ [Atividade 2]
426
+ ∟ [Atividade 3]
427
+
428
+ 🎯 CHECKPOINT VALIDADO:
429
+ ✅ Todos os testes passando
430
+ ✅ Funcionalidade testada manualmente
431
+ ✅ Pronto para próximo milestone
432
+
433
+ 🚀 PRÓXIMO MILESTONE:
434
+ ∟ [Próximo marco]
435
+
436
+ ━━━━━━━━━━━━━━
437
+
438
+ ⏰ Completado: [TIMESTAMP] | 📊 Fase: [N]/[TOTAL] subfases
439
+ ```
440
+
441
+ ---
442
+
443
+ ## ✔️ Padrão 7: Checkpoint/Validação Intermediária
444
+
445
+ ### Quando Usar
446
+ Validações **intermediárias durante desenvolvimento**. Não é conclusão, é ponto de controle.
447
+
448
+ ### Contexto
449
+ - Durante implementação
450
+ - Validação de progresso
451
+ - Checkpoint de arquitetura
452
+ - Antes de continuar
453
+
454
+ ### Template
455
+
456
+ ```
457
+ ✔️ CHECKPOINT: [NOME_CHECKPOINT]
458
+
459
+ ━━━━━━━━━━━━━━
460
+
461
+ 📋 VALIDAÇÕES REALIZADAS:
462
+ ∟ [Validação 1] - OK
463
+ ∟ [Validação 2] - OK
464
+ ∟ [Validação 3] - OK
465
+
466
+ 🎯 STATUS ATUAL:
467
+ ✅ Tudo validado
468
+ ✅ Pronto para próxima etapa
469
+
470
+ 🚀 PRÓXIMA ETAPA:
471
+ ∟ [Descrição]
472
+
473
+ ━━━━━━━━━━━━━━
474
+
475
+ ⏰ Checkpoint: [TIMESTAMP] | 📊 Progresso: [X%]
476
+ ```
477
+
478
+ ---
479
+
480
+ ## 🏁 Padrão 8: Task Arquivada/Finalizada
481
+
482
+ ### Quando Usar
483
+ Quando uma **task é finalizada e arquivada** completamente.
484
+
485
+ ### Contexto
486
+ - Feature completamente pronta
487
+ - Merge feito
488
+ - Deploy validado
489
+ - Tudo pronto para arquivo
490
+
491
+ ### Template
492
+
493
+ ```
494
+ 🏁 TASK FINALIZADA E ARQUIVADA
495
+
496
+ ━━━━━━━━━━━━━━
497
+
498
+ ✅ CONCLUSÃO:
499
+ ✅ Feature 100% completa
500
+ ✅ Testes passando
501
+ ✅ Merge realizado
502
+ ✅ Deploy validado
503
+
504
+ 📊 SUMMARY:
505
+ ∟ Total de horas: [X]h
506
+ ∟ Commits: [N]
507
+ ∟ Arquivos alterados: [N]
508
+ ∟ Cobertura: [X]%
509
+
510
+ 📚 DOCUMENTAÇÃO:
511
+ ∟ README atualizado
512
+ ∟ API docs atualizado
513
+ ∟ Decisões registradas
514
+
515
+ 🏆 RESULTADO:
516
+ ∟ [Descrição do resultado]
517
+
518
+ ━━━━━━━━━━━━━━
519
+
520
+ ⏰ Finalizada: [TIMESTAMP] | 🎉 Status: Done & Archived
521
+ ```
522
+
523
+ ---
524
+
525
+ ## 🚀 Padrão 9: Desenvolvimento Iniciado
526
+
527
+ ### Quando Usar
528
+ Quando **desenvolvimento é iniciado** em uma nova task/sessão.
529
+
530
+ ### Contexto
531
+ - Task recém-criada
532
+ - Desenvolvimento começando
533
+ - Sessão ativa
534
+ - Próxima etapa é implementação
535
+
536
+ ### Template
537
+
538
+ ```
539
+ 🚀 DESENVOLVIMENTO INICIADO
540
+
541
+ ━━━━━━━━━━━━━━
542
+
543
+ 📋 SETUP EXECUTADO:
544
+ ✅ Sessão criada: [SESSION_PATH]
545
+ ✅ Branch criada: [BRANCH_NAME]
546
+ ✅ Arquitetura definida
547
+ ✅ Plano de fases pronto
548
+
549
+ 🏗️ ESTRUTURA:
550
+ ├── Fase 1: [Nome]
551
+ ├── Fase 2: [Nome]
552
+ └── Fase 3: [Nome]
553
+
554
+ 📚 DOCUMENTAÇÃO:
555
+ ∟ Architecture: Definida
556
+ ∟ Plan: Pronto
557
+ ∟ Context: Inicializado
558
+
559
+ 🎯 PRÓXIMO PASSO:
560
+ ∟ Iniciar Fase 1: [Nome]
561
+
562
+ ━━━━━━━━━━━━━━
563
+
564
+ ⏰ Iniciado: [TIMESTAMP] | 📊 Fases: [TOTAL]
565
+ ```
566
+
567
+ ---
568
+
569
+ ## 📦 Padrão 10: Setup/Preparação de Task
570
+
571
+ ### Quando Usar
572
+ Quando **preparação/setup inicial** de uma task é feito.
573
+
574
+ ### Contexto
575
+ - Task recém-criada
576
+ - Setup inicial
577
+ - Antes de desenvolvimento
578
+ - Infraestrutura pronta
579
+
580
+ ### Template
581
+
582
+ ```
583
+ 📦 SETUP DA TASK COMPLETADO
584
+
585
+ ━━━━━━━━━━━━━━
586
+
587
+ ✅ SETUP ITEMS:
588
+ ✅ [Item 1] - Completo
589
+ ✅ [Item 2] - Completo
590
+ ✅ [Item 3] - Completo
591
+
592
+ 📋 ESTRUTURA CRIADA:
593
+ ├── session/
594
+ ├── context.md
595
+ ├── plan.md
596
+ └── architecture.md
597
+
598
+ 🎯 PRÓXIMO PASSO:
599
+ ∟ [Próximo passo]
600
+
601
+ ━━━━━━━━━━━━━━
602
+
603
+ ⏰ Setup: [TIMESTAMP] | 🎯 Pronto para: Desenvolvimento
604
+ ```
605
+
606
+ ---
607
+
608
+ ## 🚫 Padrão 11: Bloqueio/Aguardando
609
+
610
+ ### Quando Usar
611
+ Quando desenvolvimento é **bloqueado por dependência externa** ou aguardando algo.
612
+
613
+ ### Contexto
614
+ - Impedimento encontrado
615
+ - Aguardando feedback/ação externa
616
+ - Não pode continuar agora
617
+ - Precisa comunicar bloqueio
618
+
619
+ ### Template
620
+
621
+ ```
622
+ 🚫 BLOQUEIO: [TIPO_BLOQUEIO]
623
+
624
+ ━━━━━━━━━━━━━━
625
+
626
+ ⚠️ IMPEDIMENTO:
627
+ [Descrição do impedimento]
628
+
629
+ 🔗 DEPENDÊNCIA:
630
+ ∟ [Descrição da dependência]
631
+ ∟ Status: Aguardando
632
+ ∟ Estimativa de resolução: [Data/Hora]
633
+
634
+ 💬 DETALHES:
635
+ [Detalhes adicionais]
636
+
637
+ 🚀 PRÓXIMO PASSO:
638
+ ∟ Aguardando [Descrição]
639
+ ∟ Retomar quando: [Condição]
640
+
641
+ ━━━━━━━━━━━━━━
642
+
643
+ ⏰ Bloqueado: [TIMESTAMP] | 🕐 Aguardando desde: [TEMPO]
644
+ ```
645
+
646
+ ---
647
+
648
+ ## ⏮️ Padrão 12: Reversão/Rollback
649
+
650
+ ### Quando Usar
651
+ Quando mudanças precisam ser **desfeitas/revertidas** por algum motivo.
652
+
653
+ ### Contexto
654
+ - Problema encontrado
655
+ - Mudanças precisam ser revertidas
656
+ - Rollback para versão anterior
657
+ - Registo do ocorrido
658
+
659
+ ### Template
660
+
661
+ ```
662
+ ⏮️ ROLLBACK REALIZADO
663
+
664
+ ━━━━━━━━━━━━━━
665
+
666
+ 🔄 MUDANÇAS REVERTIDAS:
667
+ ∟ Revert commit: [HASH]
668
+ ∟ Razão: [Motivo do rollback]
669
+
670
+ 📋 O QUE FOI DESFEITO:
671
+ ∟ [Mudança 1]
672
+ ∟ [Mudança 2]
673
+ ∟ [Mudança 3]
674
+
675
+ 🔍 ANÁLISE:
676
+ [Análise do problema que levou ao rollback]
677
+
678
+ ✅ AÇÕES TOMADAS:
679
+ ∟ [Ação 1]
680
+ ∟ [Ação 2]
681
+
682
+ 🚀 PRÓXIMO PASSO:
683
+ ∟ [Plano para resolver e refazer]
684
+
685
+ ━━━━━━━━━━━━━━
686
+
687
+ ⏰ Revertido: [TIMESTAMP] | 🎯 Próximo: [Ação]
688
+ ```
689
+
690
+ ---
691
+
692
+ ## 🎨 Visual Patterns Globais
693
+
694
+ ### Separadores
695
+ ```
696
+ ━━━━━━━━━━━━━━ (14 caracteres - padrão para todos)
697
+ ```
698
+
699
+ ### Emojis Principais
700
+ - `🔧` - Implementação/Fase completada
701
+ - `📝` - Progresso/Update
702
+ - `🚀` - PR/Launch/Início
703
+ - `🔍` - Validação/Review
704
+ - `✅` - Completo/OK
705
+ - `⏰` - Timestamp/Tempo
706
+ - `📊` - Estatísticas/Progresso
707
+ - `🎯` - Próximo passo/Meta
708
+ - `🚫` - Bloqueio/Impedimento
709
+ - `⏮️` - Rollback/Reversão
710
+
711
+ ### Estrutura Consistente
712
+ 1. Emoji + Título
713
+ 2. Separador
714
+ 3. Seções com emojis
715
+ 4. Informações estruturadas
716
+ 5. Separador final
717
+ 6. Timestamp + Próximo passo
718
+
719
+ ---
720
+
721
+ ## 🔗 Referências e Relacionamentos
722
+
723
+ ### Padrões que funcionam em PARES:
724
+
725
+ **Par 1: Fase Completada**
726
+ - Padrão 1 (Detalhado) → Subtask
727
+ - Padrão 2 (Resumido) → Task Principal
728
+
729
+ **Par 2: Pull Request**
730
+ - Padrão 3 (Criada) → Início
731
+ - Padrão 4 (Atualizada) → Mudanças subsequentes
732
+
733
+ **Padrões Intermediários:**
734
+ - Padrão 6 (Subfase) - Dentro de Padrão 1
735
+ - Padrão 7 (Checkpoint) - Validação durante implementação
736
+
737
+ **Padrões Especiais:**
738
+ - Padrão 11 (Bloqueio) - Pode ocorrer em qualquer ponto
739
+ - Padrão 12 (Rollback) - Reação a problema
740
+
741
+ ---
742
+
743
+ ## 📚 Guia de Uso Rápido
744
+
745
+ | Situação | Padrão | Onde |
746
+ |----------|--------|------|
747
+ | Fase concluída | 1 | Subtask + Task |
748
+ | Update executivo | 2 | Task Principal |
749
+ | PR aberto | 3 | Task Principal |
750
+ | Mudanças no PR | 4 | Task Principal |
751
+ | Validação final | 5 | Task Principal |
752
+ | Milestone dentro de fase | 6 | Subtask |
753
+ | Validação intermediária | 7 | Task/Subtask |
754
+ | Task totalmente pronta | 8 | Task |
755
+ | Novo desenvolvimento | 9 | Task |
756
+ | Setup realizado | 10 | Task |
757
+ | Bloqueado | 11 | Task/Subtask |
758
+ | Reverter mudanças | 12 | Task/Subtask |
759
+
760
+ ---
761
+
762
+ **Última atualização**: 2025-11-05
763
+ **Status**: Documentado e pronto para uso
764
+ **Total de Padrões**: 12
765
+ **Responsável**: Sistema Onion - Pattern Specialist
766
+