@onion-architect-ai/cli 4.1.0-beta.4 → 4.1.0-beta.5
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.
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/templates/.cursor/agents/development/c4-architecture-specialist.md +712 -0
- package/templates/.cursor/agents/development/c4-documentation-specialist.md +658 -0
- package/templates/.cursor/agents/development/clickup-specialist.md +397 -0
- package/templates/.cursor/agents/development/cursor-specialist.md +249 -0
- package/templates/.cursor/agents/development/docs-reverse-engineer.md +418 -0
- package/templates/.cursor/agents/development/gamma-api-specialist.md +1169 -0
- package/templates/.cursor/agents/development/gitflow-specialist.md +1207 -0
- package/templates/.cursor/agents/development/linux-security-specialist.md +676 -0
- package/templates/.cursor/agents/development/mermaid-specialist.md +516 -0
- package/templates/.cursor/agents/development/nodejs-specialist.md +673 -0
- package/templates/.cursor/agents/development/nx-migration-specialist.md +867 -0
- package/templates/.cursor/agents/development/nx-monorepo-specialist.md +619 -0
- package/templates/.cursor/agents/development/postgres-specialist.md +1124 -0
- package/templates/.cursor/agents/development/react-developer.md +132 -0
- package/templates/.cursor/agents/development/runflow-specialist.md +278 -0
- package/templates/.cursor/agents/development/system-documentation-orchestrator.md +1388 -0
- package/templates/.cursor/agents/development/task-specialist.md +618 -0
- package/templates/.cursor/agents/development/whisper-specialist.md +373 -0
- package/templates/.cursor/agents/development/zen-engine-specialist.md +421 -0
- package/templates/.cursor/agents/git/branch-code-reviewer.md +200 -0
- package/templates/.cursor/agents/git/branch-documentation-writer.md +162 -0
- package/templates/.cursor/agents/git/branch-metaspec-checker.md +68 -0
- package/templates/.cursor/agents/git/branch-test-planner.md +177 -0
- package/templates/.cursor/agents/product/branding-positioning-specialist.md +1030 -0
- package/templates/.cursor/agents/product/extract-meeting-specialist.md +395 -0
- package/templates/.cursor/agents/product/meeting-consolidator.md +483 -0
- package/templates/.cursor/agents/product/pain-price-specialist.md +509 -0
- package/templates/.cursor/agents/product/presentation-orchestrator.md +1191 -0
- package/templates/.cursor/agents/product/product-agent.md +202 -0
- package/templates/.cursor/agents/product/story-points-framework-specialist.md +539 -0
- package/templates/.cursor/agents/product/storytelling-business-specialist.md +891 -0
- package/templates/.cursor/agents/review/code-reviewer.md +155 -0
- package/templates/.cursor/agents/testing/test-agent.md +425 -0
- package/templates/.cursor/agents/testing/test-engineer.md +295 -0
- package/templates/.cursor/agents/testing/test-planner.md +118 -0
- package/templates/.cursor/commands/docs/build-business-docs.md +276 -0
- package/templates/.cursor/commands/docs/build-index.md +128 -0
- package/templates/.cursor/commands/docs/build-tech-docs.md +204 -0
- package/templates/.cursor/commands/docs/consolidate-documents.md +424 -0
- package/templates/.cursor/commands/docs/docs-health.md +142 -0
- package/templates/.cursor/commands/docs/help.md +306 -0
- package/templates/.cursor/commands/docs/refine-vision.md +27 -0
- package/templates/.cursor/commands/docs/reverse-consolidate.md +160 -0
- package/templates/.cursor/commands/docs/sync-sessions.md +320 -0
- package/templates/.cursor/commands/docs/validate-docs.md +159 -0
- package/templates/.cursor/commands/engineer/bump.md +43 -0
- package/templates/.cursor/commands/engineer/docs.md +39 -0
- package/templates/.cursor/commands/engineer/help.md +329 -0
- package/templates/.cursor/commands/engineer/hotfix.md +186 -0
- package/templates/.cursor/commands/engineer/plan.md +111 -0
- package/templates/.cursor/commands/engineer/pr-update.md +198 -0
- package/templates/.cursor/commands/engineer/pr.md +136 -0
- package/templates/.cursor/commands/engineer/pre-pr.md +91 -0
- package/templates/.cursor/commands/engineer/start.md +266 -0
- package/templates/.cursor/commands/engineer/validate-phase-sync.md +118 -0
- package/templates/.cursor/commands/engineer/warm-up.md +173 -0
- package/templates/.cursor/commands/engineer/work.md +169 -0
- package/templates/.cursor/commands/git/code-review.md +215 -0
- package/templates/.cursor/commands/git/fast-commit.md +45 -0
- package/templates/.cursor/commands/git/feature/finish.md +90 -0
- package/templates/.cursor/commands/git/feature/publish.md +91 -0
- package/templates/.cursor/commands/git/feature/start.md +158 -0
- package/templates/.cursor/commands/git/help.md +306 -0
- package/templates/.cursor/commands/git/hotfix/finish.md +98 -0
- package/templates/.cursor/commands/git/hotfix/start.md +94 -0
- package/templates/.cursor/commands/git/init.md +139 -0
- package/templates/.cursor/commands/git/release/finish.md +98 -0
- package/templates/.cursor/commands/git/release/start.md +95 -0
- package/templates/.cursor/commands/git/sync.md +228 -0
- package/templates/.cursor/commands/global/help.md +388 -0
- package/templates/.cursor/commands/product/analyze-pain-price.md +709 -0
- package/templates/.cursor/commands/product/branding.md +460 -0
- package/templates/.cursor/commands/product/check.md +48 -0
- package/templates/.cursor/commands/product/checklist-sync.md +241 -0
- package/templates/.cursor/commands/product/collect.md +96 -0
- package/templates/.cursor/commands/product/consolidate-meetings.md +306 -0
- package/templates/.cursor/commands/product/convert-to-tasks.md +220 -0
- package/templates/.cursor/commands/product/estimate.md +519 -0
- package/templates/.cursor/commands/product/extract-meeting.md +241 -0
- package/templates/.cursor/commands/product/feature.md +431 -0
- package/templates/.cursor/commands/product/help.md +212 -0
- package/templates/.cursor/commands/product/light-arch.md +97 -0
- package/templates/.cursor/commands/product/presentation.md +189 -0
- package/templates/.cursor/commands/product/refine.md +186 -0
- package/templates/.cursor/commands/product/spec.md +107 -0
- package/templates/.cursor/commands/product/task-check.md +340 -0
- package/templates/.cursor/commands/product/task.md +585 -0
- package/templates/.cursor/commands/product/transform-consolidated.md +592 -0
- package/templates/.cursor/commands/product/validate-task.md +294 -0
- package/templates/.cursor/commands/product/warm-up.md +187 -0
- package/templates/.cursor/commands/product/whisper.md +325 -0
- package/templates/.cursor/commands/test/e2e.md +392 -0
- package/templates/.cursor/commands/test/integration.md +523 -0
- package/templates/.cursor/commands/test/unit.md +378 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: help
|
|
3
|
+
description: Lista comandos disponíveis do contexto Technical organizados por nível de complexidade
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: technical
|
|
6
|
+
tags: [help, discovery, onboarding, levels]
|
|
7
|
+
version: "4.0.0"
|
|
8
|
+
updated: "2025-12-20"
|
|
9
|
+
level: starter
|
|
10
|
+
context: technical
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Technical Context - Help
|
|
14
|
+
|
|
15
|
+
Lista todos os comandos disponíveis no contexto **Technical**, organizados por nível de complexidade (starter, intermediate, advanced).
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 🎯 Uso
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Listar comandos starter (padrão - 80% dos casos)
|
|
23
|
+
/technical/help
|
|
24
|
+
|
|
25
|
+
# Listar comandos de um nível específico
|
|
26
|
+
/technical/help --level=starter
|
|
27
|
+
/technical/help --level=intermediate
|
|
28
|
+
/technical/help --level=advanced
|
|
29
|
+
|
|
30
|
+
# Listar todos os comandos
|
|
31
|
+
/technical/help --level=all
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 📋 Sistema de Níveis
|
|
37
|
+
|
|
38
|
+
O Sistema Onion organiza comandos em **3 níveis** baseados na frequência de uso:
|
|
39
|
+
|
|
40
|
+
| Nível | % Uso | Descrição | Onboarding |
|
|
41
|
+
|-------|-------|-----------|------------|
|
|
42
|
+
| **Starter** | 80% | Comandos essenciais para desenvolvimento diário | ~20 min |
|
|
43
|
+
| **Intermediate** | 15% | Workflows avançados e operações especializadas | ~40 min |
|
|
44
|
+
| **Advanced** | 5% | Automações complexas e casos edge | ~60 min |
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 📊 Comandos Disponíveis
|
|
49
|
+
|
|
50
|
+
Você me pediu para executar o comando help. Vou listar os comandos organizados por nível:
|
|
51
|
+
|
|
52
|
+
### 🌟 STARTER COMMANDS (8 comandos - 80% dos casos)
|
|
53
|
+
**⏱️ Tempo de onboarding: ~20 minutos**
|
|
54
|
+
|
|
55
|
+
Estes são os comandos que você usará no desenvolvimento diário:
|
|
56
|
+
|
|
57
|
+
1. **`/technical/work "task-id"`**
|
|
58
|
+
- Continuar trabalho em feature ativa, lê sessão e identifica próxima fase
|
|
59
|
+
- Use quando: Retomar desenvolvimento de uma task em progresso
|
|
60
|
+
- Exemplo: `/technical/work "86adf8jj6"`
|
|
61
|
+
|
|
62
|
+
2. **`/technical/plan "feature"`**
|
|
63
|
+
- Criar plano de desenvolvimento detalhado com fases
|
|
64
|
+
- Use quando: Iniciar nova feature, precisa quebrar em etapas
|
|
65
|
+
- Exemplo: `/technical/plan "user-authentication"`
|
|
66
|
+
|
|
67
|
+
3. **`/technical/pr`**
|
|
68
|
+
- Criar Pull Request com descrição automática da sessão
|
|
69
|
+
- Use quando: Finalizar feature e submeter para review
|
|
70
|
+
- Exemplo: `/technical/pr`
|
|
71
|
+
|
|
72
|
+
4. **`/technical/warm-up`**
|
|
73
|
+
- Preparar contexto técnico do projeto (stack, arquitetura, padrões)
|
|
74
|
+
- Use quando: Iniciar desenvolvimento em nova sessão
|
|
75
|
+
- Exemplo: `/technical/warm-up`
|
|
76
|
+
|
|
77
|
+
5. **`/technical/docs`**
|
|
78
|
+
- Gerar/atualizar documentação técnica do projeto
|
|
79
|
+
- Use quando: Documentar feature implementada ou arquitetura
|
|
80
|
+
- Exemplo: `/technical/docs`
|
|
81
|
+
|
|
82
|
+
6. **`/technical/sync`**
|
|
83
|
+
- Sincronizar branch local com remote, resolver conflitos
|
|
84
|
+
- Use quando: Atualizar código antes de começar desenvolvimento
|
|
85
|
+
- Exemplo: `/technical/sync`
|
|
86
|
+
|
|
87
|
+
7. **`/technical/init`**
|
|
88
|
+
- Inicializar repositório git com gitflow ou outro workflow
|
|
89
|
+
- Use quando: Setup inicial de novo projeto
|
|
90
|
+
- Exemplo: `/technical/init`
|
|
91
|
+
|
|
92
|
+
8. **`/technical/help`**
|
|
93
|
+
- Este comando! Lista comandos disponíveis por nível
|
|
94
|
+
- Use quando: Descobrir comandos ou aprender sistema
|
|
95
|
+
- Exemplo: `/technical/help --level=intermediate`
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### 🔧 INTERMEDIATE COMMANDS (13 comandos - 15% dos casos)
|
|
100
|
+
**⏱️ Tempo de onboarding: ~40 minutos**
|
|
101
|
+
|
|
102
|
+
Comandos para workflows mais avançados:
|
|
103
|
+
|
|
104
|
+
1. **`/technical/start "feature"`** - Iniciar nova feature (cria sessão, branch, plan)
|
|
105
|
+
2. **`/technical/pre-pr`** - Validar código antes de criar PR (lint, tests, docs)
|
|
106
|
+
3. **`/technical/pr-update`** - Atualizar PR existente com novos commits e descrição
|
|
107
|
+
4. **`/technical/code-review`** - Realizar code review com checklist de qualidade
|
|
108
|
+
5. **`/technical/fast-commit`** - Commit rápido seguindo conventional commits
|
|
109
|
+
6. **`/technical/build-index`** - Construir índice de documentação técnica
|
|
110
|
+
7. **`/technical/build-tech-docs`** - Gerar documentação técnica completa
|
|
111
|
+
8. **`/technical/build-business-docs`** - Gerar documentação de negócio
|
|
112
|
+
9. **`/technical/validate-docs`** - Validar consistência da documentação
|
|
113
|
+
10. **`/technical/docs-health`** - Analisar saúde da documentação (cobertura, atualização)
|
|
114
|
+
11. **`/technical/sync-sessions`** - Sincronizar sessões de desenvolvimento
|
|
115
|
+
12. **`/technical/unit`** - Executar/criar testes unitários
|
|
116
|
+
13. **`/technical/integration`** - Executar/criar testes de integração
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
### ⚡ ADVANCED COMMANDS (14 comandos - 5% dos casos)
|
|
121
|
+
**⏱️ Tempo de onboarding: ~60 minutos**
|
|
122
|
+
|
|
123
|
+
Comandos especializados para casos específicos:
|
|
124
|
+
|
|
125
|
+
**Gestão de Releases:**
|
|
126
|
+
1. **`/technical/bump`** - Incrementar versão do projeto (semver)
|
|
127
|
+
2. **`/technical/hotfix`** - Criar branch de hotfix para correção urgente
|
|
128
|
+
3. **`/technical/validate-phase-sync`** - Validar sincronização entre fases de desenvolvimento
|
|
129
|
+
|
|
130
|
+
**Documentação Avançada:**
|
|
131
|
+
4. **`/technical/refine-vision`** - Refinar visão técnica do projeto
|
|
132
|
+
5. **`/technical/consolidate-documents`** - Consolidar múltiplos documentos
|
|
133
|
+
6. **`/technical/reverse-consolidate`** - Reverter consolidação de documentos
|
|
134
|
+
|
|
135
|
+
**Testes Avançados:**
|
|
136
|
+
7. **`/technical/e2e`** - Executar/criar testes end-to-end
|
|
137
|
+
|
|
138
|
+
**Git Workflows (Feature):**
|
|
139
|
+
8. **`/technical/feature-start`** - Iniciar branch de feature (gitflow)
|
|
140
|
+
9. **`/technical/feature-finish`** - Finalizar branch de feature
|
|
141
|
+
10. **`/technical/feature-publish`** - Publicar feature em remote
|
|
142
|
+
|
|
143
|
+
**Git Workflows (Hotfix):**
|
|
144
|
+
11. **`/technical/hotfix-start`** - Iniciar hotfix
|
|
145
|
+
12. **`/technical/hotfix-finish`** - Finalizar hotfix
|
|
146
|
+
|
|
147
|
+
**Git Workflows (Release):**
|
|
148
|
+
13. **`/technical/release-start`** - Iniciar release
|
|
149
|
+
14. **`/technical/release-finish`** - Finalizar release
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## 🚀 Próximos Passos
|
|
154
|
+
|
|
155
|
+
### Se você é novo no Technical Context:
|
|
156
|
+
|
|
157
|
+
1. **Comece pelos Starter Commands** (os 8 primeiros)
|
|
158
|
+
- Foque em `/technical/work` e `/technical/plan`
|
|
159
|
+
- Pratique criando uma sessão de desenvolvimento
|
|
160
|
+
- Tempo estimado: 20-30 minutos
|
|
161
|
+
|
|
162
|
+
2. **Explore Intermediate Commands**
|
|
163
|
+
- Experimente `/technical/start` para workflow completo
|
|
164
|
+
- Use `/technical/pre-pr` para validar qualidade
|
|
165
|
+
- Tempo estimado: +40 minutos
|
|
166
|
+
|
|
167
|
+
3. **Descubra Agentes Especializados**
|
|
168
|
+
```bash
|
|
169
|
+
@react-developer # Desenvolvimento React/Frontend
|
|
170
|
+
@nodejs-specialist # Backend Node.js
|
|
171
|
+
@postgres-specialist # Database PostgreSQL
|
|
172
|
+
@zen-engine-specialist # ZenStack ORM
|
|
173
|
+
@test-engineer # Testes automatizados
|
|
174
|
+
@code-reviewer # Review de código
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Workflow Típico de Desenvolvimento:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
# 1. Iniciar nova feature
|
|
181
|
+
/technical/start "user-dashboard"
|
|
182
|
+
|
|
183
|
+
# 2. Durante desenvolvimento
|
|
184
|
+
/technical/work "task-id"
|
|
185
|
+
|
|
186
|
+
# 3. Antes de finalizar
|
|
187
|
+
/technical/pre-pr
|
|
188
|
+
|
|
189
|
+
# 4. Criar Pull Request
|
|
190
|
+
/technical/pr
|
|
191
|
+
|
|
192
|
+
# 5. Após merge
|
|
193
|
+
/technical/sync
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Pronto para Business Context?
|
|
197
|
+
|
|
198
|
+
Para especificações e planejamento de produto:
|
|
199
|
+
```bash
|
|
200
|
+
/business/help # Comandos de produto/negócio
|
|
201
|
+
/business/spec "feature" # Criar especificação
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## 📚 Documentação Relacionada
|
|
207
|
+
|
|
208
|
+
- **Sistema de Níveis**: `docs/onion/levels-system.md`
|
|
209
|
+
- **READMEs**: `.onion/contexts/technical/README.md`
|
|
210
|
+
- **Agentes**: `.onion/contexts/technical/agents/`
|
|
211
|
+
- **Configuração**: `.onion/contexts/technical/.context-config.yml`
|
|
212
|
+
- **Sessions**: `.cursor/sessions/` (rastreamento de desenvolvimento)
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## 💡 Dicas Úteis
|
|
217
|
+
|
|
218
|
+
### Filosofia 80/15/5
|
|
219
|
+
- **80%** do seu tempo: Use apenas comandos **starter**
|
|
220
|
+
- **15%** do seu tempo: Use comandos **intermediate**
|
|
221
|
+
- **5%** do seu tempo: Use comandos **advanced**
|
|
222
|
+
|
|
223
|
+
### Descoberta Progressiva
|
|
224
|
+
Cada comando inclui seção "🚀 Próximos Passos" sugerindo o que fazer em seguida.
|
|
225
|
+
|
|
226
|
+
### Sessions & Context Management
|
|
227
|
+
O Onion v4 rastreia suas sessões de desenvolvimento:
|
|
228
|
+
- `.cursor/sessions/[feature]/` contém context.md, plan.md, architecture.md
|
|
229
|
+
- Comandos `/work` e `/start` gerenciam automaticamente
|
|
230
|
+
- Sessions são **CAMADA 5** do ciclo completo Onion
|
|
231
|
+
|
|
232
|
+
### Flags e Opções
|
|
233
|
+
```bash
|
|
234
|
+
--level=starter # Filtrar por nível
|
|
235
|
+
--level=all # Ver todos os níveis
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## 🎓 Onboarding Recomendado
|
|
241
|
+
|
|
242
|
+
### Dia 1 (30 minutos)
|
|
243
|
+
1. Execute `/technical/warm-up`
|
|
244
|
+
2. Pratique `/technical/plan "test-feature"`
|
|
245
|
+
3. Teste `/technical/work` em uma task real
|
|
246
|
+
|
|
247
|
+
### Semana 1 (3 horas)
|
|
248
|
+
- Domine os 8 starter commands
|
|
249
|
+
- Experimente 4-5 intermediate commands
|
|
250
|
+
- Crie sua primeira feature completa (start → work → pr)
|
|
251
|
+
|
|
252
|
+
### Mês 1 (8 horas)
|
|
253
|
+
- Explore todos os intermediate commands
|
|
254
|
+
- Teste gitflow (feature/hotfix/release)
|
|
255
|
+
- Integre no workflow diário da equipe
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## 🔄 Integração com Business Context
|
|
260
|
+
|
|
261
|
+
O Technical Context trabalha em conjunto com Business:
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
# 1. Business: Criar especificação
|
|
265
|
+
/business/spec "dashboard-analytics"
|
|
266
|
+
|
|
267
|
+
# 2. Business: Estimar complexidade
|
|
268
|
+
/business/estimate "dashboard-analytics"
|
|
269
|
+
|
|
270
|
+
# 3. Business: Criar task
|
|
271
|
+
/business/task "dashboard-analytics"
|
|
272
|
+
|
|
273
|
+
# 4. Technical: Iniciar desenvolvimento
|
|
274
|
+
/technical/start "dashboard-analytics"
|
|
275
|
+
|
|
276
|
+
# 5. Technical: Desenvolver
|
|
277
|
+
/technical/work "task-id"
|
|
278
|
+
|
|
279
|
+
# 6. Technical: Finalizar
|
|
280
|
+
/technical/pr
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
**📊 Estatísticas do Technical Context:**
|
|
286
|
+
- **Total**: 36 comandos (mais que business!)
|
|
287
|
+
- **Starter**: 8 (22%)
|
|
288
|
+
- **Intermediate**: 13 (36%)
|
|
289
|
+
- **Advanced**: 14 (39%)
|
|
290
|
+
- **Agentes**: 23 especializados
|
|
291
|
+
- **Tempo total onboarding**: ~120 minutos (todos os níveis)
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## 🏗️ Arquitetura de Sessions
|
|
296
|
+
|
|
297
|
+
```
|
|
298
|
+
.cursor/sessions/
|
|
299
|
+
├── feature-x/
|
|
300
|
+
│ ├── context.md # Objetivo, requisitos, decisões
|
|
301
|
+
│ ├── architecture.md # Design técnico, trade-offs
|
|
302
|
+
│ ├── plan.md # Fases de implementação
|
|
303
|
+
│ └── notes.md # Notas de desenvolvimento
|
|
304
|
+
└── feature-y/
|
|
305
|
+
└── ...
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
Comandos que gerenciam sessions automaticamente:
|
|
309
|
+
- `/technical/start` - Cria nova session
|
|
310
|
+
- `/technical/work` - Lê e atualiza session ativa
|
|
311
|
+
- `/technical/pr` - Usa session para gerar descrição
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
## 🆘 Precisa de Ajuda?
|
|
316
|
+
|
|
317
|
+
- **Help de outro contexto**: `/business/help`, `/customer-success/help`
|
|
318
|
+
- **Help global**: `/help`
|
|
319
|
+
- **Agente de ajuda**: `@onion` (orquestrador principal)
|
|
320
|
+
- **Documentação**: `docs/onion/`
|
|
321
|
+
- **Agentes especializados**:
|
|
322
|
+
- `@cursor-specialist` - Problemas com IDE
|
|
323
|
+
- `@gitflow-specialist` - Workflows git
|
|
324
|
+
- `@nx-monorepo-specialist` - Monorepo NX
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
**Sistema Onion v4.0** - Multi-Context Development Orchestrator 🧅
|
|
329
|
+
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hotfix
|
|
3
|
+
description: |
|
|
4
|
+
Emergency workflow completo: task ClickUp + branch hotfix + desenvolvimento.
|
|
5
|
+
Use para correções urgentes em produção.
|
|
6
|
+
model: sonnet
|
|
7
|
+
|
|
8
|
+
parameters:
|
|
9
|
+
- name: description
|
|
10
|
+
description: Descrição do hotfix
|
|
11
|
+
required: true
|
|
12
|
+
- name: related_tasks
|
|
13
|
+
description: IDs de tasks relacionadas (comma-separated)
|
|
14
|
+
required: false
|
|
15
|
+
- name: tags
|
|
16
|
+
description: Tags adicionais (comma-separated)
|
|
17
|
+
required: false
|
|
18
|
+
|
|
19
|
+
category: engineer
|
|
20
|
+
tags:
|
|
21
|
+
- hotfix
|
|
22
|
+
- emergency
|
|
23
|
+
- gitflow
|
|
24
|
+
|
|
25
|
+
version: "4.0.0"
|
|
26
|
+
updated: "2025-12-20"
|
|
27
|
+
|
|
28
|
+
related_commands:
|
|
29
|
+
- /git/hotfix/start
|
|
30
|
+
- /git/hotfix/finish
|
|
31
|
+
- /product/task
|
|
32
|
+
|
|
33
|
+
related_agents:
|
|
34
|
+
- gitflow-specialist
|
|
35
|
+
- clickup-specialist
|
|
36
|
+
level: advanced
|
|
37
|
+
context: technical
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
# 🔥 Engineer Hotfix
|
|
41
|
+
|
|
42
|
+
Emergency workflow completo: Task + Branch + Desenvolvimento.
|
|
43
|
+
|
|
44
|
+
## 🎯 Objetivo
|
|
45
|
+
|
|
46
|
+
Executar workflow de hotfix end-to-end em um único comando.
|
|
47
|
+
|
|
48
|
+
## ⚡ Fluxo de Execução
|
|
49
|
+
|
|
50
|
+
### Passo 1: Validar Input
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
# Verificar descrição
|
|
54
|
+
if [ -z "{{description}}" ]; then
|
|
55
|
+
echo "❌ Descrição obrigatória"
|
|
56
|
+
exit 1
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
# Verificar branch atual
|
|
60
|
+
CURRENT=$(git branch --show-current)
|
|
61
|
+
if [[ ! "$CURRENT" =~ ^(main|master|develop)$ ]]; then
|
|
62
|
+
echo "⚠️ Recomendado: iniciar de main/master"
|
|
63
|
+
fi
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Passo 2: Criar Task Emergencial
|
|
67
|
+
|
|
68
|
+
Via ClickUp MCP:
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
name: "🔥 HOTFIX: {{description}}"
|
|
72
|
+
list_id: [lista de hotfixes]
|
|
73
|
+
priority: urgent
|
|
74
|
+
tags:
|
|
75
|
+
- hotfix
|
|
76
|
+
- urgent
|
|
77
|
+
- {{tags}}
|
|
78
|
+
status: "In Progress"
|
|
79
|
+
markdown_description: |
|
|
80
|
+
## 🚨 Emergency Hotfix
|
|
81
|
+
|
|
82
|
+
**Descrição**: {{description}}
|
|
83
|
+
|
|
84
|
+
## 📋 Checklist
|
|
85
|
+
- [ ] Diagnóstico
|
|
86
|
+
- [ ] Implementação
|
|
87
|
+
- [ ] Testes
|
|
88
|
+
- [ ] Deploy
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Passo 3: Criar Branch Hotfix
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# Garantir main atualizada
|
|
95
|
+
git checkout main
|
|
96
|
+
git pull origin main
|
|
97
|
+
|
|
98
|
+
# Criar hotfix branch
|
|
99
|
+
VERSION=$(cat package.json | grep version | head -1 | awk -F'"' '{print $4}')
|
|
100
|
+
PATCH=$(echo $VERSION | awk -F. '{print $1"."$2"."$3+1}')
|
|
101
|
+
BRANCH="hotfix/$PATCH-$(echo '{{description}}' | tr ' ' '-' | tr '[:upper:]' '[:lower:]' | head -c 30)"
|
|
102
|
+
|
|
103
|
+
git checkout -b $BRANCH
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Passo 4: Setup Session
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Criar sessão de desenvolvimento
|
|
110
|
+
mkdir -p .cursor/sessions/hotfix-$(date +%Y%m%d)/
|
|
111
|
+
|
|
112
|
+
# Criar context.md
|
|
113
|
+
cat > .cursor/sessions/hotfix-$(date +%Y%m%d)/context.md << EOF
|
|
114
|
+
# Hotfix Context
|
|
115
|
+
|
|
116
|
+
## Task
|
|
117
|
+
- ID: [task_id criado]
|
|
118
|
+
- URL: [url do clickup]
|
|
119
|
+
|
|
120
|
+
## Branch
|
|
121
|
+
- Nome: $BRANCH
|
|
122
|
+
- Base: main
|
|
123
|
+
|
|
124
|
+
## Descrição
|
|
125
|
+
{{description}}
|
|
126
|
+
EOF
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Passo 5: Iniciar Desenvolvimento
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
133
|
+
🔥 HOTFIX INICIADO
|
|
134
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
135
|
+
|
|
136
|
+
📋 Task: [URL do ClickUp]
|
|
137
|
+
🌿 Branch: hotfix/X.X.X-description
|
|
138
|
+
|
|
139
|
+
⚡ Próximos Passos:
|
|
140
|
+
1. Implementar correção
|
|
141
|
+
2. Testar localmente
|
|
142
|
+
3. /engineer/pre-pr
|
|
143
|
+
4. /git/hotfix/finish
|
|
144
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## 📤 Output Esperado
|
|
148
|
+
|
|
149
|
+
### Sucesso
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
153
|
+
✅ HOTFIX SETUP COMPLETO
|
|
154
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
155
|
+
|
|
156
|
+
📋 ClickUp:
|
|
157
|
+
∟ Task: 🔥 HOTFIX: {{description}}
|
|
158
|
+
∟ ID: 86adfxxxx
|
|
159
|
+
∟ Status: In Progress
|
|
160
|
+
∟ Priority: Urgent
|
|
161
|
+
|
|
162
|
+
🌿 Git:
|
|
163
|
+
∟ Branch: hotfix/1.2.3-fix-description
|
|
164
|
+
∟ Base: main
|
|
165
|
+
∟ Remote: origin
|
|
166
|
+
|
|
167
|
+
📁 Session:
|
|
168
|
+
∟ Path: .cursor/sessions/hotfix-20251124/
|
|
169
|
+
|
|
170
|
+
🚀 Comandos:
|
|
171
|
+
∟ Desenvolver: /engineer/work
|
|
172
|
+
∟ Pre-PR: /engineer/pre-pr
|
|
173
|
+
∟ Finalizar: /git/hotfix/finish
|
|
174
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## 🔗 Referências
|
|
178
|
+
|
|
179
|
+
- Padrões: `common/prompts/git-workflow-patterns.md`
|
|
180
|
+
- Agente: @gitflow-specialist
|
|
181
|
+
|
|
182
|
+
## ⚠️ Notas
|
|
183
|
+
|
|
184
|
+
- Sempre parte de `main` ou `master`
|
|
185
|
+
- Task criada com prioridade máxima
|
|
186
|
+
- Merge automático para main E develop no finish
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan
|
|
3
|
+
description: Planejamento de feature. Analisa e cria plano estruturado.
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: engineer
|
|
6
|
+
tags: [planning, architecture, design]
|
|
7
|
+
version: "4.0.0"
|
|
8
|
+
updated: "2025-12-20"
|
|
9
|
+
level: starter
|
|
10
|
+
context: technical
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Engineer Reason
|
|
14
|
+
|
|
15
|
+
Este é o comando para iniciar o planejamento de uma funcionalidade.
|
|
16
|
+
|
|
17
|
+
<arguments>
|
|
18
|
+
#$ARGUMENTS
|
|
19
|
+
</arguments>
|
|
20
|
+
|
|
21
|
+
## Análise
|
|
22
|
+
|
|
23
|
+
Leia os arquivos context.md e architecture.md na pasta .cursor/sessions/<feature-slug> se ainda não tiver feito.
|
|
24
|
+
|
|
25
|
+
Sua tarefa agora é criar um plano de implementação detalhado (plan.md) para esta funcionalidade. O objetivo desta documentação é criar uma abordagem de implementação faseada que nos permita construir a funcionalidade incrementalmente, testando cada fase conforme avançamos. E também deve tornar possível retomar o trabalho caso nossa sessão seja interrompida.
|
|
26
|
+
|
|
27
|
+
O plan.md deve dividir a implementação em fases, cada fase com um pedaço do trabalho que pode ser realizado por um humano em 2 horas.
|
|
28
|
+
|
|
29
|
+
O template para o plan.md é:
|
|
30
|
+
|
|
31
|
+
<plan>
|
|
32
|
+
# [NOME DA FUNCIONALIDADE]
|
|
33
|
+
|
|
34
|
+
Se você está trabalhando nesta funcionalidade, certifique-se de atualizar este arquivo plan.md conforme progride.
|
|
35
|
+
|
|
36
|
+
## FASE 1 [Completada ✅]
|
|
37
|
+
|
|
38
|
+
Detalhes desta parte da funcionalidade
|
|
39
|
+
|
|
40
|
+
### Uma tarefa que foi feita [Completada ✅]
|
|
41
|
+
|
|
42
|
+
Detalhes sobre a tarefa
|
|
43
|
+
|
|
44
|
+
### Uma tarefa que foi feita [Completada ✅]
|
|
45
|
+
|
|
46
|
+
Detalhes sobre a tarefa
|
|
47
|
+
|
|
48
|
+
### Comentários:
|
|
49
|
+
- Algo que aconteceu e nos forçou a mudar de direção
|
|
50
|
+
- Algo que aprendemos durante o desenvolvimento
|
|
51
|
+
- Algo que discutimos e concordamos
|
|
52
|
+
|
|
53
|
+
## FASE 2 [Em Progresso ⏰]
|
|
54
|
+
|
|
55
|
+
### Uma tarefa que precisa ser feita [Em Progresso ⏰]
|
|
56
|
+
|
|
57
|
+
Detalhes sobre a tarefa
|
|
58
|
+
|
|
59
|
+
### Uma tarefa que precisa ser feita [Não Iniciada ⏳]
|
|
60
|
+
|
|
61
|
+
Detalhes sobre a tarefa
|
|
62
|
+
|
|
63
|
+
## FASE 3 [Não Iniciada ⏳]
|
|
64
|
+
|
|
65
|
+
### Uma tarefa que precisa ser feita [Não Iniciada ⏳]
|
|
66
|
+
|
|
67
|
+
Detalhes sobre a tarefa
|
|
68
|
+
|
|
69
|
+
### Uma tarefa que precisa ser feita [Não Iniciada ⏳]
|
|
70
|
+
|
|
71
|
+
Detalhes sobre a tarefa
|
|
72
|
+
|
|
73
|
+
</plan>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
Dicas:
|
|
77
|
+
- Use repoprompt:search (se disponível) para encontrar arquivos específicos baseados nas respostas de descoberta
|
|
78
|
+
- Use repoprompt:set_selection e repoprompt:read_selected_files (se disponível) para ler código relevante em batch
|
|
79
|
+
- Analise detalhes específicos de implementação
|
|
80
|
+
- Use WebSearch e ou context7 para melhores práticas ou documentação de bibliotecas (se necessário)
|
|
81
|
+
|
|
82
|
+
No caso desta pesquisa levantar uma nova decisão arquitetural ou contradição com as decisões anteriores, você iniciará uma discussão sobre isso com o humano, concordará com as mudanças e atualizará o documento architecture.md para aquela funcionalidade se necessário.
|
|
83
|
+
|
|
84
|
+
Este documento também deve anotar quais tarefas precisam ser feitas sequencialmente ou em paralelo.
|
|
85
|
+
|
|
86
|
+
Uma vez que o plan.md esteja finalizado, informe ao humano que você está pronto para prosseguir para o próximo passo.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## 🚀 Próximos Passos
|
|
93
|
+
|
|
94
|
+
Agora que você tem um plano, execute:
|
|
95
|
+
|
|
96
|
+
1. **Iniciar desenvolvimento**:
|
|
97
|
+
```bash
|
|
98
|
+
/technical/work "feature-name"
|
|
99
|
+
```
|
|
100
|
+
Começa implementação seguindo o plano criado.
|
|
101
|
+
|
|
102
|
+
2. **Se precisar de estrutura completa**:
|
|
103
|
+
```bash
|
|
104
|
+
/technical/start "feature-name"
|
|
105
|
+
```
|
|
106
|
+
Cria sessão, branch git e documentação de arquitetura além do plano.
|
|
107
|
+
|
|
108
|
+
3. **Documentar decisões técnicas**:
|
|
109
|
+
Edite `.cursor/sessions/[feature]/architecture.md` conforme implementa para registrar trade-offs.
|
|
110
|
+
|
|
111
|
+
💡 **Dica**: Planeje antes de implementar! Um bom plano reduz retrabalho e facilita code review.
|