@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.
Files changed (97) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/cli.js.map +1 -1
  3. package/package.json +1 -1
  4. package/templates/.cursor/agents/development/c4-architecture-specialist.md +712 -0
  5. package/templates/.cursor/agents/development/c4-documentation-specialist.md +658 -0
  6. package/templates/.cursor/agents/development/clickup-specialist.md +397 -0
  7. package/templates/.cursor/agents/development/cursor-specialist.md +249 -0
  8. package/templates/.cursor/agents/development/docs-reverse-engineer.md +418 -0
  9. package/templates/.cursor/agents/development/gamma-api-specialist.md +1169 -0
  10. package/templates/.cursor/agents/development/gitflow-specialist.md +1207 -0
  11. package/templates/.cursor/agents/development/linux-security-specialist.md +676 -0
  12. package/templates/.cursor/agents/development/mermaid-specialist.md +516 -0
  13. package/templates/.cursor/agents/development/nodejs-specialist.md +673 -0
  14. package/templates/.cursor/agents/development/nx-migration-specialist.md +867 -0
  15. package/templates/.cursor/agents/development/nx-monorepo-specialist.md +619 -0
  16. package/templates/.cursor/agents/development/postgres-specialist.md +1124 -0
  17. package/templates/.cursor/agents/development/react-developer.md +132 -0
  18. package/templates/.cursor/agents/development/runflow-specialist.md +278 -0
  19. package/templates/.cursor/agents/development/system-documentation-orchestrator.md +1388 -0
  20. package/templates/.cursor/agents/development/task-specialist.md +618 -0
  21. package/templates/.cursor/agents/development/whisper-specialist.md +373 -0
  22. package/templates/.cursor/agents/development/zen-engine-specialist.md +421 -0
  23. package/templates/.cursor/agents/git/branch-code-reviewer.md +200 -0
  24. package/templates/.cursor/agents/git/branch-documentation-writer.md +162 -0
  25. package/templates/.cursor/agents/git/branch-metaspec-checker.md +68 -0
  26. package/templates/.cursor/agents/git/branch-test-planner.md +177 -0
  27. package/templates/.cursor/agents/product/branding-positioning-specialist.md +1030 -0
  28. package/templates/.cursor/agents/product/extract-meeting-specialist.md +395 -0
  29. package/templates/.cursor/agents/product/meeting-consolidator.md +483 -0
  30. package/templates/.cursor/agents/product/pain-price-specialist.md +509 -0
  31. package/templates/.cursor/agents/product/presentation-orchestrator.md +1191 -0
  32. package/templates/.cursor/agents/product/product-agent.md +202 -0
  33. package/templates/.cursor/agents/product/story-points-framework-specialist.md +539 -0
  34. package/templates/.cursor/agents/product/storytelling-business-specialist.md +891 -0
  35. package/templates/.cursor/agents/review/code-reviewer.md +155 -0
  36. package/templates/.cursor/agents/testing/test-agent.md +425 -0
  37. package/templates/.cursor/agents/testing/test-engineer.md +295 -0
  38. package/templates/.cursor/agents/testing/test-planner.md +118 -0
  39. package/templates/.cursor/commands/docs/build-business-docs.md +276 -0
  40. package/templates/.cursor/commands/docs/build-index.md +128 -0
  41. package/templates/.cursor/commands/docs/build-tech-docs.md +204 -0
  42. package/templates/.cursor/commands/docs/consolidate-documents.md +424 -0
  43. package/templates/.cursor/commands/docs/docs-health.md +142 -0
  44. package/templates/.cursor/commands/docs/help.md +306 -0
  45. package/templates/.cursor/commands/docs/refine-vision.md +27 -0
  46. package/templates/.cursor/commands/docs/reverse-consolidate.md +160 -0
  47. package/templates/.cursor/commands/docs/sync-sessions.md +320 -0
  48. package/templates/.cursor/commands/docs/validate-docs.md +159 -0
  49. package/templates/.cursor/commands/engineer/bump.md +43 -0
  50. package/templates/.cursor/commands/engineer/docs.md +39 -0
  51. package/templates/.cursor/commands/engineer/help.md +329 -0
  52. package/templates/.cursor/commands/engineer/hotfix.md +186 -0
  53. package/templates/.cursor/commands/engineer/plan.md +111 -0
  54. package/templates/.cursor/commands/engineer/pr-update.md +198 -0
  55. package/templates/.cursor/commands/engineer/pr.md +136 -0
  56. package/templates/.cursor/commands/engineer/pre-pr.md +91 -0
  57. package/templates/.cursor/commands/engineer/start.md +266 -0
  58. package/templates/.cursor/commands/engineer/validate-phase-sync.md +118 -0
  59. package/templates/.cursor/commands/engineer/warm-up.md +173 -0
  60. package/templates/.cursor/commands/engineer/work.md +169 -0
  61. package/templates/.cursor/commands/git/code-review.md +215 -0
  62. package/templates/.cursor/commands/git/fast-commit.md +45 -0
  63. package/templates/.cursor/commands/git/feature/finish.md +90 -0
  64. package/templates/.cursor/commands/git/feature/publish.md +91 -0
  65. package/templates/.cursor/commands/git/feature/start.md +158 -0
  66. package/templates/.cursor/commands/git/help.md +306 -0
  67. package/templates/.cursor/commands/git/hotfix/finish.md +98 -0
  68. package/templates/.cursor/commands/git/hotfix/start.md +94 -0
  69. package/templates/.cursor/commands/git/init.md +139 -0
  70. package/templates/.cursor/commands/git/release/finish.md +98 -0
  71. package/templates/.cursor/commands/git/release/start.md +95 -0
  72. package/templates/.cursor/commands/git/sync.md +228 -0
  73. package/templates/.cursor/commands/global/help.md +388 -0
  74. package/templates/.cursor/commands/product/analyze-pain-price.md +709 -0
  75. package/templates/.cursor/commands/product/branding.md +460 -0
  76. package/templates/.cursor/commands/product/check.md +48 -0
  77. package/templates/.cursor/commands/product/checklist-sync.md +241 -0
  78. package/templates/.cursor/commands/product/collect.md +96 -0
  79. package/templates/.cursor/commands/product/consolidate-meetings.md +306 -0
  80. package/templates/.cursor/commands/product/convert-to-tasks.md +220 -0
  81. package/templates/.cursor/commands/product/estimate.md +519 -0
  82. package/templates/.cursor/commands/product/extract-meeting.md +241 -0
  83. package/templates/.cursor/commands/product/feature.md +431 -0
  84. package/templates/.cursor/commands/product/help.md +212 -0
  85. package/templates/.cursor/commands/product/light-arch.md +97 -0
  86. package/templates/.cursor/commands/product/presentation.md +189 -0
  87. package/templates/.cursor/commands/product/refine.md +186 -0
  88. package/templates/.cursor/commands/product/spec.md +107 -0
  89. package/templates/.cursor/commands/product/task-check.md +340 -0
  90. package/templates/.cursor/commands/product/task.md +585 -0
  91. package/templates/.cursor/commands/product/transform-consolidated.md +592 -0
  92. package/templates/.cursor/commands/product/validate-task.md +294 -0
  93. package/templates/.cursor/commands/product/warm-up.md +187 -0
  94. package/templates/.cursor/commands/product/whisper.md +325 -0
  95. package/templates/.cursor/commands/test/e2e.md +392 -0
  96. package/templates/.cursor/commands/test/integration.md +523 -0
  97. package/templates/.cursor/commands/test/unit.md +378 -0
