@onion-ai/cli 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +529 -0
  3. package/bin/onion.js +6 -0
  4. package/framework/CLAUDE.md +45 -0
  5. package/framework/VERSION +1 -0
  6. package/framework/agents/compliance/iso-22301-specialist.md +985 -0
  7. package/framework/agents/compliance/iso-27001-specialist.md +713 -0
  8. package/framework/agents/compliance/pmbok-specialist.md +739 -0
  9. package/framework/agents/compliance/security-information-master.md +907 -0
  10. package/framework/agents/compliance/soc2-specialist.md +889 -0
  11. package/framework/agents/deployment/docker-specialist.md +1192 -0
  12. package/framework/agents/development/c4-architecture-specialist.md +745 -0
  13. package/framework/agents/development/c4-documentation-specialist.md +695 -0
  14. package/framework/agents/development/clickup-specialist.md +396 -0
  15. package/framework/agents/development/cursor-specialist.md +277 -0
  16. package/framework/agents/development/docs-reverse-engineer.md +417 -0
  17. package/framework/agents/development/gamma-api-specialist.md +1168 -0
  18. package/framework/agents/development/gitflow-specialist.md +1206 -0
  19. package/framework/agents/development/linux-security-specialist.md +675 -0
  20. package/framework/agents/development/mermaid-specialist.md +515 -0
  21. package/framework/agents/development/nodejs-specialist.md +672 -0
  22. package/framework/agents/development/nx-migration-specialist.md +866 -0
  23. package/framework/agents/development/nx-monorepo-specialist.md +618 -0
  24. package/framework/agents/development/postgres-specialist.md +1123 -0
  25. package/framework/agents/development/react-developer.md +131 -0
  26. package/framework/agents/development/runflow-specialist.md +277 -0
  27. package/framework/agents/development/system-documentation-orchestrator.md +1387 -0
  28. package/framework/agents/development/task-specialist.md +677 -0
  29. package/framework/agents/git/branch-code-reviewer.md +225 -0
  30. package/framework/agents/git/branch-documentation-writer.md +161 -0
  31. package/framework/agents/git/branch-metaspec-checker.md +67 -0
  32. package/framework/agents/git/branch-test-planner.md +176 -0
  33. package/framework/agents/meta/agent-creator-specialist.md +1266 -0
  34. package/framework/agents/meta/command-creator-specialist.md +1676 -0
  35. package/framework/agents/meta/metaspec-gate-keeper.md +240 -0
  36. package/framework/agents/meta/onion.md +824 -0
  37. package/framework/agents/product/branding-positioning-specialist.md +1029 -0
  38. package/framework/agents/product/extract-meeting-specialist.md +394 -0
  39. package/framework/agents/product/meeting-consolidator.md +482 -0
  40. package/framework/agents/product/pain-price-specialist.md +508 -0
  41. package/framework/agents/product/presentation-orchestrator.md +1190 -0
  42. package/framework/agents/product/product-agent.md +201 -0
  43. package/framework/agents/product/story-points-framework-specialist.md +538 -0
  44. package/framework/agents/product/storytelling-business-specialist.md +890 -0
  45. package/framework/agents/research/research-agent.md +292 -0
  46. package/framework/agents/review/code-reviewer.md +154 -0
  47. package/framework/agents/review/corporate-compliance-specialist.md +370 -0
  48. package/framework/agents/testing/test-agent.md +424 -0
  49. package/framework/agents/testing/test-engineer.md +294 -0
  50. package/framework/agents/testing/test-planner.md +117 -0
  51. package/framework/commands/common/prompts/README.md +208 -0
  52. package/framework/commands/common/prompts/clickup-patterns.md +144 -0
  53. package/framework/commands/common/prompts/code-review-checklist.md +168 -0
  54. package/framework/commands/common/prompts/git-workflow-patterns.md +235 -0
  55. package/framework/commands/common/prompts/output-formats.md +240 -0
  56. package/framework/commands/common/prompts/technical.md +194 -0
  57. package/framework/commands/common/templates/abstraction-template.md +399 -0
  58. package/framework/commands/common/templates/agent-template.md +353 -0
  59. package/framework/commands/common/templates/business_context_template.md +748 -0
  60. package/framework/commands/common/templates/command-template.md +273 -0
  61. package/framework/commands/common/templates/technical_context_template.md +526 -0
  62. package/framework/commands/design/screen-spec.md +505 -0
  63. package/framework/commands/development/runflow-dev.md +465 -0
  64. package/framework/commands/docs/build-business-docs.md +299 -0
  65. package/framework/commands/docs/build-compliance-docs.md +143 -0
  66. package/framework/commands/docs/build-index.md +119 -0
  67. package/framework/commands/docs/build-tech-docs.md +221 -0
  68. package/framework/commands/docs/docs-health.md +141 -0
  69. package/framework/commands/docs/help.md +278 -0
  70. package/framework/commands/docs/refine-vision.md +25 -0
  71. package/framework/commands/docs/reverse-consolidate.md +158 -0
  72. package/framework/commands/docs/sync-sessions.md +354 -0
  73. package/framework/commands/docs/validate-docs.md +157 -0
  74. package/framework/commands/engineer/bump.md +29 -0
  75. package/framework/commands/engineer/docs.md +11 -0
  76. package/framework/commands/engineer/hotfix.md +183 -0
  77. package/framework/commands/engineer/plan.md +85 -0
  78. package/framework/commands/engineer/pr-update.md +219 -0
  79. package/framework/commands/engineer/pr.md +117 -0
  80. package/framework/commands/engineer/pre-pr.md +81 -0
  81. package/framework/commands/engineer/start.md +254 -0
  82. package/framework/commands/engineer/validate-phase-sync.md +134 -0
  83. package/framework/commands/engineer/warm-up.md +20 -0
  84. package/framework/commands/engineer/work.md +155 -0
  85. package/framework/commands/f/company-context-extractor.md +93 -0
  86. package/framework/commands/f/process-meetings.md +103 -0
  87. package/framework/commands/git/README.md +682 -0
  88. package/framework/commands/git/code-review.md +213 -0
  89. package/framework/commands/git/fast-commit.md +43 -0
  90. package/framework/commands/git/feature/finish.md +88 -0
  91. package/framework/commands/git/feature/publish.md +89 -0
  92. package/framework/commands/git/feature/start.md +172 -0
  93. package/framework/commands/git/help.md +100 -0
  94. package/framework/commands/git/hotfix/finish.md +96 -0
  95. package/framework/commands/git/hotfix/start.md +92 -0
  96. package/framework/commands/git/init.md +111 -0
  97. package/framework/commands/git/release/finish.md +96 -0
  98. package/framework/commands/git/release/start.md +93 -0
  99. package/framework/commands/git/sync.md +199 -0
  100. package/framework/commands/meta/all-tools.md +58 -0
  101. package/framework/commands/meta/analyze-complex-problem.md +186 -0
  102. package/framework/commands/meta/create-abstraction.md +882 -0
  103. package/framework/commands/meta/create-agent-express.md +98 -0
  104. package/framework/commands/meta/create-agent.md +210 -0
  105. package/framework/commands/meta/create-command.md +203 -0
  106. package/framework/commands/meta/create-knowledge-base.md +143 -0
  107. package/framework/commands/meta/create-task-structure.md +150 -0
  108. package/framework/commands/meta/setup-integration.md +274 -0
  109. package/framework/commands/onion.md +169 -0
  110. package/framework/commands/product/README.md +249 -0
  111. package/framework/commands/product/analyze-pain-price.md +694 -0
  112. package/framework/commands/product/branding.md +458 -0
  113. package/framework/commands/product/check.md +46 -0
  114. package/framework/commands/product/checklist-sync.md +239 -0
  115. package/framework/commands/product/collect.md +95 -0
  116. package/framework/commands/product/consolidate-meetings.md +291 -0
  117. package/framework/commands/product/estimate.md +511 -0
  118. package/framework/commands/product/extract-meeting.md +226 -0
  119. package/framework/commands/product/feature.md +416 -0
  120. package/framework/commands/product/light-arch.md +82 -0
  121. package/framework/commands/product/presentation.md +174 -0
  122. package/framework/commands/product/refine.md +161 -0
  123. package/framework/commands/product/spec.md +79 -0
  124. package/framework/commands/product/task-check.md +378 -0
  125. package/framework/commands/product/task.md +603 -0
  126. package/framework/commands/product/validate-task.md +325 -0
  127. package/framework/commands/product/warm-up.md +24 -0
  128. package/framework/commands/quick/analisys.md +17 -0
  129. package/framework/commands/test/e2e.md +377 -0
  130. package/framework/commands/test/integration.md +508 -0
  131. package/framework/commands/test/unit.md +381 -0
  132. package/framework/commands/validate/collab/pair-testing.md +657 -0
  133. package/framework/commands/validate/collab/three-amigos.md +534 -0
  134. package/framework/commands/validate/qa-points/estimate.md +660 -0
  135. package/framework/commands/validate/test-strategy/analyze.md +1201 -0
  136. package/framework/commands/validate/test-strategy/create.md +411 -0
  137. package/framework/commands/validate/workflow.md +370 -0
  138. package/framework/commands/warm-up.md +20 -0
  139. package/framework/docs/architecture/acoplamento-clickup-problema-analise.md +468 -0
  140. package/framework/docs/architecture/desacoplamento-roadmap.md +364 -0
  141. package/framework/docs/architecture/validacao-fase-1.md +235 -0
  142. package/framework/docs/c4/c4-detection-rules.md +395 -0
  143. package/framework/docs/c4/c4-documentation-templates.md +579 -0
  144. package/framework/docs/c4/c4-mermaid-patterns.md +331 -0
  145. package/framework/docs/c4/c4-templates.md +256 -0
  146. package/framework/docs/clickup/clickup-acceptance-criteria-strategy.md +329 -0
  147. package/framework/docs/clickup/clickup-auto-update-strategy.md +340 -0
  148. package/framework/docs/clickup/clickup-comment-formatter.md +239 -0
  149. package/framework/docs/clickup/clickup-description-fix.md +384 -0
  150. package/framework/docs/clickup/clickup-dual-comment-strategy.md +528 -0
  151. package/framework/docs/clickup/clickup-formatting.md +302 -0
  152. package/framework/docs/clickup/separador-tamanho-otimizado.md +258 -0
  153. package/framework/docs/engineer/pre-pr-acceptance-validation.md +256 -0
  154. package/framework/docs/onion/ESPERANTO.md +293 -0
  155. package/framework/docs/onion/agents-reference.md +832 -0
  156. package/framework/docs/onion/clickup-integration.md +780 -0
  157. package/framework/docs/onion/commands-guide.md +924 -0
  158. package/framework/docs/onion/engineering-flows.md +900 -0
  159. package/framework/docs/onion/getting-started.md +803 -0
  160. package/framework/docs/onion/maintenance-checklist.md +421 -0
  161. package/framework/docs/onion/naming-conventions.md +286 -0
  162. package/framework/docs/onion/practical-examples.md +854 -0
  163. package/framework/docs/product/story-points-integration.md +269 -0
  164. package/framework/docs/product/story-points-validation.md +237 -0
  165. package/framework/docs/reviews/task-manager-docs-review-2025-11-24.md +184 -0
  166. package/framework/docs/strategies/clickup-comment-patterns.md +766 -0
  167. package/framework/docs/strategies/clickup-integration-tests.md +602 -0
  168. package/framework/docs/strategies/clickup-mcp-wrappers-tests.md +888 -0
  169. package/framework/docs/strategies/clickup-regression-tests.md +587 -0
  170. package/framework/docs/strategies/visual-patterns.md +315 -0
  171. package/framework/docs/templates/README.md +649 -0
  172. package/framework/docs/templates/adr-template.md +226 -0
  173. package/framework/docs/templates/analysis-template.md +280 -0
  174. package/framework/docs/templates/execution-plan-template.md +430 -0
  175. package/framework/docs/templates/guide-template.md +367 -0
  176. package/framework/docs/templates/phase-execution-prompt-template.md +504 -0
  177. package/framework/docs/templates/reference-template.md +522 -0
  178. package/framework/docs/templates/solution-template.md +390 -0
  179. package/framework/docs/tools/README.md +356 -0
  180. package/framework/docs/tools/agents.md +365 -0
  181. package/framework/docs/tools/commands.md +669 -0
  182. package/framework/docs/tools/cursor.md +539 -0
  183. package/framework/docs/tools/mcps.md +937 -0
  184. package/framework/docs/tools/rules.md +461 -0
  185. package/framework/rules/language-and-documentation.mdc +371 -0
  186. package/framework/rules/nestjs-controllers.md +83 -0
  187. package/framework/rules/nestjs-dtos.md +255 -0
  188. package/framework/rules/nestjs-modules.md +141 -0
  189. package/framework/rules/nestjs-services.md +230 -0
  190. package/framework/rules/nx-rules.mdc +41 -0
  191. package/framework/rules/onion-patterns.mdc +197 -0
  192. package/framework/skills/codebase-visualizer/SKILL.md +26 -0
  193. package/framework/skills/codebase-visualizer/scripts/visualize.py +131 -0
  194. package/framework/skills/collect/SKILL.md +84 -0
  195. package/framework/skills/create-rule/SKILL.md +152 -0
  196. package/framework/skills/db-schema-visualizer/SKILL.md +49 -0
  197. package/framework/skills/db-schema-visualizer/scripts/visualize.py +1191 -0
  198. package/framework/skills/sync-meetings/SKILL.md +239 -0
  199. package/framework/utils/clickup-mcp-wrappers.md +744 -0
  200. package/framework/utils/date-time-standards.md +200 -0
  201. package/framework/utils/task-manager/README.md +94 -0
  202. package/framework/utils/task-manager/adapters/asana.md +377 -0
  203. package/framework/utils/task-manager/adapters/clickup.md +467 -0
  204. package/framework/utils/task-manager/adapters/linear.md +421 -0
  205. package/framework/utils/task-manager/detector.md +299 -0
  206. package/framework/utils/task-manager/factory.md +363 -0
  207. package/framework/utils/task-manager/interface.md +248 -0
  208. package/framework/utils/task-manager/types.md +409 -0
  209. package/package.json +41 -0
  210. package/src/cli.js +73 -0
  211. package/src/commands/doctor.js +191 -0
  212. package/src/commands/init.js +287 -0
  213. package/src/commands/install.js +261 -0
  214. package/src/commands/list.js +152 -0
  215. package/src/commands/uninstall.js +90 -0
  216. package/src/commands/update.js +26 -0
  217. package/src/utils/fs.js +89 -0
  218. package/src/utils/log.js +35 -0
  219. package/src/utils/paths.js +32 -0
  220. package/src/utils/prompt.js +76 -0
