@onion-architect-ai/cli 4.1.0-beta.1 → 4.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +8 -7
- package/dist/cli.js.map +1 -1
- package/package.json +4 -3
- package/templates/.cursor/agents/compliance/iso-22301-specialist.md +917 -0
- package/templates/.cursor/agents/compliance/iso-27001-specialist.md +641 -0
- package/templates/.cursor/agents/compliance/pmbok-specialist.md +669 -0
- package/templates/.cursor/agents/compliance/security-information-master.md +824 -0
- package/templates/.cursor/agents/compliance/soc2-specialist.md +818 -0
- package/templates/.cursor/agents/deployment/docker-specialist.md +1192 -0
- package/templates/.cursor/agents/meta/agent-creator-specialist.md +1135 -0
- package/templates/.cursor/agents/meta/command-creator-specialist.md +1519 -0
- package/templates/.cursor/agents/meta/metaspec-gate-keeper.md +240 -0
- package/templates/.cursor/agents/meta/onion.md +753 -0
- package/templates/.cursor/agents/research/research-agent.md +292 -0
- package/templates/.cursor/agents/review/corporate-compliance-specialist.md +370 -0
- package/templates/.cursor/commands/common/prompts/README.md +187 -0
- package/templates/.cursor/commands/common/prompts/clickup-patterns.md +144 -0
- package/templates/.cursor/commands/common/prompts/code-review-checklist.md +168 -0
- package/templates/.cursor/commands/common/prompts/git-workflow-patterns.md +235 -0
- package/templates/.cursor/commands/common/prompts/output-formats.md +240 -0
- package/templates/.cursor/commands/common/prompts/technical.md +172 -0
- package/templates/.cursor/commands/common/prompts/validation-rules.md +173 -0
- package/templates/.cursor/commands/common/templates/abstraction-template.md +400 -0
- package/templates/.cursor/commands/common/templates/agent-template.md +353 -0
- package/templates/.cursor/commands/common/templates/business_context_template.md +748 -0
- package/templates/.cursor/commands/common/templates/command-template.md +273 -0
- package/templates/.cursor/commands/common/templates/technical_context_template.md +526 -0
- package/templates/.cursor/commands/development/runflow-dev.md +465 -0
- package/templates/.cursor/commands/docs/build-compliance-docs.md +143 -0
- package/templates/.cursor/commands/git/README.md +606 -0
- package/templates/.cursor/commands/meta/all-tools.md +50 -0
- package/templates/.cursor/commands/meta/analyze-complex-problem.md +186 -0
- package/templates/.cursor/commands/meta/create-abstraction.md +859 -0
- package/templates/.cursor/commands/meta/create-agent-express.md +83 -0
- package/templates/.cursor/commands/meta/create-agent.md +210 -0
- package/templates/.cursor/commands/meta/create-command.md +203 -0
- package/templates/.cursor/commands/meta/create-knowledge-base.md +143 -0
- package/templates/.cursor/commands/meta/create-task-structure.md +150 -0
- package/templates/.cursor/commands/meta/setup-integration.md +257 -0
- package/templates/.cursor/commands/onion/setup.md +843 -0
- package/templates/.cursor/commands/onion.md +168 -0
- package/templates/.cursor/commands/product/README.md +230 -0
- package/templates/.cursor/commands/quick/analisys.md +17 -0
- package/templates/.cursor/commands/validate/collab/pair-testing.md +633 -0
- package/templates/.cursor/commands/validate/collab/three-amigos.md +505 -0
- package/templates/.cursor/commands/validate/qa-points/estimate.md +660 -0
- package/templates/.cursor/commands/validate/test-strategy/analyze.md +1134 -0
- package/templates/.cursor/commands/validate/test-strategy/create.md +392 -0
- package/templates/.cursor/commands/validate/workflow.md +360 -0
- package/templates/.cursor/commands/warm-up.md +91 -0
- package/templates/.cursor/docs/architecture/acoplamento-clickup-problema-analise.md +446 -0
- package/templates/.cursor/docs/architecture/desacoplamento-roadmap.md +360 -0
- package/templates/.cursor/docs/architecture/validacao-fase-1.md +219 -0
- package/templates/.cursor/docs/c4/c4-detection-rules.md +395 -0
- package/templates/.cursor/docs/c4/c4-documentation-templates.md +579 -0
- package/templates/.cursor/docs/c4/c4-mermaid-patterns.md +331 -0
- package/templates/.cursor/docs/c4/c4-templates.md +256 -0
- package/templates/.cursor/docs/clickup/clickup-acceptance-criteria-strategy.md +329 -0
- package/templates/.cursor/docs/clickup/clickup-auto-update-strategy.md +318 -0
- package/templates/.cursor/docs/clickup/clickup-comment-formatter.md +239 -0
- package/templates/.cursor/docs/clickup/clickup-description-fix.md +355 -0
- package/templates/.cursor/docs/clickup/clickup-dual-comment-strategy.md +505 -0
- package/templates/.cursor/docs/clickup/clickup-formatting.md +302 -0
- package/templates/.cursor/docs/clickup/separador-tamanho-otimizado.md +256 -0
- package/templates/.cursor/docs/engineer/pre-pr-acceptance-validation.md +256 -0
- package/templates/.cursor/docs/onion/ESPERANTO.md +278 -0
- package/templates/.cursor/docs/onion/agents-reference.md +832 -0
- package/templates/.cursor/docs/onion/clickup-integration.md +738 -0
- package/templates/.cursor/docs/onion/commands-guide.md +807 -0
- package/templates/.cursor/docs/onion/engineering-flows.md +865 -0
- package/templates/.cursor/docs/onion/getting-started.md +741 -0
- package/templates/.cursor/docs/onion/maintenance-checklist.md +388 -0
- package/templates/.cursor/docs/onion/naming-conventions.md +268 -0
- package/templates/.cursor/docs/onion/practical-examples.md +782 -0
- package/templates/.cursor/docs/product/story-points-integration.md +254 -0
- package/templates/.cursor/docs/product/story-points-validation.md +224 -0
- package/templates/.cursor/docs/reviews/task-manager-docs-review-2025-11-24.md +167 -0
- package/templates/.cursor/docs/strategies/clickup-comment-patterns.md +766 -0
- package/templates/.cursor/docs/strategies/clickup-integration-tests.md +599 -0
- package/templates/.cursor/docs/strategies/clickup-mcp-wrappers-tests.md +854 -0
- package/templates/.cursor/docs/strategies/clickup-regression-tests.md +589 -0
- package/templates/.cursor/docs/strategies/visual-patterns.md +308 -0
- package/templates/.cursor/docs/templates/README.md +624 -0
- package/templates/.cursor/docs/templates/adr-template.md +226 -0
- package/templates/.cursor/docs/templates/analysis-template.md +280 -0
- package/templates/.cursor/docs/templates/execution-plan-template.md +430 -0
- package/templates/.cursor/docs/templates/guide-template.md +367 -0
- package/templates/.cursor/docs/templates/phase-execution-prompt-template.md +504 -0
- package/templates/.cursor/docs/templates/reference-template.md +522 -0
- package/templates/.cursor/docs/templates/solution-template.md +390 -0
- package/templates/.cursor/docs/tools/README.md +325 -0
- package/templates/.cursor/docs/tools/agents.md +330 -0
- package/templates/.cursor/docs/tools/commands.md +606 -0
- package/templates/.cursor/docs/tools/cursor.md +498 -0
- package/templates/.cursor/docs/tools/mcps.md +858 -0
- package/templates/.cursor/docs/tools/rules.md +423 -0
- package/templates/.cursor/rules/language-and-documentation.mdc +371 -0
- package/templates/.cursor/rules/onion-patterns.mdc +197 -0
- package/templates/.cursor/rules/validation-rules.mdc +194 -0
- package/templates/.cursor/utils/clickup-mcp-wrappers.md +671 -0
- package/templates/.cursor/utils/date-time-standards.md +182 -0
- package/templates/.cursor/utils/task-manager/README.md +94 -0
- package/templates/.cursor/utils/task-manager/adapters/asana.md +377 -0
- package/templates/.cursor/utils/task-manager/adapters/clickup.md +467 -0
- package/templates/.cursor/utils/task-manager/adapters/linear.md +421 -0
- package/templates/.cursor/utils/task-manager/detector.md +290 -0
- package/templates/.cursor/utils/task-manager/factory.md +363 -0
- package/templates/.cursor/utils/task-manager/interface.md +248 -0
- package/templates/.cursor/utils/task-manager/types.md +409 -0
- package/templates/.cursor/validation/product-task-validation.md +344 -0
- package/templates/.onion/contexts/business/.context-config.yml +52 -0
- package/templates/.onion/contexts/business/README.md +222 -0
- package/templates/.onion/contexts/business/agents/branding-specialist.md +1030 -0
- package/templates/.onion/contexts/business/agents/clickup-specialist.md +397 -0
- package/templates/.onion/contexts/business/agents/extract-meeting-specialist.md +395 -0
- package/templates/.onion/contexts/business/agents/gamma-specialist.md +1169 -0
- package/templates/.onion/contexts/business/agents/meeting-consolidator.md +483 -0
- package/templates/.onion/contexts/business/agents/pain-price-specialist.md +509 -0
- package/templates/.onion/contexts/business/agents/presentation-orchestrator.md +1191 -0
- package/templates/.onion/contexts/business/agents/product-agent.md +202 -0
- package/templates/.onion/contexts/business/agents/story-points-specialist.md +539 -0
- package/templates/.onion/contexts/business/agents/storytelling-specialist.md +891 -0
- package/templates/.onion/contexts/business/agents/task-specialist.md +618 -0
- package/templates/.onion/contexts/business/agents/whisper-specialist.md +373 -0
- package/templates/.onion/contexts/business/commands/advanced/analyze-pain-price.md +709 -0
- package/templates/.onion/contexts/business/commands/advanced/branding.md +460 -0
- package/templates/.onion/contexts/business/commands/advanced/checklist-sync.md +241 -0
- package/templates/.onion/contexts/business/commands/advanced/presentation.md +189 -0
- package/templates/.onion/contexts/business/commands/advanced/transform-consolidated.md +592 -0
- package/templates/.onion/contexts/business/commands/help.md +212 -0
- package/templates/.onion/contexts/business/commands/intermediate/check.md +48 -0
- package/templates/.onion/contexts/business/commands/intermediate/collect.md +96 -0
- package/templates/.onion/contexts/business/commands/intermediate/consolidate-meetings.md +306 -0
- package/templates/.onion/contexts/business/commands/intermediate/convert-to-tasks.md +220 -0
- package/templates/.onion/contexts/business/commands/intermediate/extract-meeting.md +241 -0
- package/templates/.onion/contexts/business/commands/intermediate/feature.md +431 -0
- package/templates/.onion/contexts/business/commands/intermediate/light-arch.md +97 -0
- package/templates/.onion/contexts/business/commands/intermediate/task-check.md +340 -0
- package/templates/.onion/contexts/business/commands/intermediate/validate-task.md +294 -0
- package/templates/.onion/contexts/business/commands/intermediate/whisper.md +325 -0
- package/templates/.onion/contexts/business/commands/starter/estimate.md +519 -0
- package/templates/.onion/contexts/business/commands/starter/refine.md +186 -0
- package/templates/.onion/contexts/business/commands/starter/spec.md +107 -0
- package/templates/.onion/contexts/business/commands/starter/task.md +585 -0
- package/templates/.onion/contexts/business/commands/starter/warm-up.md +187 -0
- package/templates/.onion/contexts/technical/.context-config.yml +64 -0
- package/templates/.onion/contexts/technical/README.md +238 -0
- package/templates/.onion/contexts/technical/agents/branch-code-reviewer.md +200 -0
- package/templates/.onion/contexts/technical/agents/branch-doc-writer.md +162 -0
- package/templates/.onion/contexts/technical/agents/branch-metaspec-checker.md +68 -0
- package/templates/.onion/contexts/technical/agents/branch-test-planner.md +177 -0
- package/templates/.onion/contexts/technical/agents/c4-architecture-specialist.md +712 -0
- package/templates/.onion/contexts/technical/agents/c4-documentation-specialist.md +658 -0
- package/templates/.onion/contexts/technical/agents/code-reviewer.md +155 -0
- package/templates/.onion/contexts/technical/agents/cursor-specialist.md +249 -0
- package/templates/.onion/contexts/technical/agents/docs-reverse-engineer.md +418 -0
- package/templates/.onion/contexts/technical/agents/gitflow-specialist.md +1207 -0
- package/templates/.onion/contexts/technical/agents/linux-security-specialist.md +676 -0
- package/templates/.onion/contexts/technical/agents/mermaid-specialist.md +516 -0
- package/templates/.onion/contexts/technical/agents/nodejs-specialist.md +673 -0
- package/templates/.onion/contexts/technical/agents/nx-migration-specialist.md +867 -0
- package/templates/.onion/contexts/technical/agents/nx-monorepo-specialist.md +619 -0
- package/templates/.onion/contexts/technical/agents/postgres-specialist.md +1124 -0
- package/templates/.onion/contexts/technical/agents/react-developer.md +132 -0
- package/templates/.onion/contexts/technical/agents/runflow-specialist.md +278 -0
- package/templates/.onion/contexts/technical/agents/system-doc-orchestrator.md +1388 -0
- package/templates/.onion/contexts/technical/agents/test-agent.md +425 -0
- package/templates/.onion/contexts/technical/agents/test-engineer.md +295 -0
- package/templates/.onion/contexts/technical/agents/test-planner.md +118 -0
- package/templates/.onion/contexts/technical/agents/zen-engine-specialist.md +421 -0
- package/templates/.onion/contexts/technical/commands/advanced/bump.md +43 -0
- package/templates/.onion/contexts/technical/commands/advanced/consolidate-documents.md +424 -0
- package/templates/.onion/contexts/technical/commands/advanced/e2e.md +392 -0
- package/templates/.onion/contexts/technical/commands/advanced/feature-finish.md +90 -0
- package/templates/.onion/contexts/technical/commands/advanced/feature-publish.md +91 -0
- package/templates/.onion/contexts/technical/commands/advanced/feature-start.md +158 -0
- package/templates/.onion/contexts/technical/commands/advanced/hotfix-finish.md +98 -0
- package/templates/.onion/contexts/technical/commands/advanced/hotfix-start.md +94 -0
- package/templates/.onion/contexts/technical/commands/advanced/hotfix.md +186 -0
- package/templates/.onion/contexts/technical/commands/advanced/refine-vision.md +27 -0
- package/templates/.onion/contexts/technical/commands/advanced/release-finish.md +98 -0
- package/templates/.onion/contexts/technical/commands/advanced/release-start.md +95 -0
- package/templates/.onion/contexts/technical/commands/advanced/reverse-consolidate.md +160 -0
- package/templates/.onion/contexts/technical/commands/advanced/validate-phase-sync.md +118 -0
- package/templates/.onion/contexts/technical/commands/help.md +329 -0
- package/templates/.onion/contexts/technical/commands/intermediate/build-business-docs.md +276 -0
- package/templates/.onion/contexts/technical/commands/intermediate/build-index.md +128 -0
- package/templates/.onion/contexts/technical/commands/intermediate/build-tech-docs.md +204 -0
- package/templates/.onion/contexts/technical/commands/intermediate/code-review.md +215 -0
- package/templates/.onion/contexts/technical/commands/intermediate/docs-health.md +142 -0
- package/templates/.onion/contexts/technical/commands/intermediate/fast-commit.md +45 -0
- package/templates/.onion/contexts/technical/commands/intermediate/integration.md +523 -0
- package/templates/.onion/contexts/technical/commands/intermediate/pr-update.md +198 -0
- package/templates/.onion/contexts/technical/commands/intermediate/pre-pr.md +91 -0
- package/templates/.onion/contexts/technical/commands/intermediate/start.md +266 -0
- package/templates/.onion/contexts/technical/commands/intermediate/sync-sessions.md +320 -0
- package/templates/.onion/contexts/technical/commands/intermediate/unit.md +378 -0
- package/templates/.onion/contexts/technical/commands/intermediate/validate-docs.md +159 -0
- package/templates/.onion/contexts/technical/commands/starter/docs.md +39 -0
- package/templates/.onion/contexts/technical/commands/starter/help.md +306 -0
- package/templates/.onion/contexts/technical/commands/starter/init.md +139 -0
- package/templates/.onion/contexts/technical/commands/starter/plan.md +111 -0
- package/templates/.onion/contexts/technical/commands/starter/pr.md +136 -0
- package/templates/.onion/contexts/technical/commands/starter/sync.md +228 -0
- package/templates/.onion/contexts/technical/commands/starter/warm-up.md +173 -0
- package/templates/.onion/contexts/technical/commands/starter/work.md +169 -0
- package/templates/.onion/core/commands/help.md +388 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: start
|
|
3
|
+
description: Iniciar feature branch GitFlow com ambiente configurado.
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: git
|
|
6
|
+
tags: [feature, gitflow, branch]
|
|
7
|
+
version: "4.0.0"
|
|
8
|
+
updated: "2025-12-20"
|
|
9
|
+
level: advanced
|
|
10
|
+
context: technical
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 🌿 Git Flow - Iniciar Feature
|
|
14
|
+
|
|
15
|
+
Iniciar desenvolvimento de uma nova funcionalidade criando uma branch GitFlow apropriada e configurando ambiente de desenvolvimento. Integração obrigatória com @gitflow-specialist para guidance especializada.
|
|
16
|
+
|
|
17
|
+
## 🎯 Funcionalidades
|
|
18
|
+
|
|
19
|
+
### Criação Inteligente de Feature Branch
|
|
20
|
+
- Criar branch GitFlow no formato `feature/nome-da-funcionalidade`
|
|
21
|
+
- Detectar automaticamente branch base apropriada (develop/main)
|
|
22
|
+
- Validar nomenclatura seguindo convenções GitFlow
|
|
23
|
+
- Configurar tracking com repositório remoto quando disponível
|
|
24
|
+
|
|
25
|
+
### Integração com @gitflow-specialist
|
|
26
|
+
- Consultar especialista para análise do repositório atual
|
|
27
|
+
- Receber estratégia de branching personalizada
|
|
28
|
+
- Validar compliance com workflows da equipe
|
|
29
|
+
- Guidance contextual para desenvolvimento
|
|
30
|
+
|
|
31
|
+
### Session Management Automático
|
|
32
|
+
- Criar diretório `.cursor/sessions/<feature-slug>/` automaticamente
|
|
33
|
+
- Gerar `context.md` com metadados da feature
|
|
34
|
+
- Criar `plan.md` com template de desenvolvimento
|
|
35
|
+
- Integração opcional com ClickUp tasks existentes
|
|
36
|
+
|
|
37
|
+
## 🚀 Como Usar
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
/git/feature/start "nome-da-funcionalidade"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Exemplos de Nomenclatura
|
|
44
|
+
```bash
|
|
45
|
+
/git/feature/start "implement-oauth-authentication"
|
|
46
|
+
/git/feature/start "add-user-dashboard-filters"
|
|
47
|
+
/git/feature/start "fix-payment-validation"
|
|
48
|
+
/git/feature/start "update-api-documentation"
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## 🤖 Integração com @gitflow-specialist
|
|
52
|
+
|
|
53
|
+
Para cada nova feature:
|
|
54
|
+
|
|
55
|
+
1. **Consultar @gitflow-specialist** para análise do estado atual do repositório
|
|
56
|
+
2. **Receber estratégia** de criação de branch baseada no contexto
|
|
57
|
+
3. **Validar nomenclatura** e compliance com padrões da equipe
|
|
58
|
+
4. **Executar criação** seguindo as recomendações do especialista
|
|
59
|
+
5. **Configurar ambiente** de desenvolvimento otimizado
|
|
60
|
+
|
|
61
|
+
## 📋 Processo de Criação
|
|
62
|
+
|
|
63
|
+
### Validações Pré-Criação
|
|
64
|
+
- **Parameter check**: Verificar se nome da feature foi fornecido
|
|
65
|
+
- **Repository check**: Confirmar que GitFlow está inicializado
|
|
66
|
+
- **Status check**: Garantir working directory limpo
|
|
67
|
+
- **Naming validation**: Validar convenções de nomenclatura
|
|
68
|
+
|
|
69
|
+
### Criação da Branch
|
|
70
|
+
- **Base detection**: Identificar branch base apropriada (develop)
|
|
71
|
+
- **Branch creation**: Criar `feature/nome` baseada na develop
|
|
72
|
+
- **Remote setup**: Configurar tracking se repositório remoto disponível
|
|
73
|
+
- **Checkout**: Trocar para a nova branch automaticamente
|
|
74
|
+
|
|
75
|
+
### Setup do Ambiente
|
|
76
|
+
- **Session creation**: Criar estrutura `.cursor/sessions/`
|
|
77
|
+
- **Context setup**: Gerar arquivos de contexto e planejamento
|
|
78
|
+
- **ClickUp integration**: Conectar com tasks existentes se detectadas
|
|
79
|
+
- **Development ready**: Ambiente pronto para desenvolvimento
|
|
80
|
+
|
|
81
|
+
## ⚙️ Estrutura Criada
|
|
82
|
+
|
|
83
|
+
### Branch GitFlow
|
|
84
|
+
```
|
|
85
|
+
feature/nome-da-funcionalidade ← nova branch
|
|
86
|
+
├── baseada em: develop (branch de desenvolvimento)
|
|
87
|
+
├── tracking: origin/feature/nome (se remoto disponível)
|
|
88
|
+
└── estado: pronta para desenvolvimento
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Session Directory
|
|
92
|
+
```
|
|
93
|
+
.cursor/sessions/nome-da-funcionalidade/
|
|
94
|
+
├── context.md # Metadados e objetivos da feature
|
|
95
|
+
├── plan.md # Plano de desenvolvimento estruturado
|
|
96
|
+
├── notes.md # Notas de desenvolvimento
|
|
97
|
+
└── (outros arquivos conforme necessário)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## ✅ Resultado da Execução
|
|
101
|
+
|
|
102
|
+
Após execução bem-sucedida:
|
|
103
|
+
|
|
104
|
+
- ✅ **Feature branch criada** no padrão GitFlow
|
|
105
|
+
- ✅ **Branch checkout realizado** automaticamente
|
|
106
|
+
- ✅ **Session configurada** com estrutura completa
|
|
107
|
+
- ✅ **Ambiente pronto** para desenvolvimento
|
|
108
|
+
- ✅ **Próximos passos** fornecidos contextualmente
|
|
109
|
+
|
|
110
|
+
## 🔄 Fluxo de Desenvolvimento Sugerido
|
|
111
|
+
|
|
112
|
+
Após criar a feature:
|
|
113
|
+
|
|
114
|
+
1. **Desenvolvimento**: Implementar funcionalidade na branch criada
|
|
115
|
+
2. **Commits frequentes**: Usar conventional commits para histórico limpo
|
|
116
|
+
3. **Push regular**: `git push` para backup e colaboração
|
|
117
|
+
4. **Compartilhamento**: `/git/feature/publish` para code review
|
|
118
|
+
5. **Finalização**: `/git/feature/finish` quando completo
|
|
119
|
+
|
|
120
|
+
## ⚠️ Tratamento de Problemas
|
|
121
|
+
|
|
122
|
+
### GitFlow não inicializado
|
|
123
|
+
**Problema**: Repository não tem GitFlow configurado
|
|
124
|
+
**Solução**: Execute `/git/init` primeiro para configurar GitFlow
|
|
125
|
+
|
|
126
|
+
### Nome de feature inválido
|
|
127
|
+
**Problema**: Nome não segue convenções ou contém caracteres inválidos
|
|
128
|
+
**Solução**: Use nomes descritivos em kebab-case (letras, números, hífen)
|
|
129
|
+
|
|
130
|
+
### Working directory não limpo
|
|
131
|
+
**Problema**: Há mudanças não commitadas no repositório
|
|
132
|
+
**Solução**: Commit ou stash mudanças antes de criar nova feature
|
|
133
|
+
|
|
134
|
+
### Feature branch já existe
|
|
135
|
+
**Problema**: Já existe branch com mesmo nome
|
|
136
|
+
**Solução**: Use nome diferente ou finalize feature existente primeiro
|
|
137
|
+
|
|
138
|
+
### Branch develop não encontrada
|
|
139
|
+
**Problema**: Branch develop não existe (GitFlow mal configurado)
|
|
140
|
+
**Solução**: @gitflow-specialist fornecerá estratégia de resolução
|
|
141
|
+
|
|
142
|
+
## 💡 Melhores Práticas
|
|
143
|
+
|
|
144
|
+
### Nomenclatura de Features
|
|
145
|
+
- **Descritiva**: Nome deve explicar claramente a funcionalidade
|
|
146
|
+
- **Kebab-case**: Use hífens para separar palavras
|
|
147
|
+
- **Concisa**: Evite nomes muito longos, máximo 50 caracteres
|
|
148
|
+
- **Sem prefixos**: Não usar "feature-" pois já está no path da branch
|
|
149
|
+
|
|
150
|
+
### Desenvolvimento
|
|
151
|
+
- **Commits atômicos**: Commits pequenos e focados
|
|
152
|
+
- **Conventional commits**: Seguir padrão (feat:, fix:, docs:, etc.)
|
|
153
|
+
- **Push frequente**: Backup regular do trabalho
|
|
154
|
+
- **Testes**: Implementar testes conforme desenvolvimento
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
*Este comando sempre consulta @gitflow-specialist para garantir criação otimizada e compliance com padrões da equipe.*
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: finish
|
|
3
|
+
description: Finalizar hotfix com merge para main e develop, tag e deploy.
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: git
|
|
6
|
+
tags: [hotfix, gitflow, deploy]
|
|
7
|
+
version: "4.0.0"
|
|
8
|
+
updated: "2025-12-20"
|
|
9
|
+
level: advanced
|
|
10
|
+
context: technical
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# ✅ Git Flow - Finalizar Hotfix
|
|
14
|
+
|
|
15
|
+
Finalizar correção emergencial realizando deploy para produção com merge em main/master e develop, criação de tags emergenciais e cleanup. Workflow crítico para release de emergency fixes.
|
|
16
|
+
|
|
17
|
+
## 🎯 Funcionalidades
|
|
18
|
+
|
|
19
|
+
### Emergency Release e Deployment
|
|
20
|
+
- Merge emergencial de hotfix branch para main/master
|
|
21
|
+
- Back-merge imediato para develop branch
|
|
22
|
+
- Criação automática de emergency patch tags
|
|
23
|
+
- Deploy preparation para production environment
|
|
24
|
+
- Cleanup automático pós-deployment
|
|
25
|
+
|
|
26
|
+
### Production Safety e Validation
|
|
27
|
+
- Validações críticas pré-merge para produção
|
|
28
|
+
- Emergency conflict detection e resolution guidance
|
|
29
|
+
- Production readiness verification
|
|
30
|
+
- Rollback preparation automática
|
|
31
|
+
- Emergency testing validation
|
|
32
|
+
|
|
33
|
+
### Critical Operations Management
|
|
34
|
+
- ClickUp task completion com emergency status
|
|
35
|
+
- Team notification de emergency deployment
|
|
36
|
+
- Emergency documentation automática
|
|
37
|
+
- Production deployment tracking
|
|
38
|
+
- Integration com CI/CD emergency pipelines
|
|
39
|
+
|
|
40
|
+
## 🚀 Como Usar
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
/git/hotfix/finish # Auto-detecta hotfix atual
|
|
44
|
+
/git/hotfix/finish fix-payment-gateway # Finaliza hotfix específica
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Pré-requisitos**: Em hotfix branch ou especificar nome da correção
|
|
48
|
+
|
|
49
|
+
### Processo Executado
|
|
50
|
+
1. **Emergency Detection**: Detecta hotfix branch atual ou busca específica
|
|
51
|
+
2. **Critical Validation**: Verifica hotfix state, conflicts, production readiness
|
|
52
|
+
3. **Production Preview**: Exibe impacto do emergency deployment
|
|
53
|
+
4. **Emergency Confirmation**: Solicita confirmação para production release
|
|
54
|
+
5. **Production Merge**: Executa merge para main + back-merge para develop
|
|
55
|
+
6. **Emergency Tagging**: Cria patch tag com emergency release notes
|
|
56
|
+
7. **Production Deploy**: Prepara deployment e atualiza ClickUp status
|
|
57
|
+
8. **Emergency Cleanup**: Remove hotfix branch e finaliza emergency workflow
|
|
58
|
+
|
|
59
|
+
### Emergency Deployment Strategy
|
|
60
|
+
Durante finalização emergencial:
|
|
61
|
+
- Production merge: Emergency-optimized merge strategy
|
|
62
|
+
- Conflict handling: Priority resolution guidance
|
|
63
|
+
- Tag creation: Emergency patch version increment
|
|
64
|
+
- Team communication: Immediate notification de production changes
|
|
65
|
+
|
|
66
|
+
## 🤝 Integração @gitflow-specialist
|
|
67
|
+
|
|
68
|
+
*Este comando sempre consulta @gitflow-specialist para emergency merge validation, critical conflict resolution, production deployment strategy e troubleshooting de emergency release complexos.*
|
|
69
|
+
|
|
70
|
+
## ⚠️ Resolução de Problemas
|
|
71
|
+
|
|
72
|
+
### Hotfix Branch Not Found
|
|
73
|
+
- **Sintoma**: Não consegue detectar hotfix branch ativa
|
|
74
|
+
- **Solução**: `git checkout hotfix/name` ou especificar nome no comando
|
|
75
|
+
|
|
76
|
+
### Emergency Merge Conflicts
|
|
77
|
+
- **Causa**: Conflicts críticos entre hotfix e production branches
|
|
78
|
+
- **Fix**: Emergency resolution guidance via @gitflow-specialist
|
|
79
|
+
|
|
80
|
+
### Production Branch Protection
|
|
81
|
+
- **Sintoma**: Branch protection impede emergency merge
|
|
82
|
+
- **Solução**: Emergency override procedures ou Pull Request workflow
|
|
83
|
+
|
|
84
|
+
### Critical Tests Failing
|
|
85
|
+
- **Causa**: Emergency tests falham durante validation
|
|
86
|
+
- **Fix**: Emergency test strategy ou production override (com approval)
|
|
87
|
+
|
|
88
|
+
### Emergency Tag Creation Failed
|
|
89
|
+
- **Sintoma**: Problemas na criação de emergency patch tags
|
|
90
|
+
- **Solução**: @gitflow-specialist orienta sobre tag strategy e conflicts
|
|
91
|
+
|
|
92
|
+
### Production Deployment Issues
|
|
93
|
+
- **Causa**: Problemas durante emergency deployment preparation
|
|
94
|
+
- **Fix**: Emergency deployment guidance e rollback preparation
|
|
95
|
+
|
|
96
|
+
### Team Notification Failed
|
|
97
|
+
- **Sintoma**: ClickUp ou team notifications não funcionando
|
|
98
|
+
- **Solução**: Manual emergency communication + @gitflow-specialist guidance
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: start
|
|
3
|
+
description: Iniciar hotfix branch para correção emergencial em produção.
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: git
|
|
6
|
+
tags: [hotfix, gitflow, emergency]
|
|
7
|
+
version: "4.0.0"
|
|
8
|
+
updated: "2025-12-20"
|
|
9
|
+
level: advanced
|
|
10
|
+
context: technical
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 🚨 Git Flow - Iniciar Hotfix
|
|
14
|
+
|
|
15
|
+
Iniciar correção emergencial criando hotfix branch a partir de main/master para resolver problemas críticos em produção. Workflow otimizado para máxima velocidade com validações de segurança essenciais.
|
|
16
|
+
|
|
17
|
+
## 🎯 Funcionalidades
|
|
18
|
+
|
|
19
|
+
### Emergency Hotfix Workflow
|
|
20
|
+
- Criação imediata de hotfix branch a partir de main/master (produção)
|
|
21
|
+
- Auto-versioning para patch releases emergenciais
|
|
22
|
+
- ClickUp task urgente com prioridade máxima automática
|
|
23
|
+
- Validações críticas de estado de produção
|
|
24
|
+
- Setup otimizado para correção imediata
|
|
25
|
+
|
|
26
|
+
### Safety-First Emergency Operations
|
|
27
|
+
- Detecção automática de primary branch (main/master)
|
|
28
|
+
- Validações essenciais de working directory
|
|
29
|
+
- Emergency override para uncommitted changes
|
|
30
|
+
- Rollback preparation automática
|
|
31
|
+
- Emergency documentation e tracking setup
|
|
32
|
+
|
|
33
|
+
### Criticidade e Tracking Urgente
|
|
34
|
+
- Tags de urgência automáticas no ClickUp
|
|
35
|
+
- Notificações escaladas para team awareness
|
|
36
|
+
- Emergency workflow prioritization
|
|
37
|
+
- Integration com @gitflow-specialist para emergency guidance
|
|
38
|
+
- Automated emergency documentation
|
|
39
|
+
|
|
40
|
+
## 🚀 Como Usar
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
/git/hotfix/start "fix-payment-gateway" # Emergency payment fix
|
|
44
|
+
/git/hotfix/start "security-patch-auth" # Security hotfix
|
|
45
|
+
/git/hotfix/start "critical-memory-leak" # Performance emergency
|
|
46
|
+
/git/hotfix/start "api-timeout-fix" # API emergency
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Pré-requisitos**: Nome da correção obrigatório, repositório Git válido
|
|
50
|
+
|
|
51
|
+
### Processo Executado
|
|
52
|
+
1. **Emergency Validation**: Verifica nome hotfix, repository state, critical validations
|
|
53
|
+
2. **Primary Branch Detection**: Detecta main/master automaticamente
|
|
54
|
+
3. **Emergency Override**: Handles uncommitted changes com emergency stashing
|
|
55
|
+
4. **Hotfix Branch Creation**: Cria hotfix/name branch a partir de produção
|
|
56
|
+
5. **ClickUp Emergency Setup**: Cria task urgente com máxima prioridade
|
|
57
|
+
6. **Team Notification**: Alerta equipe sobre emergency fix em andamento
|
|
58
|
+
|
|
59
|
+
### Emergency Features
|
|
60
|
+
Durante execução emergencial:
|
|
61
|
+
- Working directory: Emergency stash se necessário
|
|
62
|
+
- Branch detection: Main/master identification automática
|
|
63
|
+
- Priority escalation: ClickUp task com urgência máxima
|
|
64
|
+
- Team alerts: Notification automática de emergency workflow
|
|
65
|
+
|
|
66
|
+
## 🤝 Integração @gitflow-specialist
|
|
67
|
+
|
|
68
|
+
*Este comando sempre consulta @gitflow-specialist para emergency workflow guidance, critical branch validation, hotfix strategy optimization e troubleshooting de situações emergenciais complexas.*
|
|
69
|
+
|
|
70
|
+
## ⚠️ Resolução de Problemas
|
|
71
|
+
|
|
72
|
+
### Hotfix Name Required
|
|
73
|
+
- **Sintoma**: Comando executado sem nome da correção
|
|
74
|
+
- **Solução**: Fornecer nome descritivo da correção emergencial
|
|
75
|
+
|
|
76
|
+
### Uncommitted Changes Emergency
|
|
77
|
+
- **Causa**: Working directory não limpo durante emergency
|
|
78
|
+
- **Fix**: Comando oferece emergency stash automático ou manual commit
|
|
79
|
+
|
|
80
|
+
### Primary Branch Detection Failed
|
|
81
|
+
- **Sintoma**: Não consegue detectar main/master branch
|
|
82
|
+
- **Solução**: @gitflow-specialist fornece detection strategy para repository
|
|
83
|
+
|
|
84
|
+
### Not Git Repository
|
|
85
|
+
- **Causa**: Executado fora de repositório Git válido
|
|
86
|
+
- **Fix**: `git init && /git/init` para emergency setup
|
|
87
|
+
|
|
88
|
+
### Emergency Override Issues
|
|
89
|
+
- **Sintoma**: Problemas durante emergency workflow execution
|
|
90
|
+
- **Solução**: @gitflow-specialist fornece emergency guidance específica
|
|
91
|
+
|
|
92
|
+
### Critical State Validation Failed
|
|
93
|
+
- **Causa**: Repository em estado inconsistente para hotfix
|
|
94
|
+
- **Fix**: Emergency validation guidance via @gitflow-specialist consultation
|
|
@@ -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,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refine-vision
|
|
3
|
+
description: Refinar visão e estratégia do produto/projeto.
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: docs
|
|
6
|
+
tags: [vision, strategy, refinement]
|
|
7
|
+
version: "4.0.0"
|
|
8
|
+
updated: "2025-12-20"
|
|
9
|
+
level: advanced
|
|
10
|
+
context: technical
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Refinar Visão do Projeto
|
|
14
|
+
|
|
15
|
+
Ajudar a refinar e documentar a visão estratégica do projeto.
|
|
16
|
+
|
|
17
|
+
## 🎯 Objetivo
|
|
18
|
+
|
|
19
|
+
Clarificar e documentar a visão, missão e objetivos estratégicos.
|
|
20
|
+
|
|
21
|
+
## ⚡ Processo
|
|
22
|
+
|
|
23
|
+
1. Revisar documentação existente de visão
|
|
24
|
+
2. Fazer perguntas de esclarecimento
|
|
25
|
+
3. Documentar insights e decisões
|
|
26
|
+
4. Gerar documento de visão atualizado
|
|
27
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: finish
|
|
3
|
+
description: Finalizar release com merge, tag e publicação.
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: git
|
|
6
|
+
tags: [release, gitflow, deploy]
|
|
7
|
+
version: "4.0.0"
|
|
8
|
+
updated: "2025-12-20"
|
|
9
|
+
level: advanced
|
|
10
|
+
context: technical
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# ✅ Git Flow - Finalizar Release
|
|
14
|
+
|
|
15
|
+
Finalizar processo de release realizando merge seguro para main/master e develop, criação de tags, publicação e cleanup. Workflow completo de release deployment com validações automáticas e ClickUp integration.
|
|
16
|
+
|
|
17
|
+
## 🎯 Funcionalidades
|
|
18
|
+
|
|
19
|
+
### Release Completion e Merge Strategy
|
|
20
|
+
- Merge seguro de release branch para main/master branch
|
|
21
|
+
- Back-merge para develop branch mantendo sincronização
|
|
22
|
+
- Criação automática de tags anotadas com release notes
|
|
23
|
+
- Validações pré-merge (conflicts, tests, working directory)
|
|
24
|
+
- Cleanup automático de release branch após finalização
|
|
25
|
+
|
|
26
|
+
### Publishing e Deployment Integration
|
|
27
|
+
- Tag publishing para remote repository
|
|
28
|
+
- Release notes generation baseada em changelog
|
|
29
|
+
- ClickUp task completion e status updates
|
|
30
|
+
- Team notification via release completion workflow
|
|
31
|
+
- Integration com CI/CD pipelines através de tags
|
|
32
|
+
|
|
33
|
+
### Safety-First e Validações
|
|
34
|
+
- Confirmação obrigatória antes de merge para main
|
|
35
|
+
- Análise de impacto completa (commits, files, changes)
|
|
36
|
+
- Validação de release branch state e readiness
|
|
37
|
+
- Preview detalhado das mudanças que serão mergeadas
|
|
38
|
+
- Rollback guidance caso problemas sejam detectados
|
|
39
|
+
|
|
40
|
+
## 🚀 Como Usar
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
/git/release/finish # Auto-detecta release branch atual
|
|
44
|
+
/git/release/finish v2.1.0 # Finaliza release específica
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Pré-requisitos**: Em release branch ou especificar versão da release
|
|
48
|
+
|
|
49
|
+
### Processo Executado
|
|
50
|
+
1. **Detection**: Detecta release branch atual ou busca por versão específica
|
|
51
|
+
2. **Validations**: Verifica release branch state, conflicts, working directory
|
|
52
|
+
3. **Preview**: Exibe impacto do merge (commits, files, deployment implications)
|
|
53
|
+
4. **Confirmation**: Solicita confirmação explícita para merge em main
|
|
54
|
+
5. **Merge Strategy**: Executa merge para main + back-merge para develop
|
|
55
|
+
6. **Tag Creation**: Cria tag anotada com release notes automáticas
|
|
56
|
+
7. **Publishing**: Publica tags e atualiza remote branches
|
|
57
|
+
8. **Cleanup**: Remove release branch e atualiza ClickUp completion
|
|
58
|
+
|
|
59
|
+
### Merge Strategy Intelligence
|
|
60
|
+
Durante execução, aplica strategy inteligente:
|
|
61
|
+
- Main merge: Fast-forward quando possível, merge commit quando necessário
|
|
62
|
+
- Develop back-merge: Garante sincronização sem perder desenvolvimento
|
|
63
|
+
- Conflict detection: Identifica e orienta resolução antes do merge
|
|
64
|
+
- Tag management: Cria tags consistentes com convention estabelecida
|
|
65
|
+
|
|
66
|
+
## 🤝 Integração @gitflow-specialist
|
|
67
|
+
|
|
68
|
+
*Este comando sempre consulta @gitflow-specialist para merge strategy validation, conflict resolution guidance, tag creation best practices e troubleshooting de release deployment complexo.*
|
|
69
|
+
|
|
70
|
+
## ⚠️ Resolução de Problemas
|
|
71
|
+
|
|
72
|
+
### Release Branch Not Found
|
|
73
|
+
- **Sintoma**: Não consegue detectar release branch ativa
|
|
74
|
+
- **Solução**: `git checkout release/version` ou especificar versão no comando
|
|
75
|
+
|
|
76
|
+
### Merge Conflicts Detected
|
|
77
|
+
- **Causa**: Conflicts entre release branch e main/develop
|
|
78
|
+
- **Fix**: Resolver conflicts manualmente antes de finalizar release
|
|
79
|
+
|
|
80
|
+
### Uncommitted Changes in Release
|
|
81
|
+
- **Sintoma**: Release branch tem changes não commitadas
|
|
82
|
+
- **Solução**: `git add . && git commit -m "final release changes"`
|
|
83
|
+
|
|
84
|
+
### Tag Already Exists
|
|
85
|
+
- **Causa**: Tag da versão já existe no repository
|
|
86
|
+
- **Fix**: Usar `git tag -d tagname` para remover ou escolher versão diferente
|
|
87
|
+
|
|
88
|
+
### Main Branch Protection
|
|
89
|
+
- **Sintoma**: Branch protection impede merge direto
|
|
90
|
+
- **Solução**: Usar Pull Request workflow ou ajustar branch protection
|
|
91
|
+
|
|
92
|
+
### Tests Failing in Release
|
|
93
|
+
- **Causa**: Release branch não passa nos testes automatizados
|
|
94
|
+
- **Fix**: Corrigir testes ou usar override com approval (não recomendado)
|
|
95
|
+
|
|
96
|
+
### Remote Publishing Issues
|
|
97
|
+
- **Sintoma**: Problemas ao publicar tags ou branches
|
|
98
|
+
- **Solução**: @gitflow-specialist orienta sobre remote configuration e permissions
|