@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,273 @@
|
|
|
1
|
+
# Template Padrão para Comandos - Sistema Onion v3.0
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## 📋 Estrutura YAML Obrigatória
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
---
|
|
9
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
10
|
+
# HEADER OBRIGATÓRIO
|
|
11
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
12
|
+
|
|
13
|
+
name: nome-do-comando
|
|
14
|
+
description: |
|
|
15
|
+
Descrição clara em 1-2 linhas do propósito do comando.
|
|
16
|
+
Use para [caso de uso principal].
|
|
17
|
+
model: sonnet # sonnet | opus | gpt-4
|
|
18
|
+
|
|
19
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
20
|
+
# PARÂMETROS (opcional)
|
|
21
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
22
|
+
|
|
23
|
+
parameters:
|
|
24
|
+
- name: param1
|
|
25
|
+
description: Descrição do parâmetro
|
|
26
|
+
required: true # true | false
|
|
27
|
+
- name: param2
|
|
28
|
+
description: Parâmetro opcional
|
|
29
|
+
required: false
|
|
30
|
+
default: valor-padrao
|
|
31
|
+
|
|
32
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
33
|
+
# METADATA
|
|
34
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
35
|
+
|
|
36
|
+
category: engineer # engineer | product | git | docs | meta | validate
|
|
37
|
+
tags:
|
|
38
|
+
- tag1
|
|
39
|
+
- tag2
|
|
40
|
+
|
|
41
|
+
version: "3.0.0"
|
|
42
|
+
updated: "2025-11-24"
|
|
43
|
+
|
|
44
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
45
|
+
# RELACIONAMENTOS (opcional)
|
|
46
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
47
|
+
|
|
48
|
+
related_commands:
|
|
49
|
+
- /category/command1
|
|
50
|
+
- /category/command2
|
|
51
|
+
|
|
52
|
+
related_agents:
|
|
53
|
+
- agent-name-1
|
|
54
|
+
- agent-name-2
|
|
55
|
+
|
|
56
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
57
|
+
# INCLUDES (para modularização)
|
|
58
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
59
|
+
|
|
60
|
+
# Use @include para referenciar prompts modulares
|
|
61
|
+
# Os arquivos ficam em common/prompts/
|
|
62
|
+
includes:
|
|
63
|
+
- common/prompts/clickup-patterns.md
|
|
64
|
+
- common/prompts/validation-rules.md
|
|
65
|
+
---
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 📐 Estrutura do Corpo (Máximo ~400 linhas)
|
|
71
|
+
|
|
72
|
+
### Seções Obrigatórias
|
|
73
|
+
|
|
74
|
+
```markdown
|
|
75
|
+
# Nome do Comando
|
|
76
|
+
|
|
77
|
+
[Descrição breve - 1-2 frases]
|
|
78
|
+
|
|
79
|
+
## 🎯 Objetivo
|
|
80
|
+
|
|
81
|
+
[O que este comando faz e quando usar]
|
|
82
|
+
|
|
83
|
+
## ⚡ Fluxo de Execução
|
|
84
|
+
|
|
85
|
+
### Passo 1: [Nome]
|
|
86
|
+
[Instruções claras]
|
|
87
|
+
|
|
88
|
+
### Passo 2: [Nome]
|
|
89
|
+
[Instruções claras]
|
|
90
|
+
|
|
91
|
+
## 📤 Output Esperado
|
|
92
|
+
|
|
93
|
+
[Formato de saída esperado]
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Seções Opcionais
|
|
97
|
+
|
|
98
|
+
```markdown
|
|
99
|
+
## ⚙️ Parâmetros
|
|
100
|
+
|
|
101
|
+
| Parâmetro | Tipo | Obrigatório | Descrição |
|
|
102
|
+
|-----------|------|-------------|-----------|
|
|
103
|
+
| param1 | string | ✅ | Descrição |
|
|
104
|
+
| param2 | string | ❌ | Descrição |
|
|
105
|
+
|
|
106
|
+
## 🔗 Comandos Relacionados
|
|
107
|
+
|
|
108
|
+
- `/category/cmd1` - Para X
|
|
109
|
+
- `/category/cmd2` - Para Y
|
|
110
|
+
|
|
111
|
+
## ⚠️ Notas Importantes
|
|
112
|
+
|
|
113
|
+
- Nota 1
|
|
114
|
+
- Nota 2
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## 🎨 Convenções de Formatação
|
|
120
|
+
|
|
121
|
+
### Emojis Padrão por Seção
|
|
122
|
+
|
|
123
|
+
| Seção | Emoji |
|
|
124
|
+
|-------|-------|
|
|
125
|
+
| Objetivo | 🎯 |
|
|
126
|
+
| Fluxo | ⚡ |
|
|
127
|
+
| Output | 📤 |
|
|
128
|
+
| Parâmetros | ⚙️ |
|
|
129
|
+
| Relacionados | 🔗 |
|
|
130
|
+
| Notas | ⚠️ |
|
|
131
|
+
| Validação | ✅ |
|
|
132
|
+
| Erro | ❌ |
|
|
133
|
+
| Exemplo | 💡 |
|
|
134
|
+
|
|
135
|
+
### Formatação de Código
|
|
136
|
+
|
|
137
|
+
```markdown
|
|
138
|
+
# Comando terminal
|
|
139
|
+
`comando --flag`
|
|
140
|
+
|
|
141
|
+
# Bloco de código
|
|
142
|
+
\`\`\`bash
|
|
143
|
+
comando multiline
|
|
144
|
+
\`\`\`
|
|
145
|
+
|
|
146
|
+
# Referência a arquivo
|
|
147
|
+
`path/to/file.md`
|
|
148
|
+
|
|
149
|
+
# Referência a agente
|
|
150
|
+
@nome-do-agente
|
|
151
|
+
|
|
152
|
+
# Referência a comando
|
|
153
|
+
/category/comando
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## 📏 Limites e Regras
|
|
159
|
+
|
|
160
|
+
### Tamanho Máximo
|
|
161
|
+
|
|
162
|
+
| Tipo | Limite | Ação se Exceder |
|
|
163
|
+
|------|--------|-----------------|
|
|
164
|
+
| Comando simples | ~200 linhas | OK |
|
|
165
|
+
| Comando médio | ~300 linhas | OK |
|
|
166
|
+
| Comando complexo | ~400 linhas | Modularizar |
|
|
167
|
+
| **Máximo absoluto** | **400 linhas** | **Obrigatório modularizar** |
|
|
168
|
+
|
|
169
|
+
### Estratégias de Modularização
|
|
170
|
+
|
|
171
|
+
1. **Extrair para prompts/**
|
|
172
|
+
- Seções repetitivas → `common/prompts/`
|
|
173
|
+
- Templates → `common/templates/`
|
|
174
|
+
|
|
175
|
+
2. **Dividir em sub-comandos**
|
|
176
|
+
- Workflow grande → `/category/main.md` + `/category/sub1.md`
|
|
177
|
+
|
|
178
|
+
3. **Usar @include**
|
|
179
|
+
```markdown
|
|
180
|
+
## Validação
|
|
181
|
+
@include common/prompts/validation-rules.md
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
4. **Referenciar agentes**
|
|
185
|
+
```markdown
|
|
186
|
+
Para detalhes técnicos, use @specialist-agent
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## ✅ Checklist de Qualidade
|
|
192
|
+
|
|
193
|
+
### Header YAML
|
|
194
|
+
- [ ] `name` em kebab-case
|
|
195
|
+
- [ ] `description` clara em 1-2 linhas
|
|
196
|
+
- [ ] `model` definido
|
|
197
|
+
- [ ] `category` válida
|
|
198
|
+
- [ ] `version` atualizada
|
|
199
|
+
|
|
200
|
+
### Corpo
|
|
201
|
+
- [ ] Objetivo claro
|
|
202
|
+
- [ ] Fluxo de execução step-by-step
|
|
203
|
+
- [ ] Output esperado definido
|
|
204
|
+
- [ ] < 400 linhas total
|
|
205
|
+
|
|
206
|
+
### Modularização
|
|
207
|
+
- [ ] Seções repetitivas extraídas
|
|
208
|
+
- [ ] Templates em common/templates/
|
|
209
|
+
- [ ] Prompts em common/prompts/
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## 💡 Exemplo Completo
|
|
214
|
+
|
|
215
|
+
```yaml
|
|
216
|
+
---
|
|
217
|
+
name: example-command
|
|
218
|
+
description: |
|
|
219
|
+
Comando exemplo demonstrando estrutura padrão v3.0.
|
|
220
|
+
Use como referência para criar novos comandos.
|
|
221
|
+
model: sonnet
|
|
222
|
+
|
|
223
|
+
parameters:
|
|
224
|
+
- name: target
|
|
225
|
+
description: Alvo do comando
|
|
226
|
+
required: true
|
|
227
|
+
|
|
228
|
+
category: meta
|
|
229
|
+
tags:
|
|
230
|
+
- example
|
|
231
|
+
- template
|
|
232
|
+
|
|
233
|
+
version: "3.0.0"
|
|
234
|
+
updated: "2025-11-24"
|
|
235
|
+
|
|
236
|
+
related_commands:
|
|
237
|
+
- /meta/create-command
|
|
238
|
+
|
|
239
|
+
related_agents:
|
|
240
|
+
- command-creator-specialist
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
# Example Command
|
|
244
|
+
|
|
245
|
+
Comando de exemplo para demonstrar a estrutura padrão.
|
|
246
|
+
|
|
247
|
+
## 🎯 Objetivo
|
|
248
|
+
|
|
249
|
+
Demonstrar a estrutura correta de um comando Onion v3.0.
|
|
250
|
+
|
|
251
|
+
## ⚡ Fluxo de Execução
|
|
252
|
+
|
|
253
|
+
### Passo 1: Validar Input
|
|
254
|
+
- Verificar se `{{target}}` foi fornecido
|
|
255
|
+
- Validar formato esperado
|
|
256
|
+
|
|
257
|
+
### Passo 2: Processar
|
|
258
|
+
- Executar lógica principal
|
|
259
|
+
- Gerar output
|
|
260
|
+
|
|
261
|
+
### Passo 3: Finalizar
|
|
262
|
+
- Apresentar resultado
|
|
263
|
+
- Sugerir próximos passos
|
|
264
|
+
|
|
265
|
+
## 📤 Output Esperado
|
|
266
|
+
|
|
267
|
+
\`\`\`
|
|
268
|
+
✅ Comando executado com sucesso
|
|
269
|
+
Target: {{target}}
|
|
270
|
+
Próximo: /meta/outro-comando
|
|
271
|
+
\`\`\`
|
|
272
|
+
```
|
|
273
|
+
|