@@ -0,0 +1,239 @@
1
+ # ClickUp Comment Formatter - Estrutura Correta para API
2
+
3
+ ## 🎯 **Problema Descoberto**
4
+
5
+ ClickUp API **NÃO aceita markdown simples** em comentários. Precisa de estrutura JSON específica com `attributes`.
6
+
7
+ ## ✅ **Formato Correto ClickUp API**
8
+
9
+ ### **Estrutura Required:**
10
+ ```json
11
+ {
12
+ "comment": [
13
+ {
14
+ "text": "texto aqui",
15
+ "attributes": {
16
+ "bold": true,
17
+ "italic": false,
18
+ "code": false
19
+ }
20
+ }
21
+ ]
22
+ }
23
+ ```
24
+
25
+ ## 🔧 **Templates Convertidos**
26
+
27
+ ### **1. Status Update Template (ClickUp Format)**
28
+ ```json
29
+ [
30
+ {
31
+ "text": "🔄 Status Update: ",
32
+ "attributes": { "bold": true }
33
+ },
34
+ {
35
+ "text": "[TITLE]",
36
+ "attributes": { "bold": true }
37
+ },
38
+ {
39
+ "text": "\n\n✅ Completed:\n",
40
+ "attributes": { "bold": true }
41
+ },
42
+ {
43
+ "text": "- [ITEM_1]\n- [ITEM_2]",
44
+ "attributes": {}
45
+ },
46
+ {
47
+ "text": "\n\n🔄 In Progress:\n",
48
+ "attributes": { "bold": true }
49
+ },
50
+ {
51
+ "text": "- [PROGRESS_ITEM]",
52
+ "attributes": {}
53
+ },
54
+ {
55
+ "text": "\n\n📋 Next Steps:\n",
56
+ "attributes": { "bold": true }
57
+ },
58
+ {
59
+ "text": "- [ ] [TASK_1]\n- [ ] [TASK_2]",
60
+ "attributes": {}
61
+ },
62
+ {
63
+ "text": "\n\n⏰ Updated: ",
64
+ "attributes": { "bold": true }
65
+ },
66
+ {
67
+ "text": "[TIMESTAMP]",
68
+ "attributes": { "code": true }
69
+ }
70
+ ]
71
+ ```
72
+
73
+ ### **2. PR Template (ClickUp Format)**
74
+ ```json
75
+ [
76
+ {
77
+ "text": "🚀 Pull Request Created",
78
+ "attributes": { "bold": true }
79
+ },
80
+ {
81
+ "text": "\n\n📋 Changes Implemented:\n",
82
+ "attributes": { "bold": true }
83
+ },
84
+ {
85
+ "text": "- [CHANGE_1]\n- [CHANGE_2]\n- All tests passing ✅",
86
+ "attributes": {}
87
+ },
88
+ {
89
+ "text": "\n\n🔗 Review Details:\n",
90
+ "attributes": { "bold": true }
91
+ },
92
+ {
93
+ "text": "PR: ",
94
+ "attributes": { "bold": true }
95
+ },
96
+ {
97
+ "text": "[PR_LINK]",
98
+ "attributes": { "code": true }
99
+ },
100
+ {
101
+ "text": "\nBranch: ",
102
+ "attributes": { "bold": true }
103
+ },
104
+ {
105
+ "text": "[BRANCH_NAME]",
106
+ "attributes": { "code": true }
107
+ },
108
+ {
109
+ "text": "\nStatus: Ready for review",
110
+ "attributes": { "bold": true }
111
+ },
112
+ {
113
+ "text": "\n\n✅ Checklist:\n",
114
+ "attributes": { "bold": true }
115
+ },
116
+ {
117
+ "text": "- [x] Code committed and pushed\n- [x] Tests passing\n- [x] Documentation updated\n- [x] Task status updated",
118
+ "attributes": {}
119
+ },
120
+ {
121
+ "text": "\n\n⏰ Created: ",
122
+ "attributes": { "bold": true }
123
+ },
124
+ {
125
+ "text": "[TIMESTAMP]",
126
+ "attributes": { "code": true }
127
+ }
128
+ ]
129
+ ```
130
+
131
+ ### **3. Technical Documentation Template (ClickUp Format)**
132
+ ```json
133
+ [
134
+ {
135
+ "text": "📚 Technical Documentation",
136
+ "attributes": { "bold": true }
137
+ },
138
+ {
139
+ "text": "\n\n🏗️ Architecture:\n",
140
+ "attributes": { "bold": true }
141
+ },
142
+ {
143
+ "text": "- [COMPONENT_CHANGES]\n- [INTEGRATION_DETAILS]",
144
+ "attributes": {}
145
+ },
146
+ {
147
+ "text": "\n\n🔧 Implementation:\n",
148
+ "attributes": { "bold": true }
149
+ },
150
+ {
151
+ "text": "[CODE_EXAMPLE]",
152
+ "attributes": { "code": true }
153
+ },
154
+ {
155
+ "text": "\n\n📊 Impact:\n",
156
+ "attributes": { "bold": true }
157
+ },
158
+ {
159
+ "text": "Metric 1: [OLD] → [NEW] ✅\nMetric 2: [OLD] → [NEW] 🔄",
160
+ "attributes": {}
161
+ },
162
+ {
163
+ "text": "\n\n📖 Reference: ",
164
+ "attributes": { "bold": true }
165
+ },
166
+ {
167
+ "text": "[DOCUMENTATION_LINK]",
168
+ "attributes": { "code": true }
169
+ }
170
+ ]
171
+ ```
172
+
173
+ ## 🔧 **Helper Function para Conversão**
174
+
175
+ ```javascript
176
+ function createClickUpComment(template, variables = {}) {
177
+ // Replace placeholders with actual values
178
+ let processedTemplate = JSON.parse(JSON.stringify(template));
179
+
180
+ processedTemplate.forEach(segment => {
181
+ Object.keys(variables).forEach(key => {
182
+ segment.text = segment.text.replace(`[${key}]`, variables[key]);
183
+ });
184
+ });
185
+
186
+ return processedTemplate;
187
+ }
188
+
189
+ // Usage example:
190
+ const prComment = createClickUpComment(PR_TEMPLATE, {
191
+ CHANGE_1: "Feature X implemented",
192
+ CHANGE_2: "Bug Y fixed",
193
+ PR_LINK: "https://github.com/repo/pull/123",
194
+ BRANCH_NAME: "feature/new-feature",
195
+ TIMESTAMP: new Date().toLocaleString('pt-BR', {
196
+ day: '2-digit',
197
+ month: '2-digit',
198
+ year: 'numeric',
199
+ hour: '2-digit',
200
+ minute: '2-digit'
201
+ })
202
+ });
203
+ ```
204
+
205
+ ## 📋 **Attributes Disponíveis**
206
+
207
+ ### **Text Formatting:**
208
+ - `bold`: true/false
209
+ - `italic`: true/false
210
+ - `underline`: true/false
211
+ - `strikethrough`: true/false
212
+
213
+ ### **Special Formatting:**
214
+ - `code`: true/false (inline code)
215
+ - `link`: { "url": "https://example.com" }
216
+
217
+ ### **Headers (simulados com bold + size):**
218
+ - Para headers, use `bold: true` + emojis
219
+ - ClickUp não tem headers nativos em comments
220
+
221
+ ## 🚀 **Implementação Requerida**
222
+
223
+ ### **Atualizar comandos:**
224
+ 1. `/engineer/pr` - Usar PR Template em formato ClickUp
225
+ 2. `/product/task` - Usar Technical Template
226
+ 3. Todos os agentes - Converter para estrutura attributes
227
+
228
+ ### **MCP Function Call:**
229
+ ```javascript
230
+ // Em vez de:
231
+ create_task_comment(taskId, "markdown string")
232
+
233
+ // Usar:
234
+ create_task_comment(taskId, clickupFormattedArray)
235
+ ```
236
+
237
+ ---
238
+
239
+ ## ✅ **Esta é a solução definitiva para comentários formatados no ClickUp!**
@@ -0,0 +1,384 @@
1
+ # 🔧 Correção: Formatação de Descrições no ClickUp
2
+
3
+ ## 🚨 Problema Identificado
4
+
5
+ Os comandos que criam tasks no ClickUp estão enviando descrições em **markdown puro**, mas o ClickUp **não renderiza markdown** nas descrições quando enviado via parâmetro `description`.
6
+
7
+ ### Exemplo do Problema:
8
+
9
+ ```markdown
10
+ ## 🎯 Objetivo
11
+
12
+ Criar script para matar portas do Linux
13
+
14
+ ## 📋 Escopo
15
+
16
+ ### ✅ Funcionalidades:
17
+
18
+ - Feature A
19
+ ```
20
+
21
+ **Resultado no ClickUp:** Texto cru com `##`, `###`, `-` visíveis (não formatado)
22
+
23
+ ---
24
+
25
+ ## ✅ Solução Correta
26
+
27
+ ### Use `markdown_description` em vez de `description`
28
+
29
+ O ClickUp MCP suporta dois parâmetros diferentes:
30
+
31
+ | Parâmetro | Formato | Renderização |
32
+ | ---------------------- | --------------- | -------------------------------------- |
33
+ | `description` | Plain text | Texto puro sem formatação |
34
+ | `markdown_description` | Markdown nativo | **Renderiza markdown corretamente** ✅ |
35
+
36
+ ---
37
+
38
+ ## 📋 Template Correto para Task Descriptions
39
+
40
+ ### Estrutura Recomendada:
41
+
42
+ ```markdown
43
+ ## 🎯 Objetivo da Task
44
+
45
+ [DESCRIÇÃO_DETALHADA_DO_OBJETIVO]
46
+
47
+ ---
48
+
49
+ ## 📋 Escopo de Implementação
50
+
51
+ ### ✅ Funcionalidades:
52
+
53
+ - Feature A - [DESCRIÇÃO]
54
+ - Feature B - [DESCRIÇÃO]
55
+ - Feature C - [DESCRIÇÃO]
56
+
57
+ ### 🔧 Arquitetura Técnica:
58
+
59
+ - Componente X modificado
60
+ - Integration Y implementada
61
+ - Service Z criado
62
+
63
+ ### 📊 Métricas Esperadas:
64
+
65
+ | Metric | Before | After | Target |
66
+ | ----------- | ------- | ------- | ------ |
67
+ | Performance | [VALOR] | [VALOR] | ✅ |
68
+ | Coverage | [VALOR] | [VALOR] | ✅ |
69
+ | Quality | [VALOR] | [VALOR] | ✅ |
70
+
71
+ ---
72
+
73
+ ## ✅ Critérios de Aceitação
74
+
75
+ - [ ] Funcionalidade A implementada e testada
76
+ - [ ] Testes passando com cobertura > 95%
77
+ - [ ] Documentação técnica atualizada
78
+ - [ ] Performance dentro do target estabelecido
79
+ - [ ] Code review aprovado
80
+
81
+ ---
82
+
83
+ ## 🔧 Componentes Afetados
84
+
85
+ - **Backend**: [COMPONENTES]
86
+ - **Frontend**: [COMPONENTES]
87
+ - **Database**: [SCHEMAS]
88
+ - **APIs**: [ENDPOINTS]
89
+
90
+ ---
91
+
92
+ ## 📚 Bibliotecas e Dependências
93
+
94
+ ### Principais:
95
+
96
+ - [BIBLIOTECA_1] v[VERSION] - [PROPÓSITO]
97
+ - [BIBLIOTECA_2] v[VERSION] - [PROPÓSITO]
98
+
99
+ ### Secundárias:
100
+
101
+ - [BIBLIOTECA_3] v[VERSION] - [PROPÓSITO]
102
+
103
+ ---
104
+
105
+ ## 🧪 Estratégia de Testes
106
+
107
+ ### Unit Tests:
108
+
109
+ - [ ] [COMPONENTE_1] - [CENÁRIOS]
110
+ - [ ] [COMPONENTE_2] - [CENÁRIOS]
111
+
112
+ ### Integration Tests:
113
+
114
+ - [ ] [FLUXO_1] - [CENÁRIOS]
115
+ - [ ] [FLUXO_2] - [CENÁRIOS]
116
+
117
+ ### E2E Tests:
118
+
119
+ - [ ] [USER_FLOW_1]
120
+ - [ ] [USER_FLOW_2]
121
+
122
+ ---
123
+
124
+ **🎯 Success Metric**: [MÉTRICA_PRINCIPAL]
125
+ **🕒 Timeline**: [PRAZO_ESTIMADO]
126
+ **👥 Stakeholders**: [STAKEHOLDERS]
127
+ ```
128
+
129
+ ---
130
+
131
+ ## 🔧 Implementação Correta no Código
132
+
133
+ ### ❌ ERRADO (não formata):
134
+
135
+ ```typescript
136
+ await mcp_clickup_create_task({
137
+ name: 'Implementar autenticação JWT',
138
+ listId: '901314121395',
139
+ description: `## 🎯 Objetivo
140
+ Implementar sistema de autenticação
141
+
142
+ ## 📋 Funcionalidades
143
+ - Login com JWT
144
+ - Refresh tokens`,
145
+ });
146
+ ```
147
+
148
+ ### ✅ CORRETO (formata markdown):
149
+
150
+ ```typescript
151
+ await mcp_clickup_create_task({
152
+ name: 'Implementar autenticação JWT',
153
+ listId: '901314121395',
154
+ markdown_description: `## 🎯 Objetivo da Task
155
+
156
+ Implementar sistema completo de autenticação usando JWT (JSON Web Tokens) com suporte a refresh tokens para renovação automática de sessões.
157
+
158
+ ---
159
+
160
+ ## 📋 Escopo de Implementação
161
+
162
+ ### ✅ Funcionalidades:
163
+ - Login com JWT - Autenticação via email/senha
164
+ - Refresh tokens - Renovação automática de sessão
165
+ - Logout seguro - Invalidação de tokens
166
+ - Proteção de rotas - Middleware de autenticação
167
+
168
+ ### 🔧 Arquitetura Técnica:
169
+ - Auth Service implementado
170
+ - JWT middleware criado
171
+ - Token storage configurado
172
+ - Security headers aplicados
173
+
174
+ ### 📊 Métricas Esperadas:
175
+
176
+ | Metric | Before | After | Target |
177
+ |--------|--------|-------|--------|
178
+ | Login time | N/A | <500ms | ✅ |
179
+ | Token refresh | N/A | <200ms | ✅ |
180
+ | Security score | 6/10 | 9/10 | ✅ |
181
+
182
+ ---
183
+
184
+ ## ✅ Critérios de Aceitação
185
+
186
+ - [ ] Usuário consegue fazer login com email/senha
187
+ - [ ] JWT é gerado e retornado após login bem-sucedido
188
+ - [ ] Refresh token permite renovação de sessão
189
+ - [ ] Rotas protegidas bloqueiam acesso não autenticado
190
+ - [ ] Logout invalida tokens corretamente
191
+ - [ ] Testes de segurança passando
192
+ - [ ] Documentação de API atualizada
193
+
194
+ ---
195
+
196
+ ## 🔧 Componentes Afetados
197
+
198
+ - **Backend**: AuthService, AuthController, JWTMiddleware
199
+ - **Database**: Users table, Tokens table
200
+ - **APIs**: POST /auth/login, POST /auth/refresh, POST /auth/logout
201
+ - **Frontend**: AuthContext, LoginPage, ProtectedRoute
202
+
203
+ ---
204
+
205
+ ## 📚 Bibliotecas e Dependências
206
+
207
+ ### Principais:
208
+ - jsonwebtoken v9.0.0 - Geração e validação de JWT
209
+ - bcrypt v5.1.0 - Hash de senhas
210
+
211
+ ### Secundárias:
212
+ - express-rate-limit v6.0.0 - Proteção contra brute force
213
+ - helmet v7.0.0 - Security headers
214
+
215
+ ---
216
+
217
+ ## 🧪 Estratégia de Testes
218
+
219
+ ### Unit Tests:
220
+ - [ ] AuthService - login, refresh, logout
221
+ - [ ] JWTMiddleware - validação de tokens
222
+
223
+ ### Integration Tests:
224
+ - [ ] Fluxo completo de autenticação
225
+ - [ ] Renovação de tokens
226
+ - [ ] Proteção de rotas
227
+
228
+ ### E2E Tests:
229
+ - [ ] Login → Acesso a rota protegida → Logout
230
+ - [ ] Login → Refresh automático → Acesso contínuo
231
+
232
+ ---
233
+
234
+ **🎯 Success Metric**: 100% das rotas protegidas funcionando
235
+ **🕒 Timeline**: 5-7 dias úteis
236
+ **👥 Stakeholders**: Tech Lead, Product Owner, Security Team`,
237
+ });
238
+ ```
239
+
240
+ ---
241
+
242
+ ## 📝 Comandos que Precisam de Correção
243
+
244
+ ### 1. `/product/task`
245
+
246
+ **Arquivo**: `.claude/commands/product/task.md`
247
+
248
+ **Mudança necessária:**
249
+
250
+ ```diff
251
+ - description: "[DETAILED DESCRIPTION]",
252
+ + markdown_description: `[TEMPLATE_MARKDOWN_COMPLETO]`,
253
+ ```
254
+
255
+ ### 2. `/product/feature`
256
+
257
+ **Arquivo**: `.claude/commands/product/feature.md`
258
+
259
+ **Mudança necessária:**
260
+
261
+ ```diff
262
+ - description: "[FEATURE DESCRIPTION]",
263
+ + markdown_description: `[TEMPLATE_MARKDOWN_COMPLETO]`,
264
+ ```
265
+
266
+ ### 3. Qualquer comando que crie tasks
267
+
268
+ **Padrão geral:**
269
+
270
+ - Sempre use `markdown_description` para descriptions
271
+ - Sempre use `commentText` (com formatação Unicode) para comments
272
+
273
+ ---
274
+
275
+ ## 🎨 Diferença entre Description e Comments
276
+
277
+ ### 📋 DESCRIPTIONS (markdown_description)
278
+
279
+ **Quando usar:** Criar ou atualizar a descrição principal da task
280
+
281
+ **Formato:** Markdown nativo tradicional
282
+
283
+ ```markdown
284
+ ## Headers
285
+
286
+ ### Subheaders
287
+
288
+ - Listas
289
+ | Tabelas |
290
+ **Bold** _Italic_
291
+ ```
292
+
293
+ **Ferramentas:**
294
+
295
+ - `mcp_clickup_create_task({ markdown_description: "..." })`
296
+ - `mcp_clickup_update_task({ markdown_description: "..." })`
297
+
298
+ ---
299
+
300
+ ### 💬 COMMENTS (commentText)
301
+
302
+ **Quando usar:** Adicionar atividades/comentários na task
303
+
304
+ **Formato:** Formatação visual Unicode
305
+
306
+ ```
307
+ ━━━━━━━━━━━━━━━━━━━━━━━━
308
+ ✅ COMPLETED:
309
+ ∟ Item 1
310
+ ∟ Item 2
311
+
312
+ 🔄 IN PROGRESS:
313
+ ▶ Item 3
314
+ ━━━━━━━━━━━━━━━━━━━━━━━━
315
+ ⏰ Updated: [TIMESTAMP]
316
+ ```
317
+
318
+ **Ferramentas:**
319
+
320
+ - `mcp_clickup_create_task_comment({ commentText: "..." })`
321
+
322
+ ---
323
+
324
+ ## ✅ Checklist de Implementação
325
+
326
+ Para cada comando que cria tasks no ClickUp:
327
+
328
+ - [ ] Trocar `description` por `markdown_description`
329
+ - [ ] Usar template markdown estruturado
330
+ - [ ] Incluir todas as seções relevantes
331
+ - [ ] Testar renderização no ClickUp
332
+ - [ ] Validar que markdown está formatando corretamente
333
+ - [ ] Documentar template no comando
334
+ - [ ] Adicionar exemplo de uso
335
+
336
+ ---
337
+
338
+ ## 🧪 Como Testar
339
+
340
+ ### 1. Criar task de teste:
341
+
342
+ ```bash
343
+ /product/task "Teste de formatação markdown"
344
+ ```
345
+
346
+ ### 2. Verificar no ClickUp:
347
+
348
+ - Abrir task criada
349
+ - Verificar se headers estão formatados
350
+ - Verificar se tabelas estão renderizadas
351
+ - Verificar se listas estão indentadas
352
+ - Verificar se checkboxes funcionam
353
+
354
+ ### 3. Se não estiver formatado:
355
+
356
+ - ❌ Está usando `description` (errado)
357
+ - ✅ Deve usar `markdown_description` (correto)
358
+
359
+ ---
360
+
361
+ ## 📚 Referências
362
+
363
+ - **Documentação oficial**: `.claude/docs/clickup/clickup-formatting.md`
364
+ - **Estratégia de auto-update**: `.claude/docs/clickup/clickup-auto-update-strategy.md`
365
+ - **Formatter de comments**: `.claude/docs/clickup/clickup-comment-formatter.md`
366
+
367
+ ---
368
+
369
+ ## 🎯 Resultado Esperado
370
+
371
+ Após correção, as descriptions no ClickUp devem aparecer:
372
+
373
+ ✅ **Headers formatados** como títulos
374
+ ✅ **Tabelas renderizadas** corretamente
375
+ ✅ **Listas com bullets** visíveis
376
+ ✅ **Checkboxes interativos** funcionando
377
+ ✅ **Bold/italic** aplicados
378
+ ✅ **Separadores `---`** como linhas horizontais
379
+
380
+ ---
381
+
382
+ **Última atualização**: 2025-11-05
383
+ **Prioridade**: ALTA - Afeta UX no ClickUp
384
+ **Status**: Documentado - Aguardando implementação nos comandos