@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,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-agent-express
|
|
3
|
+
description: Criar agente de forma rápida e simplificada.
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: meta
|
|
6
|
+
tags: [agent, creation, quick]
|
|
7
|
+
version: "3.0.0"
|
|
8
|
+
updated: "2025-11-24"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Comando Criar Agente
|
|
12
|
+
|
|
13
|
+
Você tem a tarefa de criar um novo sub-agente do Claude Code baseado nos requisitos do usuário. Siga esta abordagem sistemática para construir um agente bem estruturado.
|
|
14
|
+
|
|
15
|
+
## Requisitos do Usuário
|
|
16
|
+
<requirements>
|
|
17
|
+
#$ARGUMENTS
|
|
18
|
+
</requirements>
|
|
19
|
+
|
|
20
|
+
## Processo
|
|
21
|
+
|
|
22
|
+
### 1. Entender o Propósito do Agente
|
|
23
|
+
Primeiro, analise o que o usuário quer que este agente faça:
|
|
24
|
+
- Qual é a responsabilidade principal do agente?
|
|
25
|
+
- Que tarefas ele executará?
|
|
26
|
+
- O que torna este agente especializado?
|
|
27
|
+
|
|
28
|
+
### 2. Definir Configuração do Agente
|
|
29
|
+
Com base nos requisitos, determine:
|
|
30
|
+
- **Nome**: Crie um identificador em minúsculas, separado por hífens
|
|
31
|
+
- **Descrição**: Escreva uma descrição clara e concisa do propósito do agente
|
|
32
|
+
- **Ferramentas**: Selecione as ferramentas apropriadas do conjunto disponível
|
|
33
|
+
|
|
34
|
+
### 3. Seleção de Ferramentas
|
|
35
|
+
Liste todas as ferramentas disponíveis e pergunte ao usuário quais o sub-agente deve ter acesso:
|
|
36
|
+
|
|
37
|
+
Ferramentas disponíveis:
|
|
38
|
+
- **Operações de Arquivo**: Read, Write, Edit, MultiEdit, NotebookRead, NotebookEdit
|
|
39
|
+
- **Pesquisa e Navegação**: Glob, Grep, LS
|
|
40
|
+
- **Execução**: Bash, Task
|
|
41
|
+
- **Web**: WebFetch, WebSearch
|
|
42
|
+
- **Desenvolvimento**: ExitPlanMode, TodoWrite
|
|
43
|
+
- **Ferramentas MCP**: Várias ferramentas com prefixo mcp__ para integrações específicas
|
|
44
|
+
|
|
45
|
+
Apresente essas ferramentas organizadas por categoria e peça ao usuário para selecionar quais são apropriadas para o propósito do agente. Por padrão, use acesso mínimo às ferramentas por segurança.
|
|
46
|
+
|
|
47
|
+
### 4. Projetar o Prompt do Sistema
|
|
48
|
+
Crie um prompt do sistema detalhado que:
|
|
49
|
+
- Define claramente o papel e expertise do agente
|
|
50
|
+
- Fornece instruções passo a passo para completar suas tarefas
|
|
51
|
+
- Inclui qualquer restrição ou diretriz
|
|
52
|
+
- Especifica requisitos de formato de saída
|
|
53
|
+
- Contém exemplos se úteis
|
|
54
|
+
|
|
55
|
+
### 5. Criar o Arquivo do Agente
|
|
56
|
+
Gere o arquivo .md com:
|
|
57
|
+
```markdown
|
|
58
|
+
---
|
|
59
|
+
name: [nome-do-agente]
|
|
60
|
+
description: [descrição clara do propósito do agente]
|
|
61
|
+
tools: [lista separada por vírgulas das ferramentas selecionadas]
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
[Prompt do sistema detalhado com instruções claras]
|
|
65
|
+
```
|
|
66
|
+
IMPORTANTE: a extensão do arquivo deve ser .md, não .yaml
|
|
67
|
+
|
|
68
|
+
### 6. Implementação
|
|
69
|
+
- Crie o arquivo em `.cursor/agents/[name-agent].md`
|
|
70
|
+
- Torne o prompt do sistema abrangente mas focado
|
|
71
|
+
|
|
72
|
+
### 7. Confirmar Criação
|
|
73
|
+
Após criar o agente, confirme que o arquivo foi criado com sucesso
|
|
74
|
+
|
|
75
|
+
## Melhores Práticas
|
|
76
|
+
- Mantenha agentes focados em uma única responsabilidade
|
|
77
|
+
- Escreva prompts do sistema claros e acionáveis
|
|
78
|
+
- Limite o acesso às ferramentas ao que é necessário
|
|
79
|
+
- Inclua exemplos em prompts complexos
|
|
80
|
+
- Considere tratamento de erros e casos extremos
|
|
81
|
+
- Torne os formatos de saída explícitos
|
|
82
|
+
|
|
83
|
+
Agora, analise os requisitos e comece a criar o agente seguindo este processo.
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-agent
|
|
3
|
+
description: |
|
|
4
|
+
Criação inteligente de agentes Cursor com análise de contexto.
|
|
5
|
+
Use para criar novos agentes que se integram ao ecossistema Onion.
|
|
6
|
+
model: sonnet
|
|
7
|
+
|
|
8
|
+
parameters:
|
|
9
|
+
- name: agent_name
|
|
10
|
+
description: Nome do agente em kebab-case
|
|
11
|
+
required: true
|
|
12
|
+
- name: category
|
|
13
|
+
description: Categoria (development/product/meta/compliance/etc)
|
|
14
|
+
required: false
|
|
15
|
+
- name: expertise
|
|
16
|
+
description: Áreas de especialização
|
|
17
|
+
required: false
|
|
18
|
+
|
|
19
|
+
category: meta
|
|
20
|
+
tags:
|
|
21
|
+
- agent-creation
|
|
22
|
+
- meta
|
|
23
|
+
- automation
|
|
24
|
+
|
|
25
|
+
version: "3.0.0"
|
|
26
|
+
updated: "2025-11-24"
|
|
27
|
+
|
|
28
|
+
related_commands:
|
|
29
|
+
- /meta/create-command
|
|
30
|
+
- /meta/create-agent-express
|
|
31
|
+
|
|
32
|
+
related_agents:
|
|
33
|
+
- agent-creator-specialist
|
|
34
|
+
- onion
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# 🤖 Criar Agente Inteligente
|
|
38
|
+
|
|
39
|
+
Arquiteto de agentes para criar agentes contextualizados no Sistema Onion.
|
|
40
|
+
|
|
41
|
+
## 🎯 Objetivo
|
|
42
|
+
|
|
43
|
+
Criar agentes que se integram ao ecossistema existente seguindo padrões v3.0.
|
|
44
|
+
|
|
45
|
+
## ⚡ Fluxo de Execução
|
|
46
|
+
|
|
47
|
+
### Passo 1: Análise de Contexto
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Listar agentes existentes
|
|
51
|
+
ls .cursor/agents/*/*.md | wc -l
|
|
52
|
+
|
|
53
|
+
# Verificar categoria existe
|
|
54
|
+
ls .cursor/agents/{{category}}/ 2>/dev/null || echo "Nova categoria"
|
|
55
|
+
|
|
56
|
+
# Verificar duplicação
|
|
57
|
+
grep -l "name: {{agent_name}}" .cursor/agents/**/*.md
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Passo 2: Determinar Categoria
|
|
61
|
+
|
|
62
|
+
SE `{{category}}` fornecido → usar diretamente
|
|
63
|
+
SENÃO → inferir da expertise:
|
|
64
|
+
|
|
65
|
+
| Expertise | Categoria |
|
|
66
|
+
|-----------|-----------|
|
|
67
|
+
| react, node, typescript | `development` |
|
|
68
|
+
| tasks, specs, features | `product` |
|
|
69
|
+
| git, branch, pr | `git` |
|
|
70
|
+
| iso, compliance, security | `compliance` |
|
|
71
|
+
| docs, writing | `review` |
|
|
72
|
+
| test, coverage | `testing` |
|
|
73
|
+
| commands, agents | `meta` |
|
|
74
|
+
|
|
75
|
+
### Passo 3: Gerar Estrutura
|
|
76
|
+
|
|
77
|
+
Usar template padrão de `common/templates/agent-template.md`:
|
|
78
|
+
|
|
79
|
+
```yaml
|
|
80
|
+
---
|
|
81
|
+
name: {{agent_name}}
|
|
82
|
+
description: |
|
|
83
|
+
[Descrição em 2 linhas]
|
|
84
|
+
Use para [caso de uso principal].
|
|
85
|
+
model: sonnet
|
|
86
|
+
tools:
|
|
87
|
+
- read_file
|
|
88
|
+
- write
|
|
89
|
+
- search_replace
|
|
90
|
+
- codebase_search
|
|
91
|
+
- grep
|
|
92
|
+
- list_dir
|
|
93
|
+
- web_search
|
|
94
|
+
- todo_write
|
|
95
|
+
|
|
96
|
+
color: [cor apropriada]
|
|
97
|
+
priority: [alta/média/baixa]
|
|
98
|
+
category: {{category}}
|
|
99
|
+
|
|
100
|
+
expertise:
|
|
101
|
+
- [area-1]
|
|
102
|
+
- [area-2]
|
|
103
|
+
- [area-3]
|
|
104
|
+
|
|
105
|
+
related_agents:
|
|
106
|
+
- [agente-relacionado-1]
|
|
107
|
+
|
|
108
|
+
related_commands:
|
|
109
|
+
- [/comando-relacionado]
|
|
110
|
+
|
|
111
|
+
version: "3.0.0"
|
|
112
|
+
updated: "[data atual]"
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
# Você é o [Nome do Agente]
|
|
116
|
+
|
|
117
|
+
## 🎯 Filosofia Core
|
|
118
|
+
|
|
119
|
+
[Descrição da filosofia e propósito]
|
|
120
|
+
|
|
121
|
+
## 🔧 Áreas de Especialização
|
|
122
|
+
|
|
123
|
+
### 1. [Área 1]
|
|
124
|
+
[Detalhes]
|
|
125
|
+
|
|
126
|
+
### 2. [Área 2]
|
|
127
|
+
[Detalhes]
|
|
128
|
+
|
|
129
|
+
## 📋 Processo de Trabalho
|
|
130
|
+
|
|
131
|
+
[Workflow do agente]
|
|
132
|
+
|
|
133
|
+
## ⚠️ Regras
|
|
134
|
+
|
|
135
|
+
- [Regra 1]
|
|
136
|
+
- [Regra 2]
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Passo 4: Validações Obrigatórias
|
|
140
|
+
|
|
141
|
+
**CRÍTICO**: Executar TODAS as validações antes de criar:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
# 1. DUPLICAÇÃO - Verificar nome único
|
|
145
|
+
if grep -r "^name: {{agent_name}}$" .cursor/agents/ 2>/dev/null; then
|
|
146
|
+
echo "❌ ERRO: Agente '{{agent_name}}' já existe!"
|
|
147
|
+
exit 1
|
|
148
|
+
fi
|
|
149
|
+
|
|
150
|
+
# 2. CATEGORIA - Verificar categoria válida
|
|
151
|
+
VALID_CATEGORIES="development product compliance meta review testing research git"
|
|
152
|
+
if [[ ! " $VALID_CATEGORIES " =~ " {{category}} " ]]; then
|
|
153
|
+
echo "❌ ERRO: Categoria '{{category}}' inválida!"
|
|
154
|
+
echo "Válidas: $VALID_CATEGORIES"
|
|
155
|
+
exit 1
|
|
156
|
+
fi
|
|
157
|
+
|
|
158
|
+
# 3. EXPERTISE - Verificar 3-5 áreas
|
|
159
|
+
EXPERTISE_COUNT=$(echo "{{expertise}}" | tr ',' '\n' | wc -l)
|
|
160
|
+
if [ "$EXPERTISE_COUNT" -lt 3 ] || [ "$EXPERTISE_COUNT" -gt 5 ]; then
|
|
161
|
+
echo "⚠️ AVISO: Expertise deve ter 3-5 áreas (atual: $EXPERTISE_COUNT)"
|
|
162
|
+
fi
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Checklist de Validação:**
|
|
166
|
+
- [ ] Nome único (não existe em `.cursor/agents/`)
|
|
167
|
+
- [ ] Categoria válida (development|product|compliance|meta|review|testing|research|git)
|
|
168
|
+
- [ ] Expertise definida (3-5 áreas)
|
|
169
|
+
- [ ] YAML header completo
|
|
170
|
+
- [ ] < 300 linhas
|
|
171
|
+
|
|
172
|
+
### Passo 5: Criar Arquivo
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
write .cursor/agents/{{category}}/{{agent_name}}.md
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## 📤 Output Esperado
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
182
|
+
✅ AGENTE CRIADO
|
|
183
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
184
|
+
|
|
185
|
+
📁 Arquivo: .cursor/agents/{{category}}/{{agent_name}}.md
|
|
186
|
+
|
|
187
|
+
📋 Detalhes:
|
|
188
|
+
∟ Nome: {{agent_name}}
|
|
189
|
+
∟ Categoria: {{category}}
|
|
190
|
+
∟ Expertise: [áreas]
|
|
191
|
+
|
|
192
|
+
🔗 Relacionamentos:
|
|
193
|
+
∟ Agentes: [lista]
|
|
194
|
+
∟ Comandos: [lista]
|
|
195
|
+
|
|
196
|
+
🚀 Para usar: @{{agent_name}}
|
|
197
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## 🔗 Referências
|
|
201
|
+
|
|
202
|
+
- Template: `common/templates/agent-template.md`
|
|
203
|
+
- Padrões: `docs/knowbase/concepts/ai-agent-design-patterns.md`
|
|
204
|
+
- Agente: @agent-creator-specialist
|
|
205
|
+
|
|
206
|
+
## ⚠️ Notas
|
|
207
|
+
|
|
208
|
+
- Sempre validar duplicação antes de criar
|
|
209
|
+
- Usar modelo `sonnet` como padrão
|
|
210
|
+
- Não adicionar MCPs em agentes genéricos
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-command
|
|
3
|
+
description: |
|
|
4
|
+
Criação de novos comandos Cursor com análise de contexto.
|
|
5
|
+
Use para criar comandos que seguem padrões do Sistema Onion.
|
|
6
|
+
model: sonnet
|
|
7
|
+
|
|
8
|
+
parameters:
|
|
9
|
+
- name: command_name
|
|
10
|
+
description: Nome do comando em kebab-case
|
|
11
|
+
required: true
|
|
12
|
+
- name: category
|
|
13
|
+
description: Categoria (engineer/product/git/docs/meta)
|
|
14
|
+
required: false
|
|
15
|
+
- name: description
|
|
16
|
+
description: Descrição do que o comando faz
|
|
17
|
+
required: false
|
|
18
|
+
|
|
19
|
+
category: meta
|
|
20
|
+
tags:
|
|
21
|
+
- command-creation
|
|
22
|
+
- meta
|
|
23
|
+
- automation
|
|
24
|
+
|
|
25
|
+
version: "3.0.0"
|
|
26
|
+
updated: "2025-11-24"
|
|
27
|
+
|
|
28
|
+
related_commands:
|
|
29
|
+
- /meta/create-agent
|
|
30
|
+
- /meta/create-agent-express
|
|
31
|
+
- /meta/create-abstraction
|
|
32
|
+
|
|
33
|
+
related_agents:
|
|
34
|
+
- command-creator-specialist
|
|
35
|
+
- onion
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
# 📝 Criar Comando Cursor
|
|
39
|
+
|
|
40
|
+
Facilitador para criação de comandos seguindo padrões Onion v3.0.
|
|
41
|
+
|
|
42
|
+
## 🎯 Objetivo
|
|
43
|
+
|
|
44
|
+
Criar comandos que se integram ao ecossistema existente.
|
|
45
|
+
|
|
46
|
+
## ⚡ Fluxo de Execução
|
|
47
|
+
|
|
48
|
+
### Passo 1: Análise de Contexto
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Listar comandos existentes
|
|
52
|
+
ls .cursor/commands/*/*.md | wc -l
|
|
53
|
+
|
|
54
|
+
# Verificar categoria existe
|
|
55
|
+
ls .cursor/commands/{{category}}/ 2>/dev/null
|
|
56
|
+
|
|
57
|
+
# Verificar duplicação
|
|
58
|
+
grep -l "name: {{command_name}}" .cursor/commands/**/*.md
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Passo 2: Determinar Categoria
|
|
62
|
+
|
|
63
|
+
SE `{{category}}` fornecido → usar diretamente
|
|
64
|
+
SENÃO → inferir do propósito:
|
|
65
|
+
|
|
66
|
+
| Propósito | Categoria |
|
|
67
|
+
|-----------|-----------|
|
|
68
|
+
| Desenvolvimento, código | `engineer` |
|
|
69
|
+
| Tasks, specs, features | `product` |
|
|
70
|
+
| Git, branches, PRs | `git` |
|
|
71
|
+
| Documentação | `docs` |
|
|
72
|
+
| Comandos, agentes | `meta` |
|
|
73
|
+
| Validações | `validate` |
|
|
74
|
+
|
|
75
|
+
### Passo 3: Gerar Estrutura
|
|
76
|
+
|
|
77
|
+
Usar template de `common/templates/command-template.md`:
|
|
78
|
+
|
|
79
|
+
```yaml
|
|
80
|
+
---
|
|
81
|
+
name: {{command_name}}
|
|
82
|
+
description: |
|
|
83
|
+
[Descrição em 2 linhas]
|
|
84
|
+
Use para [caso de uso principal].
|
|
85
|
+
model: sonnet
|
|
86
|
+
|
|
87
|
+
parameters:
|
|
88
|
+
- name: param1
|
|
89
|
+
description: [descrição]
|
|
90
|
+
required: [true/false]
|
|
91
|
+
|
|
92
|
+
category: {{category}}
|
|
93
|
+
tags:
|
|
94
|
+
- [tag1]
|
|
95
|
+
- [tag2]
|
|
96
|
+
|
|
97
|
+
version: "3.0.0"
|
|
98
|
+
updated: "[data atual]"
|
|
99
|
+
|
|
100
|
+
related_commands:
|
|
101
|
+
- /category/comando
|
|
102
|
+
|
|
103
|
+
related_agents:
|
|
104
|
+
- agente-relacionado
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
# [Título do Comando]
|
|
108
|
+
|
|
109
|
+
[Descrição breve]
|
|
110
|
+
|
|
111
|
+
## 🎯 Objetivo
|
|
112
|
+
|
|
113
|
+
[O que este comando faz]
|
|
114
|
+
|
|
115
|
+
## ⚡ Fluxo de Execução
|
|
116
|
+
|
|
117
|
+
### Passo 1: [Nome]
|
|
118
|
+
[Instruções]
|
|
119
|
+
|
|
120
|
+
### Passo 2: [Nome]
|
|
121
|
+
[Instruções]
|
|
122
|
+
|
|
123
|
+
## 📤 Output Esperado
|
|
124
|
+
|
|
125
|
+
[Formato de saída]
|
|
126
|
+
|
|
127
|
+
## 🔗 Referências
|
|
128
|
+
|
|
129
|
+
- [Referências relevantes]
|
|
130
|
+
|
|
131
|
+
## ⚠️ Notas
|
|
132
|
+
|
|
133
|
+
- [Notas importantes]
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Passo 4: Validações Obrigatórias
|
|
137
|
+
|
|
138
|
+
**CRÍTICO**: Executar TODAS as validações antes de criar:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# 1. DUPLICAÇÃO - Verificar nome único
|
|
142
|
+
if grep -r "^name: {{command_name}}$" .cursor/commands/ 2>/dev/null; then
|
|
143
|
+
echo "❌ ERRO: Comando '{{command_name}}' já existe!"
|
|
144
|
+
exit 1
|
|
145
|
+
fi
|
|
146
|
+
|
|
147
|
+
# 2. FORMATO - Verificar kebab-case
|
|
148
|
+
if [[ ! "{{command_name}}" =~ ^[a-z][a-z0-9]*(-[a-z0-9]+)*$ ]]; then
|
|
149
|
+
echo "❌ ERRO: Nome deve ser kebab-case (ex: my-command)"
|
|
150
|
+
exit 1
|
|
151
|
+
fi
|
|
152
|
+
|
|
153
|
+
# 3. CATEGORIA - Verificar categoria válida
|
|
154
|
+
VALID_CATEGORIES="engineer product git docs meta validate quick general"
|
|
155
|
+
if [[ ! " $VALID_CATEGORIES " =~ " {{category}} " ]]; then
|
|
156
|
+
echo "❌ ERRO: Categoria '{{category}}' inválida!"
|
|
157
|
+
echo "Válidas: $VALID_CATEGORIES"
|
|
158
|
+
exit 1
|
|
159
|
+
fi
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Checklist de Validação:**
|
|
163
|
+
- [ ] Nome único (não existe em `.cursor/commands/`)
|
|
164
|
+
- [ ] Nome em kebab-case válido
|
|
165
|
+
- [ ] Categoria válida (engineer|product|git|docs|meta|validate|quick|general)
|
|
166
|
+
- [ ] YAML header completo
|
|
167
|
+
- [ ] < 400 linhas
|
|
168
|
+
- [ ] Seções obrigatórias (Objetivo, Fluxo, Output)
|
|
169
|
+
|
|
170
|
+
### Passo 5: Criar Arquivo
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
write .cursor/commands/{{category}}/{{command_name}}.md
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## 📤 Output Esperado
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
180
|
+
✅ COMANDO CRIADO
|
|
181
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
182
|
+
|
|
183
|
+
📁 Arquivo: .cursor/commands/{{category}}/{{command_name}}.md
|
|
184
|
+
|
|
185
|
+
📋 Detalhes:
|
|
186
|
+
∟ Nome: {{command_name}}
|
|
187
|
+
∟ Categoria: {{category}}
|
|
188
|
+
∟ Linhas: ~150
|
|
189
|
+
|
|
190
|
+
🚀 Para usar: /{{category}}/{{command_name}}
|
|
191
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
## 🔗 Referências
|
|
195
|
+
|
|
196
|
+
- Template: `common/templates/command-template.md`
|
|
197
|
+
- Agente: @command-creator-specialist
|
|
198
|
+
|
|
199
|
+
## ⚠️ Notas
|
|
200
|
+
|
|
201
|
+
- Máximo 400 linhas por comando
|
|
202
|
+
- Usar prompts modulares de `common/prompts/`
|
|
203
|
+
- Sempre validar duplicação antes de criar
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-knowledge-base
|
|
3
|
+
description: |
|
|
4
|
+
Criação de bases de conhecimento estruturadas via pesquisa.
|
|
5
|
+
Use para gerar KBs sobre tecnologias, ferramentas ou conceitos.
|
|
6
|
+
model: sonnet
|
|
7
|
+
|
|
8
|
+
parameters:
|
|
9
|
+
- name: topic
|
|
10
|
+
description: Tema da knowledge base
|
|
11
|
+
required: true
|
|
12
|
+
- name: category
|
|
13
|
+
description: Categoria (technologies/tools/concepts/frameworks)
|
|
14
|
+
required: false
|
|
15
|
+
|
|
16
|
+
category: meta
|
|
17
|
+
tags:
|
|
18
|
+
- knowledge-base
|
|
19
|
+
- research
|
|
20
|
+
- documentation
|
|
21
|
+
|
|
22
|
+
version: "3.0.0"
|
|
23
|
+
updated: "2025-11-24"
|
|
24
|
+
|
|
25
|
+
related_commands:
|
|
26
|
+
- /docs/build-tech-docs
|
|
27
|
+
|
|
28
|
+
related_agents:
|
|
29
|
+
- research-agent
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
# 📚 Criar Knowledge Base
|
|
33
|
+
|
|
34
|
+
Geração de bases de conhecimento via pesquisa estruturada.
|
|
35
|
+
|
|
36
|
+
## 🎯 Objetivo
|
|
37
|
+
|
|
38
|
+
Criar KBs densas e estruturadas sobre temas específicos.
|
|
39
|
+
|
|
40
|
+
## ⚡ Fluxo de Execução
|
|
41
|
+
|
|
42
|
+
### Passo 1: Análise do Tema
|
|
43
|
+
|
|
44
|
+
1. **Interpretar requisitos**: Extrair tema de `{{topic}}`
|
|
45
|
+
2. **Determinar categoria**:
|
|
46
|
+
- `technologies/` - React, Python, etc.
|
|
47
|
+
- `tools/` - Docker, VSCode, etc.
|
|
48
|
+
- `concepts/` - Metodologias, padrões
|
|
49
|
+
- `frameworks/` - NestJS, FastAPI, etc.
|
|
50
|
+
- `platforms/` - AWS, Azure, etc.
|
|
51
|
+
|
|
52
|
+
### Passo 2: Validar Estrutura
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Verificar docs/knowbase/
|
|
56
|
+
test -d docs/knowbase/ || mkdir -p docs/knowbase/{technologies,tools,concepts,frameworks,platforms}
|
|
57
|
+
|
|
58
|
+
# Verificar duplicação
|
|
59
|
+
ls docs/knowbase/**/*{{topic}}*.md 2>/dev/null
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Passo 3: Pesquisar
|
|
63
|
+
|
|
64
|
+
Via @research-agent ou web_search:
|
|
65
|
+
|
|
66
|
+
1. **Documentação oficial**
|
|
67
|
+
2. **Best practices**
|
|
68
|
+
3. **Exemplos de uso**
|
|
69
|
+
4. **Limitações conhecidas**
|
|
70
|
+
5. **Comparações relevantes**
|
|
71
|
+
|
|
72
|
+
### Passo 4: Estruturar Conteúdo
|
|
73
|
+
|
|
74
|
+
```markdown
|
|
75
|
+
# {{topic}} - Knowledge Base
|
|
76
|
+
|
|
77
|
+
## 📋 Visão Geral
|
|
78
|
+
[O que é, para que serve]
|
|
79
|
+
|
|
80
|
+
## 🎯 Casos de Uso
|
|
81
|
+
- Caso 1
|
|
82
|
+
- Caso 2
|
|
83
|
+
|
|
84
|
+
## ⚡ Quick Start
|
|
85
|
+
[Como começar rapidamente]
|
|
86
|
+
|
|
87
|
+
## 🔧 Configuração
|
|
88
|
+
[Setup e configurações]
|
|
89
|
+
|
|
90
|
+
## 💡 Best Practices
|
|
91
|
+
[Melhores práticas]
|
|
92
|
+
|
|
93
|
+
## ⚠️ Limitações
|
|
94
|
+
[Pontos de atenção]
|
|
95
|
+
|
|
96
|
+
## 🔗 Referências
|
|
97
|
+
- [Link oficial](url)
|
|
98
|
+
- [Docs](url)
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
**Última atualização**: [data]
|
|
102
|
+
**Fonte principal**: [fonte]
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Passo 5: Salvar
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
write docs/knowbase/{{category}}/{{topic}}.md
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## 📤 Output Esperado
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
115
|
+
✅ KNOWLEDGE BASE CRIADA
|
|
116
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
117
|
+
|
|
118
|
+
📁 Arquivo: docs/knowbase/{{category}}/{{topic}}.md
|
|
119
|
+
|
|
120
|
+
📊 Conteúdo:
|
|
121
|
+
∟ Seções: 7
|
|
122
|
+
∟ Linhas: ~200
|
|
123
|
+
∟ Referências: 5
|
|
124
|
+
|
|
125
|
+
📚 Fontes Consultadas:
|
|
126
|
+
∟ Documentação oficial
|
|
127
|
+
∟ GitHub
|
|
128
|
+
∟ Stack Overflow
|
|
129
|
+
|
|
130
|
+
🚀 Para acessar: docs/knowbase/{{category}}/{{topic}}.md
|
|
131
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## 🔗 Referências
|
|
135
|
+
|
|
136
|
+
- Agente: @research-agent
|
|
137
|
+
- Estrutura: `docs/knowbase/`
|
|
138
|
+
|
|
139
|
+
## ⚠️ Notas
|
|
140
|
+
|
|
141
|
+
- Sempre incluir data de atualização
|
|
142
|
+
- Citar fontes principais
|
|
143
|
+
- Manter < 400 linhas (dividir se maior)
|