@onion-architect-ai/cli 4.1.0-beta.1 → 4.1.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +8 -19
- 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,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
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: reverse-consolidate
|
|
3
|
+
description: |
|
|
4
|
+
Engenharia reversa de projetos para gerar documentação consolidada.
|
|
5
|
+
Use como pré-processador para /docs/build-tech-docs.
|
|
6
|
+
model: sonnet
|
|
7
|
+
|
|
8
|
+
parameters:
|
|
9
|
+
- name: project_path
|
|
10
|
+
description: Caminho para o projeto a ser analisado
|
|
11
|
+
required: true
|
|
12
|
+
- name: output_path
|
|
13
|
+
description: Onde salvar documentação (default: docs/reverse/)
|
|
14
|
+
required: false
|
|
15
|
+
|
|
16
|
+
category: docs
|
|
17
|
+
tags:
|
|
18
|
+
- reverse-engineering
|
|
19
|
+
- documentation
|
|
20
|
+
- analysis
|
|
21
|
+
|
|
22
|
+
version: "4.0.0"
|
|
23
|
+
updated: "2025-12-20"
|
|
24
|
+
|
|
25
|
+
related_commands:
|
|
26
|
+
- /docs/build-tech-docs
|
|
27
|
+
- /docs/build-business-docs
|
|
28
|
+
|
|
29
|
+
related_agents:
|
|
30
|
+
- docs-reverse-engineer
|
|
31
|
+
- system-documentation-orchestrator
|
|
32
|
+
level: advanced
|
|
33
|
+
context: technical
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
# 🔍 Engenharia Reversa de Projetos
|
|
37
|
+
|
|
38
|
+
Orquestrador de engenharia reversa para gerar documentação consolidada.
|
|
39
|
+
|
|
40
|
+
## 🎯 Objetivo
|
|
41
|
+
|
|
42
|
+
Analisar qualquer projeto e gerar documento consolidado para `/docs/build-tech-docs`.
|
|
43
|
+
|
|
44
|
+
## ⚡ Fluxo de Execução
|
|
45
|
+
|
|
46
|
+
### Passo 1: Validar Input
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Verificar path existe
|
|
50
|
+
test -d "{{project_path}}" || { echo "❌ Path não existe"; exit 1; }
|
|
51
|
+
|
|
52
|
+
# Verificar é projeto de software
|
|
53
|
+
ls "{{project_path}}"/*.json "{{project_path}}"/*.yaml 2>/dev/null || \
|
|
54
|
+
echo "⚠️ Arquivos de config não detectados"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Passo 2: Detectar Stack
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Package managers
|
|
61
|
+
test -f package.json && STACK="javascript"
|
|
62
|
+
test -f requirements.txt && STACK="python"
|
|
63
|
+
test -f Cargo.toml && STACK="rust"
|
|
64
|
+
test -f go.mod && STACK="go"
|
|
65
|
+
|
|
66
|
+
# Frameworks
|
|
67
|
+
grep -q "react" package.json && FRAMEWORK="react"
|
|
68
|
+
grep -q "fastify" package.json && FRAMEWORK="fastify"
|
|
69
|
+
grep -q "nx" package.json && MONOREPO="nx"
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Passo 3: Analisar Estrutura
|
|
73
|
+
|
|
74
|
+
Delegar para @docs-reverse-engineer:
|
|
75
|
+
|
|
76
|
+
1. **Directory Scan**
|
|
77
|
+
- Estrutura de pastas
|
|
78
|
+
- Padrões de arquivos
|
|
79
|
+
- Convenções de naming
|
|
80
|
+
|
|
81
|
+
2. **Dependency Analysis**
|
|
82
|
+
- Dependências principais
|
|
83
|
+
- DevDependencies
|
|
84
|
+
- Peer dependencies
|
|
85
|
+
|
|
86
|
+
3. **Architecture Detection**
|
|
87
|
+
- Padrões (MVC, DDD, Clean)
|
|
88
|
+
- Camadas identificadas
|
|
89
|
+
- Pontos de integração
|
|
90
|
+
|
|
91
|
+
### Passo 4: Gerar Documento
|
|
92
|
+
|
|
93
|
+
Criar `{{output_path}}/consolidated.md`:
|
|
94
|
+
|
|
95
|
+
```markdown
|
|
96
|
+
# Documentação Consolidada: [Nome do Projeto]
|
|
97
|
+
|
|
98
|
+
## 📊 Metadados
|
|
99
|
+
- Stack: [stack detectado]
|
|
100
|
+
- Framework: [framework]
|
|
101
|
+
- Monorepo: [sim/não]
|
|
102
|
+
- Tamanho: [arquivos/linhas]
|
|
103
|
+
|
|
104
|
+
## 🏗️ Arquitetura
|
|
105
|
+
[Descrição da arquitetura detectada]
|
|
106
|
+
|
|
107
|
+
## 📁 Estrutura
|
|
108
|
+
[Árvore de diretórios comentada]
|
|
109
|
+
|
|
110
|
+
## 🔧 Componentes Principais
|
|
111
|
+
[Lista de módulos/componentes]
|
|
112
|
+
|
|
113
|
+
## 🔗 Integrações
|
|
114
|
+
[APIs, databases, serviços externos]
|
|
115
|
+
|
|
116
|
+
## 📋 Recomendações
|
|
117
|
+
[Sugestões para documentação adicional]
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Passo 5: Finalizar
|
|
121
|
+
|
|
122
|
+
## 📤 Output Esperado
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
126
|
+
✅ ANÁLISE CONCLUÍDA
|
|
127
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
128
|
+
|
|
129
|
+
📊 Projeto: {{project_path}}
|
|
130
|
+
|
|
131
|
+
🔍 Stack Detectado:
|
|
132
|
+
∟ Linguagem: TypeScript
|
|
133
|
+
∟ Framework: React + Fastify
|
|
134
|
+
∟ Monorepo: NX
|
|
135
|
+
∟ Arquitetura: Clean Architecture
|
|
136
|
+
|
|
137
|
+
📁 Arquivos Gerados:
|
|
138
|
+
∟ docs/reverse/consolidated.md
|
|
139
|
+
∟ docs/reverse/structure.json
|
|
140
|
+
∟ docs/reverse/dependencies.json
|
|
141
|
+
|
|
142
|
+
📈 Métricas:
|
|
143
|
+
∟ Arquivos analisados: 245
|
|
144
|
+
∟ Linhas de código: 12,450
|
|
145
|
+
∟ Módulos: 18
|
|
146
|
+
|
|
147
|
+
🚀 Próximo: /docs/build-tech-docs
|
|
148
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## 🔗 Referências
|
|
152
|
+
|
|
153
|
+
- Agente: @docs-reverse-engineer
|
|
154
|
+
- Próximo passo: /docs/build-tech-docs
|
|
155
|
+
|
|
156
|
+
## ⚠️ Notas
|
|
157
|
+
|
|
158
|
+
- Tempo médio: 2-5 minutos dependendo do tamanho
|
|
159
|
+
- Funciona com JavaScript, Python, Rust, Go
|
|
160
|
+
- Output otimizado para consumo por IA
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: validate-phase-sync
|
|
3
|
+
description: Validar sincronização entre fases do plan.md e subtasks ClickUp.
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: engineer
|
|
6
|
+
tags: [validation, sync, clickup]
|
|
7
|
+
version: "4.0.0"
|
|
8
|
+
updated: "2025-12-20"
|
|
9
|
+
level: advanced
|
|
10
|
+
context: technical
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 🔄 Validate Phase-Subtask Sync
|
|
14
|
+
|
|
15
|
+
Validar e corrigir sincronização automática entre fases do plan.md e status das subtasks no ClickUp. Este comando identifica discrepâncias e corrige status desatualizados.
|
|
16
|
+
|
|
17
|
+
## 🎯 Funcionalidades
|
|
18
|
+
|
|
19
|
+
### Validação Automática de Status
|
|
20
|
+
- Lê todas as fases do plan.md e identifica status atual (Completada ✅, Em Progresso ⏰, Não Iniciada ⏳)
|
|
21
|
+
- Verifica status das subtasks correspondentes no ClickUp via Phase-Subtask Mapping
|
|
22
|
+
- Identifica discrepâncias entre plan.md e ClickUp
|
|
23
|
+
- Gera relatório de inconsistências encontradas
|
|
24
|
+
|
|
25
|
+
### Correção Automática de Status
|
|
26
|
+
- Atualiza automaticamente status das subtasks para refletir estado real das fases
|
|
27
|
+
- Adiciona comentários retroativos nas subtasks com timestamp de correção
|
|
28
|
+
- Documenta ações de correção realizadas
|
|
29
|
+
- Valida integridade do mapeamento Phase→Subtask
|
|
30
|
+
|
|
31
|
+
### Sistema de Alertas Proativo
|
|
32
|
+
- Alerta quando mapeamento Phase-Subtask está ausente ou incompleto
|
|
33
|
+
- Sugere criação de mapeamento quando detecta subtasks sem correlação
|
|
34
|
+
- Identifica fases órfãs (sem subtask correspondente)
|
|
35
|
+
- Reporta subtasks órfãs (sem fase correspondente)
|
|
36
|
+
|
|
37
|
+
## 🚀 Como Usar
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
/engineer/validate-phase-sync
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Exemplos de Casos de Uso
|
|
44
|
+
```bash
|
|
45
|
+
/engineer/validate-phase-sync # Validação geral da sessão ativa
|
|
46
|
+
/engineer/validate-phase-sync --fix-all # Corrige todas inconsistências encontradas
|
|
47
|
+
/engineer/validate-phase-sync --report-only # Apenas relatório, não aplica correções
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## 🤝 Integração ClickUp MCP
|
|
51
|
+
|
|
52
|
+
### Operações Automáticas
|
|
53
|
+
- **Leitura de Task**: Usa `get_task` com `subtasks=true` para estrutura completa
|
|
54
|
+
- **Update de Status**: Aplica `update_task` nos subtasks com status correto
|
|
55
|
+
- **Comentários de Correção**: Usa `create_task_comment` para documentar ajustes
|
|
56
|
+
- **Validação de Integridade**: Verifica se mapeamento está correto e completo
|
|
57
|
+
|
|
58
|
+
### Mapeamento Phase-Subtask
|
|
59
|
+
Lê o mapeamento do arquivo `.cursor/sessions/[slug]/context.md`:
|
|
60
|
+
```markdown
|
|
61
|
+
## 📋 Phase-Subtask Mapping
|
|
62
|
+
- **Phase 1**: "Template Consolidation" → Subtask ID: [id-1]
|
|
63
|
+
- **Phase 2**: "Feature Commands" → Subtask ID: [id-2]
|
|
64
|
+
- **Phase 3**: "Release Commands" → Subtask ID: [id-3]
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Correções Aplicadas
|
|
68
|
+
- Fases "Completada ✅" → Subtask status "done"
|
|
69
|
+
- Fases "Em Progresso ⏰" → Subtask status "in progress"
|
|
70
|
+
- Fases "Não Iniciada ⏳" → Subtask status "to do"
|
|
71
|
+
|
|
72
|
+
## ⚙️ Processo de Validação
|
|
73
|
+
|
|
74
|
+
1. **Detecta Sessão Ativa**: Identifica sessão em `.cursor/sessions/`
|
|
75
|
+
2. **Lê Context.md**: Carrega mapeamento Phase-Subtask e task ID principal
|
|
76
|
+
3. **Analisa Plan.md**: Extrai status atual de todas as fases
|
|
77
|
+
4. **Consulta ClickUp**: Obtém status atual das subtasks via ClickUp MCP
|
|
78
|
+
5. **Identifica Discrepâncias**: Compara status plan.md vs ClickUp
|
|
79
|
+
6. **Aplica Correções**: Atualiza status das subtasks conforme necessário
|
|
80
|
+
7. **Documenta Ações**: Registra todas correções aplicadas
|
|
81
|
+
|
|
82
|
+
## ⚠️ Resolução de Problemas
|
|
83
|
+
|
|
84
|
+
### Problema: "Mapeamento Phase-Subtask não encontrado"
|
|
85
|
+
**Solução**: Verificar se context.md contém seção "Phase-Subtask Mapping"
|
|
86
|
+
```bash
|
|
87
|
+
# Execute se necessário:
|
|
88
|
+
/engineer/create-phase-mapping
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Problema: "Subtask não encontrada no ClickUp"
|
|
92
|
+
**Solução**: IDs do mapeamento podem estar incorretos
|
|
93
|
+
- Verificar IDs das subtasks no ClickUp
|
|
94
|
+
- Atualizar mapeamento no context.md
|
|
95
|
+
- Executar validação novamente
|
|
96
|
+
|
|
97
|
+
### Problema: "Múltiplas fases para mesma subtask"
|
|
98
|
+
**Solução**: Revisar estrutura do projeto
|
|
99
|
+
- Uma subtask deve corresponder a uma fase específica
|
|
100
|
+
- Considerar quebrar fase complexa em múltiplas fases
|
|
101
|
+
|
|
102
|
+
## 💡 Integração com Workflow
|
|
103
|
+
|
|
104
|
+
### Uso Recomendado
|
|
105
|
+
- **Durante desenvolvimento**: Executar ao final de cada sessão de trabalho
|
|
106
|
+
- **Antes de PRs**: Validar sincronização completa antes de `/engineer/pr`
|
|
107
|
+
- **Após interrupções**: Garantir consistência após retomar trabalho
|
|
108
|
+
- **Debugging**: Identificar problemas de tracking de progresso
|
|
109
|
+
|
|
110
|
+
### Prevenção Automática
|
|
111
|
+
Este comando corrige o problema identificado onde `/engineer/work` não atualizava automaticamente os status das subtasks. Para projetos futuros:
|
|
112
|
+
1. `/engineer/start` deve criar o mapeamento automaticamente
|
|
113
|
+
2. `/engineer/work` deve usar este mapeamento para updates automáticos
|
|
114
|
+
3. Este comando serve como backup/validação do processo automático
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
**🎯 CRITICAL FIX: Este comando resolve a falha arquitetural onde fases completadas não atualizavam automaticamente o status das subtasks correspondentes, garantindo sincronização perfeita entre plan.md e ClickUp.**
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: help
|
|
3
|
+
description: Lista comandos disponíveis do contexto Technical organizados por nível de complexidade
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: technical
|
|
6
|
+
tags: [help, discovery, onboarding, levels]
|
|
7
|
+
version: "4.0.0"
|
|
8
|
+
updated: "2025-12-20"
|
|
9
|
+
level: starter
|
|
10
|
+
context: technical
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Technical Context - Help
|
|
14
|
+
|
|
15
|
+
Lista todos os comandos disponíveis no contexto **Technical**, organizados por nível de complexidade (starter, intermediate, advanced).
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 🎯 Uso
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Listar comandos starter (padrão - 80% dos casos)
|
|
23
|
+
/technical/help
|
|
24
|
+
|
|
25
|
+
# Listar comandos de um nível específico
|
|
26
|
+
/technical/help --level=starter
|
|
27
|
+
/technical/help --level=intermediate
|
|
28
|
+
/technical/help --level=advanced
|
|
29
|
+
|
|
30
|
+
# Listar todos os comandos
|
|
31
|
+
/technical/help --level=all
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 📋 Sistema de Níveis
|
|
37
|
+
|
|
38
|
+
O Sistema Onion organiza comandos em **3 níveis** baseados na frequência de uso:
|
|
39
|
+
|
|
40
|
+
| Nível | % Uso | Descrição | Onboarding |
|
|
41
|
+
|-------|-------|-----------|------------|
|
|
42
|
+
| **Starter** | 80% | Comandos essenciais para desenvolvimento diário | ~20 min |
|
|
43
|
+
| **Intermediate** | 15% | Workflows avançados e operações especializadas | ~40 min |
|
|
44
|
+
| **Advanced** | 5% | Automações complexas e casos edge | ~60 min |
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 📊 Comandos Disponíveis
|
|
49
|
+
|
|
50
|
+
Você me pediu para executar o comando help. Vou listar os comandos organizados por nível:
|
|
51
|
+
|
|
52
|
+
### 🌟 STARTER COMMANDS (8 comandos - 80% dos casos)
|
|
53
|
+
**⏱️ Tempo de onboarding: ~20 minutos**
|
|
54
|
+
|
|
55
|
+
Estes são os comandos que você usará no desenvolvimento diário:
|
|
56
|
+
|
|
57
|
+
1. **`/technical/work "task-id"`**
|
|
58
|
+
- Continuar trabalho em feature ativa, lê sessão e identifica próxima fase
|
|
59
|
+
- Use quando: Retomar desenvolvimento de uma task em progresso
|
|
60
|
+
- Exemplo: `/technical/work "86adf8jj6"`
|
|
61
|
+
|
|
62
|
+
2. **`/technical/plan "feature"`**
|
|
63
|
+
- Criar plano de desenvolvimento detalhado com fases
|
|
64
|
+
- Use quando: Iniciar nova feature, precisa quebrar em etapas
|
|
65
|
+
- Exemplo: `/technical/plan "user-authentication"`
|
|
66
|
+
|
|
67
|
+
3. **`/technical/pr`**
|
|
68
|
+
- Criar Pull Request com descrição automática da sessão
|
|
69
|
+
- Use quando: Finalizar feature e submeter para review
|
|
70
|
+
- Exemplo: `/technical/pr`
|
|
71
|
+
|
|
72
|
+
4. **`/technical/warm-up`**
|
|
73
|
+
- Preparar contexto técnico do projeto (stack, arquitetura, padrões)
|
|
74
|
+
- Use quando: Iniciar desenvolvimento em nova sessão
|
|
75
|
+
- Exemplo: `/technical/warm-up`
|
|
76
|
+
|
|
77
|
+
5. **`/technical/docs`**
|
|
78
|
+
- Gerar/atualizar documentação técnica do projeto
|
|
79
|
+
- Use quando: Documentar feature implementada ou arquitetura
|
|
80
|
+
- Exemplo: `/technical/docs`
|
|
81
|
+
|
|
82
|
+
6. **`/technical/sync`**
|
|
83
|
+
- Sincronizar branch local com remote, resolver conflitos
|
|
84
|
+
- Use quando: Atualizar código antes de começar desenvolvimento
|
|
85
|
+
- Exemplo: `/technical/sync`
|
|
86
|
+
|
|
87
|
+
7. **`/technical/init`**
|
|
88
|
+
- Inicializar repositório git com gitflow ou outro workflow
|
|
89
|
+
- Use quando: Setup inicial de novo projeto
|
|
90
|
+
- Exemplo: `/technical/init`
|
|
91
|
+
|
|
92
|
+
8. **`/technical/help`**
|
|
93
|
+
- Este comando! Lista comandos disponíveis por nível
|
|
94
|
+
- Use quando: Descobrir comandos ou aprender sistema
|
|
95
|
+
- Exemplo: `/technical/help --level=intermediate`
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### 🔧 INTERMEDIATE COMMANDS (13 comandos - 15% dos casos)
|
|
100
|
+
**⏱️ Tempo de onboarding: ~40 minutos**
|
|
101
|
+
|
|
102
|
+
Comandos para workflows mais avançados:
|
|
103
|
+
|
|
104
|
+
1. **`/technical/start "feature"`** - Iniciar nova feature (cria sessão, branch, plan)
|
|
105
|
+
2. **`/technical/pre-pr`** - Validar código antes de criar PR (lint, tests, docs)
|
|
106
|
+
3. **`/technical/pr-update`** - Atualizar PR existente com novos commits e descrição
|
|
107
|
+
4. **`/technical/code-review`** - Realizar code review com checklist de qualidade
|
|
108
|
+
5. **`/technical/fast-commit`** - Commit rápido seguindo conventional commits
|
|
109
|
+
6. **`/technical/build-index`** - Construir índice de documentação técnica
|
|
110
|
+
7. **`/technical/build-tech-docs`** - Gerar documentação técnica completa
|
|
111
|
+
8. **`/technical/build-business-docs`** - Gerar documentação de negócio
|
|
112
|
+
9. **`/technical/validate-docs`** - Validar consistência da documentação
|
|
113
|
+
10. **`/technical/docs-health`** - Analisar saúde da documentação (cobertura, atualização)
|
|
114
|
+
11. **`/technical/sync-sessions`** - Sincronizar sessões de desenvolvimento
|
|
115
|
+
12. **`/technical/unit`** - Executar/criar testes unitários
|
|
116
|
+
13. **`/technical/integration`** - Executar/criar testes de integração
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
### ⚡ ADVANCED COMMANDS (14 comandos - 5% dos casos)
|
|
121
|
+
**⏱️ Tempo de onboarding: ~60 minutos**
|
|
122
|
+
|
|
123
|
+
Comandos especializados para casos específicos:
|
|
124
|
+
|
|
125
|
+
**Gestão de Releases:**
|
|
126
|
+
1. **`/technical/bump`** - Incrementar versão do projeto (semver)
|
|
127
|
+
2. **`/technical/hotfix`** - Criar branch de hotfix para correção urgente
|
|
128
|
+
3. **`/technical/validate-phase-sync`** - Validar sincronização entre fases de desenvolvimento
|
|
129
|
+
|
|
130
|
+
**Documentação Avançada:**
|
|
131
|
+
4. **`/technical/refine-vision`** - Refinar visão técnica do projeto
|
|
132
|
+
5. **`/technical/consolidate-documents`** - Consolidar múltiplos documentos
|
|
133
|
+
6. **`/technical/reverse-consolidate`** - Reverter consolidação de documentos
|
|
134
|
+
|
|
135
|
+
**Testes Avançados:**
|
|
136
|
+
7. **`/technical/e2e`** - Executar/criar testes end-to-end
|
|
137
|
+
|
|
138
|
+
**Git Workflows (Feature):**
|
|
139
|
+
8. **`/technical/feature-start`** - Iniciar branch de feature (gitflow)
|
|
140
|
+
9. **`/technical/feature-finish`** - Finalizar branch de feature
|
|
141
|
+
10. **`/technical/feature-publish`** - Publicar feature em remote
|
|
142
|
+
|
|
143
|
+
**Git Workflows (Hotfix):**
|
|
144
|
+
11. **`/technical/hotfix-start`** - Iniciar hotfix
|
|
145
|
+
12. **`/technical/hotfix-finish`** - Finalizar hotfix
|
|
146
|
+
|
|
147
|
+
**Git Workflows (Release):**
|
|
148
|
+
13. **`/technical/release-start`** - Iniciar release
|
|
149
|
+
14. **`/technical/release-finish`** - Finalizar release
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## 🚀 Próximos Passos
|
|
154
|
+
|
|
155
|
+
### Se você é novo no Technical Context:
|
|
156
|
+
|
|
157
|
+
1. **Comece pelos Starter Commands** (os 8 primeiros)
|
|
158
|
+
- Foque em `/technical/work` e `/technical/plan`
|
|
159
|
+
- Pratique criando uma sessão de desenvolvimento
|
|
160
|
+
- Tempo estimado: 20-30 minutos
|
|
161
|
+
|
|
162
|
+
2. **Explore Intermediate Commands**
|
|
163
|
+
- Experimente `/technical/start` para workflow completo
|
|
164
|
+
- Use `/technical/pre-pr` para validar qualidade
|
|
165
|
+
- Tempo estimado: +40 minutos
|
|
166
|
+
|
|
167
|
+
3. **Descubra Agentes Especializados**
|
|
168
|
+
```bash
|
|
169
|
+
@react-developer # Desenvolvimento React/Frontend
|
|
170
|
+
@nodejs-specialist # Backend Node.js
|
|
171
|
+
@postgres-specialist # Database PostgreSQL
|
|
172
|
+
@zen-engine-specialist # ZenStack ORM
|
|
173
|
+
@test-engineer # Testes automatizados
|
|
174
|
+
@code-reviewer # Review de código
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Workflow Típico de Desenvolvimento:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
# 1. Iniciar nova feature
|
|
181
|
+
/technical/start "user-dashboard"
|
|
182
|
+
|
|
183
|
+
# 2. Durante desenvolvimento
|
|
184
|
+
/technical/work "task-id"
|
|
185
|
+
|
|
186
|
+
# 3. Antes de finalizar
|
|
187
|
+
/technical/pre-pr
|
|
188
|
+
|
|
189
|
+
# 4. Criar Pull Request
|
|
190
|
+
/technical/pr
|
|
191
|
+
|
|
192
|
+
# 5. Após merge
|
|
193
|
+
/technical/sync
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Pronto para Business Context?
|
|
197
|
+
|
|
198
|
+
Para especificações e planejamento de produto:
|
|
199
|
+
```bash
|
|
200
|
+
/business/help # Comandos de produto/negócio
|
|
201
|
+
/business/spec "feature" # Criar especificação
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## 📚 Documentação Relacionada
|
|
207
|
+
|
|
208
|
+
- **Sistema de Níveis**: `docs/onion/levels-system.md`
|
|
209
|
+
- **READMEs**: `.onion/contexts/technical/README.md`
|
|
210
|
+
- **Agentes**: `.onion/contexts/technical/agents/`
|
|
211
|
+
- **Configuração**: `.onion/contexts/technical/.context-config.yml`
|
|
212
|
+
- **Sessions**: `.cursor/sessions/` (rastreamento de desenvolvimento)
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## 💡 Dicas Úteis
|
|
217
|
+
|
|
218
|
+
### Filosofia 80/15/5
|
|
219
|
+
- **80%** do seu tempo: Use apenas comandos **starter**
|
|
220
|
+
- **15%** do seu tempo: Use comandos **intermediate**
|
|
221
|
+
- **5%** do seu tempo: Use comandos **advanced**
|
|
222
|
+
|
|
223
|
+
### Descoberta Progressiva
|
|
224
|
+
Cada comando inclui seção "🚀 Próximos Passos" sugerindo o que fazer em seguida.
|
|
225
|
+
|
|
226
|
+
### Sessions & Context Management
|
|
227
|
+
O Onion v4 rastreia suas sessões de desenvolvimento:
|
|
228
|
+
- `.cursor/sessions/[feature]/` contém context.md, plan.md, architecture.md
|
|
229
|
+
- Comandos `/work` e `/start` gerenciam automaticamente
|
|
230
|
+
- Sessions são **CAMADA 5** do ciclo completo Onion
|
|
231
|
+
|
|
232
|
+
### Flags e Opções
|
|
233
|
+
```bash
|
|
234
|
+
--level=starter # Filtrar por nível
|
|
235
|
+
--level=all # Ver todos os níveis
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## 🎓 Onboarding Recomendado
|
|
241
|
+
|
|
242
|
+
### Dia 1 (30 minutos)
|
|
243
|
+
1. Execute `/technical/warm-up`
|
|
244
|
+
2. Pratique `/technical/plan "test-feature"`
|
|
245
|
+
3. Teste `/technical/work` em uma task real
|
|
246
|
+
|
|
247
|
+
### Semana 1 (3 horas)
|
|
248
|
+
- Domine os 8 starter commands
|
|
249
|
+
- Experimente 4-5 intermediate commands
|
|
250
|
+
- Crie sua primeira feature completa (start → work → pr)
|
|
251
|
+
|
|
252
|
+
### Mês 1 (8 horas)
|
|
253
|
+
- Explore todos os intermediate commands
|
|
254
|
+
- Teste gitflow (feature/hotfix/release)
|
|
255
|
+
- Integre no workflow diário da equipe
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## 🔄 Integração com Business Context
|
|
260
|
+
|
|
261
|
+
O Technical Context trabalha em conjunto com Business:
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
# 1. Business: Criar especificação
|
|
265
|
+
/business/spec "dashboard-analytics"
|
|
266
|
+
|
|
267
|
+
# 2. Business: Estimar complexidade
|
|
268
|
+
/business/estimate "dashboard-analytics"
|
|
269
|
+
|
|
270
|
+
# 3. Business: Criar task
|
|
271
|
+
/business/task "dashboard-analytics"
|
|
272
|
+
|
|
273
|
+
# 4. Technical: Iniciar desenvolvimento
|
|
274
|
+
/technical/start "dashboard-analytics"
|
|
275
|
+
|
|
276
|
+
# 5. Technical: Desenvolver
|
|
277
|
+
/technical/work "task-id"
|
|
278
|
+
|
|
279
|
+
# 6. Technical: Finalizar
|
|
280
|
+
/technical/pr
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
**📊 Estatísticas do Technical Context:**
|
|
286
|
+
- **Total**: 36 comandos (mais que business!)
|
|
287
|
+
- **Starter**: 8 (22%)
|
|
288
|
+
- **Intermediate**: 13 (36%)
|
|
289
|
+
- **Advanced**: 14 (39%)
|
|
290
|
+
- **Agentes**: 23 especializados
|
|
291
|
+
- **Tempo total onboarding**: ~120 minutos (todos os níveis)
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## 🏗️ Arquitetura de Sessions
|
|
296
|
+
|
|
297
|
+
```
|
|
298
|
+
.cursor/sessions/
|
|
299
|
+
├── feature-x/
|
|
300
|
+
│ ├── context.md # Objetivo, requisitos, decisões
|
|
301
|
+
│ ├── architecture.md # Design técnico, trade-offs
|
|
302
|
+
│ ├── plan.md # Fases de implementação
|
|
303
|
+
│ └── notes.md # Notas de desenvolvimento
|
|
304
|
+
└── feature-y/
|
|
305
|
+
└── ...
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
Comandos que gerenciam sessions automaticamente:
|
|
309
|
+
- `/technical/start` - Cria nova session
|
|
310
|
+
- `/technical/work` - Lê e atualiza session ativa
|
|
311
|
+
- `/technical/pr` - Usa session para gerar descrição
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
## 🆘 Precisa de Ajuda?
|
|
316
|
+
|
|
317
|
+
- **Help de outro contexto**: `/business/help`, `/customer-success/help`
|
|
318
|
+
- **Help global**: `/help`
|
|
319
|
+
- **Agente de ajuda**: `@onion` (orquestrador principal)
|
|
320
|
+
- **Documentação**: `docs/onion/`
|
|
321
|
+
- **Agentes especializados**:
|
|
322
|
+
- `@cursor-specialist` - Problemas com IDE
|
|
323
|
+
- `@gitflow-specialist` - Workflows git
|
|
324
|
+
- `@nx-monorepo-specialist` - Monorepo NX
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
**Sistema Onion v4.0** - Multi-Context Development Orchestrator 🧅
|
|
329
|
+
|