@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,360 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow
|
|
3
|
+
description: Validar completude de workflows do Sistema Onion.
|
|
4
|
+
model: sonnet
|
|
5
|
+
category: validate
|
|
6
|
+
tags: [validation, workflow, completeness]
|
|
7
|
+
version: "3.0.0"
|
|
8
|
+
updated: "2025-11-24"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# 🔍 Validação Completa de Workflow
|
|
12
|
+
|
|
13
|
+
Você é um assistente especializado em **validação de completude de workflows** do Sistema Onion. Seu papel é verificar que todos os passos de um workflow foram executados corretamente e identificar pendências.
|
|
14
|
+
|
|
15
|
+
## 🎯 **Objetivo**
|
|
16
|
+
|
|
17
|
+
Validar que workflows do Sistema Onion foram executados completamente:
|
|
18
|
+
- **Git workflows**: PR, sync, branch management
|
|
19
|
+
- **Session management**: Arquivamento, organização
|
|
20
|
+
- **Repository state**: Sincronização, limpeza
|
|
21
|
+
- **Compliance**: Branch protection, GitFlow
|
|
22
|
+
|
|
23
|
+
## 📋 **Parâmetros**
|
|
24
|
+
|
|
25
|
+
### **Sintaxe:**
|
|
26
|
+
```bash
|
|
27
|
+
/validate/workflow # Validação completa atual
|
|
28
|
+
/validate/workflow pr-merge # Validação específica de PR merge
|
|
29
|
+
/validate/workflow cleanup # Validação de limpeza/housekeeping
|
|
30
|
+
/validate/workflow development # Validação de desenvolvimento
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## 🔍 **Sistema de Validação**
|
|
34
|
+
|
|
35
|
+
### **Validações Executadas:**
|
|
36
|
+
|
|
37
|
+
#### **1. 🔄 Sincronização Local vs Remoto**
|
|
38
|
+
- Verificar se commits locais foram pushados
|
|
39
|
+
- Detectar divergências entre local e remoto
|
|
40
|
+
- Validar conectividade com remote
|
|
41
|
+
- Status de branches protegidas
|
|
42
|
+
|
|
43
|
+
#### **2. 🧹 Estado do Working Directory**
|
|
44
|
+
- Verificar mudanças não commitadas
|
|
45
|
+
- Validar arquivos não trackados
|
|
46
|
+
- Compliance com branch protection
|
|
47
|
+
- Status de staging area
|
|
48
|
+
|
|
49
|
+
#### **3. 📁 Gestão de Sessões**
|
|
50
|
+
- Sessões ativas vs arquivadas
|
|
51
|
+
- Completude de documentação
|
|
52
|
+
- Organização de arquivos históricos
|
|
53
|
+
- Integridade de metadados
|
|
54
|
+
|
|
55
|
+
#### **4. 🌿 Limpeza de Branches**
|
|
56
|
+
- Branches temporárias órfãs
|
|
57
|
+
- Branches merged não removidas
|
|
58
|
+
- Remote branch cleanup
|
|
59
|
+
- Protection compliance
|
|
60
|
+
|
|
61
|
+
#### **5. 🛡️ Compliance e Segurança**
|
|
62
|
+
- Branch protection ativa
|
|
63
|
+
- PR workflow compliance
|
|
64
|
+
- GitFlow best practices
|
|
65
|
+
- Security validations
|
|
66
|
+
|
|
67
|
+
#### **6. 🔗 Integração ClickUp**
|
|
68
|
+
- Status de tasks sincronizado
|
|
69
|
+
- Comments e updates realizados
|
|
70
|
+
- Tags apropriadas aplicadas
|
|
71
|
+
- Workflow completion tracking
|
|
72
|
+
|
|
73
|
+
## ⚙️ **Implementação**
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Função principal de validação
|
|
77
|
+
function executeWorkflowValidation() {
|
|
78
|
+
local validation_type="${1:-complete}"
|
|
79
|
+
local session_name="$2"
|
|
80
|
+
|
|
81
|
+
echo "🔍 VALIDAÇÃO DE WORKFLOW: $validation_type"
|
|
82
|
+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
83
|
+
echo ""
|
|
84
|
+
|
|
85
|
+
local total_checks=0
|
|
86
|
+
local passed_checks=0
|
|
87
|
+
local warnings=0
|
|
88
|
+
local errors=0
|
|
89
|
+
|
|
90
|
+
# Array para armazenar resultados
|
|
91
|
+
local validation_results=()
|
|
92
|
+
|
|
93
|
+
# 1. VALIDAÇÃO DE SINCRONIZAÇÃO
|
|
94
|
+
echo "🔄 [1/6] Sincronização Local vs Remoto"
|
|
95
|
+
if validateSyncStatus; then
|
|
96
|
+
validation_results+=("✅ Sincronização: Local e remoto alinhados")
|
|
97
|
+
((passed_checks++))
|
|
98
|
+
else
|
|
99
|
+
validation_results+=("❌ Sincronização: Discrepâncias detectadas")
|
|
100
|
+
((errors++))
|
|
101
|
+
fi
|
|
102
|
+
((total_checks++))
|
|
103
|
+
|
|
104
|
+
# 2. VALIDAÇÃO DE WORKING DIRECTORY
|
|
105
|
+
echo "🧹 [2/6] Working Directory"
|
|
106
|
+
if validateWorkingDirectory; then
|
|
107
|
+
validation_results+=("✅ Working Dir: Limpo e organizado")
|
|
108
|
+
((passed_checks++))
|
|
109
|
+
else
|
|
110
|
+
validation_results+=("⚠️ Working Dir: Mudanças pendentes")
|
|
111
|
+
((warnings++))
|
|
112
|
+
fi
|
|
113
|
+
((total_checks++))
|
|
114
|
+
|
|
115
|
+
# 3. VALIDAÇÃO DE SESSÕES
|
|
116
|
+
echo "📁 [3/6] Gestão de Sessões"
|
|
117
|
+
if validateSessionManagement "$session_name"; then
|
|
118
|
+
validation_results+=("✅ Sessões: Corretamente organizadas")
|
|
119
|
+
((passed_checks++))
|
|
120
|
+
else
|
|
121
|
+
validation_results+=("⚠️ Sessões: Requer organização")
|
|
122
|
+
((warnings++))
|
|
123
|
+
fi
|
|
124
|
+
((total_checks++))
|
|
125
|
+
|
|
126
|
+
# 4. VALIDAÇÃO DE BRANCHES
|
|
127
|
+
echo "🌿 [4/6] Limpeza de Branches"
|
|
128
|
+
if validateBranchCleanup; then
|
|
129
|
+
validation_results+=("✅ Branches: Limpeza completa")
|
|
130
|
+
((passed_checks++))
|
|
131
|
+
else
|
|
132
|
+
validation_results+=("⚠️ Branches: Limpeza recomendada")
|
|
133
|
+
((warnings++))
|
|
134
|
+
fi
|
|
135
|
+
((total_checks++))
|
|
136
|
+
|
|
137
|
+
# 5. VALIDAÇÃO DE COMPLIANCE
|
|
138
|
+
echo "🛡️ [5/6] Compliance e Segurança"
|
|
139
|
+
if validateCompliance; then
|
|
140
|
+
validation_results+=("✅ Compliance: Todas as proteções ativas")
|
|
141
|
+
((passed_checks++))
|
|
142
|
+
else
|
|
143
|
+
validation_results+=("❌ Compliance: Proteções requeridas")
|
|
144
|
+
((errors++))
|
|
145
|
+
fi
|
|
146
|
+
((total_checks++))
|
|
147
|
+
|
|
148
|
+
# 6. VALIDAÇÃO DE INTEGRAÇÃO
|
|
149
|
+
echo "🔗 [6/6] Integração ClickUp"
|
|
150
|
+
if validateClickUpIntegration; then
|
|
151
|
+
validation_results+=("✅ ClickUp: Integração sincronizada")
|
|
152
|
+
((passed_checks++))
|
|
153
|
+
else
|
|
154
|
+
validation_results+=("⚠️ ClickUp: Verificar sincronização")
|
|
155
|
+
((warnings++))
|
|
156
|
+
fi
|
|
157
|
+
((total_checks++))
|
|
158
|
+
|
|
159
|
+
# RESULTADO FINAL
|
|
160
|
+
echo ""
|
|
161
|
+
echo "📊 RESULTADO FINAL DA VALIDAÇÃO"
|
|
162
|
+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
163
|
+
echo ""
|
|
164
|
+
|
|
165
|
+
# Estatísticas
|
|
166
|
+
echo "📈 ESTATÍSTICAS:"
|
|
167
|
+
echo " ▶ Total de verificações: $total_checks"
|
|
168
|
+
echo " ▶ Aprovadas: $passed_checks"
|
|
169
|
+
echo " ▶ Avisos: $warnings"
|
|
170
|
+
echo " ▶ Erros: $errors"
|
|
171
|
+
echo ""
|
|
172
|
+
|
|
173
|
+
# Score de qualidade
|
|
174
|
+
local quality_score=$(( (passed_checks * 100) / total_checks ))
|
|
175
|
+
echo "🎯 SCORE DE QUALIDADE: $quality_score%"
|
|
176
|
+
echo ""
|
|
177
|
+
|
|
178
|
+
# Resultados detalhados
|
|
179
|
+
echo "📋 RESULTADOS DETALHADOS:"
|
|
180
|
+
for result in "${validation_results[@]}"; do
|
|
181
|
+
echo " $result"
|
|
182
|
+
done
|
|
183
|
+
echo ""
|
|
184
|
+
|
|
185
|
+
# Status final e recomendações
|
|
186
|
+
if [[ $errors -eq 0 ]]; then
|
|
187
|
+
if [[ $warnings -eq 0 ]]; then
|
|
188
|
+
echo "🎉 STATUS: WORKFLOW PERFEITO!"
|
|
189
|
+
echo "✅ Todos os critérios atendidos"
|
|
190
|
+
echo "🚀 Sistema pronto para próximas operações"
|
|
191
|
+
|
|
192
|
+
# Adicionar comentário no ClickUp se aplicável
|
|
193
|
+
if [[ -n "$CLICKUP_TASK_ID" ]]; then
|
|
194
|
+
echo ""
|
|
195
|
+
echo "📝 Adicionando validação ao ClickUp..."
|
|
196
|
+
# Aqui seria a integração real com ClickUp
|
|
197
|
+
fi
|
|
198
|
+
|
|
199
|
+
return 0
|
|
200
|
+
else
|
|
201
|
+
echo "🔶 STATUS: WORKFLOW VÁLIDO COM RECOMENDAÇÕES"
|
|
202
|
+
echo "💡 $warnings itens recomendados para otimização"
|
|
203
|
+
echo "✅ Funcionalidade não comprometida"
|
|
204
|
+
|
|
205
|
+
echo ""
|
|
206
|
+
echo "🛠️ AÇÕES RECOMENDADAS:"
|
|
207
|
+
if [[ $warnings -gt 0 ]]; then
|
|
208
|
+
echo " • Revisar avisos listados acima"
|
|
209
|
+
echo " • Aplicar melhorias sugeridas"
|
|
210
|
+
echo " • Re-executar validação após ajustes"
|
|
211
|
+
fi
|
|
212
|
+
|
|
213
|
+
return 1
|
|
214
|
+
fi
|
|
215
|
+
else
|
|
216
|
+
echo "🚨 STATUS: WORKFLOW INCOMPLETO"
|
|
217
|
+
echo "❌ $errors erro(s) crítico(s) detectado(s)"
|
|
218
|
+
echo "🛠️ Correção obrigatória antes de prosseguir"
|
|
219
|
+
|
|
220
|
+
echo ""
|
|
221
|
+
echo "🚨 AÇÕES OBRIGATÓRIAS:"
|
|
222
|
+
echo " • Corrigir todos os erros listados"
|
|
223
|
+
echo " • Verificar integridade do sistema"
|
|
224
|
+
echo " • Re-executar validação completa"
|
|
225
|
+
echo " • Não prosseguir até resolução"
|
|
226
|
+
|
|
227
|
+
return 2
|
|
228
|
+
fi
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
# Funções auxiliares de validação
|
|
232
|
+
function validateSyncStatus() {
|
|
233
|
+
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
|
234
|
+
|
|
235
|
+
if git show-ref --verify --quiet refs/remotes/origin/$current_branch; then
|
|
236
|
+
local_commit=$(git rev-parse HEAD)
|
|
237
|
+
remote_commit=$(git rev-parse origin/$current_branch)
|
|
238
|
+
|
|
239
|
+
[[ "$local_commit" == "$remote_commit" ]]
|
|
240
|
+
else
|
|
241
|
+
false
|
|
242
|
+
fi
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function validateWorkingDirectory() {
|
|
246
|
+
[[ $(git status --porcelain | wc -l) -eq 0 ]]
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function validateSessionManagement() {
|
|
250
|
+
local session_name="$1"
|
|
251
|
+
|
|
252
|
+
if [[ -n "$session_name" ]]; then
|
|
253
|
+
# Verificar se sessão está arquivada
|
|
254
|
+
[[ ! -d ".cursor/sessions/$session_name" ]] &&
|
|
255
|
+
[[ -d ".cursor/sessions/archived" ]] &&
|
|
256
|
+
ls .cursor/sessions/archived/ | grep -q "$session_name"
|
|
257
|
+
else
|
|
258
|
+
# Verificar se há sessões ativas desnecessárias
|
|
259
|
+
active_sessions=$(find .cursor/sessions -maxdepth 1 -type d ! -name "sessions" ! -name "archived" | wc -l)
|
|
260
|
+
[[ $active_sessions -eq 0 ]]
|
|
261
|
+
fi
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function validateBranchCleanup() {
|
|
265
|
+
orphan_branches=$(git branch | grep -E "feature/|hotfix/|bugfix/" | wc -l)
|
|
266
|
+
[[ $orphan_branches -eq 0 ]]
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
function validateCompliance() {
|
|
270
|
+
# Verificar se sistema de proteção está ativo
|
|
271
|
+
# (Simplified check - would need more sophisticated validation)
|
|
272
|
+
[[ -f ".cursor/commands/git/sync.md" ]] &&
|
|
273
|
+
grep -q "Branch Protection" ".cursor/commands/git/sync.md"
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function validateClickUpIntegration() {
|
|
277
|
+
# Verificar se há task ID configurada ou se integração está funcionando
|
|
278
|
+
# (Simplified check)
|
|
279
|
+
true # Sempre retorna true por agora
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
# Execução baseada em parâmetros
|
|
283
|
+
case "${1:-complete}" in
|
|
284
|
+
"pr-merge")
|
|
285
|
+
executeWorkflowValidation "pr-merge" "$2"
|
|
286
|
+
;;
|
|
287
|
+
"cleanup")
|
|
288
|
+
executeWorkflowValidation "cleanup" "$2"
|
|
289
|
+
;;
|
|
290
|
+
"development")
|
|
291
|
+
executeWorkflowValidation "development" "$2"
|
|
292
|
+
;;
|
|
293
|
+
"complete"|*)
|
|
294
|
+
executeWorkflowValidation "complete" "$2"
|
|
295
|
+
;;
|
|
296
|
+
esac
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
## 🎯 **Uso Recomendado**
|
|
300
|
+
|
|
301
|
+
### **Quando Usar:**
|
|
302
|
+
- **Após /git/sync**: Validar sincronização completa
|
|
303
|
+
- **Após /engineer/pr**: Validar PR workflow
|
|
304
|
+
- **Após housekeeping**: Validar limpeza
|
|
305
|
+
- **Diagnóstico**: Quando algo parecer errado
|
|
306
|
+
- **Antes de deploy**: Validação final de qualidade
|
|
307
|
+
|
|
308
|
+
### **Integração Sugerida:**
|
|
309
|
+
```bash
|
|
310
|
+
# Uso nos outros comandos
|
|
311
|
+
/git/sync develop && /validate/workflow cleanup
|
|
312
|
+
|
|
313
|
+
# Uso independente para diagnóstico
|
|
314
|
+
/validate/workflow
|
|
315
|
+
|
|
316
|
+
# Uso específico para validation de PR
|
|
317
|
+
/validate/workflow pr-merge
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
## 📊 **Output de Exemplo**
|
|
321
|
+
|
|
322
|
+
```
|
|
323
|
+
🔍 VALIDAÇÃO DE WORKFLOW: complete
|
|
324
|
+
|
|
325
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
326
|
+
|
|
327
|
+
🔄 [1/6] Sincronização Local vs Remoto
|
|
328
|
+
🧹 [2/6] Working Directory
|
|
329
|
+
📁 [3/6] Gestão de Sessões
|
|
330
|
+
🌿 [4/6] Limpeza de Branches
|
|
331
|
+
🛡️ [5/6] Compliance e Segurança
|
|
332
|
+
🔗 [6/6] Integração ClickUp
|
|
333
|
+
|
|
334
|
+
📊 RESULTADO FINAL DA VALIDAÇÃO
|
|
335
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
336
|
+
|
|
337
|
+
📈 ESTATÍSTICAS:
|
|
338
|
+
▶ Total de verificações: 6
|
|
339
|
+
▶ Aprovadas: 6
|
|
340
|
+
▶ Avisos: 0
|
|
341
|
+
▶ Erros: 0
|
|
342
|
+
|
|
343
|
+
🎯 SCORE DE QUALIDADE: 100%
|
|
344
|
+
|
|
345
|
+
📋 RESULTADOS DETALHADOS:
|
|
346
|
+
✅ Sincronização: Local e remoto alinhados
|
|
347
|
+
✅ Working Dir: Limpo e organizado
|
|
348
|
+
✅ Sessões: Corretamente organizadas
|
|
349
|
+
✅ Branches: Limpeza completa
|
|
350
|
+
✅ Compliance: Todas as proteções ativas
|
|
351
|
+
✅ ClickUp: Integração sincronizada
|
|
352
|
+
|
|
353
|
+
🎉 STATUS: WORKFLOW PERFEITO!
|
|
354
|
+
✅ Todos os critérios atendidos
|
|
355
|
+
🚀 Sistema pronto para próximas operações
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
*Sistema Onion - Comando `/validate/workflow` v1.0*
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: warm-up
|
|
3
|
+
description: |
|
|
4
|
+
Preparação geral do projeto - contexto completo do Sistema Onion.
|
|
5
|
+
Revisa README, estrutura de documentação e meta especificações.
|
|
6
|
+
model: sonnet
|
|
7
|
+
category: general
|
|
8
|
+
tags: [warmup, context, preparation, overview]
|
|
9
|
+
version: "3.0.0"
|
|
10
|
+
updated: "2025-12-02"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 🔥 Warm-up Geral do Projeto
|
|
14
|
+
|
|
15
|
+
Preparação completa do contexto geral do Sistema Onion para sessões de trabalho.
|
|
16
|
+
|
|
17
|
+
## 🎯 Objetivo
|
|
18
|
+
|
|
19
|
+
Estabelecer contexto completo do projeto incluindo:
|
|
20
|
+
- Visão geral do Sistema Onion
|
|
21
|
+
- Estrutura completa de documentação
|
|
22
|
+
- Meta especificações (constituição do sistema)
|
|
23
|
+
- Mapeamento de recursos disponíveis
|
|
24
|
+
|
|
25
|
+
## 📋 Checklist de Preparação
|
|
26
|
+
|
|
27
|
+
### 1. README Principal
|
|
28
|
+
- ✅ Revisar `README.md` na raiz do projeto
|
|
29
|
+
- ✅ Entender estrutura do Sistema Onion v3.0
|
|
30
|
+
- ✅ Identificar comandos e agentes principais
|
|
31
|
+
- ✅ Mapear integrações disponíveis (ClickUp, Asana, Linear)
|
|
32
|
+
|
|
33
|
+
### 2. Estrutura de Documentação
|
|
34
|
+
- ✅ Listar arquivos em `docs/` e manter no contexto
|
|
35
|
+
- ✅ Revisar `docs/INDEX.md` (índice central)
|
|
36
|
+
- ✅ Mapear estrutura:
|
|
37
|
+
- `docs/onion/` - Sistema Onion (12 arquivos)
|
|
38
|
+
- `docs/knowbase/` - Knowledge Bases (16 arquivos)
|
|
39
|
+
- `docs/meta-specs/` - Meta Especificações
|
|
40
|
+
- `docs/analysis/` - Análises
|
|
41
|
+
- `docs/plans/` - Planos de execução
|
|
42
|
+
|
|
43
|
+
### 3. Meta Especificações
|
|
44
|
+
- ✅ Revisar `docs/meta-specs/index.md`
|
|
45
|
+
- ✅ Memorizar hierarquia: Meta Specs (L0) → Domain Specs (L1) → Feature Specs (L2) → Task Specs (L3)
|
|
46
|
+
- ✅ Entender arquivos planejados:
|
|
47
|
+
- `architecture.md` - Padrões arquiteturais
|
|
48
|
+
- `code-standards.md` - Padrões de código
|
|
49
|
+
- `agents.md` - Padrões para agentes
|
|
50
|
+
- `commands.md` - Padrões para comandos
|
|
51
|
+
- `integrations.md` - Padrões para integrações
|
|
52
|
+
- ✅ Conhecer processo de validação via `@metaspec-gate-keeper`
|
|
53
|
+
|
|
54
|
+
### 4. Recursos Principais
|
|
55
|
+
- ✅ Comando `/onion` - ponto de entrada inteligente
|
|
56
|
+
- ✅ Agente `@onion` - orquestrador master
|
|
57
|
+
- ✅ Task Manager Abstraction (ClickUp, Asana, Linear)
|
|
58
|
+
- ✅ Framework EXTRACT para reuniões
|
|
59
|
+
|
|
60
|
+
## 🔍 Contexto a Manter
|
|
61
|
+
|
|
62
|
+
### Documentação Essencial
|
|
63
|
+
- `README.md` - Visão geral completa
|
|
64
|
+
- `docs/INDEX.md` - Hub de navegação
|
|
65
|
+
- `docs/onion/commands-guide.md` - Todos os comandos
|
|
66
|
+
- `docs/onion/agents-reference.md` - Todos os agentes
|
|
67
|
+
- `docs/meta-specs/index.md` - Meta especificações
|
|
68
|
+
|
|
69
|
+
### Estrutura de Comandos
|
|
70
|
+
- 73 comandos em 8 categorias
|
|
71
|
+
- 45 agentes especializados em 9 categorias
|
|
72
|
+
- Knowledge Bases estruturadas para IA
|
|
73
|
+
|
|
74
|
+
## 💡 Quando Usar Este Warm-up
|
|
75
|
+
|
|
76
|
+
- ✅ Primeira vez no projeto
|
|
77
|
+
- ✅ Retorno após período ausente
|
|
78
|
+
- ✅ Mudança de contexto de trabalho
|
|
79
|
+
- ✅ Necessidade de visão geral completa
|
|
80
|
+
|
|
81
|
+
## 🔗 Próximos Passos
|
|
82
|
+
|
|
83
|
+
Após este warm-up geral, use warm-ups específicos:
|
|
84
|
+
- `/product/warm-up` - Para trabalho de produto
|
|
85
|
+
- `/engineer/warm-up` - Para trabalho de engenharia
|
|
86
|
+
|
|
87
|
+
## ⚠️ Notas
|
|
88
|
+
|
|
89
|
+
- Este warm-up fornece contexto geral, não técnico profundo
|
|
90
|
+
- Para trabalho específico, use warm-ups de categoria
|
|
91
|
+
- Mantenha lista de arquivos `docs/` no contexto para referência rápida
|