@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,423 @@
|
|
|
1
|
+
# ⚙️ Regras e Configurações do Workspace
|
|
2
|
+
|
|
3
|
+
## 📑 Índice
|
|
4
|
+
- [Regras de Workspace](#regras-de-workspace)
|
|
5
|
+
- [Regras do Sistema Onion](#regras-do-sistema-onion)
|
|
6
|
+
- [Regras do Usuário](#regras-do-usuário)
|
|
7
|
+
- [Regras do Nx](#regras-do-nx)
|
|
8
|
+
- [Memórias](#memórias)
|
|
9
|
+
- [Estrutura de Projeto](#estrutura-de-projeto)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Regras de Workspace
|
|
14
|
+
|
|
15
|
+
### `language-and-documentation.mdc`
|
|
16
|
+
```typescript
|
|
17
|
+
rule: 'language-and-documentation'
|
|
18
|
+
location: '.cursor/rules/language-and-documentation.mdc'
|
|
19
|
+
// Propósito: Define regras de idioma, documentação e fluxo de trabalho
|
|
20
|
+
// Escopo: Workspace-level, requestable by agent
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Conteúdo:**
|
|
24
|
+
- 🌍 Convenções de idioma (pt-BR/en-US)
|
|
25
|
+
- 📝 Padrões de documentação
|
|
26
|
+
- 🔄 Workflows de desenvolvimento
|
|
27
|
+
- 📋 Templates e formatos
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Regras do Sistema Onion
|
|
32
|
+
|
|
33
|
+
### Visão Geral
|
|
34
|
+
```typescript
|
|
35
|
+
system: 'Onion Framework'
|
|
36
|
+
version: '1.0'
|
|
37
|
+
// Propósito: Framework de comandos .cursor/ e agentes especializados
|
|
38
|
+
// Componentes: 46 comandos, 14+ agentes, ClickUp MCP integration
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 🎯 Contexto do Projeto
|
|
42
|
+
```markdown
|
|
43
|
+
Sistema Onion - Framework avançado de comandos .cursor/
|
|
44
|
+
├── 26 comandos organizados por categoria
|
|
45
|
+
├── 14 agentes especializados de IA
|
|
46
|
+
├── Integração completa com ClickUp MCP
|
|
47
|
+
└── Workflows automatizados de desenvolvimento
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 📝 Diretrizes de Linguagem
|
|
51
|
+
|
|
52
|
+
#### Código e Comentários
|
|
53
|
+
```typescript
|
|
54
|
+
rule: 'language-convention'
|
|
55
|
+
// Código, variáveis, funções: Inglês
|
|
56
|
+
// Comentários e documentação: Português brasileiro (pt-BR)
|
|
57
|
+
// Commits: Português brasileiro
|
|
58
|
+
// Logs e debugging: Inglês
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Exemplos:**
|
|
62
|
+
```typescript
|
|
63
|
+
// ✅ Correto
|
|
64
|
+
function calculateTotal(items: Item[]): number {
|
|
65
|
+
// Calcula o total somando todos os itens
|
|
66
|
+
return items.reduce((sum, item) => sum + item.price, 0);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// ❌ Incorreto
|
|
70
|
+
function calcularTotal(itens: Item[]): number {
|
|
71
|
+
// Calculate total by summing all items
|
|
72
|
+
return itens.reduce((soma, item) => soma + item.preco, 0);
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 🛠️ Padrões Técnicos
|
|
77
|
+
|
|
78
|
+
#### Estrutura de Arquivos
|
|
79
|
+
```typescript
|
|
80
|
+
structure: {
|
|
81
|
+
commands: '.cursor/commands/', // Organizados por categoria
|
|
82
|
+
agents: '.cursor/agents/', // YAML header + Markdown
|
|
83
|
+
sessions: '.cursor/sessions/<feature>/', // Contexto de desenvolvimento
|
|
84
|
+
docs: 'docs/', // Documentação geral
|
|
85
|
+
onion: 'docs/onion/', // Docs do Sistema Onion
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
#### Padrões de Código
|
|
90
|
+
```typescript
|
|
91
|
+
standards: {
|
|
92
|
+
conventions: 'Seguir convenções da linguagem/framework',
|
|
93
|
+
readability: 'Priorizar legibilidade e manutenibilidade',
|
|
94
|
+
typeHints: 'Usar type hints quando disponível',
|
|
95
|
+
documentation: 'Documentar funções complexas',
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 🤖 Agentes Especializados
|
|
100
|
+
|
|
101
|
+
#### Uso de Agentes
|
|
102
|
+
```typescript
|
|
103
|
+
invocation: '@agente-nome'
|
|
104
|
+
// Propósito: Invocar agente específico para tarefa especializada
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Mapeamento de Agentes:**
|
|
108
|
+
```typescript
|
|
109
|
+
agents: {
|
|
110
|
+
strategic: '@product-agent', // Gestão de produto e ClickUp
|
|
111
|
+
technical: '@clickup-specialist', // Otimizações técnicas ClickUp MCP
|
|
112
|
+
ide: '@cursor-specialist', // Problemas IDE e configuração
|
|
113
|
+
development: {
|
|
114
|
+
python: '@python-developer',
|
|
115
|
+
react: '@react-developer',
|
|
116
|
+
},
|
|
117
|
+
quality: '@code-reviewer', // Review de código
|
|
118
|
+
testing: '@test-engineer', // Testes
|
|
119
|
+
architecture: '@metaspec-gate-keeper', // Validação arquitetural
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### ⚡ Performance e Produtividade
|
|
124
|
+
|
|
125
|
+
#### Otimizações
|
|
126
|
+
```typescript
|
|
127
|
+
optimization: {
|
|
128
|
+
ignore: 'Minimizar arquivos irrelevantes com .cursorignore',
|
|
129
|
+
context: 'Usar configurações otimizadas de context window',
|
|
130
|
+
chunks: 'Preferir chunks menores para melhor performance',
|
|
131
|
+
apiKeys: 'Configurar API keys apropriadas para models',
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### 🎨 Formatação ClickUp MCP - Estratégia Dual
|
|
136
|
+
|
|
137
|
+
#### Task Descriptions
|
|
138
|
+
```typescript
|
|
139
|
+
format: 'markdown_description'
|
|
140
|
+
syntax: 'Markdown nativo'
|
|
141
|
+
// USE: ## Headers, | Tabelas |, **Bold**, - Listas
|
|
142
|
+
// QUANDO: create_task, update_task descriptions
|
|
143
|
+
// TEMPLATE: '.cursor/docs/clickup/clickup-formatting.md' - seção DESCRIPTIONS
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Exemplo:**
|
|
147
|
+
```markdown
|
|
148
|
+
## Objetivo
|
|
149
|
+
Implementar autenticação JWT
|
|
150
|
+
|
|
151
|
+
## Requisitos
|
|
152
|
+
- Token expires em 24h
|
|
153
|
+
- Refresh token support
|
|
154
|
+
- Role-based access
|
|
155
|
+
|
|
156
|
+
| Endpoint | Method | Auth |
|
|
157
|
+
|----------|--------|------|
|
|
158
|
+
| /login | POST | No |
|
|
159
|
+
| /refresh | POST | Yes |
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
#### Task Comments
|
|
163
|
+
```typescript
|
|
164
|
+
format: 'commentText'
|
|
165
|
+
syntax: 'Unicode visual'
|
|
166
|
+
// USE: ━━━, ∟, ▶, ◆, ✅
|
|
167
|
+
// QUANDO: create_task_comment, progress updates, PR comments
|
|
168
|
+
// TEMPLATE: '.cursor/docs/clickup/clickup-formatting.md' - seção COMMENTS
|
|
169
|
+
// OBRIGATÓRIO: Timestamp + status em todos os comments
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Estrutura:**
|
|
173
|
+
```
|
|
174
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
175
|
+
▶ [TÍTULO DO UPDATE] - 2025-01-27 14:30
|
|
176
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
177
|
+
|
|
178
|
+
∟ Seção 1
|
|
179
|
+
◆ Item 1
|
|
180
|
+
◆ Item 2
|
|
181
|
+
|
|
182
|
+
✅ Próximos passos
|
|
183
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### 🔗 Integração ClickUp
|
|
187
|
+
|
|
188
|
+
#### Boas Práticas
|
|
189
|
+
```typescript
|
|
190
|
+
clickup: {
|
|
191
|
+
sync: 'Sempre manter tasks sincronizadas',
|
|
192
|
+
tags: 'Usar tags apropriadas para organização',
|
|
193
|
+
progress: 'Atualizar progresso em tempo real',
|
|
194
|
+
comments: 'Comentar mudanças importantes nas tasks',
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### 📚 Documentação
|
|
199
|
+
|
|
200
|
+
#### Estrutura
|
|
201
|
+
```typescript
|
|
202
|
+
documentation: {
|
|
203
|
+
location: 'docs/onion/',
|
|
204
|
+
sync: 'Manter documentação sincronizada',
|
|
205
|
+
examples: 'Usar exemplos práticos e casos de uso reais',
|
|
206
|
+
structure: 'Estruturar informação para consumo por IA',
|
|
207
|
+
troubleshooting: 'Incluir troubleshooting para problemas comuns',
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### 🧪 Testes e Qualidade
|
|
212
|
+
|
|
213
|
+
#### Padrões
|
|
214
|
+
```typescript
|
|
215
|
+
quality: {
|
|
216
|
+
tests: 'Incluir testes para funcionalidades críticas',
|
|
217
|
+
validation: 'Validar mudanças arquiteturais com @metaspec-gate-keeper',
|
|
218
|
+
linting: 'Usar linting e formatting automático',
|
|
219
|
+
coverage: 'Manter cobertura de testes adequada',
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### 🚀 Deployment
|
|
224
|
+
|
|
225
|
+
#### Fluxos
|
|
226
|
+
```typescript
|
|
227
|
+
deployment: {
|
|
228
|
+
workflow: 'Seguir fluxos /engineer/* para desenvolvimento',
|
|
229
|
+
branches: 'Usar feature branches para mudanças',
|
|
230
|
+
commits: 'Manter commits atômicos e descritivos',
|
|
231
|
+
breaking: 'Documentar breaking changes',
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Regras do Usuário
|
|
238
|
+
|
|
239
|
+
### Configuração Global
|
|
240
|
+
```typescript
|
|
241
|
+
userRules: {
|
|
242
|
+
language: 'SEMPRE responder em pt-BR',
|
|
243
|
+
code: 'SEMPRE códigos em en-US',
|
|
244
|
+
comments: 'SEMPRE comentários em pt-BR',
|
|
245
|
+
commits: 'SEMPRE commits em pt-BR',
|
|
246
|
+
documentation: 'SEMPRE usar sintaxes oficiais das ferramentas',
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Prioridades
|
|
251
|
+
```markdown
|
|
252
|
+
IMPORTANTE:
|
|
253
|
+
- SEMPRE responda em pt-BR
|
|
254
|
+
- SEMPRE códigos em en-US e respostas e comentários e commits em pt-BR
|
|
255
|
+
- SEMPRE USE AS SINTAXES E ESTRATÉGIAS DAS VERSÕES OFICIAIS DA DOCUMENTAÇÃO
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Regras do Nx
|
|
261
|
+
|
|
262
|
+
### Workspace Configuration
|
|
263
|
+
```typescript
|
|
264
|
+
nx: {
|
|
265
|
+
version: '19.5.3',
|
|
266
|
+
packageManager: 'pnpm',
|
|
267
|
+
mcpServer: 'Nx MCP server enabled',
|
|
268
|
+
}
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Guidelines Gerais
|
|
272
|
+
```typescript
|
|
273
|
+
guidelines: {
|
|
274
|
+
understanding: 'Usar nx_workspace para entender arquitetura',
|
|
275
|
+
config: 'Usar nx_docs para configurações e best practices',
|
|
276
|
+
errors: 'Usar nx_workspace para erros de config/project graph',
|
|
277
|
+
visualization: 'Usar nx_visualize_graph para demonstrar dependências',
|
|
278
|
+
}
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Guidelines de Geração
|
|
282
|
+
```typescript
|
|
283
|
+
generation: {
|
|
284
|
+
step1: 'Aprender sobre workspace com nx_workspace e nx_project_details',
|
|
285
|
+
step2: 'Obter generators com nx_generators',
|
|
286
|
+
step3: 'Decidir qual generator usar ou instalar plugin',
|
|
287
|
+
step4: 'Obter detalhes com nx_generator_schema',
|
|
288
|
+
step5: 'Usar nx_docs para aprender mais',
|
|
289
|
+
step6: 'Decidir opções minimalistas',
|
|
290
|
+
step7: 'Abrir UI com nx_open_generate_ui',
|
|
291
|
+
step8: 'Aguardar usuário finalizar',
|
|
292
|
+
step9: 'Ler log com nx_read_generator_log',
|
|
293
|
+
step10: 'Usar informações do log para continuar',
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### Guidelines de CI Error
|
|
298
|
+
```typescript
|
|
299
|
+
ciError: {
|
|
300
|
+
step1: 'Recuperar CIPEs com nx_cloud_cipe_details',
|
|
301
|
+
step2: 'Se houver erros, usar nx_cloud_fix_cipe_failure',
|
|
302
|
+
step3: 'Usar logs para identificar problema',
|
|
303
|
+
step4: 'Ajudar usuário a fixar',
|
|
304
|
+
step5: 'Garantir que problema foi resolvido rodando a task',
|
|
305
|
+
}
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
## Memórias
|
|
311
|
+
|
|
312
|
+
### Sistema de Memórias
|
|
313
|
+
```typescript
|
|
314
|
+
memory: {
|
|
315
|
+
type: 'Agent-generated memories from past conversations',
|
|
316
|
+
usage: 'Follow if deemed relevant',
|
|
317
|
+
update: 'MUST update/delete when contradicted',
|
|
318
|
+
citation: 'MUST cite using [[memory:MEMORY_ID]]',
|
|
319
|
+
rejection: 'Mention if rejecting explicit request due to memory',
|
|
320
|
+
}
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
### Memórias Ativas
|
|
324
|
+
|
|
325
|
+
#### Memory #3004810
|
|
326
|
+
```typescript
|
|
327
|
+
memory: {
|
|
328
|
+
id: 3004810,
|
|
329
|
+
content: 'User prefers code, folder structures, and database schemas in English, and comments and examples in Portuguese (pt-br)',
|
|
330
|
+
relevance: 'Code formatting and documentation',
|
|
331
|
+
}
|
|
332
|
+
// Citation: [[memory:3004810]]
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
## Estrutura de Projeto
|
|
338
|
+
|
|
339
|
+
### Diretórios Principais
|
|
340
|
+
```
|
|
341
|
+
/home/marciocar/onion/
|
|
342
|
+
├── .cursor/
|
|
343
|
+
│ ├── commands/ # 46 comandos organizados
|
|
344
|
+
│ │ ├── product/ # 10 comandos
|
|
345
|
+
│ │ ├── engineer/ # 11 comandos
|
|
346
|
+
│ │ ├── git/ # 11 comandos
|
|
347
|
+
│ │ ├── docs/ # 9 comandos
|
|
348
|
+
│ │ ├── validate/ # 1 comando
|
|
349
|
+
│ │ ├── meta/ # 1 comando
|
|
350
|
+
│ │ └── common/ # Templates e prompts
|
|
351
|
+
│ ├── agents/ # 14+ agentes especializados
|
|
352
|
+
│ ├── sessions/ # Contexto de desenvolvimento
|
|
353
|
+
│ ├── rules/ # Regras do workspace
|
|
354
|
+
│ └── utils/ # Utilidades (clickup-formatting.md)
|
|
355
|
+
├── docs/
|
|
356
|
+
│ ├── onion/ # Documentação do Sistema Onion
|
|
357
|
+
│ └── tools/ # Esta documentação
|
|
358
|
+
└── ...
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
### Arquivos de Configuração
|
|
362
|
+
```
|
|
363
|
+
.cursorignore # Otimização de contexto
|
|
364
|
+
.cursorrules # Regras do Cursor (este arquivo)
|
|
365
|
+
nx.json # Configuração Nx
|
|
366
|
+
package.json # Dependências (pnpm)
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
---
|
|
370
|
+
|
|
371
|
+
## 🎯 Hierarquia de Regras
|
|
372
|
+
|
|
373
|
+
```mermaid
|
|
374
|
+
graph TD
|
|
375
|
+
A[System Rules] -->|Override| B[Workspace Rules]
|
|
376
|
+
B -->|Override| C[User Rules]
|
|
377
|
+
C -->|Override| D[Project Rules]
|
|
378
|
+
D -->|Guide| E[Code Execution]
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### Ordem de Precedência
|
|
382
|
+
1. **System Rules** - Regras fundamentais do Cursor/Agent
|
|
383
|
+
2. **Workspace Rules** - Regras do workspace (.cursor/rules/)
|
|
384
|
+
3. **User Rules** - Preferências do usuário
|
|
385
|
+
4. **Project Rules** - Regras específicas do projeto (Nx, etc)
|
|
386
|
+
5. **Memories** - Aprendizados de interações passadas
|
|
387
|
+
|
|
388
|
+
---
|
|
389
|
+
|
|
390
|
+
## 📋 Checklists de Conformidade
|
|
391
|
+
|
|
392
|
+
### ✅ Antes de Criar Código
|
|
393
|
+
- [ ] Verificar convenções de linguagem (EN code, PT-BR comments)
|
|
394
|
+
- [ ] Seguir estrutura de diretórios do projeto
|
|
395
|
+
- [ ] Usar type hints apropriados
|
|
396
|
+
- [ ] Documentar funções complexas
|
|
397
|
+
|
|
398
|
+
### ✅ Antes de Commit
|
|
399
|
+
- [ ] Mensagem em pt-BR
|
|
400
|
+
- [ ] Código em inglês
|
|
401
|
+
- [ ] Linter passou
|
|
402
|
+
- [ ] Testes passando
|
|
403
|
+
|
|
404
|
+
### ✅ Antes de Criar Task ClickUp
|
|
405
|
+
- [ ] Usar markdown nativo em description
|
|
406
|
+
- [ ] Tags apropriadas
|
|
407
|
+
- [ ] Assignees corretos
|
|
408
|
+
- [ ] Due date definido
|
|
409
|
+
|
|
410
|
+
### ✅ Antes de Comentar Task ClickUp
|
|
411
|
+
- [ ] Usar formatação Unicode
|
|
412
|
+
- [ ] Incluir timestamp
|
|
413
|
+
- [ ] Incluir status
|
|
414
|
+
- [ ] Seguir template de comments
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
## 🔗 Recursos Relacionados
|
|
419
|
+
- [Ferramentas MCP](./mcps.md)
|
|
420
|
+
- [Agentes Especializados](./agents.md)
|
|
421
|
+
- [Comandos .cursor/](./commands.md)
|
|
422
|
+
- [Workflows](./workflows.md)
|
|
423
|
+
|