@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,215 @@
1
+ ---
2
+ name: code-review
3
+ description: |
4
+ Gerenciador de ChatGPT-CodeReview para setup, validação e otimização.
5
+ Use para configurar code review automático em projetos.
6
+ model: sonnet
7
+
8
+ parameters:
9
+ - name: mode
10
+ description: Modo de operação (auto/setup/validate/status)
11
+ required: false
12
+ default: auto
13
+
14
+ category: git
15
+ tags:
16
+ - code-review
17
+ - automation
18
+ - ci-cd
19
+
20
+ version: "4.0.0"
21
+ updated: "2025-12-20"
22
+
23
+ related_commands:
24
+ - /engineer/pre-pr
25
+ - /git/feature/finish
26
+
27
+ related_agents:
28
+ - code-reviewer
29
+ - branch-code-reviewer
30
+ level: intermediate
31
+ context: technical
32
+ ---
33
+
34
+ # 🤖 ChatGPT Code Review Manager
35
+
36
+ Gerenciador inteligente de ChatGPT-CodeReview para o Sistema Onion.
37
+
38
+ ## 🎯 Objetivo
39
+
40
+ Automatizar setup, validação e otimização do code review automático.
41
+
42
+ ## ⚡ Modos de Operação
43
+
44
+ ```bash
45
+ /git/code-review # AUTO: detecta e executa ação apropriada
46
+ /git/code-review setup # Criar/reconfigurar arquivo
47
+ /git/code-review validate # Validar configuração existente
48
+ /git/code-review status # Mostrar status atual
49
+ ```
50
+
51
+ ## 🔄 Fluxo de Execução
52
+
53
+ ### Passo 1: Detectar Modo
54
+
55
+ ```bash
56
+ # Verificar se code-review.yml existe
57
+ test -f .github/workflows/code-review.yml && MODE="validate" || MODE="setup"
58
+ ```
59
+
60
+ SE `{{mode}}` fornecido → usar modo especificado
61
+ SENÃO → usar detecção automática
62
+
63
+ ### Passo 2: Executar Modo
64
+
65
+ #### 🆕 SETUP MODE
66
+
67
+ 1. **Detectar Stack**
68
+ ```bash
69
+ # Package manager
70
+ test -f pnpm-lock.yaml && PM="pnpm"
71
+ test -f package-lock.json && PM="npm"
72
+
73
+ # Monorepo
74
+ test -f nx.json && MONO="nx"
75
+
76
+ # Backend/Frontend
77
+ grep -q "fastify" package.json && BACKEND="fastify"
78
+ grep -q "react" package.json && FRONTEND="react"
79
+ ```
80
+
81
+ 2. **Gerar Template**
82
+ Criar `.github/workflows/code-review.yml`:
83
+ ```yaml
84
+ name: ChatGPT Code Review
85
+
86
+ on:
87
+ pull_request:
88
+ types: [opened, synchronize]
89
+
90
+ jobs:
91
+ review:
92
+ runs-on: ubuntu-latest
93
+ steps:
94
+ - uses: actions/checkout@v4
95
+ - uses: anc95/ChatGPT-CodeReview@main
96
+ env:
97
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98
+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
99
+ ```
100
+
101
+ 3. **Aplicar Configurações por Stack**
102
+ - TypeScript → adicionar regras de tipos
103
+ - React → regras de hooks
104
+ - NX → regras de monorepo
105
+
106
+ #### 🔍 VALIDATE MODE
107
+
108
+ 1. **Verificar Arquivo**
109
+ - Existe?
110
+ - YAML válido?
111
+ - Secrets configurados?
112
+
113
+ 2. **Analisar Configuração**
114
+ Usar checklist de `common/prompts/code-review-checklist.md`
115
+
116
+ 3. **Gerar Relatório**
117
+ ```
118
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
119
+ 📊 CODE REVIEW VALIDATION
120
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
121
+
122
+ ✅ Arquivo: .github/workflows/code-review.yml
123
+ ✅ YAML: Válido
124
+ ⚠️ Secrets: OPENAI_API_KEY não detectado
125
+
126
+ 💡 Recomendações:
127
+ ∟ Configurar OPENAI_API_KEY em Settings > Secrets
128
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
129
+ ```
130
+
131
+ #### 📊 STATUS MODE
132
+
133
+ Mostrar dashboard:
134
+ ```
135
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
136
+ 📊 CODE REVIEW STATUS
137
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
138
+
139
+ 🔧 Configuração:
140
+ ∟ Arquivo: ✅ Configurado
141
+ ∟ Stack: TypeScript + React + NX
142
+ ∟ Última atualização: 2025-11-24
143
+
144
+ 📈 Métricas (últimos 30 dias):
145
+ ∟ PRs revisados: 45
146
+ ∟ Issues detectados: 127
147
+ ∟ Auto-fixes aplicados: 23
148
+
149
+ 🎯 Saúde: 95% ████████████░░░░░
150
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
151
+ ```
152
+
153
+ ### Passo 3: Atualizar ClickUp
154
+
155
+ SE há task associada:
156
+ - Adicionar comentário com resultado
157
+ - Atualizar status se necessário
158
+
159
+ ## 📤 Output Esperado
160
+
161
+ ### Setup Sucesso
162
+
163
+ ```
164
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
165
+ ✅ CODE REVIEW CONFIGURADO
166
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
167
+
168
+ 📁 Criado: .github/workflows/code-review.yml
169
+
170
+ 🔧 Stack Detectado:
171
+ ∟ Package Manager: pnpm
172
+ ∟ Monorepo: NX
173
+ ∟ Backend: Fastify
174
+ ∟ Frontend: React
175
+
176
+ ⚠️ Próximos Passos:
177
+ 1. Configurar OPENAI_API_KEY em Settings > Secrets
178
+ 2. Testar com um PR de teste
179
+
180
+ 🚀 Comando: /git/code-review validate
181
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
182
+ ```
183
+
184
+ ### Validação com Issues
185
+
186
+ ```
187
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
188
+ ⚠️ CODE REVIEW - ISSUES ENCONTRADOS
189
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
190
+
191
+ 🔴 Críticos:
192
+ ∟ Secret OPENAI_API_KEY não configurado
193
+
194
+ 🟡 Importantes:
195
+ ∟ Versão do action desatualizada (usar @v1.2.0)
196
+
197
+ 💡 Sugestões:
198
+ ∟ Adicionar filtro de arquivos .ts/.tsx
199
+
200
+ 🔧 Auto-fix disponível? Sim
201
+ Executar auto-fix? (s/n)
202
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
203
+ ```
204
+
205
+ ## 🔗 Referências
206
+
207
+ - Checklist: `common/prompts/code-review-checklist.md`
208
+ - Padrões Git: `common/prompts/git-workflow-patterns.md`
209
+ - Agente: @code-reviewer para reviews manuais
210
+
211
+ ## ⚠️ Notas
212
+
213
+ - Requer GitHub Actions habilitado
214
+ - Secret `OPENAI_API_KEY` obrigatório
215
+ - Funciona com qualquer stack JavaScript/TypeScript
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: docs-health
3
+ description: |
4
+ Health check completo da documentação do projeto.
5
+ Use para diagnóstico de qualidade, gaps e recomendações.
6
+ model: sonnet
7
+
8
+ parameters:
9
+ - name: path
10
+ description: Caminho para analisar (default: docs/)
11
+ required: false
12
+ default: docs/
13
+
14
+ category: docs
15
+ tags:
16
+ - health-check
17
+ - documentation
18
+ - quality
19
+
20
+ version: "4.0.0"
21
+ updated: "2025-12-20"
22
+
23
+ related_commands:
24
+ - /docs/validate-docs
25
+ - /docs/build-tech-docs
26
+
27
+ related_agents:
28
+ - system-documentation-orchestrator
29
+ level: intermediate
30
+ context: technical
31
+ ---
32
+
33
+ # 🏥 Docs Health Check
34
+
35
+ Verificação abrangente de saúde da documentação.
36
+
37
+ ## 🎯 Objetivo
38
+
39
+ Fornecer diagnóstico completo com score, gaps e recomendações.
40
+
41
+ ## ⚡ Fluxo de Execução
42
+
43
+ ### Passo 1: Coletar Métricas
44
+
45
+ ```bash
46
+ # Contar arquivos de docs
47
+ TOTAL=$(find {{path}} -name "*.md" | wc -l)
48
+
49
+ # Verificar estrutura
50
+ ls -la {{path}}/
51
+
52
+ # Arquivos grandes (>500 linhas)
53
+ find {{path}} -name "*.md" -exec wc -l {} \; | sort -rn | head -10
54
+ ```
55
+
56
+ ### Passo 2: Analisar Estrutura
57
+
58
+ #### Checklist de Estrutura
59
+ - [ ] README.md existe
60
+ - [ ] Índice/navegação presente
61
+ - [ ] Pastas organizadas por categoria
62
+ - [ ] Naming consistente (kebab-case)
63
+
64
+ ### Passo 3: Avaliar Qualidade
65
+
66
+ #### Critérios de Qualidade
67
+
68
+ | Critério | Peso | Verificação |
69
+ |----------|------|-------------|
70
+ | Completude | 25% | Seções obrigatórias |
71
+ | Consistência | 20% | Formatação uniforme |
72
+ | Atualidade | 20% | Datas de update |
73
+ | Links | 15% | Links funcionais |
74
+ | Exemplos | 10% | Código de exemplo |
75
+ | TOC | 10% | Table of contents |
76
+
77
+ ### Passo 4: Identificar Gaps
78
+
79
+ ```bash
80
+ # Arquivos sem update recente (>90 dias)
81
+ find {{path}} -name "*.md" -mtime +90
82
+
83
+ # Arquivos pequenos (<50 linhas)
84
+ find {{path}} -name "*.md" -exec wc -l {} \; | awk '$1<50'
85
+ ```
86
+
87
+ ### Passo 5: Calcular Score
88
+
89
+ ```
90
+ Score = (Estrutura × 0.25) + (Qualidade × 0.25) +
91
+ (Cobertura × 0.25) + (Atualidade × 0.25)
92
+ ```
93
+
94
+ | Score | Status |
95
+ |-------|--------|
96
+ | 90-100 | 🟢 Excelente |
97
+ | 70-89 | 🟡 Bom |
98
+ | 50-69 | 🟠 Regular |
99
+ | <50 | 🔴 Crítico |
100
+
101
+ ## 📤 Output Esperado
102
+
103
+ ```
104
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
105
+ 🏥 DOCS HEALTH REPORT
106
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
107
+
108
+ 📊 Score Geral: 78/100 🟡
109
+
110
+ 📈 Métricas:
111
+ ∟ Arquivos: 45
112
+ ∟ Linhas: 12,450
113
+ ∟ Cobertura: 72%
114
+
115
+ ✅ Pontos Fortes:
116
+ ∟ Estrutura organizada
117
+ ∟ README completo
118
+ ∟ Exemplos presentes
119
+
120
+ ⚠️ Gaps Identificados:
121
+ ∟ 5 arquivos sem atualização >90d
122
+ ∟ API docs incompleta
123
+ ∟ Falta troubleshooting
124
+
125
+ 💡 Recomendações:
126
+ 1. Atualizar docs de API
127
+ 2. Adicionar seção troubleshooting
128
+ 3. Revisar arquivos antigos
129
+
130
+ 🎯 Meta: 85/100 (próximo quarter)
131
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
132
+ ```
133
+
134
+ ## 🔗 Referências
135
+
136
+ - Validação: /docs/validate-docs
137
+ - Agente: @system-documentation-orchestrator
138
+
139
+ ## ⚠️ Notas
140
+
141
+ - Executar mensalmente para tracking
142
+ - Score histórico salvo em `.cursor/metrics/`
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: fast-commit
3
+ description: |
4
+ Adiciona todas as mudanças e faz commit rápido.
5
+ Use para commits típicos no fluxo do Sistema Onion.
6
+ model: sonnet
7
+ category: git
8
+ tags: [git, commit, fast]
9
+ version: "4.0.0"
10
+ updated: "2025-12-20"
11
+ level: intermediate
12
+ context: technical
13
+ ---
14
+
15
+ # Fast Commit
16
+
17
+ Adiciona todas as mudanças e faz commit com mensagem especificada.
18
+
19
+ ## 🎯 Uso
20
+
21
+ ```bash
22
+ /git/fast-commit "feat: implement admin dashboard basic flow"
23
+ ```
24
+
25
+ ## ⚡ Fluxo de Execução
26
+
27
+ 1. `git add .` — adiciona todas as mudanças
28
+ 2. `git commit -m "<mensagem>"` — commit com a mensagem
29
+
30
+ ## 📋 Convenção de Mensagens
31
+
32
+ Use [Conventional Commits](https://conventionalcommits.org):
33
+
34
+ | Tipo | Descrição |
35
+ |------|-----------|
36
+ | `feat:` | Nova funcionalidade |
37
+ | `fix:` | Correção de bug |
38
+ | `docs:` | Documentação |
39
+ | `refactor:` | Refatoração |
40
+ | `chore:` | Manutenção |
41
+
42
+ ## ⚠️ Notas
43
+
44
+ - SEMPRE revise `git status` antes
45
+ - Prefira commits atômicos e descritivos