@@ -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,139 @@
1
+ ---
2
+ name: init
3
+ description: Inicializar repositório com GitFlow e convenções padrão.
4
+ model: sonnet
5
+ category: git
6
+ tags: [init, gitflow, setup]
7
+ version: "4.0.0"
8
+ updated: "2025-12-20"
9
+ level: starter
10
+ context: technical
11
+ ---
12
+
13
+ # 🔧 Git Flow - Inicialização
14
+
15
+ Configurar repositório Git com GitFlow seguindo as melhores práticas. Detectar automaticamente se deve usar `main` ou `master` como branch principal e configurar todas as branches e convenções necessárias.
16
+
17
+ ## 🎯 Funcionalidades
18
+
19
+ ### Detecção Automática Inteligente
20
+ - Verificar se Git Flow já está inicializado
21
+ - Detectar branch principal existente (main/master) automaticamente
22
+ - Configurar develop branch baseado na convenção detectada
23
+ - Validar se repositório está em estado adequado para inicialização
24
+
25
+ ### Setup Seguro e Educativo
26
+ - Configuração automática de prefixos GitFlow padrão (feature/, release/, hotfix/)
27
+ - Verificações de integridade do repositório antes da inicialização
28
+ - Criação da branch develop se não existir
29
+ - Integração com @gitflow-specialist para guidance personalizada
30
+
31
+ ## 🚀 Como Usar
32
+
33
+ ```bash
34
+ /git/init # Inicialização completa automática
35
+ ```
36
+
37
+ ## 🤖 Integração com @gitflow-specialist
38
+
39
+ Para cada inicialização:
40
+
41
+ 1. **Consultar @gitflow-specialist** para análise do repositório atual
42
+ 2. **Receber estratégia** de inicialização baseada no contexto
43
+ 3. **Executar setup** seguindo as recomendações do especialista
44
+ 4. **Validar configuração** final e fornecer próximos passos
45
+
46
+ ## 📋 Processo de Inicialização
47
+
48
+ ### Verificações Pré-Inicialização
49
+ - **Repository check**: Verificar se estamos em um repositório Git válido
50
+ - **Status check**: Garantir que não há mudanças não commitadas
51
+ - **Remote check**: Verificar configuração de repositório remoto
52
+ - **GitFlow check**: Detectar se já está inicializado
53
+
54
+ ### Configuração Automática
55
+ - **Branch detection**: Identificar main/master existente
56
+ - **Develop setup**: Criar develop branch baseada na principal
57
+ - **Prefix configuration**: Configurar prefixos padrão GitFlow
58
+ - **Validation**: Verificar configuração final
59
+
60
+ ## ⚙️ Configurações Aplicadas
61
+
62
+ ### Branches Principais
63
+ ```
64
+ main/master (produção) ← detectado automaticamente
65
+ develop (desenvolvimento) ← criado se não existir
66
+ ```
67
+
68
+ ### Prefixos de Branch
69
+ ```
70
+ feature/ (novas funcionalidades)
71
+ release/ (preparação de releases)
72
+ hotfix/ (correções urgentes)
73
+ ```
74
+
75
+ ## ✅ Resultado da Inicialização
76
+
77
+ Após execução bem-sucedida:
78
+
79
+ - ✅ **Git Flow configurado** com branches apropriadas
80
+ - ✅ **Branch develop criada** e configurada como development branch
81
+ - ✅ **Prefixos definidos** para todos os tipos de branch
82
+ - ✅ **Configuração validada** e testada
83
+ - ✅ **Próximos passos** fornecidos baseados no contexto
84
+
85
+ ## 🔄 Próximos Passos Sugeridos
86
+
87
+ Após inicialização, o sistema recomendará:
88
+
89
+ - **Primeira feature**: `/git/feature/start "nome-da-funcionalidade"`
90
+ - **Sincronização**: `/git/sync` se houver repositório remoto
91
+ - **Ajuda contextual**: `/git/help` para entender os workflows disponíveis
92
+
93
+ ## ⚠️ Tratamento de Problemas
94
+
95
+ ### Repository não é Git
96
+ **Problema**: Pasta atual não é um repositório Git
97
+ **Solução**: Execute `git init` primeiro, depois `/git/init`
98
+
99
+ ### GitFlow já inicializado
100
+ **Problema**: GitFlow já está configurado
101
+ **Resultado**: Mostra configuração atual e próximos passos sugeridos
102
+
103
+ ### Branch develop conflitante
104
+ **Problema**: Já existe branch develop com conteúdo divergente
105
+ **Solução**: @gitflow-specialist fornecerá estratégia de resolução
106
+
107
+ ### Repositório remoto não configurado
108
+ **Problema**: Não há origin configurado
109
+ **Resultado**: Configuração local apenas, com sugestão de setup remoto
110
+
111
+ ---
112
+
113
+ *Este comando sempre consulta @gitflow-specialist para garantir inicialização otimizada para seu contexto específico.*
114
+
115
+ ---
116
+
117
+ ## 🚀 Próximos Passos
118
+
119
+ Após inicializar o repositório:
120
+
121
+ 1. **Preparar primeiro commit**:
122
+ ```bash
123
+ /technical/fast-commit
124
+ ```
125
+ Cria commit inicial seguindo conventional commits.
126
+
127
+ 2. **Configurar documentação**:
128
+ ```bash
129
+ /technical/docs
130
+ ```
131
+ Gera README e docs técnicos iniciais.
132
+
133
+ 3. **Começar primeira feature**:
134
+ ```bash
135
+ /technical/start "setup-inicial"
136
+ ```
137
+ Inicia desenvolvimento estruturado desde o início.
138
+
139
+ 💡 **Dica**: Gitflow é recomendado para projetos colaborativos. Para solo dev, trunk-based pode ser mais simples.
@@ -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
@@ -0,0 +1,95 @@
1
+ ---
2
+ name: start
3
+ description: Iniciar release branch com versionamento e changelog.
4
+ model: sonnet
5
+ category: git
6
+ tags: [release, gitflow, version]
7
+ version: "4.0.0"
8
+ updated: "2025-12-20"
9
+ level: advanced
10
+ context: technical
11
+ ---
12
+
13
+ # 🚀 Git Flow - Iniciar Release
14
+
15
+ Iniciar processo de release criando branch de release com versionamento automático, preparação de changelog e validações pré-release. Workflow completo para gestão segura de releases seguindo padrões GitFlow.
16
+
17
+ ## 🎯 Funcionalidades
18
+
19
+ ### Release Workflow e Versionamento
20
+ - Criação de release branch a partir de develop branch
21
+ - Auto-detecção e bump inteligente de versionamento (semver)
22
+ - Preparação automática de changelog baseada em commits
23
+ - Validações de estado pré-release (working directory, conflicts)
24
+ - Setup de ClickUp task para release tracking completo
25
+
26
+ ### Versionamento Inteligente e Automação
27
+ - Detecção automática de package.json e version files
28
+ - Bump semântico (major.minor.patch) com validation
29
+ - Support para diferentes tipos de projeto e convenções
30
+ - Validações de tag conflicts e branch state
31
+ - Integration com @gitflow-specialist para release strategy
32
+
33
+ ### Validações e Safety-First
34
+ - Verificações de repository state e uncommitted changes
35
+ - Primary branch detection (main/master) automática
36
+ - Develop branch sync validation antes da release
37
+ - Release branch creation com error handling robusto
38
+ - Educational guidance durante processo de release
39
+
40
+ ## 🚀 Como Usar
41
+
42
+ ```bash
43
+ /git/release/start "v2.1.0" # Release com versão específica
44
+ /git/release/start "2.1.0" # Versão sem prefixo v
45
+ /git/release/start "patch" # Auto-bump patch (2.0.1 → 2.0.2)
46
+ /git/release/start "minor" # Auto-bump minor (2.0.1 → 2.1.0)
47
+ /git/release/start "major" # Auto-bump major (2.0.1 → 3.0.0)
48
+ ```
49
+
50
+ **Pré-requisitos**: Working directory limpo, develop branch disponível
51
+
52
+ ### Processo Executado
53
+ 1. **Validações**: Verifica repository state, versão fornecida, working directory
54
+ 2. **Branch Detection**: Detecta primary branch (main/master) e develop
55
+ 3. **Version Processing**: Processa versioning (específica ou auto-bump)
56
+ 4. **Release Branch**: Cria release/version branch a partir de develop
57
+ 5. **ClickUp Setup**: Cria task de release tracking e atualiza status
58
+ 6. **Changelog Prep**: Prepara changelog baseado em commits desde última release
59
+
60
+ ### Version Bump Intelligence
61
+ Durante execução, processa diferentes tipos de versionamento:
62
+ - Versões explícitas: Valida formato semver e disponibilidade
63
+ - Auto-bump: Detecta última tag e incrementa conforme tipo
64
+ - Project detection: Identifica package.json, version files, etc.
65
+ - Conflict prevention: Verifica tags existentes antes de proceder
66
+
67
+ ## 🤝 Integração @gitflow-specialist
68
+
69
+ *Este comando sempre consulta @gitflow-specialist para release strategy validation, version bump analysis, branch creation guidance e troubleshooting de release workflows complexos.*
70
+
71
+ ## ⚠️ Resolução de Problemas
72
+
73
+ ### Version Required Error
74
+ - **Sintoma**: Comando executado sem especificar versão
75
+ - **Solução**: Fornecer versão específica ou tipo de bump (patch/minor/major)
76
+
77
+ ### Uncommitted Changes
78
+ - **Causa**: Working directory não está limpo antes da release
79
+ - **Fix**: `git add . && git commit -m "prepare for release"` antes de iniciar
80
+
81
+ ### Develop Branch Not Found
82
+ - **Sintoma**: Develop branch não existe ou não está disponível
83
+ - **Solução**: `git checkout -b develop` ou `git fetch origin develop`
84
+
85
+ ### Version Already Exists
86
+ - **Causa**: Tag ou branch de release já existe para versão especificada
87
+ - **Fix**: Usar versão diferente ou limpar tags/branches conflitantes
88
+
89
+ ### Primary Branch Detection Issues
90
+ - **Sintoma**: Não consegue detectar main/master branch
91
+ - **Solução**: Comando detecta automaticamente via @gitflow-specialist guidance
92
+
93
+ ### Release Branch Creation Failed
94
+ - **Causa**: Problemas durante criação da branch de release
95
+ - **Fix**: @gitflow-specialist fornece strategy específica para resolução