@onion-ai/cli 1.0.0-beta.1
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/LICENSE +21 -0
- package/README.md +529 -0
- package/bin/onion.js +6 -0
- package/framework/CLAUDE.md +45 -0
- package/framework/VERSION +1 -0
- package/framework/agents/compliance/iso-22301-specialist.md +985 -0
- package/framework/agents/compliance/iso-27001-specialist.md +713 -0
- package/framework/agents/compliance/pmbok-specialist.md +739 -0
- package/framework/agents/compliance/security-information-master.md +907 -0
- package/framework/agents/compliance/soc2-specialist.md +889 -0
- package/framework/agents/deployment/docker-specialist.md +1192 -0
- package/framework/agents/development/c4-architecture-specialist.md +745 -0
- package/framework/agents/development/c4-documentation-specialist.md +695 -0
- package/framework/agents/development/clickup-specialist.md +396 -0
- package/framework/agents/development/cursor-specialist.md +277 -0
- package/framework/agents/development/docs-reverse-engineer.md +417 -0
- package/framework/agents/development/gamma-api-specialist.md +1168 -0
- package/framework/agents/development/gitflow-specialist.md +1206 -0
- package/framework/agents/development/linux-security-specialist.md +675 -0
- package/framework/agents/development/mermaid-specialist.md +515 -0
- package/framework/agents/development/nodejs-specialist.md +672 -0
- package/framework/agents/development/nx-migration-specialist.md +866 -0
- package/framework/agents/development/nx-monorepo-specialist.md +618 -0
- package/framework/agents/development/postgres-specialist.md +1123 -0
- package/framework/agents/development/react-developer.md +131 -0
- package/framework/agents/development/runflow-specialist.md +277 -0
- package/framework/agents/development/system-documentation-orchestrator.md +1387 -0
- package/framework/agents/development/task-specialist.md +677 -0
- package/framework/agents/git/branch-code-reviewer.md +225 -0
- package/framework/agents/git/branch-documentation-writer.md +161 -0
- package/framework/agents/git/branch-metaspec-checker.md +67 -0
- package/framework/agents/git/branch-test-planner.md +176 -0
- package/framework/agents/meta/agent-creator-specialist.md +1266 -0
- package/framework/agents/meta/command-creator-specialist.md +1676 -0
- package/framework/agents/meta/metaspec-gate-keeper.md +240 -0
- package/framework/agents/meta/onion.md +824 -0
- package/framework/agents/product/branding-positioning-specialist.md +1029 -0
- package/framework/agents/product/extract-meeting-specialist.md +394 -0
- package/framework/agents/product/meeting-consolidator.md +482 -0
- package/framework/agents/product/pain-price-specialist.md +508 -0
- package/framework/agents/product/presentation-orchestrator.md +1190 -0
- package/framework/agents/product/product-agent.md +201 -0
- package/framework/agents/product/story-points-framework-specialist.md +538 -0
- package/framework/agents/product/storytelling-business-specialist.md +890 -0
- package/framework/agents/research/research-agent.md +292 -0
- package/framework/agents/review/code-reviewer.md +154 -0
- package/framework/agents/review/corporate-compliance-specialist.md +370 -0
- package/framework/agents/testing/test-agent.md +424 -0
- package/framework/agents/testing/test-engineer.md +294 -0
- package/framework/agents/testing/test-planner.md +117 -0
- package/framework/commands/common/prompts/README.md +208 -0
- package/framework/commands/common/prompts/clickup-patterns.md +144 -0
- package/framework/commands/common/prompts/code-review-checklist.md +168 -0
- package/framework/commands/common/prompts/git-workflow-patterns.md +235 -0
- package/framework/commands/common/prompts/output-formats.md +240 -0
- package/framework/commands/common/prompts/technical.md +194 -0
- package/framework/commands/common/templates/abstraction-template.md +399 -0
- package/framework/commands/common/templates/agent-template.md +353 -0
- package/framework/commands/common/templates/business_context_template.md +748 -0
- package/framework/commands/common/templates/command-template.md +273 -0
- package/framework/commands/common/templates/technical_context_template.md +526 -0
- package/framework/commands/design/screen-spec.md +505 -0
- package/framework/commands/development/runflow-dev.md +465 -0
- package/framework/commands/docs/build-business-docs.md +299 -0
- package/framework/commands/docs/build-compliance-docs.md +143 -0
- package/framework/commands/docs/build-index.md +119 -0
- package/framework/commands/docs/build-tech-docs.md +221 -0
- package/framework/commands/docs/docs-health.md +141 -0
- package/framework/commands/docs/help.md +278 -0
- package/framework/commands/docs/refine-vision.md +25 -0
- package/framework/commands/docs/reverse-consolidate.md +158 -0
- package/framework/commands/docs/sync-sessions.md +354 -0
- package/framework/commands/docs/validate-docs.md +157 -0
- package/framework/commands/engineer/bump.md +29 -0
- package/framework/commands/engineer/docs.md +11 -0
- package/framework/commands/engineer/hotfix.md +183 -0
- package/framework/commands/engineer/plan.md +85 -0
- package/framework/commands/engineer/pr-update.md +219 -0
- package/framework/commands/engineer/pr.md +117 -0
- package/framework/commands/engineer/pre-pr.md +81 -0
- package/framework/commands/engineer/start.md +254 -0
- package/framework/commands/engineer/validate-phase-sync.md +134 -0
- package/framework/commands/engineer/warm-up.md +20 -0
- package/framework/commands/engineer/work.md +155 -0
- package/framework/commands/f/company-context-extractor.md +93 -0
- package/framework/commands/f/process-meetings.md +103 -0
- package/framework/commands/git/README.md +682 -0
- package/framework/commands/git/code-review.md +213 -0
- package/framework/commands/git/fast-commit.md +43 -0
- package/framework/commands/git/feature/finish.md +88 -0
- package/framework/commands/git/feature/publish.md +89 -0
- package/framework/commands/git/feature/start.md +172 -0
- package/framework/commands/git/help.md +100 -0
- package/framework/commands/git/hotfix/finish.md +96 -0
- package/framework/commands/git/hotfix/start.md +92 -0
- package/framework/commands/git/init.md +111 -0
- package/framework/commands/git/release/finish.md +96 -0
- package/framework/commands/git/release/start.md +93 -0
- package/framework/commands/git/sync.md +199 -0
- package/framework/commands/meta/all-tools.md +58 -0
- package/framework/commands/meta/analyze-complex-problem.md +186 -0
- package/framework/commands/meta/create-abstraction.md +882 -0
- package/framework/commands/meta/create-agent-express.md +98 -0
- package/framework/commands/meta/create-agent.md +210 -0
- package/framework/commands/meta/create-command.md +203 -0
- package/framework/commands/meta/create-knowledge-base.md +143 -0
- package/framework/commands/meta/create-task-structure.md +150 -0
- package/framework/commands/meta/setup-integration.md +274 -0
- package/framework/commands/onion.md +169 -0
- package/framework/commands/product/README.md +249 -0
- package/framework/commands/product/analyze-pain-price.md +694 -0
- package/framework/commands/product/branding.md +458 -0
- package/framework/commands/product/check.md +46 -0
- package/framework/commands/product/checklist-sync.md +239 -0
- package/framework/commands/product/collect.md +95 -0
- package/framework/commands/product/consolidate-meetings.md +291 -0
- package/framework/commands/product/estimate.md +511 -0
- package/framework/commands/product/extract-meeting.md +226 -0
- package/framework/commands/product/feature.md +416 -0
- package/framework/commands/product/light-arch.md +82 -0
- package/framework/commands/product/presentation.md +174 -0
- package/framework/commands/product/refine.md +161 -0
- package/framework/commands/product/spec.md +79 -0
- package/framework/commands/product/task-check.md +378 -0
- package/framework/commands/product/task.md +603 -0
- package/framework/commands/product/validate-task.md +325 -0
- package/framework/commands/product/warm-up.md +24 -0
- package/framework/commands/quick/analisys.md +17 -0
- package/framework/commands/test/e2e.md +377 -0
- package/framework/commands/test/integration.md +508 -0
- package/framework/commands/test/unit.md +381 -0
- package/framework/commands/validate/collab/pair-testing.md +657 -0
- package/framework/commands/validate/collab/three-amigos.md +534 -0
- package/framework/commands/validate/qa-points/estimate.md +660 -0
- package/framework/commands/validate/test-strategy/analyze.md +1201 -0
- package/framework/commands/validate/test-strategy/create.md +411 -0
- package/framework/commands/validate/workflow.md +370 -0
- package/framework/commands/warm-up.md +20 -0
- package/framework/docs/architecture/acoplamento-clickup-problema-analise.md +468 -0
- package/framework/docs/architecture/desacoplamento-roadmap.md +364 -0
- package/framework/docs/architecture/validacao-fase-1.md +235 -0
- package/framework/docs/c4/c4-detection-rules.md +395 -0
- package/framework/docs/c4/c4-documentation-templates.md +579 -0
- package/framework/docs/c4/c4-mermaid-patterns.md +331 -0
- package/framework/docs/c4/c4-templates.md +256 -0
- package/framework/docs/clickup/clickup-acceptance-criteria-strategy.md +329 -0
- package/framework/docs/clickup/clickup-auto-update-strategy.md +340 -0
- package/framework/docs/clickup/clickup-comment-formatter.md +239 -0
- package/framework/docs/clickup/clickup-description-fix.md +384 -0
- package/framework/docs/clickup/clickup-dual-comment-strategy.md +528 -0
- package/framework/docs/clickup/clickup-formatting.md +302 -0
- package/framework/docs/clickup/separador-tamanho-otimizado.md +258 -0
- package/framework/docs/engineer/pre-pr-acceptance-validation.md +256 -0
- package/framework/docs/onion/ESPERANTO.md +293 -0
- package/framework/docs/onion/agents-reference.md +832 -0
- package/framework/docs/onion/clickup-integration.md +780 -0
- package/framework/docs/onion/commands-guide.md +924 -0
- package/framework/docs/onion/engineering-flows.md +900 -0
- package/framework/docs/onion/getting-started.md +803 -0
- package/framework/docs/onion/maintenance-checklist.md +421 -0
- package/framework/docs/onion/naming-conventions.md +286 -0
- package/framework/docs/onion/practical-examples.md +854 -0
- package/framework/docs/product/story-points-integration.md +269 -0
- package/framework/docs/product/story-points-validation.md +237 -0
- package/framework/docs/reviews/task-manager-docs-review-2025-11-24.md +184 -0
- package/framework/docs/strategies/clickup-comment-patterns.md +766 -0
- package/framework/docs/strategies/clickup-integration-tests.md +602 -0
- package/framework/docs/strategies/clickup-mcp-wrappers-tests.md +888 -0
- package/framework/docs/strategies/clickup-regression-tests.md +587 -0
- package/framework/docs/strategies/visual-patterns.md +315 -0
- package/framework/docs/templates/README.md +649 -0
- package/framework/docs/templates/adr-template.md +226 -0
- package/framework/docs/templates/analysis-template.md +280 -0
- package/framework/docs/templates/execution-plan-template.md +430 -0
- package/framework/docs/templates/guide-template.md +367 -0
- package/framework/docs/templates/phase-execution-prompt-template.md +504 -0
- package/framework/docs/templates/reference-template.md +522 -0
- package/framework/docs/templates/solution-template.md +390 -0
- package/framework/docs/tools/README.md +356 -0
- package/framework/docs/tools/agents.md +365 -0
- package/framework/docs/tools/commands.md +669 -0
- package/framework/docs/tools/cursor.md +539 -0
- package/framework/docs/tools/mcps.md +937 -0
- package/framework/docs/tools/rules.md +461 -0
- package/framework/rules/language-and-documentation.mdc +371 -0
- package/framework/rules/nestjs-controllers.md +83 -0
- package/framework/rules/nestjs-dtos.md +255 -0
- package/framework/rules/nestjs-modules.md +141 -0
- package/framework/rules/nestjs-services.md +230 -0
- package/framework/rules/nx-rules.mdc +41 -0
- package/framework/rules/onion-patterns.mdc +197 -0
- package/framework/skills/codebase-visualizer/SKILL.md +26 -0
- package/framework/skills/codebase-visualizer/scripts/visualize.py +131 -0
- package/framework/skills/collect/SKILL.md +84 -0
- package/framework/skills/create-rule/SKILL.md +152 -0
- package/framework/skills/db-schema-visualizer/SKILL.md +49 -0
- package/framework/skills/db-schema-visualizer/scripts/visualize.py +1191 -0
- package/framework/skills/sync-meetings/SKILL.md +239 -0
- package/framework/utils/clickup-mcp-wrappers.md +744 -0
- package/framework/utils/date-time-standards.md +200 -0
- package/framework/utils/task-manager/README.md +94 -0
- package/framework/utils/task-manager/adapters/asana.md +377 -0
- package/framework/utils/task-manager/adapters/clickup.md +467 -0
- package/framework/utils/task-manager/adapters/linear.md +421 -0
- package/framework/utils/task-manager/detector.md +299 -0
- package/framework/utils/task-manager/factory.md +363 -0
- package/framework/utils/task-manager/interface.md +248 -0
- package/framework/utils/task-manager/types.md +409 -0
- package/package.json +41 -0
- package/src/cli.js +73 -0
- package/src/commands/doctor.js +191 -0
- package/src/commands/init.js +287 -0
- package/src/commands/install.js +261 -0
- package/src/commands/list.js +152 -0
- package/src/commands/uninstall.js +90 -0
- package/src/commands/update.js +26 -0
- package/src/utils/fs.js +89 -0
- package/src/utils/log.js +35 -0
- package/src/utils/paths.js +32 -0
- package/src/utils/prompt.js +76 -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,274 @@
|
|
|
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
|
+
|
|
40
|
+
- Use diretamente
|
|
41
|
+
SENΓO:
|
|
42
|
+
- Pergunte qual integraΓ§Γ£o configurar:
|
|
43
|
+
- **task-manager** - Configurar gerenciador de tarefas (ClickUp, Asana, Linear) - **RECOMENDADO PRIMEIRO**
|
|
44
|
+
- **clickup** - ClickUp MCP para gestΓ£o de tarefas
|
|
45
|
+
- **asana** - Asana MCP para gestΓ£o de tarefas
|
|
46
|
+
- **linear** - Linear API para gestΓ£o de tarefas
|
|
47
|
+
- **gamma** - Gamma.App API para apresentaΓ§Γ΅es
|
|
48
|
+
- **postgres** - PostgreSQL para banco de dados
|
|
49
|
+
|
|
50
|
+
### Passo 2: Verificar Estado Atual
|
|
51
|
+
|
|
52
|
+
**CRΓTICO:** Usar `read_file` para ler `.env` sem expor valores sensΓveis:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Verificar se .env existe
|
|
56
|
+
test -f .env && echo "β
.env existe" || echo "β οΈ .env nΓ£o encontrado"
|
|
57
|
+
|
|
58
|
+
# Ler .env usando read_file (nΓ£o usar cat/grep que expΓ΅e valores)
|
|
59
|
+
read_file .env
|
|
60
|
+
|
|
61
|
+
# Verificar variΓ‘veis especΓficas (sem expor valores)
|
|
62
|
+
# Usar apenas para detectar presenΓ§a, nΓ£o para exibir conteΓΊdo
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**β οΈ REGRA DE SEGURANΓA:**
|
|
66
|
+
|
|
67
|
+
- **NUNCA** usar `cat .env` ou `grep` que mostre valores completos
|
|
68
|
+
- **SEMPRE** usar `read_file` que permite anΓ‘lise sem exposiΓ§Γ£o
|
|
69
|
+
- **NUNCA** exibir tokens/senhas no output
|
|
70
|
+
|
|
71
|
+
### Passo 3: Guiar ConfiguraΓ§Γ£o por IntegraΓ§Γ£o
|
|
72
|
+
|
|
73
|
+
#### π― Task Manager (Recomendado - ConfiguraΓ§Γ£o Principal)
|
|
74
|
+
|
|
75
|
+
**Este Γ© o passo mais importante!** O Sistema Onion usa **Task Manager Abstraction** que suporta mΓΊltiplos provedores.
|
|
76
|
+
|
|
77
|
+
**1. Escolher Provedor:**
|
|
78
|
+
|
|
79
|
+
```env
|
|
80
|
+
# βββββββββββββββββββββββββββββββββββββββ
|
|
81
|
+
# GERENCIADOR DE TAREFAS (escolha um)
|
|
82
|
+
# βββββββββββββββββββββββββββββββββββββββ
|
|
83
|
+
TASK_MANAGER_PROVIDER=clickup # clickup | asana | linear | none
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**2. Configurar ClickUp (se escolhido):**
|
|
87
|
+
|
|
88
|
+
```env
|
|
89
|
+
# ClickUp MCP
|
|
90
|
+
CLICKUP_API_TOKEN=pk_xxxxxxx_xxxxxxxxxxxxxxx
|
|
91
|
+
CLICKUP_WORKSPACE_ID=90131664218 # Opcional, detectado automaticamente
|
|
92
|
+
CLICKUP_DEFAULT_LIST_ID=901314121395 # Opcional, lista padrΓ£o
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Como obter:**
|
|
96
|
+
|
|
97
|
+
- **API Token**: Settings > Apps > API Token no ClickUp
|
|
98
|
+
- **Workspace ID**: URL do workspace `https://app.clickup.com/XXXXXXXX/home` β `XXXXXXXX`
|
|
99
|
+
- **List ID**: URL da lista `https://app.clickup.com/XXXXXXXX/v/li/YYYYYYYY` β `YYYYYYYY`
|
|
100
|
+
|
|
101
|
+
**3. Configurar Asana (alternativa):**
|
|
102
|
+
|
|
103
|
+
```env
|
|
104
|
+
# Asana MCP
|
|
105
|
+
ASANA_ACCESS_TOKEN=1/xxxxx_xxxxxxxxxxxxxxx
|
|
106
|
+
ASANA_DEFAULT_WORKSPACE=1234567890 # Opcional
|
|
107
|
+
ASANA_DEFAULT_PROJECT_ID=0987654321 # Opcional
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Como obter:**
|
|
111
|
+
|
|
112
|
+
- **Access Token**: [Asana Developer Console](https://app.asana.com/0/my-apps)
|
|
113
|
+
- **Workspace ID**: URL do workspace ou via API
|
|
114
|
+
- **Project ID**: URL do projeto ou via API
|
|
115
|
+
|
|
116
|
+
**4. Configurar Linear (alternativa):**
|
|
117
|
+
|
|
118
|
+
```env
|
|
119
|
+
# Linear API
|
|
120
|
+
LINEAR_API_KEY=lin_api_xxxxxxxxxxxxxxx
|
|
121
|
+
LINEAR_TEAM_ID=abc123 # Opcional
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Como obter:**
|
|
125
|
+
|
|
126
|
+
- **API Key**: Settings > API no Linear
|
|
127
|
+
- **Team ID**: URL do time ou via API
|
|
128
|
+
|
|
129
|
+
**5. Modo Offline (sem gerenciador):**
|
|
130
|
+
|
|
131
|
+
```env
|
|
132
|
+
TASK_MANAGER_PROVIDER=none
|
|
133
|
+
# Sistema funcionarΓ‘ em modo local sem sincronizaΓ§Γ£o
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
#### Gamma.App
|
|
137
|
+
|
|
138
|
+
1. Acesse: gamma.app/settings/api
|
|
139
|
+
2. Gere uma API Key
|
|
140
|
+
3. Adicione ao `.env`:
|
|
141
|
+
|
|
142
|
+
```env
|
|
143
|
+
# Gamma.App API
|
|
144
|
+
GAMMA_API_KEY=gm_xxxxxxxxxxxxxxxx
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
#### PostgreSQL
|
|
148
|
+
|
|
149
|
+
1. Configure conexΓ£o local ou cloud
|
|
150
|
+
2. Adicione ao `.env`:
|
|
151
|
+
|
|
152
|
+
```env
|
|
153
|
+
# PostgreSQL
|
|
154
|
+
POSTGRES_HOST=localhost
|
|
155
|
+
POSTGRES_PORT=5432
|
|
156
|
+
POSTGRES_DB=mydb
|
|
157
|
+
POSTGRES_USER=myuser
|
|
158
|
+
POSTGRES_PASSWORD=mypassword # Use senhas seguras!
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Passo 4: Criar/Atualizar .env
|
|
162
|
+
|
|
163
|
+
**SE `.env` nΓ£o existir:**
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
# Verificar se .env.example existe
|
|
167
|
+
if [ -f .env.example ]; then
|
|
168
|
+
cp .env.example .env
|
|
169
|
+
echo "β
.env criado a partir de .env.example"
|
|
170
|
+
else
|
|
171
|
+
# Criar .env bΓ‘sico
|
|
172
|
+
touch .env
|
|
173
|
+
echo "# Sistema Onion - VariΓ‘veis de Ambiente" >> .env
|
|
174
|
+
echo "# Gerado por /meta/setup-integration" >> .env
|
|
175
|
+
echo "" >> .env
|
|
176
|
+
echo "β
.env criado"
|
|
177
|
+
fi
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**SE `.env` jΓ‘ existir:**
|
|
181
|
+
|
|
182
|
+
- **NUNCA** sobrescrever valores existentes
|
|
183
|
+
- **SEMPRE** adicionar novas variΓ‘veis ao final
|
|
184
|
+
- **AVISAR** se variΓ‘vel jΓ‘ existe com valor diferente
|
|
185
|
+
|
|
186
|
+
### Passo 5: Validar ConfiguraΓ§Γ£o
|
|
187
|
+
|
|
188
|
+
ApΓ³s o usuΓ‘rio adicionar as credenciais:
|
|
189
|
+
|
|
190
|
+
**Para Task Manager:**
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
# Verificar se TASK_MANAGER_PROVIDER estΓ‘ configurado
|
|
194
|
+
# Verificar se variΓ‘veis obrigatΓ³rias do provedor estΓ£o presentes
|
|
195
|
+
# Sugerir teste: /product/task "Task de teste"
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**Para outras integraΓ§Γ΅es:**
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
# Teste de conexΓ£o especΓfico da integraΓ§Γ£o
|
|
202
|
+
# Depende da integraΓ§Γ£o escolhida
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Passo 6: Atualizar .gitignore
|
|
206
|
+
|
|
207
|
+
**CRΓTICO:** Verificar se `.env` estΓ‘ protegido:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
# Verificar se .env estΓ‘ no .gitignore
|
|
211
|
+
if ! grep -q "^\.env$" .gitignore 2>/dev/null; then
|
|
212
|
+
echo ".env" >> .gitignore
|
|
213
|
+
echo "β
.env adicionado ao .gitignore"
|
|
214
|
+
else
|
|
215
|
+
echo "β
.env jΓ‘ estΓ‘ protegido no .gitignore"
|
|
216
|
+
fi
|
|
217
|
+
|
|
218
|
+
# Verificar se hΓ‘ .env commitado no Git
|
|
219
|
+
if git ls-files --error-unmatch .env >/dev/null 2>&1; then
|
|
220
|
+
echo "β οΈ ATENΓΓO: .env estΓ‘ sendo rastreado pelo Git!"
|
|
221
|
+
echo "π‘ Execute: git rm --cached .env"
|
|
222
|
+
fi
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## π Regras de SeguranΓ§a
|
|
226
|
+
|
|
227
|
+
1. **NUNCA** exiba tokens/senhas completos no output
|
|
228
|
+
2. **SEMPRE** use `read_file` para ler `.env` (nΓ£o `cat` ou `grep` que expΓ΅em valores)
|
|
229
|
+
3. **SEMPRE** verifique `.gitignore` antes de concluir
|
|
230
|
+
4. **ALERTE** se detectar credenciais em arquivos nΓ£o protegidos
|
|
231
|
+
5. **SUGIRA** uso de vault/secrets manager para produΓ§Γ£o
|
|
232
|
+
6. **VALIDE** se `.env` estΓ‘ sendo rastreado pelo Git e alerte
|
|
233
|
+
|
|
234
|
+
## π€ Output Final
|
|
235
|
+
|
|
236
|
+
Apresente um resumo formatado:
|
|
237
|
+
|
|
238
|
+
```
|
|
239
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
240
|
+
β
ConfiguraΓ§Γ£o de [INTEGRAΓΓO] ConcluΓda
|
|
241
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
242
|
+
|
|
243
|
+
π Status:
|
|
244
|
+
β .env: β
Configurado
|
|
245
|
+
β .gitignore: β
Protegido
|
|
246
|
+
β [INTEGRAΓΓO]: β
Pronta para uso
|
|
247
|
+
|
|
248
|
+
π§ ConfiguraΓ§Γ£o:
|
|
249
|
+
β TASK_MANAGER_PROVIDER: [clickup/asana/linear/none]
|
|
250
|
+
β [VariΓ‘veis especΓficas configuradas]
|
|
251
|
+
|
|
252
|
+
π PrΓ³ximos Passos:
|
|
253
|
+
β Execute /product/task para criar sua primeira task
|
|
254
|
+
β Use @clickup-specialist para operaΓ§Γ΅es ClickUp
|
|
255
|
+
β Ou execute /engineer/start para iniciar desenvolvimento
|
|
256
|
+
|
|
257
|
+
π‘ Dica: Teste a integraΓ§Γ£o criando uma task de teste:
|
|
258
|
+
/product/task "Task de teste do sistema"
|
|
259
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
## π ReferΓͺncias
|
|
263
|
+
|
|
264
|
+
- **Task Manager Abstraction**: `.claude/utils/task-manager/README.md`
|
|
265
|
+
- **Detector de Provedor**: `.claude/utils/task-manager/detector.md`
|
|
266
|
+
- **DocumentaΓ§Γ£o ClickUp**: `.claude/docs/onion/clickup-integration.md`
|
|
267
|
+
- **Comando de Task**: `/product/task` - Criar tasks com decomposiΓ§Γ£o
|
|
268
|
+
|
|
269
|
+
## β οΈ Notas Importantes
|
|
270
|
+
|
|
271
|
+
- **Task Manager Γ© OBRIGATΓRIO** para comandos como `/product/task` funcionarem com sincronizaΓ§Γ£o
|
|
272
|
+
- **Modo `none`** permite funcionamento offline sem gerenciador
|
|
273
|
+
- **MΓΊltiplos provedores** podem ser configurados, mas apenas um serΓ‘ usado por vez via `TASK_MANAGER_PROVIDER`
|
|
274
|
+
- **VariΓ‘veis opcionais** melhoram UX mas nΓ£o sΓ£o obrigatΓ³rias (sistema detecta automaticamente)
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: onion
|
|
3
|
+
description: |
|
|
4
|
+
Ponto de entrada inteligente para o Sistema Onion.
|
|
5
|
+
Use para navegaΓ§Γ£o, recomendaΓ§Γ΅es e orquestraΓ§Γ£o de workflows.
|
|
6
|
+
model: sonnet
|
|
7
|
+
parameters:
|
|
8
|
+
- name: query
|
|
9
|
+
description: Sua pergunta ou necessidade
|
|
10
|
+
required: false
|
|
11
|
+
|
|
12
|
+
category: meta
|
|
13
|
+
tags:
|
|
14
|
+
- navigation
|
|
15
|
+
- orchestration
|
|
16
|
+
- help
|
|
17
|
+
|
|
18
|
+
version: '3.0.0'
|
|
19
|
+
updated: '2025-11-24'
|
|
20
|
+
|
|
21
|
+
related_commands:
|
|
22
|
+
- /product/task
|
|
23
|
+
- /engineer/start
|
|
24
|
+
- /git/feature/start
|
|
25
|
+
|
|
26
|
+
related_agents:
|
|
27
|
+
- onion
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# π§
Comando Onion
|
|
31
|
+
|
|
32
|
+
Atalho inteligente para o agente orquestrador master @onion.
|
|
33
|
+
|
|
34
|
+
## π― Objetivo
|
|
35
|
+
|
|
36
|
+
Acessar o Sistema Onion para navegaΓ§Γ£o, recomendaΓ§Γ΅es e orquestraΓ§Γ£o.
|
|
37
|
+
|
|
38
|
+
## β‘ Uso
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
/onion # Ajuda geral
|
|
42
|
+
/onion "como criar task" # Pergunta especΓfica
|
|
43
|
+
/onion "workflow de PR" # OrientaΓ§Γ£o de workflow
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## π Fluxo de ExecuΓ§Γ£o
|
|
47
|
+
|
|
48
|
+
### Passo 1: Detectar Tipo de SolicitaΓ§Γ£o
|
|
49
|
+
|
|
50
|
+
| Tipo | Indicadores | AΓ§Γ£o |
|
|
51
|
+
| ----------- | ---------------------- | ------------------ |
|
|
52
|
+
| π Ajuda | "como", "o que" | Explicar sistema |
|
|
53
|
+
| π― Tarefa | "criar", "fazer" | Recomendar comando |
|
|
54
|
+
| π Busca | "qual", "onde" | Encontrar recurso |
|
|
55
|
+
| π§ Problema | "erro", "nΓ£o funciona" | Diagnosticar |
|
|
56
|
+
| π Workflow | "do zero", "completo" | Orquestrar fluxo |
|
|
57
|
+
|
|
58
|
+
### Passo 2: Preparar Contexto
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Detectar sessΓ΅es ativas
|
|
62
|
+
ls .claude/sessions/*/context.md 2>/dev/null
|
|
63
|
+
|
|
64
|
+
# Verificar estado Git
|
|
65
|
+
git branch --show-current
|
|
66
|
+
git status --short
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Passo 3: Invocar @onion
|
|
70
|
+
|
|
71
|
+
Delegar para o agente com contexto coletado.
|
|
72
|
+
|
|
73
|
+
## π€ Respostas Comuns
|
|
74
|
+
|
|
75
|
+
### Ajuda Geral
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
79
|
+
π§
SISTEMA ONION
|
|
80
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
81
|
+
|
|
82
|
+
π Estrutura:
|
|
83
|
+
β 57 comandos em 7 categorias
|
|
84
|
+
β 38 agentes especializados
|
|
85
|
+
β IntegraΓ§Γ£o ClickUp MCP
|
|
86
|
+
|
|
87
|
+
π Comandos Principais:
|
|
88
|
+
β /product/task - Criar tasks
|
|
89
|
+
β /engineer/start - Iniciar feature
|
|
90
|
+
β /engineer/work - Continuar trabalho
|
|
91
|
+
β /git/feature/start - Criar branch
|
|
92
|
+
|
|
93
|
+
π‘ Use: /onion "sua pergunta"
|
|
94
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### RecomendaΓ§Γ£o de Comando
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
101
|
+
π‘ RECOMENDAΓΓO
|
|
102
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
103
|
+
|
|
104
|
+
Para: "criar task no ClickUp"
|
|
105
|
+
|
|
106
|
+
β
Use: /product/task [descriΓ§Γ£o]
|
|
107
|
+
|
|
108
|
+
π Exemplo:
|
|
109
|
+
/product/task Implementar autenticaΓ§Γ£o OAuth2
|
|
110
|
+
|
|
111
|
+
π Relacionados:
|
|
112
|
+
β /product/spec - Criar especificaΓ§Γ£o
|
|
113
|
+
β /product/feature - Detalhar feature
|
|
114
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Workflow Completo
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
121
|
+
π WORKFLOW: Feature Completa
|
|
122
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
123
|
+
|
|
124
|
+
π SequΓͺncia:
|
|
125
|
+
1. /product/task [nome]
|
|
126
|
+
2. /engineer/start [feature-slug]
|
|
127
|
+
3. /git/feature/start
|
|
128
|
+
4. /engineer/work
|
|
129
|
+
5. /engineer/pre-pr
|
|
130
|
+
6. /engineer/pr
|
|
131
|
+
7. /git/sync
|
|
132
|
+
|
|
133
|
+
π‘ Dica: Cada comando atualiza ClickUp
|
|
134
|
+
βββββββββββββββββββββββββββββββββββββββ
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## π ReferΓͺncias
|
|
138
|
+
|
|
139
|
+
- Agente master: @onion
|
|
140
|
+
- Docs: `docs/onion/`
|
|
141
|
+
- Sistema de Testes: `docs/onion/testing-validation-system.md` - Framework completo de testes e validaΓ§Γ£o
|
|
142
|
+
|
|
143
|
+
## β οΈ Notas
|
|
144
|
+
|
|
145
|
+
- Sempre comeΓ§a com contexto do workspace
|
|
146
|
+
- Detecta sessΓ΅es ativas automaticamente
|
|
147
|
+
- Para ajuda especΓfica de agente: @nome-do-agente
|
|
148
|
+
|
|
149
|
+
## π΄ REGRA CRΓTICA: CriaΓ§Γ£o de Tasks
|
|
150
|
+
|
|
151
|
+
**SEMPRE criar tasks no Task Manager configurado:**
|
|
152
|
+
|
|
153
|
+
Quando usar comandos que criam tasks (`/product/task`, `/product/feature`):
|
|
154
|
+
|
|
155
|
+
1. β
**SEMPRE** detectar provedor via `.claude/utils/task-manager/detector.md`
|
|
156
|
+
2. β
**SEMPRE** usar abstraΓ§Γ£o `getTaskManager()` para criar tasks
|
|
157
|
+
3. β
**SEMPRE** criar task principal + subtasks no provedor configurado
|
|
158
|
+
4. β
**SEMPRE** adicionar comentΓ‘rios e atualizar status
|
|
159
|
+
5. β **NUNCA** criar apenas documentos locais sem sincronizar
|
|
160
|
+
6. β **NUNCA** ignorar o provedor configurado no `.env`
|
|
161
|
+
|
|
162
|
+
**Provedores suportados:**
|
|
163
|
+
|
|
164
|
+
- ClickUp (via MCP) - `TASK_MANAGER_PROVIDER=clickup`
|
|
165
|
+
- Asana (via MCP) - `TASK_MANAGER_PROVIDER=asana`
|
|
166
|
+
- Linear (via API) - `TASK_MANAGER_PROVIDER=linear`
|
|
167
|
+
- None (modo offline) - `TASK_MANAGER_PROVIDER=none`
|
|
168
|
+
|
|
169
|
+
**Esta regra Γ© OBRIGATΓRIA e serΓ‘ sempre executada.**
|