@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,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-task-structure
|
|
3
|
+
description: |
|
|
4
|
+
Decomposição de tarefas complexas em estrutura hierárquica.
|
|
5
|
+
Use para criar estrutura organizada de subtarefas.
|
|
6
|
+
model: sonnet
|
|
7
|
+
|
|
8
|
+
parameters:
|
|
9
|
+
- name: task
|
|
10
|
+
description: Descrição da tarefa complexa
|
|
11
|
+
required: true
|
|
12
|
+
- name: output
|
|
13
|
+
description: Formato de saída (markdown/json/clickup)
|
|
14
|
+
required: false
|
|
15
|
+
default: markdown
|
|
16
|
+
|
|
17
|
+
category: meta
|
|
18
|
+
tags:
|
|
19
|
+
- task-decomposition
|
|
20
|
+
- planning
|
|
21
|
+
- structure
|
|
22
|
+
|
|
23
|
+
version: "3.0.0"
|
|
24
|
+
updated: "2025-11-24"
|
|
25
|
+
|
|
26
|
+
related_commands:
|
|
27
|
+
- /product/task
|
|
28
|
+
- /engineer/start
|
|
29
|
+
|
|
30
|
+
related_agents:
|
|
31
|
+
- task-specialist
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
# 📋 Criar Estrutura de Tarefas
|
|
35
|
+
|
|
36
|
+
Decomposição de tarefas complexas em hierarquia gerenciável.
|
|
37
|
+
|
|
38
|
+
## 🎯 Objetivo
|
|
39
|
+
|
|
40
|
+
Transformar tarefa complexa em estrutura organizada de subtarefas.
|
|
41
|
+
|
|
42
|
+
## ⚡ Fluxo de Execução
|
|
43
|
+
|
|
44
|
+
### Passo 1: Analisar Tarefa
|
|
45
|
+
|
|
46
|
+
Entender `{{task}}`:
|
|
47
|
+
|
|
48
|
+
| Aspecto | Pergunta |
|
|
49
|
+
|---------|----------|
|
|
50
|
+
| Objetivo | O que precisa estar pronto? |
|
|
51
|
+
| Escopo | Quais áreas são afetadas? |
|
|
52
|
+
| Complexidade | Quantas etapas? |
|
|
53
|
+
| Dependências | Ordem obrigatória? |
|
|
54
|
+
| Riscos | Pontos críticos? |
|
|
55
|
+
|
|
56
|
+
### Passo 2: Identificar Subtarefas
|
|
57
|
+
|
|
58
|
+
#### Por Camada Técnica
|
|
59
|
+
|
|
60
|
+
- 📊 **Data**: schemas, migrations, modelos
|
|
61
|
+
- 🔌 **API**: endpoints, validação, business logic
|
|
62
|
+
- 🎨 **UI**: componentes, páginas, styling
|
|
63
|
+
- 🧪 **Testing**: unit, integration, e2e
|
|
64
|
+
- 📚 **Docs**: documentação, comentários
|
|
65
|
+
|
|
66
|
+
#### Por Tipo de Atividade
|
|
67
|
+
|
|
68
|
+
- 🔍 Análise e pesquisa
|
|
69
|
+
- 🏗️ Implementação
|
|
70
|
+
- 🧪 Testes
|
|
71
|
+
- 📝 Documentação
|
|
72
|
+
- 🔄 Integração
|
|
73
|
+
|
|
74
|
+
### Passo 3: Estruturar Hierarquia
|
|
75
|
+
|
|
76
|
+
Consultar @task-specialist para estrutura:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
📋 TASK PRINCIPAL
|
|
80
|
+
├── 🔧 Fase 1: [Nome]
|
|
81
|
+
│ ├── ✅ Subtask 1.1
|
|
82
|
+
│ └── ✅ Subtask 1.2
|
|
83
|
+
├── 🔧 Fase 2: [Nome]
|
|
84
|
+
│ ├── ✅ Subtask 2.1
|
|
85
|
+
│ └── ✅ Subtask 2.2
|
|
86
|
+
└── 🔧 Fase 3: [Nome]
|
|
87
|
+
└── ✅ Subtask 3.1
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Passo 4: Gerar Output
|
|
91
|
+
|
|
92
|
+
SE `{{output}}` = "markdown":
|
|
93
|
+
```markdown
|
|
94
|
+
# Estrutura de Tarefas: [Nome]
|
|
95
|
+
|
|
96
|
+
## Resumo
|
|
97
|
+
- Total de fases: X
|
|
98
|
+
- Total de subtasks: Y
|
|
99
|
+
- Estimativa: Z dias
|
|
100
|
+
|
|
101
|
+
## Estrutura
|
|
102
|
+
[hierarquia]
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
SE `{{output}}` = "json":
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"task": "...",
|
|
109
|
+
"phases": [...],
|
|
110
|
+
"estimatedDays": X
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
SE `{{output}}` = "clickup":
|
|
115
|
+
→ Delegar para @clickup-specialist
|
|
116
|
+
|
|
117
|
+
## 📤 Output Esperado
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
121
|
+
✅ ESTRUTURA CRIADA
|
|
122
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
123
|
+
|
|
124
|
+
📋 Task: {{task}}
|
|
125
|
+
|
|
126
|
+
📊 Decomposição:
|
|
127
|
+
∟ Fases: 4
|
|
128
|
+
∟ Subtasks: 12
|
|
129
|
+
∟ Estimativa: 5 dias
|
|
130
|
+
|
|
131
|
+
🔧 Estrutura:
|
|
132
|
+
├── Fase 1: Setup (1d)
|
|
133
|
+
├── Fase 2: Implementação (2d)
|
|
134
|
+
├── Fase 3: Testes (1d)
|
|
135
|
+
└── Fase 4: Deploy (1d)
|
|
136
|
+
|
|
137
|
+
🚀 Próximo: /product/task
|
|
138
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## 🔗 Referências
|
|
142
|
+
|
|
143
|
+
- Decomposição: @task-specialist
|
|
144
|
+
- Criação no ClickUp: /product/task
|
|
145
|
+
|
|
146
|
+
## ⚠️ Notas
|
|
147
|
+
|
|
148
|
+
- Máximo 6 fases por task
|
|
149
|
+
- Subtasks de 1-4h cada
|
|
150
|
+
- Se muito grande: quebrar em múltiplas tasks
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: setup-integration
|
|
3
|
+
description: |
|
|
4
|
+
Configura integrações do Sistema Onion (Task Managers, Gamma, etc).
|
|
5
|
+
Guia o usuário na configuração segura de variáveis de ambiente para MCPs e APIs.
|
|
6
|
+
model: sonnet
|
|
7
|
+
parameters:
|
|
8
|
+
- name: integration
|
|
9
|
+
description: Nome da integração (task-manager, clickup, asana, linear, gamma, postgres)
|
|
10
|
+
required: false
|
|
11
|
+
category: meta
|
|
12
|
+
tags:
|
|
13
|
+
- meta
|
|
14
|
+
- setup
|
|
15
|
+
- integrations
|
|
16
|
+
- task-manager
|
|
17
|
+
version: "3.0.0"
|
|
18
|
+
updated: "2025-12-02"
|
|
19
|
+
related_commands:
|
|
20
|
+
- /product/task
|
|
21
|
+
- /engineer/start
|
|
22
|
+
related_agents:
|
|
23
|
+
- clickup-specialist
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# ⚙️ Configuração de Integrações
|
|
27
|
+
|
|
28
|
+
Você é um assistente de configuração do Sistema Onion. Sua missão é guiar o usuário na configuração segura de integrações externas, especialmente **Task Managers** (ClickUp, Asana, Linear).
|
|
29
|
+
|
|
30
|
+
## 🎯 Objetivo
|
|
31
|
+
|
|
32
|
+
Configurar variáveis de ambiente necessárias para integrações do Sistema Onion, com foco especial em **Task Manager Abstraction** que permite usar múltiplos gerenciadores de tarefas.
|
|
33
|
+
|
|
34
|
+
## ⚡ Fluxo de Execução
|
|
35
|
+
|
|
36
|
+
### Passo 1: Identificar Integração
|
|
37
|
+
|
|
38
|
+
SE `{{integration}}` foi fornecido:
|
|
39
|
+
- Use diretamente
|
|
40
|
+
SENÃO:
|
|
41
|
+
- Pergunte qual integração configurar:
|
|
42
|
+
- **task-manager** - Configurar gerenciador de tarefas (ClickUp, Asana, Linear) - **RECOMENDADO PRIMEIRO**
|
|
43
|
+
- **clickup** - ClickUp MCP para gestão de tarefas
|
|
44
|
+
- **asana** - Asana MCP para gestão de tarefas
|
|
45
|
+
- **linear** - Linear API para gestão de tarefas
|
|
46
|
+
- **gamma** - Gamma.App API para apresentações
|
|
47
|
+
- **postgres** - PostgreSQL para banco de dados
|
|
48
|
+
|
|
49
|
+
### Passo 2: Verificar Estado Atual
|
|
50
|
+
|
|
51
|
+
**CRÍTICO:** Usar `read_file` para ler `.env` sem expor valores sensíveis:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Verificar se .env existe
|
|
55
|
+
test -f .env && echo "✅ .env existe" || echo "⚠️ .env não encontrado"
|
|
56
|
+
|
|
57
|
+
# Ler .env usando read_file (não usar cat/grep que expõe valores)
|
|
58
|
+
read_file .env
|
|
59
|
+
|
|
60
|
+
# Verificar variáveis específicas (sem expor valores)
|
|
61
|
+
# Usar apenas para detectar presença, não para exibir conteúdo
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**⚠️ REGRA DE SEGURANÇA:**
|
|
65
|
+
- **NUNCA** usar `cat .env` ou `grep` que mostre valores completos
|
|
66
|
+
- **SEMPRE** usar `read_file` que permite análise sem exposição
|
|
67
|
+
- **NUNCA** exibir tokens/senhas no output
|
|
68
|
+
|
|
69
|
+
### Passo 3: Guiar Configuração por Integração
|
|
70
|
+
|
|
71
|
+
#### 🎯 Task Manager (Recomendado - Configuração Principal)
|
|
72
|
+
|
|
73
|
+
**Este é o passo mais importante!** O Sistema Onion usa **Task Manager Abstraction** que suporta múltiplos provedores.
|
|
74
|
+
|
|
75
|
+
**1. Escolher Provedor:**
|
|
76
|
+
```env
|
|
77
|
+
# ═══════════════════════════════════════
|
|
78
|
+
# GERENCIADOR DE TAREFAS (escolha um)
|
|
79
|
+
# ═══════════════════════════════════════
|
|
80
|
+
TASK_MANAGER_PROVIDER=clickup # clickup | asana | linear | none
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**2. Configurar ClickUp (se escolhido):**
|
|
84
|
+
```env
|
|
85
|
+
# ClickUp MCP
|
|
86
|
+
CLICKUP_API_TOKEN=pk_xxxxxxx_xxxxxxxxxxxxxxx
|
|
87
|
+
CLICKUP_WORKSPACE_ID=90131664218 # Opcional, detectado automaticamente
|
|
88
|
+
CLICKUP_DEFAULT_LIST_ID=901314121395 # Opcional, lista padrão
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**Como obter:**
|
|
92
|
+
- **API Token**: Settings > Apps > API Token no ClickUp
|
|
93
|
+
- **Workspace ID**: URL do workspace `https://app.clickup.com/XXXXXXXX/home` → `XXXXXXXX`
|
|
94
|
+
- **List ID**: URL da lista `https://app.clickup.com/XXXXXXXX/v/li/YYYYYYYY` → `YYYYYYYY`
|
|
95
|
+
|
|
96
|
+
**3. Configurar Asana (alternativa):**
|
|
97
|
+
```env
|
|
98
|
+
# Asana MCP
|
|
99
|
+
ASANA_ACCESS_TOKEN=1/xxxxx_xxxxxxxxxxxxxxx
|
|
100
|
+
ASANA_DEFAULT_WORKSPACE=1234567890 # Opcional
|
|
101
|
+
ASANA_DEFAULT_PROJECT_ID=0987654321 # Opcional
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Como obter:**
|
|
105
|
+
- **Access Token**: [Asana Developer Console](https://app.asana.com/0/my-apps)
|
|
106
|
+
- **Workspace ID**: URL do workspace ou via API
|
|
107
|
+
- **Project ID**: URL do projeto ou via API
|
|
108
|
+
|
|
109
|
+
**4. Configurar Linear (alternativa):**
|
|
110
|
+
```env
|
|
111
|
+
# Linear API
|
|
112
|
+
LINEAR_API_KEY=lin_api_xxxxxxxxxxxxxxx
|
|
113
|
+
LINEAR_TEAM_ID=abc123 # Opcional
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Como obter:**
|
|
117
|
+
- **API Key**: Settings > API no Linear
|
|
118
|
+
- **Team ID**: URL do time ou via API
|
|
119
|
+
|
|
120
|
+
**5. Modo Offline (sem gerenciador):**
|
|
121
|
+
```env
|
|
122
|
+
TASK_MANAGER_PROVIDER=none
|
|
123
|
+
# Sistema funcionará em modo local sem sincronização
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
#### Gamma.App
|
|
127
|
+
1. Acesse: gamma.app/settings/api
|
|
128
|
+
2. Gere uma API Key
|
|
129
|
+
3. Adicione ao `.env`:
|
|
130
|
+
```env
|
|
131
|
+
# Gamma.App API
|
|
132
|
+
GAMMA_API_KEY=gm_xxxxxxxxxxxxxxxx
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
#### PostgreSQL
|
|
136
|
+
1. Configure conexão local ou cloud
|
|
137
|
+
2. Adicione ao `.env`:
|
|
138
|
+
```env
|
|
139
|
+
# PostgreSQL
|
|
140
|
+
POSTGRES_HOST=localhost
|
|
141
|
+
POSTGRES_PORT=5432
|
|
142
|
+
POSTGRES_DB=mydb
|
|
143
|
+
POSTGRES_USER=myuser
|
|
144
|
+
POSTGRES_PASSWORD=mypassword # Use senhas seguras!
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Passo 4: Criar/Atualizar .env
|
|
148
|
+
|
|
149
|
+
**SE `.env` não existir:**
|
|
150
|
+
```bash
|
|
151
|
+
# Verificar se .env.example existe
|
|
152
|
+
if [ -f .env.example ]; then
|
|
153
|
+
cp .env.example .env
|
|
154
|
+
echo "✅ .env criado a partir de .env.example"
|
|
155
|
+
else
|
|
156
|
+
# Criar .env básico
|
|
157
|
+
touch .env
|
|
158
|
+
echo "# Sistema Onion - Variáveis de Ambiente" >> .env
|
|
159
|
+
echo "# Gerado por /meta/setup-integration" >> .env
|
|
160
|
+
echo "" >> .env
|
|
161
|
+
echo "✅ .env criado"
|
|
162
|
+
fi
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**SE `.env` já existir:**
|
|
166
|
+
- **NUNCA** sobrescrever valores existentes
|
|
167
|
+
- **SEMPRE** adicionar novas variáveis ao final
|
|
168
|
+
- **AVISAR** se variável já existe com valor diferente
|
|
169
|
+
|
|
170
|
+
### Passo 5: Validar Configuração
|
|
171
|
+
|
|
172
|
+
Após o usuário adicionar as credenciais:
|
|
173
|
+
|
|
174
|
+
**Para Task Manager:**
|
|
175
|
+
```bash
|
|
176
|
+
# Verificar se TASK_MANAGER_PROVIDER está configurado
|
|
177
|
+
# Verificar se variáveis obrigatórias do provedor estão presentes
|
|
178
|
+
# Sugerir teste: /product/task "Task de teste"
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
**Para outras integrações:**
|
|
182
|
+
```bash
|
|
183
|
+
# Teste de conexão específico da integração
|
|
184
|
+
# Depende da integração escolhida
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Passo 6: Atualizar .gitignore
|
|
188
|
+
|
|
189
|
+
**CRÍTICO:** Verificar se `.env` está protegido:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
# Verificar se .env está no .gitignore
|
|
193
|
+
if ! grep -q "^\.env$" .gitignore 2>/dev/null; then
|
|
194
|
+
echo ".env" >> .gitignore
|
|
195
|
+
echo "✅ .env adicionado ao .gitignore"
|
|
196
|
+
else
|
|
197
|
+
echo "✅ .env já está protegido no .gitignore"
|
|
198
|
+
fi
|
|
199
|
+
|
|
200
|
+
# Verificar se há .env commitado no Git
|
|
201
|
+
if git ls-files --error-unmatch .env >/dev/null 2>&1; then
|
|
202
|
+
echo "⚠️ ATENÇÃO: .env está sendo rastreado pelo Git!"
|
|
203
|
+
echo "💡 Execute: git rm --cached .env"
|
|
204
|
+
fi
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## 🔒 Regras de Segurança
|
|
208
|
+
|
|
209
|
+
1. **NUNCA** exiba tokens/senhas completos no output
|
|
210
|
+
2. **SEMPRE** use `read_file` para ler `.env` (não `cat` ou `grep` que expõem valores)
|
|
211
|
+
3. **SEMPRE** verifique `.gitignore` antes de concluir
|
|
212
|
+
4. **ALERTE** se detectar credenciais em arquivos não protegidos
|
|
213
|
+
5. **SUGIRA** uso de vault/secrets manager para produção
|
|
214
|
+
6. **VALIDE** se `.env` está sendo rastreado pelo Git e alerte
|
|
215
|
+
|
|
216
|
+
## 📤 Output Final
|
|
217
|
+
|
|
218
|
+
Apresente um resumo formatado:
|
|
219
|
+
|
|
220
|
+
```
|
|
221
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
222
|
+
✅ Configuração de [INTEGRAÇÃO] Concluída
|
|
223
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
224
|
+
|
|
225
|
+
📋 Status:
|
|
226
|
+
∟ .env: ✅ Configurado
|
|
227
|
+
∟ .gitignore: ✅ Protegido
|
|
228
|
+
∟ [INTEGRAÇÃO]: ✅ Pronta para uso
|
|
229
|
+
|
|
230
|
+
🔧 Configuração:
|
|
231
|
+
∟ TASK_MANAGER_PROVIDER: [clickup/asana/linear/none]
|
|
232
|
+
∟ [Variáveis específicas configuradas]
|
|
233
|
+
|
|
234
|
+
🚀 Próximos Passos:
|
|
235
|
+
∟ Execute /product/task para criar sua primeira task
|
|
236
|
+
∟ Use @clickup-specialist para operações ClickUp
|
|
237
|
+
∟ Ou execute /engineer/start para iniciar desenvolvimento
|
|
238
|
+
|
|
239
|
+
💡 Dica: Teste a integração criando uma task de teste:
|
|
240
|
+
/product/task "Task de teste do sistema"
|
|
241
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
## 📚 Referências
|
|
245
|
+
|
|
246
|
+
- **Task Manager Abstraction**: `.cursor/utils/task-manager/README.md`
|
|
247
|
+
- **Detector de Provedor**: `.cursor/utils/task-manager/detector.md`
|
|
248
|
+
- **Documentação ClickUp**: `.cursor/docs/onion/clickup-integration.md`
|
|
249
|
+
- **Comando de Task**: `/product/task` - Criar tasks com decomposição
|
|
250
|
+
|
|
251
|
+
## ⚠️ Notas Importantes
|
|
252
|
+
|
|
253
|
+
- **Task Manager é OBRIGATÓRIO** para comandos como `/product/task` funcionarem com sincronização
|
|
254
|
+
- **Modo `none`** permite funcionamento offline sem gerenciador
|
|
255
|
+
- **Múltiplos provedores** podem ser configurados, mas apenas um será usado por vez via `TASK_MANAGER_PROVIDER`
|
|
256
|
+
- **Variáveis opcionais** melhoram UX mas não são obrigatórias (sistema detecta automaticamente)
|
|
257
|
+
|