@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,228 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sync
|
|
3
|
+
description: |
|
|
4
|
+
Sincronização automática de branches com GitFlow e proteção de branches críticas.
|
|
5
|
+
Use após merge de PRs para manter branches atualizadas.
|
|
6
|
+
model: sonnet
|
|
7
|
+
|
|
8
|
+
parameters:
|
|
9
|
+
- name: branch
|
|
10
|
+
description: Branch alvo para sincronização (default: develop)
|
|
11
|
+
required: false
|
|
12
|
+
default: develop
|
|
13
|
+
|
|
14
|
+
category: git
|
|
15
|
+
tags:
|
|
16
|
+
- sync
|
|
17
|
+
- gitflow
|
|
18
|
+
- branch-protection
|
|
19
|
+
|
|
20
|
+
version: "4.0.0"
|
|
21
|
+
updated: "2025-12-20"
|
|
22
|
+
|
|
23
|
+
related_commands:
|
|
24
|
+
- /engineer/pr
|
|
25
|
+
- /git/feature/finish
|
|
26
|
+
|
|
27
|
+
related_agents:
|
|
28
|
+
- gitflow-specialist
|
|
29
|
+
level: starter
|
|
30
|
+
context: technical
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
# 🔄 Git Sync - Sincronização com GitFlow
|
|
34
|
+
|
|
35
|
+
Sincronização pós-merge de branches com proteção automática.
|
|
36
|
+
|
|
37
|
+
## 🎯 Objetivo
|
|
38
|
+
|
|
39
|
+
Automatizar sincronização após merge de PRs seguindo GitFlow.
|
|
40
|
+
|
|
41
|
+
## 🛡️ Branches Protegidas
|
|
42
|
+
|
|
43
|
+
| Branch | Push Direto | Fast-Forward |
|
|
44
|
+
|--------|-------------|--------------|
|
|
45
|
+
| `main` | ❌ Bloqueado | ✅ Permitido |
|
|
46
|
+
| `master` | ❌ Bloqueado | ✅ Permitido |
|
|
47
|
+
| `develop` | ❌ Bloqueado | ✅ Permitido |
|
|
48
|
+
|
|
49
|
+
## ⚡ Fluxo de Execução
|
|
50
|
+
|
|
51
|
+
### Passo 1: Detectar Contexto
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Branch atual
|
|
55
|
+
CURRENT=$(git branch --show-current)
|
|
56
|
+
|
|
57
|
+
# Target branch
|
|
58
|
+
TARGET="${{branch:-develop}}"
|
|
59
|
+
|
|
60
|
+
# Verificar se target é protegida
|
|
61
|
+
if [[ "$TARGET" =~ ^(main|master|develop)$ ]]; then
|
|
62
|
+
PROTECTED=true
|
|
63
|
+
fi
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Passo 2: Validar Estado
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# Verificar alterações não commitadas
|
|
70
|
+
if [[ -n $(git status --porcelain) ]]; then
|
|
71
|
+
echo "⚠️ Alterações não commitadas"
|
|
72
|
+
echo "Commit ou stash antes de continuar"
|
|
73
|
+
exit 1
|
|
74
|
+
fi
|
|
75
|
+
|
|
76
|
+
# Fetch remoto
|
|
77
|
+
git fetch origin --prune
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Passo 3: Análise GitFlow
|
|
81
|
+
|
|
82
|
+
Consultar @gitflow-specialist para estratégia:
|
|
83
|
+
|
|
84
|
+
| Branch Atual | Target | Estratégia |
|
|
85
|
+
|--------------|--------|------------|
|
|
86
|
+
| `feature/*` | `develop` | `feature-cleanup` |
|
|
87
|
+
| `release/*` | `main` | `release-sync` |
|
|
88
|
+
| `hotfix/*` | `main` | `hotfix-sync` |
|
|
89
|
+
| `develop` | `main` | `protected-sync` |
|
|
90
|
+
|
|
91
|
+
Referência: `common/prompts/git-workflow-patterns.md`
|
|
92
|
+
|
|
93
|
+
### Passo 4: Executar Sync
|
|
94
|
+
|
|
95
|
+
#### Para Branches Normais
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
git checkout $TARGET
|
|
99
|
+
git pull origin $TARGET
|
|
100
|
+
git checkout $CURRENT
|
|
101
|
+
git merge $TARGET --no-edit
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
#### Para Branches Protegidas
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# Apenas fast-forward permitido
|
|
108
|
+
git checkout $TARGET
|
|
109
|
+
git merge origin/$TARGET --ff-only
|
|
110
|
+
|
|
111
|
+
# Se falhar, instruir PR workflow
|
|
112
|
+
if [[ $? -ne 0 ]]; then
|
|
113
|
+
echo "❌ Fast-forward não possível"
|
|
114
|
+
echo "Use PR workflow: /engineer/pr"
|
|
115
|
+
fi
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Passo 5: Cleanup (se feature finalizada)
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Se branch feature foi merged
|
|
122
|
+
if git branch -r | grep -q "origin/$CURRENT"; then
|
|
123
|
+
echo "Branch $CURRENT ainda existe no remote"
|
|
124
|
+
else
|
|
125
|
+
echo "✅ Branch $CURRENT deletada no remote"
|
|
126
|
+
# Perguntar se quer deletar local
|
|
127
|
+
fi
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Passo 6: Atualizar ClickUp
|
|
131
|
+
|
|
132
|
+
SE sessão ativa com task_id:
|
|
133
|
+
- Comentário de sync realizado
|
|
134
|
+
- Atualizar status se necessário
|
|
135
|
+
|
|
136
|
+
## 📤 Output Esperado
|
|
137
|
+
|
|
138
|
+
### Sync Sucesso
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
142
|
+
✅ SYNC CONCLUÍDO
|
|
143
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
144
|
+
|
|
145
|
+
📊 Resumo:
|
|
146
|
+
∟ Branch atual: feature/user-auth
|
|
147
|
+
∟ Sincronizado com: develop
|
|
148
|
+
∟ Commits atualizados: 5
|
|
149
|
+
∟ Conflitos: 0
|
|
150
|
+
|
|
151
|
+
🚀 Próximo: /engineer/work
|
|
152
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Branch Protegida - Bloqueio
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
159
|
+
🛡️ BRANCH PROTEGIDA
|
|
160
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
161
|
+
|
|
162
|
+
❌ Push direto em 'develop' bloqueado
|
|
163
|
+
|
|
164
|
+
📋 Workflow Correto:
|
|
165
|
+
1. git checkout -b feature/my-changes
|
|
166
|
+
2. [fazer alterações]
|
|
167
|
+
3. /engineer/pr
|
|
168
|
+
4. [merge via GitHub/GitLab]
|
|
169
|
+
5. /git/sync develop
|
|
170
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Conflito Detectado
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
177
|
+
⚠️ CONFLITOS DETECTADOS
|
|
178
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
179
|
+
|
|
180
|
+
📁 Arquivos em conflito:
|
|
181
|
+
∟ src/components/Button.tsx
|
|
182
|
+
∟ src/utils/helpers.ts
|
|
183
|
+
|
|
184
|
+
💡 Resolução:
|
|
185
|
+
1. Editar arquivos manualmente
|
|
186
|
+
2. git add [arquivos]
|
|
187
|
+
3. git commit
|
|
188
|
+
4. /git/sync (novamente)
|
|
189
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## 🔗 Referências
|
|
193
|
+
|
|
194
|
+
- Padrões: `common/prompts/git-workflow-patterns.md`
|
|
195
|
+
- Agente: @gitflow-specialist
|
|
196
|
+
|
|
197
|
+
## ⚠️ Notas
|
|
198
|
+
|
|
199
|
+
- Sempre fazer `git fetch` antes
|
|
200
|
+
- Branches protegidas só aceitam fast-forward
|
|
201
|
+
- Em caso de conflito, resolver manualmente
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## 🚀 Próximos Passos
|
|
207
|
+
|
|
208
|
+
Após sincronizar:
|
|
209
|
+
|
|
210
|
+
1. **Iniciar novo trabalho**:
|
|
211
|
+
```bash
|
|
212
|
+
/technical/start "feature-name"
|
|
213
|
+
```
|
|
214
|
+
Começa nova feature com código atualizado.
|
|
215
|
+
|
|
216
|
+
2. **Ou retomar trabalho pausado**:
|
|
217
|
+
```bash
|
|
218
|
+
/technical/work "task-id"
|
|
219
|
+
```
|
|
220
|
+
Continua desenvolvimento existente.
|
|
221
|
+
|
|
222
|
+
3. **Se houve conflitos complexos**:
|
|
223
|
+
```bash
|
|
224
|
+
/technical/pre-pr
|
|
225
|
+
```
|
|
226
|
+
Valida que tudo ainda funciona após resolução.
|
|
227
|
+
|
|
228
|
+
💡 **Dica**: Sincronize frequentemente (manhã, antes de PRs) para minimizar conflitos.
|
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: help
|
|
3
|
+
description: Help global do Sistema Onion - lista contextos disponíveis e sistema de níveis
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: core
|
|
6
|
+
tags: [help, discovery, onboarding, global]
|
|
7
|
+
version: "4.0.0"
|
|
8
|
+
updated: "2025-12-20"
|
|
9
|
+
level: starter
|
|
10
|
+
context: core
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 🧅 Sistema Onion - Help Global
|
|
14
|
+
|
|
15
|
+
Bem-vindo ao **Sistema Onion v4.0** - Multi-Context Development Orchestrator!
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 🎯 O Que é o Sistema Onion?
|
|
20
|
+
|
|
21
|
+
O Onion é um **orquestrador de desenvolvimento multi-contexto** que organiza comandos, agentes e workflows para diferentes áreas da sua equipe, tudo em um único repositório monorepo.
|
|
22
|
+
|
|
23
|
+
### 🌟 Principais Características
|
|
24
|
+
|
|
25
|
+
- **Multi-Contexto**: Business, Technical, Customer Success, Compliance, Sales, Marketing
|
|
26
|
+
- **Sistema de Níveis**: Comandos organizados em starter/intermediate/advanced (80/15/5)
|
|
27
|
+
- **Descoberta Progressiva**: Comandos sugerem próximos passos automaticamente
|
|
28
|
+
- **IDE Agnóstico**: Funciona em Cursor, Windsurf, Claude Code
|
|
29
|
+
- **Onboarding Rápido**: 15-30 minutos vs 4-8 horas tradicional (90% redução)
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 📊 Contextos Disponíveis
|
|
34
|
+
|
|
35
|
+
O Sistema Onion organiza comandos em **contextos especializados**:
|
|
36
|
+
|
|
37
|
+
### 🎯 Business Context
|
|
38
|
+
**Para**: Product Managers, Business Analysts, Stakeholders
|
|
39
|
+
**Comandos**: 20 (5 starter + 10 intermediate + 5 advanced)
|
|
40
|
+
**Agentes**: 12 especializados
|
|
41
|
+
**Onboarding**: ~90 minutos
|
|
42
|
+
|
|
43
|
+
**Use para**:
|
|
44
|
+
- Criar especificações de produto
|
|
45
|
+
- Estimar story points
|
|
46
|
+
- Gerenciar tasks e workflows de negócio
|
|
47
|
+
- Extrair e consolidar reuniões
|
|
48
|
+
- Análise de branding e posicionamento
|
|
49
|
+
|
|
50
|
+
**Começar**:
|
|
51
|
+
```bash
|
|
52
|
+
/business/help # Ver comandos disponíveis
|
|
53
|
+
/business/spec "feature" # Criar especificação
|
|
54
|
+
/business/task "task" # Criar task
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
### 💻 Technical Context
|
|
60
|
+
**Para**: Developers, Tech Leads, DevOps
|
|
61
|
+
**Comandos**: 36 (8 starter + 13 intermediate + 14 advanced)
|
|
62
|
+
**Agentes**: 23 especializados
|
|
63
|
+
**Onboarding**: ~120 minutos
|
|
64
|
+
|
|
65
|
+
**Use para**:
|
|
66
|
+
- Desenvolvimento de features
|
|
67
|
+
- Gestão de git workflows (gitflow)
|
|
68
|
+
- Code review e testes
|
|
69
|
+
- Documentação técnica
|
|
70
|
+
- Releases e hotfixes
|
|
71
|
+
|
|
72
|
+
**Começar**:
|
|
73
|
+
```bash
|
|
74
|
+
/technical/help # Ver comandos disponíveis
|
|
75
|
+
/technical/work "task-id" # Continuar desenvolvimento
|
|
76
|
+
/technical/start "feature" # Iniciar nova feature
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
### 👥 Customer Success Context
|
|
82
|
+
**Para**: CS Managers, Support Team
|
|
83
|
+
**Comandos**: Em desenvolvimento
|
|
84
|
+
**Agentes**: Em desenvolvimento
|
|
85
|
+
|
|
86
|
+
**Use para**:
|
|
87
|
+
- Onboarding de clientes
|
|
88
|
+
- Gestão de tickets
|
|
89
|
+
- Knowledge base
|
|
90
|
+
- Health scores
|
|
91
|
+
|
|
92
|
+
**Começar**:
|
|
93
|
+
```bash
|
|
94
|
+
/customer-success/help # Ver comandos disponíveis
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### 📋 Outros Contextos (Em Desenvolvimento)
|
|
100
|
+
|
|
101
|
+
- **Compliance**: Auditorias, LGPD, regulamentações
|
|
102
|
+
- **Sales**: Pipeline, proposals, contratos
|
|
103
|
+
- **Marketing**: Campanhas, conteúdo, analytics
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 📚 Sistema de Níveis
|
|
108
|
+
|
|
109
|
+
Todos os contextos organizam comandos em **3 níveis**:
|
|
110
|
+
|
|
111
|
+
| Nível | % Uso | Quando Usar | Onboarding |
|
|
112
|
+
|-------|-------|-------------|------------|
|
|
113
|
+
| **🌟 Starter** | 80% | Comandos essenciais do dia a dia | 15-20 min |
|
|
114
|
+
| **🔧 Intermediate** | 15% | Workflows avançados e especializados | 30-40 min |
|
|
115
|
+
| **⚡ Advanced** | 5% | Casos específicos e automações complexas | 45-60 min |
|
|
116
|
+
|
|
117
|
+
### Filosofia 80/15/5
|
|
118
|
+
|
|
119
|
+
- **80%** do seu tempo: Use apenas comandos **starter**
|
|
120
|
+
- **15%** do seu tempo: Use comandos **intermediate**
|
|
121
|
+
- **5%** do seu tempo: Use comandos **advanced**
|
|
122
|
+
|
|
123
|
+
Isso garante que você aprenda apenas o essencial e descubra o resto conforme necessidade.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## 🚀 Como Começar?
|
|
128
|
+
|
|
129
|
+
### 1️⃣ Identifique Seu Contexto Principal
|
|
130
|
+
|
|
131
|
+
**Se você é**:
|
|
132
|
+
- Product Manager / Business → `/business/help`
|
|
133
|
+
- Developer / Tech Lead → `/technical/help`
|
|
134
|
+
- Customer Success → `/customer-success/help`
|
|
135
|
+
|
|
136
|
+
### 2️⃣ Aprenda os Comandos Starter
|
|
137
|
+
|
|
138
|
+
Foque nos 5-8 comandos starter do seu contexto. São suficientes para 80% do trabalho.
|
|
139
|
+
|
|
140
|
+
**Tempo estimado**: 15-30 minutos
|
|
141
|
+
|
|
142
|
+
### 3️⃣ Descubra Conforme Necessidade
|
|
143
|
+
|
|
144
|
+
Cada comando inclui seção "🚀 Próximos Passos" sugerindo comandos relacionados.
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## 🎓 Onboarding Recomendado
|
|
149
|
+
|
|
150
|
+
### Novos Usuários (Dia 1 - 1 hora)
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
# 1. Ver comandos do seu contexto
|
|
154
|
+
/[seu-contexto]/help
|
|
155
|
+
|
|
156
|
+
# 2. Business: Criar sua primeira spec
|
|
157
|
+
/business/spec "test-feature"
|
|
158
|
+
|
|
159
|
+
# 3. Technical: Planejar desenvolvimento
|
|
160
|
+
/technical/plan "test-feature"
|
|
161
|
+
|
|
162
|
+
# 4. Technical: Trabalhar em uma task
|
|
163
|
+
/technical/work "task-id"
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Primeira Semana (5 horas)
|
|
167
|
+
|
|
168
|
+
- Domine todos os **starter commands** do seu contexto
|
|
169
|
+
- Experimente 2-3 **intermediate commands**
|
|
170
|
+
- Explore agentes especializados (ex: `@product-agent`, `@react-developer`)
|
|
171
|
+
|
|
172
|
+
### Primeiro Mês (20 horas)
|
|
173
|
+
|
|
174
|
+
- Use todos os **intermediate commands** conforme necessidade
|
|
175
|
+
- Teste 1-2 **advanced commands** específicos
|
|
176
|
+
- Integre no workflow diário da equipe
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## 🤖 Agentes Especializados
|
|
181
|
+
|
|
182
|
+
O Onion inclui **35+ agentes IA especializados**:
|
|
183
|
+
|
|
184
|
+
### Business Agents
|
|
185
|
+
```bash
|
|
186
|
+
@product-agent # Orquestração de produto
|
|
187
|
+
@story-points-specialist # Estimativas precisas
|
|
188
|
+
@extract-meeting-specialist # Extração de reuniões
|
|
189
|
+
@presentation-orchestrator # Criação de apresentações
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Technical Agents
|
|
193
|
+
```bash
|
|
194
|
+
@react-developer # Frontend React
|
|
195
|
+
@nodejs-specialist # Backend Node.js
|
|
196
|
+
@postgres-specialist # Database
|
|
197
|
+
@test-engineer # Testes automatizados
|
|
198
|
+
@code-reviewer # Code review
|
|
199
|
+
@gitflow-specialist # Git workflows
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Core Agents
|
|
203
|
+
```bash
|
|
204
|
+
@onion # Orquestrador principal (ajuda com tudo)
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## 💡 Conceitos Importantes
|
|
210
|
+
|
|
211
|
+
### 🔄 Ciclo Completo Onion (5 Camadas)
|
|
212
|
+
|
|
213
|
+
```
|
|
214
|
+
CAMADA 1: Knowledge Bases → Documentação estruturada
|
|
215
|
+
CAMADA 2: Agentes IA → Especialistas automatizados
|
|
216
|
+
CAMADA 3: Comandos → Workflows executáveis
|
|
217
|
+
CAMADA 4: Regras → Padrões e convenções
|
|
218
|
+
CAMADA 5: Sessions → Rastreamento de contexto
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### 📁 Sessions (CAMADA 5)
|
|
222
|
+
|
|
223
|
+
O Onion rastreia suas sessões de desenvolvimento:
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
.cursor/sessions/
|
|
227
|
+
├── feature-x/
|
|
228
|
+
│ ├── context.md # Objetivo, requisitos
|
|
229
|
+
│ ├── architecture.md # Design técnico
|
|
230
|
+
│ ├── plan.md # Fases de implementação
|
|
231
|
+
│ └── notes.md # Notas de desenvolvimento
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Comandos como `/technical/start` e `/technical/work` gerenciam automaticamente.
|
|
235
|
+
|
|
236
|
+
### 🔗 Descoberta Progressiva
|
|
237
|
+
|
|
238
|
+
Cada comando inclui:
|
|
239
|
+
- **🚀 Próximos Passos**: Comandos relacionados sugeridos
|
|
240
|
+
- **📚 Pré-requisitos**: O que aprender antes (intermediate/advanced)
|
|
241
|
+
- **💡 Dicas**: Melhores práticas e insights
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## 📖 Documentação
|
|
246
|
+
|
|
247
|
+
### Guias Principais
|
|
248
|
+
- **Sistema de Níveis**: `docs/onion/levels-system.md`
|
|
249
|
+
- **Multi-Context Vision**: `docs/knowbase/frameworks/onion-multi-context-orchestrator-vision.md`
|
|
250
|
+
- **Ciclo Completo**: `docs/knowbase/frameworks/onion-complete-cycle-understanding.md`
|
|
251
|
+
|
|
252
|
+
### Por Contexto
|
|
253
|
+
- **Business**: `.onion/contexts/business/README.md`
|
|
254
|
+
- **Technical**: `.onion/contexts/technical/README.md`
|
|
255
|
+
|
|
256
|
+
### Configuração
|
|
257
|
+
- **Global**: `.onion-config.yml`
|
|
258
|
+
- **Por Contexto**: `.onion/contexts/[contexto]/.context-config.yml`
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## 🛠️ Estrutura do Projeto
|
|
263
|
+
|
|
264
|
+
```
|
|
265
|
+
.onion/ # Universal (agnóstica de IDE)
|
|
266
|
+
├── core/ # Núcleo (agentes, comandos globais)
|
|
267
|
+
├── contexts/ # 6 contextos especializados
|
|
268
|
+
│ ├── business/
|
|
269
|
+
│ ├── technical/
|
|
270
|
+
│ ├── customer-success/
|
|
271
|
+
│ ├── compliance/
|
|
272
|
+
│ ├── sales/
|
|
273
|
+
│ └── marketing/
|
|
274
|
+
├── ide/ # Loaders por IDE
|
|
275
|
+
└── .onion-config.yml # Configuração central
|
|
276
|
+
|
|
277
|
+
.cursor/ # Compatibilidade Cursor
|
|
278
|
+
├── commands/ # Symlinks para .onion/
|
|
279
|
+
├── agents/ # Symlinks para .onion/
|
|
280
|
+
└── sessions/ # Rastreamento de desenvolvimento
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## 🆘 Precisa de Ajuda?
|
|
286
|
+
|
|
287
|
+
### Por Contexto
|
|
288
|
+
```bash
|
|
289
|
+
/business/help # Comandos business
|
|
290
|
+
/technical/help # Comandos technical
|
|
291
|
+
/customer-success/help # Comandos CS
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
### Agente Universal
|
|
295
|
+
```bash
|
|
296
|
+
@onion "Como faço para [sua dúvida]?"
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
O `@onion` é o orquestrador principal e pode ajudar com:
|
|
300
|
+
- Escolher contexto apropriado
|
|
301
|
+
- Recomendar comandos para sua necessidade
|
|
302
|
+
- Explicar conceitos do sistema
|
|
303
|
+
- Navegar documentação
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## 📊 Estatísticas do Sistema
|
|
308
|
+
|
|
309
|
+
| Métrica | Valor |
|
|
310
|
+
|---------|-------|
|
|
311
|
+
| **Contextos** | 6 (2 ativos, 4 em desenvolvimento) |
|
|
312
|
+
| **Comandos** | 56+ (20 business + 36 technical) |
|
|
313
|
+
| **Agentes** | 35+ especializados |
|
|
314
|
+
| **Níveis** | 3 (starter/intermediate/advanced) |
|
|
315
|
+
| **Onboarding** | 15-30min (vs 4-8h tradicional) |
|
|
316
|
+
| **Redução** | 90% no tempo de aprendizado |
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
## 🎯 Workflows Comuns
|
|
321
|
+
|
|
322
|
+
### Workflow: Business → Technical
|
|
323
|
+
|
|
324
|
+
```bash
|
|
325
|
+
# 1. Business: Criar especificação
|
|
326
|
+
/business/spec "user-dashboard"
|
|
327
|
+
|
|
328
|
+
# 2. Business: Estimar
|
|
329
|
+
/business/estimate "user-dashboard"
|
|
330
|
+
|
|
331
|
+
# 3. Business: Criar task
|
|
332
|
+
/business/task "user-dashboard"
|
|
333
|
+
|
|
334
|
+
# 4. Technical: Iniciar desenvolvimento
|
|
335
|
+
/technical/start "user-dashboard"
|
|
336
|
+
|
|
337
|
+
# 5. Technical: Desenvolver
|
|
338
|
+
/technical/work "task-id"
|
|
339
|
+
|
|
340
|
+
# 6. Technical: Finalizar
|
|
341
|
+
/technical/pr
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### Workflow: Solo Development
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
# 1. Planejar
|
|
348
|
+
/technical/plan "feature"
|
|
349
|
+
|
|
350
|
+
# 2. Implementar
|
|
351
|
+
/technical/work "feature"
|
|
352
|
+
|
|
353
|
+
# 3. Testar
|
|
354
|
+
/technical/unit
|
|
355
|
+
|
|
356
|
+
# 4. Documentar
|
|
357
|
+
/technical/docs
|
|
358
|
+
|
|
359
|
+
# 5. Criar PR
|
|
360
|
+
/technical/pr
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## 🚀 Próximos Passos
|
|
366
|
+
|
|
367
|
+
1. **Escolha seu contexto principal**
|
|
368
|
+
- Product/Business? → `/business/help`
|
|
369
|
+
- Development? → `/technical/help`
|
|
370
|
+
|
|
371
|
+
2. **Aprenda comandos starter (15-30 min)**
|
|
372
|
+
- Foque nos 5-8 essenciais
|
|
373
|
+
- Pratique com exemplos reais
|
|
374
|
+
|
|
375
|
+
3. **Descubra conforme necessidade**
|
|
376
|
+
- Use "Próximos Passos" em cada comando
|
|
377
|
+
- Peça ajuda ao `@onion` quando precisar
|
|
378
|
+
|
|
379
|
+
4. **Explore outros contextos**
|
|
380
|
+
- Após dominar seu contexto principal
|
|
381
|
+
- Entenda integração entre contextos
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
**🧅 Sistema Onion v4.0** - Multi-Context Development Orchestrator
|
|
386
|
+
|
|
387
|
+
**Versão**: 4.0.0 | **Atualizado**: 2025-12-20 | **Licença**: MIT
|
|
388
|
+
|