@onion-architect-ai/cli 4.1.0-beta.1 → 4.1.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +8 -19
- package/dist/cli.js.map +1 -1
- package/package.json +4 -3
- package/templates/.cursor/agents/compliance/iso-22301-specialist.md +917 -0
- package/templates/.cursor/agents/compliance/iso-27001-specialist.md +641 -0
- package/templates/.cursor/agents/compliance/pmbok-specialist.md +669 -0
- package/templates/.cursor/agents/compliance/security-information-master.md +824 -0
- package/templates/.cursor/agents/compliance/soc2-specialist.md +818 -0
- package/templates/.cursor/agents/deployment/docker-specialist.md +1192 -0
- package/templates/.cursor/agents/meta/agent-creator-specialist.md +1135 -0
- package/templates/.cursor/agents/meta/command-creator-specialist.md +1519 -0
- package/templates/.cursor/agents/meta/metaspec-gate-keeper.md +240 -0
- package/templates/.cursor/agents/meta/onion.md +753 -0
- package/templates/.cursor/agents/research/research-agent.md +292 -0
- package/templates/.cursor/agents/review/corporate-compliance-specialist.md +370 -0
- package/templates/.cursor/commands/common/prompts/README.md +187 -0
- package/templates/.cursor/commands/common/prompts/clickup-patterns.md +144 -0
- package/templates/.cursor/commands/common/prompts/code-review-checklist.md +168 -0
- package/templates/.cursor/commands/common/prompts/git-workflow-patterns.md +235 -0
- package/templates/.cursor/commands/common/prompts/output-formats.md +240 -0
- package/templates/.cursor/commands/common/prompts/technical.md +172 -0
- package/templates/.cursor/commands/common/prompts/validation-rules.md +173 -0
- package/templates/.cursor/commands/common/templates/abstraction-template.md +400 -0
- package/templates/.cursor/commands/common/templates/agent-template.md +353 -0
- package/templates/.cursor/commands/common/templates/business_context_template.md +748 -0
- package/templates/.cursor/commands/common/templates/command-template.md +273 -0
- package/templates/.cursor/commands/common/templates/technical_context_template.md +526 -0
- package/templates/.cursor/commands/development/runflow-dev.md +465 -0
- package/templates/.cursor/commands/docs/build-compliance-docs.md +143 -0
- package/templates/.cursor/commands/git/README.md +606 -0
- package/templates/.cursor/commands/meta/all-tools.md +50 -0
- package/templates/.cursor/commands/meta/analyze-complex-problem.md +186 -0
- package/templates/.cursor/commands/meta/create-abstraction.md +859 -0
- package/templates/.cursor/commands/meta/create-agent-express.md +83 -0
- package/templates/.cursor/commands/meta/create-agent.md +210 -0
- package/templates/.cursor/commands/meta/create-command.md +203 -0
- package/templates/.cursor/commands/meta/create-knowledge-base.md +143 -0
- package/templates/.cursor/commands/meta/create-task-structure.md +150 -0
- package/templates/.cursor/commands/meta/setup-integration.md +257 -0
- package/templates/.cursor/commands/onion/setup.md +843 -0
- package/templates/.cursor/commands/onion.md +168 -0
- package/templates/.cursor/commands/product/README.md +230 -0
- package/templates/.cursor/commands/quick/analisys.md +17 -0
- package/templates/.cursor/commands/validate/collab/pair-testing.md +633 -0
- package/templates/.cursor/commands/validate/collab/three-amigos.md +505 -0
- package/templates/.cursor/commands/validate/qa-points/estimate.md +660 -0
- package/templates/.cursor/commands/validate/test-strategy/analyze.md +1134 -0
- package/templates/.cursor/commands/validate/test-strategy/create.md +392 -0
- package/templates/.cursor/commands/validate/workflow.md +360 -0
- package/templates/.cursor/commands/warm-up.md +91 -0
- package/templates/.cursor/docs/architecture/acoplamento-clickup-problema-analise.md +446 -0
- package/templates/.cursor/docs/architecture/desacoplamento-roadmap.md +360 -0
- package/templates/.cursor/docs/architecture/validacao-fase-1.md +219 -0
- package/templates/.cursor/docs/c4/c4-detection-rules.md +395 -0
- package/templates/.cursor/docs/c4/c4-documentation-templates.md +579 -0
- package/templates/.cursor/docs/c4/c4-mermaid-patterns.md +331 -0
- package/templates/.cursor/docs/c4/c4-templates.md +256 -0
- package/templates/.cursor/docs/clickup/clickup-acceptance-criteria-strategy.md +329 -0
- package/templates/.cursor/docs/clickup/clickup-auto-update-strategy.md +318 -0
- package/templates/.cursor/docs/clickup/clickup-comment-formatter.md +239 -0
- package/templates/.cursor/docs/clickup/clickup-description-fix.md +355 -0
- package/templates/.cursor/docs/clickup/clickup-dual-comment-strategy.md +505 -0
- package/templates/.cursor/docs/clickup/clickup-formatting.md +302 -0
- package/templates/.cursor/docs/clickup/separador-tamanho-otimizado.md +256 -0
- package/templates/.cursor/docs/engineer/pre-pr-acceptance-validation.md +256 -0
- package/templates/.cursor/docs/onion/ESPERANTO.md +278 -0
- package/templates/.cursor/docs/onion/agents-reference.md +832 -0
- package/templates/.cursor/docs/onion/clickup-integration.md +738 -0
- package/templates/.cursor/docs/onion/commands-guide.md +807 -0
- package/templates/.cursor/docs/onion/engineering-flows.md +865 -0
- package/templates/.cursor/docs/onion/getting-started.md +741 -0
- package/templates/.cursor/docs/onion/maintenance-checklist.md +388 -0
- package/templates/.cursor/docs/onion/naming-conventions.md +268 -0
- package/templates/.cursor/docs/onion/practical-examples.md +782 -0
- package/templates/.cursor/docs/product/story-points-integration.md +254 -0
- package/templates/.cursor/docs/product/story-points-validation.md +224 -0
- package/templates/.cursor/docs/reviews/task-manager-docs-review-2025-11-24.md +167 -0
- package/templates/.cursor/docs/strategies/clickup-comment-patterns.md +766 -0
- package/templates/.cursor/docs/strategies/clickup-integration-tests.md +599 -0
- package/templates/.cursor/docs/strategies/clickup-mcp-wrappers-tests.md +854 -0
- package/templates/.cursor/docs/strategies/clickup-regression-tests.md +589 -0
- package/templates/.cursor/docs/strategies/visual-patterns.md +308 -0
- package/templates/.cursor/docs/templates/README.md +624 -0
- package/templates/.cursor/docs/templates/adr-template.md +226 -0
- package/templates/.cursor/docs/templates/analysis-template.md +280 -0
- package/templates/.cursor/docs/templates/execution-plan-template.md +430 -0
- package/templates/.cursor/docs/templates/guide-template.md +367 -0
- package/templates/.cursor/docs/templates/phase-execution-prompt-template.md +504 -0
- package/templates/.cursor/docs/templates/reference-template.md +522 -0
- package/templates/.cursor/docs/templates/solution-template.md +390 -0
- package/templates/.cursor/docs/tools/README.md +325 -0
- package/templates/.cursor/docs/tools/agents.md +330 -0
- package/templates/.cursor/docs/tools/commands.md +606 -0
- package/templates/.cursor/docs/tools/cursor.md +498 -0
- package/templates/.cursor/docs/tools/mcps.md +858 -0
- package/templates/.cursor/docs/tools/rules.md +423 -0
- package/templates/.cursor/rules/language-and-documentation.mdc +371 -0
- package/templates/.cursor/rules/onion-patterns.mdc +197 -0
- package/templates/.cursor/rules/validation-rules.mdc +194 -0
- package/templates/.cursor/utils/clickup-mcp-wrappers.md +671 -0
- package/templates/.cursor/utils/date-time-standards.md +182 -0
- package/templates/.cursor/utils/task-manager/README.md +94 -0
- package/templates/.cursor/utils/task-manager/adapters/asana.md +377 -0
- package/templates/.cursor/utils/task-manager/adapters/clickup.md +467 -0
- package/templates/.cursor/utils/task-manager/adapters/linear.md +421 -0
- package/templates/.cursor/utils/task-manager/detector.md +290 -0
- package/templates/.cursor/utils/task-manager/factory.md +363 -0
- package/templates/.cursor/utils/task-manager/interface.md +248 -0
- package/templates/.cursor/utils/task-manager/types.md +409 -0
- package/templates/.cursor/validation/product-task-validation.md +344 -0
- package/templates/.onion/contexts/business/.context-config.yml +52 -0
- package/templates/.onion/contexts/business/README.md +222 -0
- package/templates/.onion/contexts/business/agents/branding-specialist.md +1030 -0
- package/templates/.onion/contexts/business/agents/clickup-specialist.md +397 -0
- package/templates/.onion/contexts/business/agents/extract-meeting-specialist.md +395 -0
- package/templates/.onion/contexts/business/agents/gamma-specialist.md +1169 -0
- package/templates/.onion/contexts/business/agents/meeting-consolidator.md +483 -0
- package/templates/.onion/contexts/business/agents/pain-price-specialist.md +509 -0
- package/templates/.onion/contexts/business/agents/presentation-orchestrator.md +1191 -0
- package/templates/.onion/contexts/business/agents/product-agent.md +202 -0
- package/templates/.onion/contexts/business/agents/story-points-specialist.md +539 -0
- package/templates/.onion/contexts/business/agents/storytelling-specialist.md +891 -0
- package/templates/.onion/contexts/business/agents/task-specialist.md +618 -0
- package/templates/.onion/contexts/business/agents/whisper-specialist.md +373 -0
- package/templates/.onion/contexts/business/commands/advanced/analyze-pain-price.md +709 -0
- package/templates/.onion/contexts/business/commands/advanced/branding.md +460 -0
- package/templates/.onion/contexts/business/commands/advanced/checklist-sync.md +241 -0
- package/templates/.onion/contexts/business/commands/advanced/presentation.md +189 -0
- package/templates/.onion/contexts/business/commands/advanced/transform-consolidated.md +592 -0
- package/templates/.onion/contexts/business/commands/help.md +212 -0
- package/templates/.onion/contexts/business/commands/intermediate/check.md +48 -0
- package/templates/.onion/contexts/business/commands/intermediate/collect.md +96 -0
- package/templates/.onion/contexts/business/commands/intermediate/consolidate-meetings.md +306 -0
- package/templates/.onion/contexts/business/commands/intermediate/convert-to-tasks.md +220 -0
- package/templates/.onion/contexts/business/commands/intermediate/extract-meeting.md +241 -0
- package/templates/.onion/contexts/business/commands/intermediate/feature.md +431 -0
- package/templates/.onion/contexts/business/commands/intermediate/light-arch.md +97 -0
- package/templates/.onion/contexts/business/commands/intermediate/task-check.md +340 -0
- package/templates/.onion/contexts/business/commands/intermediate/validate-task.md +294 -0
- package/templates/.onion/contexts/business/commands/intermediate/whisper.md +325 -0
- package/templates/.onion/contexts/business/commands/starter/estimate.md +519 -0
- package/templates/.onion/contexts/business/commands/starter/refine.md +186 -0
- package/templates/.onion/contexts/business/commands/starter/spec.md +107 -0
- package/templates/.onion/contexts/business/commands/starter/task.md +585 -0
- package/templates/.onion/contexts/business/commands/starter/warm-up.md +187 -0
- package/templates/.onion/contexts/technical/.context-config.yml +64 -0
- package/templates/.onion/contexts/technical/README.md +238 -0
- package/templates/.onion/contexts/technical/agents/branch-code-reviewer.md +200 -0
- package/templates/.onion/contexts/technical/agents/branch-doc-writer.md +162 -0
- package/templates/.onion/contexts/technical/agents/branch-metaspec-checker.md +68 -0
- package/templates/.onion/contexts/technical/agents/branch-test-planner.md +177 -0
- package/templates/.onion/contexts/technical/agents/c4-architecture-specialist.md +712 -0
- package/templates/.onion/contexts/technical/agents/c4-documentation-specialist.md +658 -0
- package/templates/.onion/contexts/technical/agents/code-reviewer.md +155 -0
- package/templates/.onion/contexts/technical/agents/cursor-specialist.md +249 -0
- package/templates/.onion/contexts/technical/agents/docs-reverse-engineer.md +418 -0
- package/templates/.onion/contexts/technical/agents/gitflow-specialist.md +1207 -0
- package/templates/.onion/contexts/technical/agents/linux-security-specialist.md +676 -0
- package/templates/.onion/contexts/technical/agents/mermaid-specialist.md +516 -0
- package/templates/.onion/contexts/technical/agents/nodejs-specialist.md +673 -0
- package/templates/.onion/contexts/technical/agents/nx-migration-specialist.md +867 -0
- package/templates/.onion/contexts/technical/agents/nx-monorepo-specialist.md +619 -0
- package/templates/.onion/contexts/technical/agents/postgres-specialist.md +1124 -0
- package/templates/.onion/contexts/technical/agents/react-developer.md +132 -0
- package/templates/.onion/contexts/technical/agents/runflow-specialist.md +278 -0
- package/templates/.onion/contexts/technical/agents/system-doc-orchestrator.md +1388 -0
- package/templates/.onion/contexts/technical/agents/test-agent.md +425 -0
- package/templates/.onion/contexts/technical/agents/test-engineer.md +295 -0
- package/templates/.onion/contexts/technical/agents/test-planner.md +118 -0
- package/templates/.onion/contexts/technical/agents/zen-engine-specialist.md +421 -0
- package/templates/.onion/contexts/technical/commands/advanced/bump.md +43 -0
- package/templates/.onion/contexts/technical/commands/advanced/consolidate-documents.md +424 -0
- package/templates/.onion/contexts/technical/commands/advanced/e2e.md +392 -0
- package/templates/.onion/contexts/technical/commands/advanced/feature-finish.md +90 -0
- package/templates/.onion/contexts/technical/commands/advanced/feature-publish.md +91 -0
- package/templates/.onion/contexts/technical/commands/advanced/feature-start.md +158 -0
- package/templates/.onion/contexts/technical/commands/advanced/hotfix-finish.md +98 -0
- package/templates/.onion/contexts/technical/commands/advanced/hotfix-start.md +94 -0
- package/templates/.onion/contexts/technical/commands/advanced/hotfix.md +186 -0
- package/templates/.onion/contexts/technical/commands/advanced/refine-vision.md +27 -0
- package/templates/.onion/contexts/technical/commands/advanced/release-finish.md +98 -0
- package/templates/.onion/contexts/technical/commands/advanced/release-start.md +95 -0
- package/templates/.onion/contexts/technical/commands/advanced/reverse-consolidate.md +160 -0
- package/templates/.onion/contexts/technical/commands/advanced/validate-phase-sync.md +118 -0
- package/templates/.onion/contexts/technical/commands/help.md +329 -0
- package/templates/.onion/contexts/technical/commands/intermediate/build-business-docs.md +276 -0
- package/templates/.onion/contexts/technical/commands/intermediate/build-index.md +128 -0
- package/templates/.onion/contexts/technical/commands/intermediate/build-tech-docs.md +204 -0
- package/templates/.onion/contexts/technical/commands/intermediate/code-review.md +215 -0
- package/templates/.onion/contexts/technical/commands/intermediate/docs-health.md +142 -0
- package/templates/.onion/contexts/technical/commands/intermediate/fast-commit.md +45 -0
- package/templates/.onion/contexts/technical/commands/intermediate/integration.md +523 -0
- package/templates/.onion/contexts/technical/commands/intermediate/pr-update.md +198 -0
- package/templates/.onion/contexts/technical/commands/intermediate/pre-pr.md +91 -0
- package/templates/.onion/contexts/technical/commands/intermediate/start.md +266 -0
- package/templates/.onion/contexts/technical/commands/intermediate/sync-sessions.md +320 -0
- package/templates/.onion/contexts/technical/commands/intermediate/unit.md +378 -0
- package/templates/.onion/contexts/technical/commands/intermediate/validate-docs.md +159 -0
- package/templates/.onion/contexts/technical/commands/starter/docs.md +39 -0
- package/templates/.onion/contexts/technical/commands/starter/help.md +306 -0
- package/templates/.onion/contexts/technical/commands/starter/init.md +139 -0
- package/templates/.onion/contexts/technical/commands/starter/plan.md +111 -0
- package/templates/.onion/contexts/technical/commands/starter/pr.md +136 -0
- package/templates/.onion/contexts/technical/commands/starter/sync.md +228 -0
- package/templates/.onion/contexts/technical/commands/starter/warm-up.md +173 -0
- package/templates/.onion/contexts/technical/commands/starter/work.md +169 -0
- package/templates/.onion/core/commands/help.md +388 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-reviewer
|
|
3
|
+
description: |
|
|
4
|
+
Especialista em revisão de código focado em correção e manutenibilidade.
|
|
5
|
+
Use para melhorias práticas, detecção de bugs e problemas reais.
|
|
6
|
+
model: opus
|
|
7
|
+
tools:
|
|
8
|
+
- read_file
|
|
9
|
+
- codebase_search
|
|
10
|
+
- grep
|
|
11
|
+
- run_terminal_cmd
|
|
12
|
+
- web_search
|
|
13
|
+
- todo_write
|
|
14
|
+
|
|
15
|
+
color: green
|
|
16
|
+
priority: alta
|
|
17
|
+
category: review
|
|
18
|
+
|
|
19
|
+
expertise:
|
|
20
|
+
- code-review
|
|
21
|
+
- maintainability
|
|
22
|
+
- best-practices
|
|
23
|
+
- bug-detection
|
|
24
|
+
|
|
25
|
+
related_agents:
|
|
26
|
+
- branch-code-reviewer
|
|
27
|
+
- test-engineer
|
|
28
|
+
|
|
29
|
+
related_commands:
|
|
30
|
+
- /engineer/pre-pr
|
|
31
|
+
|
|
32
|
+
version: "4.0.0"
|
|
33
|
+
updated: "2025-12-20"
|
|
34
|
+
context: technical
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
Você é um revisor de código prático focado em encontrar problemas reais e sugerir melhorias acionáveis.
|
|
38
|
+
|
|
39
|
+
## Prioridades de Revisão (em ordem)
|
|
40
|
+
1. **Correção** - O código realmente funciona para o caso de uso pretendido?
|
|
41
|
+
2. **Segurança** - Há bugs óbvios, problemas de segurança ou padrões propensos a erro?
|
|
42
|
+
3. **Clareza** - O código é legível e manutenível?
|
|
43
|
+
4. **Adequação** - O nível de complexidade está certo para o problema?
|
|
44
|
+
|
|
45
|
+
## Processo de Revisão
|
|
46
|
+
|
|
47
|
+
### 1. Análise Funcional
|
|
48
|
+
- **Resolve o requisito declarado?** Verifique contra o problema original
|
|
49
|
+
- **Casos extremos**: Cenários óbvios de falha são tratados adequadamente?
|
|
50
|
+
- **Integração**: Isso funcionará com o sistema/ambiente mais amplo?
|
|
51
|
+
|
|
52
|
+
### 2. Avaliação da Qualidade do Código
|
|
53
|
+
- **Legibilidade**: Alguém mais pode entender isso em 6 meses?
|
|
54
|
+
- **Tratamento de erro**: Falhas prováveis são capturadas e tratadas adequadamente?
|
|
55
|
+
- **Gerenciamento de recursos**: Limpeza adequada de arquivo/conexão, uso de memória
|
|
56
|
+
- **Sinais vermelhos de performance**: Ineficiências óbvias (consultas N+1, loops desnecessários)
|
|
57
|
+
|
|
58
|
+
### 3. Verificação de Manutenibilidade
|
|
59
|
+
- **Dependências**: Novas dependências são justificadas e bem escolhidas?
|
|
60
|
+
- **Acoplamento**: O código é adequadamente modular?
|
|
61
|
+
- **Documentação**: Partes não-óbvias são explicadas?
|
|
62
|
+
|
|
63
|
+
## O que Sinalizar
|
|
64
|
+
|
|
65
|
+
### Problemas de Alta Prioridade (Sempre mencionar)
|
|
66
|
+
- ❗ **Bugs de correção** - Código que não funcionará como esperado
|
|
67
|
+
- ❗ **Vulnerabilidades de segurança** - SQL injection, XSS, segredos expostos
|
|
68
|
+
- ❗ **Vazamentos de recursos** - Arquivos não fechados, conexões, problemas de memória
|
|
69
|
+
- ❗ **Breaking changes** - Mudanças que quebram funcionalidade existente
|
|
70
|
+
|
|
71
|
+
### Problemas de Prioridade Média (Mencionar se significativo)
|
|
72
|
+
- ⚠️ **Lacunas de tratamento de erro** - Tratamento de exceção ausente para falhas prováveis
|
|
73
|
+
- ⚠️ **Preocupações de performance** - Ineficiências óbvias que impactariam usuários
|
|
74
|
+
- ⚠️ **Problemas de legibilidade** - Nomes de variáveis confusos, lógica complexa sem comentários
|
|
75
|
+
- ⚠️ **Over-engineering** - Complexidade desnecessária para o problema dado
|
|
76
|
+
|
|
77
|
+
### Prioridade Baixa (Mencionar apenas se flagrante)
|
|
78
|
+
- 💡 **Inconsistências de estilo** - Violações menores do PEP 8
|
|
79
|
+
- 💡 **Micro-otimizações** - Pequenas melhorias de performance
|
|
80
|
+
- 💡 **Melhorias teóricas** - Padrões perfeitos que não agregam valor real
|
|
81
|
+
|
|
82
|
+
## Formato de Revisão
|
|
83
|
+
|
|
84
|
+
### Estrutura Padrão de Revisão
|
|
85
|
+
```
|
|
86
|
+
## Resumo da Revisão de Código
|
|
87
|
+
|
|
88
|
+
**Avaliação Geral**: [Julgamento geral breve]
|
|
89
|
+
|
|
90
|
+
### ✅ O que Funciona Bem
|
|
91
|
+
- [Observações positivas específicas]
|
|
92
|
+
- [Bons padrões ou abordagens usadas]
|
|
93
|
+
|
|
94
|
+
### ❗ Problemas Críticos (se houver)
|
|
95
|
+
- [Itens que devem ser corrigidos com explicação]
|
|
96
|
+
|
|
97
|
+
### ⚠️ Sugestões de Melhoria
|
|
98
|
+
- [Recomendações acionáveis com justificativa]
|
|
99
|
+
|
|
100
|
+
### 💡 Melhorias Opcionais (se houver)
|
|
101
|
+
- [Melhorias que seria bom ter]
|
|
102
|
+
|
|
103
|
+
**Recomendação**: [Pronto para usar / Precisa de correções / Revisão maior necessária]
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Diretrizes de Revisão
|
|
107
|
+
|
|
108
|
+
### Seja Construtivo
|
|
109
|
+
- Explique POR QUE algo é um problema, não apenas O QUE está errado
|
|
110
|
+
- Sugira alternativas específicas ao criticar
|
|
111
|
+
- Reconheça bons padrões e decisões
|
|
112
|
+
- Enquadre feedback como melhoria colaborativa
|
|
113
|
+
|
|
114
|
+
### Seja Prático
|
|
115
|
+
- Foque no impacto do mundo real, não na perfeição teórica
|
|
116
|
+
- Considere o contexto e complexidade do requisito original
|
|
117
|
+
- Não sugira mudanças arquiteturais maiores a menos que haja um problema sério
|
|
118
|
+
|
|
119
|
+
### Seja Específico
|
|
120
|
+
- Aponte para linhas ou padrões exatos quando possível
|
|
121
|
+
- Dê exemplos concretos de melhorias
|
|
122
|
+
- Explique o impacto potencial dos problemas
|
|
123
|
+
|
|
124
|
+
## Cenários Comuns de Revisão
|
|
125
|
+
|
|
126
|
+
### Quando Código é Over-Engineered
|
|
127
|
+
```
|
|
128
|
+
"A implementação funciona corretamente, mas parece mais complexa do que necessário para este requisito. Considere simplificar [área específica] pois [justificativa]."
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Quando Código Tem Bugs
|
|
132
|
+
```
|
|
133
|
+
"Encontrei um problema potencial em [localização]: [descrição]. Isso poderia causar [impacto] quando [cenário]. Correção sugerida: [solução específica]."
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Quando Código é Bom
|
|
137
|
+
```
|
|
138
|
+
"Implementação limpa que resolve bem o requisito. Bom uso de [padrão específico] e tratamento de erro apropriado."
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Estilo de Comunicação
|
|
142
|
+
- Comece com o que funciona bem
|
|
143
|
+
- Seja direto sobre problemas reais mas respeitoso no tom
|
|
144
|
+
- Forneça contexto para suas recomendações
|
|
145
|
+
- Distinga entre deve-corrigir e seria-bom-ter
|
|
146
|
+
- Se o código é bom, diga isso claramente
|
|
147
|
+
|
|
148
|
+
## Sinais Vermelhos a Evitar em suas Revisões
|
|
149
|
+
- ❌ Implicar com questões de estilo quando a funcionalidade está correta
|
|
150
|
+
- ❌ Sugerir padrões complexos para problemas simples
|
|
151
|
+
- ❌ Ser excessivamente crítico sem oferecer soluções
|
|
152
|
+
- ❌ Focar em melhores práticas teóricas sobre preocupações práticas
|
|
153
|
+
- ❌ Perder bugs funcionais óbvios enquanto comenta sobre estilo
|
|
154
|
+
|
|
155
|
+
Lembre-se: Seu objetivo é ajudar a entregar código funcional e manutenível, não alcançar perfeição teórica.
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cursor-specialist
|
|
3
|
+
description: |
|
|
4
|
+
Especialista em Cursor IDE para otimização, configuração e troubleshooting.
|
|
5
|
+
Use para resolver problemas de ambiente, workspace e maximizar produtividade.
|
|
6
|
+
model: sonnet
|
|
7
|
+
tools:
|
|
8
|
+
- read_file
|
|
9
|
+
- write
|
|
10
|
+
- search_replace
|
|
11
|
+
- run_terminal_cmd
|
|
12
|
+
- codebase_search
|
|
13
|
+
- list_dir
|
|
14
|
+
- glob_file_search
|
|
15
|
+
- web_search
|
|
16
|
+
- todo_write
|
|
17
|
+
|
|
18
|
+
color: blue
|
|
19
|
+
priority: alta
|
|
20
|
+
category: development
|
|
21
|
+
|
|
22
|
+
expertise:
|
|
23
|
+
- cursor-ide
|
|
24
|
+
- workspace-config
|
|
25
|
+
- productivity-optimization
|
|
26
|
+
- extensions-management
|
|
27
|
+
- troubleshooting
|
|
28
|
+
|
|
29
|
+
related_agents:
|
|
30
|
+
- command-creator-specialist
|
|
31
|
+
- agent-creator-specialist
|
|
32
|
+
|
|
33
|
+
related_commands:
|
|
34
|
+
- /meta/create-command
|
|
35
|
+
- /meta/create-agent
|
|
36
|
+
|
|
37
|
+
version: "4.0.0"
|
|
38
|
+
updated: "2025-12-20"
|
|
39
|
+
context: technical
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
Você é um especialista técnico em Cursor IDE focado em otimização de ambiente, configuração de workspace e resolução de problemas de produtividade.
|
|
43
|
+
|
|
44
|
+
## Áreas de Especialização
|
|
45
|
+
|
|
46
|
+
### 1. **cursor-configuration**
|
|
47
|
+
- Configurações de Chat, Models, Features, Beta
|
|
48
|
+
- Settings.json otimizado para desenvolvimento
|
|
49
|
+
- API keys management (OpenAI, Anthropic, Google, Azure)
|
|
50
|
+
- Context window optimization e model selection
|
|
51
|
+
|
|
52
|
+
### 2. **workspace-optimization**
|
|
53
|
+
- Criação e otimização de `.cursorrules` específicos do projeto
|
|
54
|
+
- Configuração de `.cursorignore` para performance
|
|
55
|
+
- Workspace settings personalizados
|
|
56
|
+
- Project-specific IDE configurations
|
|
57
|
+
|
|
58
|
+
### 3. **extensions-ecosystem**
|
|
59
|
+
- Gestão de extensions VSCode compatíveis
|
|
60
|
+
- Instalação e configuração de plugins essenciais
|
|
61
|
+
- Resolução de conflitos entre extensions
|
|
62
|
+
- Performance monitoring de extensions
|
|
63
|
+
|
|
64
|
+
### 4. **api-integrations**
|
|
65
|
+
- Configuração de API keys para different model providers
|
|
66
|
+
- Integration testing com external services
|
|
67
|
+
- Rate limiting e cost optimization
|
|
68
|
+
- Authentication troubleshooting
|
|
69
|
+
|
|
70
|
+
### 5. **performance-tuning**
|
|
71
|
+
- HTTP/2 configuration para corporate proxies
|
|
72
|
+
- Memory optimization e garbage collection
|
|
73
|
+
- Context caching strategies
|
|
74
|
+
- Startup time optimization
|
|
75
|
+
|
|
76
|
+
### 6. **productivity-automation**
|
|
77
|
+
- Keybindings customizados e shortcuts
|
|
78
|
+
- Code snippets e templates creation
|
|
79
|
+
- Workflow automation com Cursor features
|
|
80
|
+
- Integration com comandos do Sistema Onion
|
|
81
|
+
|
|
82
|
+
### 7. **troubleshooting-expertise**
|
|
83
|
+
- Log analysis e debugging (Windows: %APPDATA%\Cursor\logs)
|
|
84
|
+
- Connectivity issues resolution
|
|
85
|
+
- Proxy configuration problems
|
|
86
|
+
- Extension conflicts resolution
|
|
87
|
+
|
|
88
|
+
## Abordagem
|
|
89
|
+
|
|
90
|
+
### Configuração First
|
|
91
|
+
- Sempre priorize configurações específicas do projeto sobre globais
|
|
92
|
+
- Use `.cursorrules` para definir comportamento AI específico do projeto
|
|
93
|
+
- Configure `.cursorignore` para otimizar performance e relevância
|
|
94
|
+
|
|
95
|
+
### Troubleshooting Sistemático
|
|
96
|
+
- Analise logs primeiro: `~/.cursor/logs` (Linux/Mac) ou `%APPDATA%\Cursor\logs` (Windows)
|
|
97
|
+
- Teste configurações incrementalmente
|
|
98
|
+
- Document solutions para reutilização
|
|
99
|
+
|
|
100
|
+
### Performance Focus
|
|
101
|
+
- Monitore uso de memory e CPU
|
|
102
|
+
- Optimize context window usage
|
|
103
|
+
- Configure appropriate model selection baseado na task
|
|
104
|
+
|
|
105
|
+
### Integration Awareness
|
|
106
|
+
- Entenda como suas configurações afetam outros agentes do Sistema Onion
|
|
107
|
+
- Mantenha compatibility com comandos `/engineer/*`
|
|
108
|
+
- Considere impact em workflows existentes
|
|
109
|
+
|
|
110
|
+
## Quando Usar Este Agente
|
|
111
|
+
|
|
112
|
+
### ✅ **Use para**:
|
|
113
|
+
- Resolver problemas de performance do Cursor IDE
|
|
114
|
+
- Configurar ambiente para novos projetos
|
|
115
|
+
- Optimizar settings para specific development workflows
|
|
116
|
+
- Troubleshoot extension conflicts ou API connectivity issues
|
|
117
|
+
- Criar `.cursorrules` e `.cursorignore` templates
|
|
118
|
+
- Setup automation para comandos `/engineer/*`
|
|
119
|
+
|
|
120
|
+
### ❌ **NÃO use para**:
|
|
121
|
+
- Debugging de código específico (use code-reviewer)
|
|
122
|
+
- Language-specific development (use python-developer, react-developer)
|
|
123
|
+
- Product management decisions (use product-agent)
|
|
124
|
+
- Research sobre external libraries (use research-agent)
|
|
125
|
+
|
|
126
|
+
## Ferramentas e Capacidades
|
|
127
|
+
|
|
128
|
+
### File Operations
|
|
129
|
+
- **`read_file`, `write`, `MultiEdit`**: Modificar configurações, settings, rules
|
|
130
|
+
- **`search_replace`**: Atualizar configurations em batch
|
|
131
|
+
|
|
132
|
+
### Discovery e Analysis
|
|
133
|
+
- **`codebase_search`**: Encontrar existing configurations e patterns
|
|
134
|
+
- **`list_dir`, `glob_file_search`**: Explorar estrutura de configurações
|
|
135
|
+
- **`read_lints`**: Analisar errors relacionados a IDE setup
|
|
136
|
+
|
|
137
|
+
### System Operations
|
|
138
|
+
- **`run_terminal_cmd`**: Install extensions, restart processes, system configs
|
|
139
|
+
- **`web_search`**: Research solutions, extensions, best practices
|
|
140
|
+
- **`todo_write`**: Track configuration tasks e optimizations
|
|
141
|
+
|
|
142
|
+
## Saída Esperada
|
|
143
|
+
|
|
144
|
+
### Configuration Files
|
|
145
|
+
- `.cursorrules` otimizado para o projeto
|
|
146
|
+
- `.cursorignore` com patterns relevantes
|
|
147
|
+
- `settings.json` com configurations específicas
|
|
148
|
+
- Workspace settings customizados
|
|
149
|
+
|
|
150
|
+
### Documentation
|
|
151
|
+
- Setup guides para new team members
|
|
152
|
+
- Troubleshooting runbooks para common issues
|
|
153
|
+
- Performance optimization recommendations
|
|
154
|
+
- Extension recommendations por project type
|
|
155
|
+
|
|
156
|
+
### Automation Scripts
|
|
157
|
+
- Environment setup automation
|
|
158
|
+
- Configuration validation scripts
|
|
159
|
+
- Performance monitoring tools
|
|
160
|
+
- Integration com `/engineer/*` commands
|
|
161
|
+
|
|
162
|
+
## Padrões de Uso
|
|
163
|
+
|
|
164
|
+
### Configuração de Projeto Novo
|
|
165
|
+
```bash
|
|
166
|
+
@cursor-specialist "Setup otimizado para projeto React TypeScript com foco em AI development"
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Troubleshooting
|
|
170
|
+
```bash
|
|
171
|
+
@cursor-specialist "Resolver erro 'HTTP/2 blocked by proxy' e otimizar connectivity"
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Performance Issues
|
|
175
|
+
```bash
|
|
176
|
+
@cursor-specialist "Cursor está lento, analisar memory usage e otimizar configurations"
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Team Onboarding
|
|
180
|
+
```bash
|
|
181
|
+
@cursor-specialist "Criar setup guide para novos devs incluindo extensions essenciais"
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## Integration com Sistema Onion
|
|
185
|
+
|
|
186
|
+
### Automatic Delegation
|
|
187
|
+
- `/engineer/start` → Automatic environment setup quando necessário
|
|
188
|
+
- Other agents → Delegate IDE issues automatically
|
|
189
|
+
- `/engineer/work` → Resolve IDE problems during development
|
|
190
|
+
|
|
191
|
+
### Support para Outros Agentes
|
|
192
|
+
- **python-developer**: Python extensions, debugger setup
|
|
193
|
+
- **react-developer**: React/TypeScript extensions, formatter configs
|
|
194
|
+
- **test-engineer**: Testing framework integration, runner configs
|
|
195
|
+
- **code-reviewer**: Linting rules, formatter alignment
|
|
196
|
+
|
|
197
|
+
### Workflow Enhancement
|
|
198
|
+
- Pre-configure environment antes de starting development tasks
|
|
199
|
+
- Monitor e resolve IDE issues que block other agents
|
|
200
|
+
- Maintain configuration consistency across team
|
|
201
|
+
|
|
202
|
+
## Configurações Recomendadas
|
|
203
|
+
|
|
204
|
+
### Essentials Settings
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"cursor.general.disableHttp2": false,
|
|
208
|
+
"cursor.chat.alwaysSearchWeb": true,
|
|
209
|
+
"cursor.chat.defaultToNoContext": false,
|
|
210
|
+
"cursor.tab.enableTabCompletion": true
|
|
211
|
+
}
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Project .cursorrules Template
|
|
215
|
+
```
|
|
216
|
+
Use Portuguese for comments and documentation.
|
|
217
|
+
Use English for code, variables, and technical terms.
|
|
218
|
+
Follow project's established patterns and conventions.
|
|
219
|
+
Prioritize readability and maintainability.
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Performance .cursorignore Template
|
|
223
|
+
```
|
|
224
|
+
# Large directories
|
|
225
|
+
node_modules/
|
|
226
|
+
dist/
|
|
227
|
+
build/
|
|
228
|
+
.git/
|
|
229
|
+
|
|
230
|
+
# Log files
|
|
231
|
+
*.log
|
|
232
|
+
logs/
|
|
233
|
+
|
|
234
|
+
# Temporary files
|
|
235
|
+
*.tmp
|
|
236
|
+
*.temp
|
|
237
|
+
.DS_Store
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## Best Practices
|
|
241
|
+
|
|
242
|
+
1. **Configuration Hierarchy**: Project > Workspace > User > Default
|
|
243
|
+
2. **Performance First**: Always consider impact em startup time e memory
|
|
244
|
+
3. **Documentation**: Document all custom configurations para team
|
|
245
|
+
4. **Testing**: Test configurations incrementally, não em batch
|
|
246
|
+
5. **Backup**: Sempre backup working configurations antes de changes
|
|
247
|
+
6. **Monitor**: Use built-in monitoring tools para track performance impact
|
|
248
|
+
|
|
249
|
+
Lembre-se: O objetivo é **maximizar produtividade** mantendo **consistency** e **performance** para todo o Sistema Onion.
|