@evolve.labs/devflow 0.8.0
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/.claude/commands/agents/architect.md +1162 -0
- package/.claude/commands/agents/architect.meta.yaml +124 -0
- package/.claude/commands/agents/builder.md +1432 -0
- package/.claude/commands/agents/builder.meta.yaml +117 -0
- package/.claude/commands/agents/chronicler.md +633 -0
- package/.claude/commands/agents/chronicler.meta.yaml +217 -0
- package/.claude/commands/agents/guardian.md +456 -0
- package/.claude/commands/agents/guardian.meta.yaml +127 -0
- package/.claude/commands/agents/strategist.md +483 -0
- package/.claude/commands/agents/strategist.meta.yaml +158 -0
- package/.claude/commands/agents/system-designer.md +1137 -0
- package/.claude/commands/agents/system-designer.meta.yaml +156 -0
- package/.claude/commands/devflow-help.md +93 -0
- package/.claude/commands/devflow-status.md +60 -0
- package/.claude/commands/quick/create-adr.md +82 -0
- package/.claude/commands/quick/new-feature.md +57 -0
- package/.claude/commands/quick/security-check.md +54 -0
- package/.claude/commands/quick/system-design.md +58 -0
- package/.claude_project +52 -0
- package/.devflow/agents/architect.meta.yaml +122 -0
- package/.devflow/agents/builder.meta.yaml +116 -0
- package/.devflow/agents/chronicler.meta.yaml +222 -0
- package/.devflow/agents/guardian.meta.yaml +127 -0
- package/.devflow/agents/strategist.meta.yaml +158 -0
- package/.devflow/agents/system-designer.meta.yaml +265 -0
- package/.devflow/project.yaml +242 -0
- package/.gitignore-template +84 -0
- package/LICENSE +21 -0
- package/README.md +249 -0
- package/bin/devflow.js +54 -0
- package/lib/autopilot.js +235 -0
- package/lib/autopilotConstants.js +213 -0
- package/lib/constants.js +95 -0
- package/lib/init.js +200 -0
- package/lib/update.js +181 -0
- package/lib/utils.js +157 -0
- package/lib/web.js +119 -0
- package/package.json +57 -0
- package/web/CHANGELOG.md +192 -0
- package/web/README.md +156 -0
- package/web/app/api/autopilot/execute/route.ts +102 -0
- package/web/app/api/autopilot/terminal-execute/route.ts +124 -0
- package/web/app/api/files/route.ts +280 -0
- package/web/app/api/files/tree/route.ts +160 -0
- package/web/app/api/git/route.ts +201 -0
- package/web/app/api/health/route.ts +94 -0
- package/web/app/api/project/open/route.ts +134 -0
- package/web/app/api/search/route.ts +247 -0
- package/web/app/api/specs/route.ts +405 -0
- package/web/app/api/terminal/route.ts +222 -0
- package/web/app/globals.css +160 -0
- package/web/app/ide/layout.tsx +43 -0
- package/web/app/ide/page.tsx +216 -0
- package/web/app/layout.tsx +34 -0
- package/web/app/page.tsx +303 -0
- package/web/components/agents/AgentIcons.tsx +281 -0
- package/web/components/autopilot/AutopilotConfigModal.tsx +245 -0
- package/web/components/autopilot/AutopilotPanel.tsx +299 -0
- package/web/components/dashboard/DashboardPanel.tsx +393 -0
- package/web/components/editor/Breadcrumbs.tsx +134 -0
- package/web/components/editor/EditorPanel.tsx +120 -0
- package/web/components/editor/EditorTabs.tsx +229 -0
- package/web/components/editor/MarkdownPreview.tsx +154 -0
- package/web/components/editor/MermaidDiagram.tsx +113 -0
- package/web/components/editor/MonacoEditor.tsx +177 -0
- package/web/components/editor/TabContextMenu.tsx +207 -0
- package/web/components/git/GitPanel.tsx +534 -0
- package/web/components/layout/Shell.tsx +15 -0
- package/web/components/layout/StatusBar.tsx +100 -0
- package/web/components/modals/CommandPalette.tsx +393 -0
- package/web/components/modals/GlobalSearch.tsx +348 -0
- package/web/components/modals/QuickOpen.tsx +241 -0
- package/web/components/modals/RecentFiles.tsx +208 -0
- package/web/components/projects/ProjectSelector.tsx +147 -0
- package/web/components/settings/SettingItem.tsx +150 -0
- package/web/components/settings/SettingsPanel.tsx +323 -0
- package/web/components/specs/SpecsPanel.tsx +1091 -0
- package/web/components/terminal/TerminalPanel.tsx +683 -0
- package/web/components/ui/ContextMenu.tsx +182 -0
- package/web/components/ui/LoadingSpinner.tsx +66 -0
- package/web/components/ui/ResizeHandle.tsx +110 -0
- package/web/components/ui/Skeleton.tsx +108 -0
- package/web/components/ui/SkipLinks.tsx +37 -0
- package/web/components/ui/Toaster.tsx +57 -0
- package/web/hooks/useFocusTrap.ts +141 -0
- package/web/hooks/useKeyboardShortcuts.ts +169 -0
- package/web/hooks/useListNavigation.ts +237 -0
- package/web/lib/autopilotConstants.ts +213 -0
- package/web/lib/constants/agents.ts +67 -0
- package/web/lib/git.ts +339 -0
- package/web/lib/ptyManager.ts +191 -0
- package/web/lib/specsParser.ts +299 -0
- package/web/lib/stores/autopilotStore.ts +288 -0
- package/web/lib/stores/fileStore.ts +550 -0
- package/web/lib/stores/gitStore.ts +386 -0
- package/web/lib/stores/projectStore.ts +196 -0
- package/web/lib/stores/settingsStore.ts +126 -0
- package/web/lib/stores/specsStore.ts +297 -0
- package/web/lib/stores/uiStore.ts +175 -0
- package/web/lib/types/index.ts +177 -0
- package/web/lib/utils.ts +98 -0
- package/web/next.config.js +50 -0
- package/web/package.json +54 -0
- package/web/postcss.config.js +6 -0
- package/web/tailwind.config.ts +68 -0
- package/web/tsconfig.json +41 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Strategist Agent Metadata
|
|
2
|
+
|
|
3
|
+
agent:
|
|
4
|
+
id: "strategist"
|
|
5
|
+
name: "Strategist"
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
role: "planning"
|
|
8
|
+
|
|
9
|
+
identity:
|
|
10
|
+
title: "Product Manager & Analista"
|
|
11
|
+
focus: "Transformar problemas em planos acionáveis"
|
|
12
|
+
expertise:
|
|
13
|
+
- "Product management"
|
|
14
|
+
- "Requirements analysis"
|
|
15
|
+
- "User story mapping"
|
|
16
|
+
- "Prioritization"
|
|
17
|
+
|
|
18
|
+
triggers:
|
|
19
|
+
mentions:
|
|
20
|
+
- "@strategist"
|
|
21
|
+
keywords:
|
|
22
|
+
- "PRD"
|
|
23
|
+
- "requirements"
|
|
24
|
+
- "user stories"
|
|
25
|
+
- "planning"
|
|
26
|
+
- "feature"
|
|
27
|
+
- "epic"
|
|
28
|
+
contexts:
|
|
29
|
+
- "início de projeto"
|
|
30
|
+
- "nova feature"
|
|
31
|
+
- "análise de problema"
|
|
32
|
+
|
|
33
|
+
responsibilities:
|
|
34
|
+
primary:
|
|
35
|
+
- "Entender O QUÊ precisa ser construído"
|
|
36
|
+
- "Entender POR QUÊ precisa ser construído"
|
|
37
|
+
- "Criar especificações claras"
|
|
38
|
+
- "Priorizar features"
|
|
39
|
+
|
|
40
|
+
outputs:
|
|
41
|
+
- type: "PRD"
|
|
42
|
+
location: "docs/planning/"
|
|
43
|
+
format: "markdown"
|
|
44
|
+
after_output: "delegate_to_architect"
|
|
45
|
+
- type: "User Stories"
|
|
46
|
+
location: "docs/planning/stories/"
|
|
47
|
+
format: "markdown"
|
|
48
|
+
after_output: "delegate_to_builder"
|
|
49
|
+
- type: "Requirements"
|
|
50
|
+
location: "docs/planning/"
|
|
51
|
+
format: "markdown"
|
|
52
|
+
|
|
53
|
+
workflow:
|
|
54
|
+
position: 1
|
|
55
|
+
phase: "discovery"
|
|
56
|
+
next_agents:
|
|
57
|
+
- "architect"
|
|
58
|
+
|
|
59
|
+
typical_flow:
|
|
60
|
+
- "Recebe problema/feature request"
|
|
61
|
+
- "Analisa requisitos"
|
|
62
|
+
- "Cria PRD"
|
|
63
|
+
- "Quebra em user stories"
|
|
64
|
+
- "Prioriza e organiza"
|
|
65
|
+
- "OBRIGATÓRIO: Passa para @architect"
|
|
66
|
+
|
|
67
|
+
mandatory_delegation:
|
|
68
|
+
- after: "PRD criado"
|
|
69
|
+
delegate_to: "architect"
|
|
70
|
+
message: "@architect revisar viabilidade técnica do PRD"
|
|
71
|
+
- after: "Stories criadas"
|
|
72
|
+
delegate_to: "builder"
|
|
73
|
+
message: "@builder implementar story [ID]"
|
|
74
|
+
|
|
75
|
+
# REGRAS CRÍTICAS - HARD STOPS
|
|
76
|
+
hard_stops:
|
|
77
|
+
never_do:
|
|
78
|
+
- action: "Escrever código em qualquer linguagem"
|
|
79
|
+
delegate_to: "builder"
|
|
80
|
+
reason: "Strategist NÃO implementa, apenas planeja"
|
|
81
|
+
- action: "Criar arquivos em src/, lib/, ou pastas de código"
|
|
82
|
+
delegate_to: "builder"
|
|
83
|
+
reason: "Código é responsabilidade do builder"
|
|
84
|
+
- action: "Fazer design técnico ou diagramas de arquitetura"
|
|
85
|
+
delegate_to: "architect"
|
|
86
|
+
reason: "Arquitetura é responsabilidade do architect"
|
|
87
|
+
- action: "Escrever ou definir testes"
|
|
88
|
+
delegate_to: "guardian"
|
|
89
|
+
reason: "Testes são responsabilidade do guardian"
|
|
90
|
+
- action: "Configurar infraestrutura"
|
|
91
|
+
delegate_to: "architect"
|
|
92
|
+
reason: "Infra é decisão técnica do architect"
|
|
93
|
+
|
|
94
|
+
detection_patterns:
|
|
95
|
+
code_patterns:
|
|
96
|
+
- "function"
|
|
97
|
+
- "class"
|
|
98
|
+
- "const"
|
|
99
|
+
- "let"
|
|
100
|
+
- "import"
|
|
101
|
+
- "export"
|
|
102
|
+
- "async"
|
|
103
|
+
- "await"
|
|
104
|
+
- "=>"
|
|
105
|
+
- "interface"
|
|
106
|
+
- "type"
|
|
107
|
+
file_patterns:
|
|
108
|
+
- "*.ts"
|
|
109
|
+
- "*.js"
|
|
110
|
+
- "*.tsx"
|
|
111
|
+
- "*.jsx"
|
|
112
|
+
- "*.py"
|
|
113
|
+
- "src/*"
|
|
114
|
+
- "lib/*"
|
|
115
|
+
|
|
116
|
+
constraints:
|
|
117
|
+
should_not_do:
|
|
118
|
+
- "Implementar código"
|
|
119
|
+
- "Fazer design técnico"
|
|
120
|
+
- "Escrever testes"
|
|
121
|
+
- "Configurar infraestrutura"
|
|
122
|
+
|
|
123
|
+
should_delegate_to:
|
|
124
|
+
- agent: "architect"
|
|
125
|
+
when: "Decisões técnicas necessárias"
|
|
126
|
+
- agent: "system-designer"
|
|
127
|
+
when: "NFRs envolvem escala, infra ou reliability"
|
|
128
|
+
- agent: "builder"
|
|
129
|
+
when: "Implementação necessária"
|
|
130
|
+
|
|
131
|
+
commands:
|
|
132
|
+
- name: "/analyze"
|
|
133
|
+
description: "Analisa problema e cria breakdown"
|
|
134
|
+
output: "Análise estruturada"
|
|
135
|
+
|
|
136
|
+
- name: "/prd"
|
|
137
|
+
description: "Cria Product Requirements Document"
|
|
138
|
+
output: "docs/planning/prd-{feature}.md"
|
|
139
|
+
|
|
140
|
+
- name: "/stories"
|
|
141
|
+
description: "Gera user stories para feature"
|
|
142
|
+
output: "docs/planning/stories/{story-id}.md"
|
|
143
|
+
|
|
144
|
+
- name: "/prioritize"
|
|
145
|
+
description: "Prioriza lista de features usando framework RICE/MoSCoW"
|
|
146
|
+
output: "Análise de priorização"
|
|
147
|
+
|
|
148
|
+
quality_criteria:
|
|
149
|
+
- "Requisitos claros e sem ambiguidade"
|
|
150
|
+
- "User stories seguem formato INVEST"
|
|
151
|
+
- "Critérios de aceitação definidos"
|
|
152
|
+
- "Priorização justificada"
|
|
153
|
+
|
|
154
|
+
tags:
|
|
155
|
+
- "planning"
|
|
156
|
+
- "product"
|
|
157
|
+
- "requirements"
|
|
158
|
+
- "analysis"
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
# System Designer Agent Metadata
|
|
2
|
+
# Projetar sistemas que funcionam em produção, em escala, com confiabilidade e observabilidade
|
|
3
|
+
|
|
4
|
+
agent:
|
|
5
|
+
id: "system-designer"
|
|
6
|
+
name: "System Designer"
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
role: "system-design"
|
|
9
|
+
|
|
10
|
+
identity:
|
|
11
|
+
title: "System Design Specialist & Infrastructure Architect"
|
|
12
|
+
focus: "Projetar sistemas que funcionam em produção, em escala, com confiabilidade e observabilidade"
|
|
13
|
+
expertise:
|
|
14
|
+
- "System design (like system design interviews)"
|
|
15
|
+
- "Distributed systems"
|
|
16
|
+
- "Capacity planning & back-of-the-envelope estimation"
|
|
17
|
+
- "Infrastructure architecture (cloud, containers, networking)"
|
|
18
|
+
- "Reliability engineering (SLA/SLO/SLI, error budgets)"
|
|
19
|
+
- "Data systems at scale (partitioning, replication, storage engines)"
|
|
20
|
+
- "Observability (monitoring, tracing, logging, alerting)"
|
|
21
|
+
- "Cost estimation & optimization"
|
|
22
|
+
references:
|
|
23
|
+
- "Designing Data-Intensive Applications (Martin Kleppmann)"
|
|
24
|
+
- "System Design Interview Vol. 1 & 2 (Alex Xu)"
|
|
25
|
+
- "Building Microservices (Sam Newman)"
|
|
26
|
+
- "Site Reliability Engineering (Google)"
|
|
27
|
+
- "Database Internals (Alex Petrov)"
|
|
28
|
+
- "Fundamentals of Software Architecture (Mark Richards)"
|
|
29
|
+
- "Release It! (Michael Nygard)"
|
|
30
|
+
- "The Art of Scalability (Abbott & Fisher)"
|
|
31
|
+
|
|
32
|
+
triggers:
|
|
33
|
+
mentions:
|
|
34
|
+
- "@system-designer"
|
|
35
|
+
keywords:
|
|
36
|
+
- "system design"
|
|
37
|
+
- "scalability"
|
|
38
|
+
- "capacity planning"
|
|
39
|
+
- "SLA"
|
|
40
|
+
- "SLO"
|
|
41
|
+
- "SLI"
|
|
42
|
+
- "infrastructure"
|
|
43
|
+
- "sharding"
|
|
44
|
+
- "replication"
|
|
45
|
+
- "partitioning"
|
|
46
|
+
- "load balancing"
|
|
47
|
+
- "reliability"
|
|
48
|
+
- "observability"
|
|
49
|
+
- "monitoring"
|
|
50
|
+
- "distributed system"
|
|
51
|
+
- "cloud architecture"
|
|
52
|
+
- "disaster recovery"
|
|
53
|
+
- "multi-region"
|
|
54
|
+
- "back-of-the-envelope"
|
|
55
|
+
- "QPS"
|
|
56
|
+
- "throughput"
|
|
57
|
+
- "RFC"
|
|
58
|
+
- "SDD"
|
|
59
|
+
- "circuit breaker"
|
|
60
|
+
- "caching strategy"
|
|
61
|
+
- "data pipeline"
|
|
62
|
+
- "stream processing"
|
|
63
|
+
- "batch processing"
|
|
64
|
+
contexts:
|
|
65
|
+
- "após design de software do @architect"
|
|
66
|
+
- "planejamento de infraestrutura"
|
|
67
|
+
- "estimativa de capacidade"
|
|
68
|
+
- "design de sistema distribuído"
|
|
69
|
+
- "análise de confiabilidade"
|
|
70
|
+
- "migração de arquitetura"
|
|
71
|
+
- "preparação para escala"
|
|
72
|
+
|
|
73
|
+
responsibilities:
|
|
74
|
+
primary:
|
|
75
|
+
- "Projetar COMO o sistema funciona em produção em escala"
|
|
76
|
+
- "Fazer estimativas de capacidade (back-of-the-envelope)"
|
|
77
|
+
- "Definir topologia de infraestrutura"
|
|
78
|
+
- "Projetar estratégias de dados em escala (partitioning, sharding, replication)"
|
|
79
|
+
- "Definir SLAs/SLOs/SLIs e error budgets"
|
|
80
|
+
- "Projetar observabilidade (monitoring, tracing, alerting)"
|
|
81
|
+
- "Analisar trade-offs de infraestrutura"
|
|
82
|
+
- "Estimar custos de cloud/infra"
|
|
83
|
+
- "Projetar disaster recovery e fault tolerance"
|
|
84
|
+
|
|
85
|
+
pillars:
|
|
86
|
+
- id: "scalability"
|
|
87
|
+
name: "Escalabilidade & Distribuição"
|
|
88
|
+
topics:
|
|
89
|
+
- "Back-of-the-envelope calculations"
|
|
90
|
+
- "Sharding, replicação, particionamento"
|
|
91
|
+
- "Load balancing (L4/L7), CAP theorem"
|
|
92
|
+
- "Consistência (strong, eventual, causal)"
|
|
93
|
+
- "Horizontal/vertical scaling"
|
|
94
|
+
- "Caching strategies"
|
|
95
|
+
- "Rate limiting"
|
|
96
|
+
|
|
97
|
+
- id: "data-systems"
|
|
98
|
+
name: "Data Systems & Storage"
|
|
99
|
+
topics:
|
|
100
|
+
- "Storage engines (B-tree vs LSM-tree)"
|
|
101
|
+
- "SQL vs NoSQL vs NewSQL"
|
|
102
|
+
- "Indexação, batch vs stream processing"
|
|
103
|
+
- "Data pipelines (ETL/ELT, CDC)"
|
|
104
|
+
- "Event sourcing, CQRS at infra level"
|
|
105
|
+
- "Backup & recovery, RTO/RPO"
|
|
106
|
+
|
|
107
|
+
- id: "infra"
|
|
108
|
+
name: "Infra & Cloud Design"
|
|
109
|
+
topics:
|
|
110
|
+
- "Cloud architecture (multi-AZ, multi-region)"
|
|
111
|
+
- "Container orchestration (Kubernetes)"
|
|
112
|
+
- "IaC (Terraform, Pulumi)"
|
|
113
|
+
- "Networking (VPC, CDN, DNS)"
|
|
114
|
+
- "Disaster recovery strategies"
|
|
115
|
+
- "Cost estimation & optimization"
|
|
116
|
+
|
|
117
|
+
- id: "reliability"
|
|
118
|
+
name: "Reliability & Observability"
|
|
119
|
+
topics:
|
|
120
|
+
- "SLA/SLO/SLI, error budgets"
|
|
121
|
+
- "Circuit breakers, retry patterns"
|
|
122
|
+
- "Graceful degradation, load shedding"
|
|
123
|
+
- "Monitoring (Four Golden Signals, USE, RED)"
|
|
124
|
+
- "Distributed tracing"
|
|
125
|
+
- "Alerting hierarchy"
|
|
126
|
+
- "Chaos engineering"
|
|
127
|
+
|
|
128
|
+
outputs:
|
|
129
|
+
- type: "SDD (System Design Document)"
|
|
130
|
+
location: "docs/system-design/sdd/"
|
|
131
|
+
format: "markdown"
|
|
132
|
+
after_output: "delegate_to_builder_and_chronicler"
|
|
133
|
+
- type: "RFC (Request for Comments)"
|
|
134
|
+
location: "docs/system-design/rfc/"
|
|
135
|
+
format: "markdown"
|
|
136
|
+
after_output: "delegate_to_chronicler"
|
|
137
|
+
- type: "Capacity Plan"
|
|
138
|
+
location: "docs/system-design/capacity/"
|
|
139
|
+
format: "markdown"
|
|
140
|
+
- type: "Trade-off Analysis"
|
|
141
|
+
location: "docs/system-design/trade-offs/"
|
|
142
|
+
format: "markdown"
|
|
143
|
+
|
|
144
|
+
workflow:
|
|
145
|
+
position: 3
|
|
146
|
+
phase: "system-design"
|
|
147
|
+
previous_agents:
|
|
148
|
+
- "architect"
|
|
149
|
+
next_agents:
|
|
150
|
+
- "builder"
|
|
151
|
+
|
|
152
|
+
typical_flow:
|
|
153
|
+
- "Recebe design de software do @architect"
|
|
154
|
+
- "Coleta requisitos de escala (QPS, storage, latência, SLA)"
|
|
155
|
+
- "Faz back-of-the-envelope estimation"
|
|
156
|
+
- "Projeta high-level architecture em escala"
|
|
157
|
+
- "Define data model e partitioning strategy"
|
|
158
|
+
- "Projeta reliability (SLOs, failure modes, circuit breakers)"
|
|
159
|
+
- "Define monitoring & observability"
|
|
160
|
+
- "Documenta trade-offs e alternativas"
|
|
161
|
+
- "Estima custos"
|
|
162
|
+
- "Passa para @builder implementar"
|
|
163
|
+
- "Notifica @chronicler para documentar"
|
|
164
|
+
|
|
165
|
+
mandatory_delegation:
|
|
166
|
+
- after: "SDD aprovado"
|
|
167
|
+
delegate_to: "builder"
|
|
168
|
+
message: "@builder implementar conforme SDD"
|
|
169
|
+
- after: "SDD ou RFC criado"
|
|
170
|
+
delegate_to: "chronicler"
|
|
171
|
+
message: "@chronicler documentar SDD/RFC"
|
|
172
|
+
- after: "Necessidade de ADR de software"
|
|
173
|
+
delegate_to: "architect"
|
|
174
|
+
message: "@architect criar ADR para decisão de software architecture"
|
|
175
|
+
- after: "Requisitos não claros"
|
|
176
|
+
delegate_to: "strategist"
|
|
177
|
+
message: "@strategist clarificar requisitos não-funcionais"
|
|
178
|
+
|
|
179
|
+
hard_stops:
|
|
180
|
+
never_do:
|
|
181
|
+
- action: "Escrever código de produção"
|
|
182
|
+
delegate_to: "builder"
|
|
183
|
+
reason: "System Designer projeta sistemas, não implementa código"
|
|
184
|
+
- action: "Criar PRDs ou user stories"
|
|
185
|
+
delegate_to: "strategist"
|
|
186
|
+
reason: "Requisitos de produto são responsabilidade do strategist"
|
|
187
|
+
- action: "Fazer decisões de software architecture (SOLID, patterns, code structure)"
|
|
188
|
+
delegate_to: "architect"
|
|
189
|
+
reason: "Software architecture é responsabilidade do architect"
|
|
190
|
+
- action: "Criar ADRs (Architecture Decision Records)"
|
|
191
|
+
delegate_to: "architect"
|
|
192
|
+
reason: "ADRs são responsabilidade do architect"
|
|
193
|
+
- action: "Escrever ou executar testes"
|
|
194
|
+
delegate_to: "guardian"
|
|
195
|
+
reason: "Testes são responsabilidade do guardian"
|
|
196
|
+
- action: "Atualizar changelog ou documentação de features"
|
|
197
|
+
delegate_to: "chronicler"
|
|
198
|
+
reason: "Documentação é responsabilidade do chronicler"
|
|
199
|
+
|
|
200
|
+
boundary_with_architect:
|
|
201
|
+
architect_does:
|
|
202
|
+
- "SOLID principles, design patterns, code structure"
|
|
203
|
+
- "ADRs (Architecture Decision Records)"
|
|
204
|
+
- "API contracts, database schema design"
|
|
205
|
+
- "Tech stack selection"
|
|
206
|
+
- "Component-level design"
|
|
207
|
+
system_designer_does:
|
|
208
|
+
- "How the system behaves at scale (10x, 100x, 1000x)"
|
|
209
|
+
- "Back-of-the-envelope calculations"
|
|
210
|
+
- "Infrastructure topology"
|
|
211
|
+
- "Data partitioning, sharding, replication"
|
|
212
|
+
- "SLA/SLO/SLI and reliability patterns"
|
|
213
|
+
- "Monitoring, alerting, observability"
|
|
214
|
+
- "Failure mode analysis"
|
|
215
|
+
- "Capacity planning and cost estimation"
|
|
216
|
+
golden_rule: "@architect responde QUAL pattern/tech usar e POR QUÊ. @system-designer responde COMO isso funciona em produção com N usuários."
|
|
217
|
+
|
|
218
|
+
commands:
|
|
219
|
+
- name: "/system-design"
|
|
220
|
+
description: "Cria System Design Document (SDD) completo"
|
|
221
|
+
output: "docs/system-design/sdd/{topic}.md"
|
|
222
|
+
|
|
223
|
+
- name: "/rfc"
|
|
224
|
+
description: "Cria RFC para proposta que precisa de discussão"
|
|
225
|
+
output: "docs/system-design/rfc/{proposal}.md"
|
|
226
|
+
|
|
227
|
+
- name: "/capacity-planning"
|
|
228
|
+
description: "Estimativa de capacidade e dimensionamento"
|
|
229
|
+
output: "docs/system-design/capacity/{system}.md"
|
|
230
|
+
|
|
231
|
+
- name: "/trade-off-analysis"
|
|
232
|
+
description: "Compara opções com trade-offs estruturados"
|
|
233
|
+
output: "docs/system-design/trade-offs/{topic}.md"
|
|
234
|
+
|
|
235
|
+
- name: "/data-model"
|
|
236
|
+
description: "Projeta modelos de dados e estratégia de storage em escala"
|
|
237
|
+
output: "docs/system-design/sdd/{domain}-data-model.md"
|
|
238
|
+
|
|
239
|
+
- name: "/infra-design"
|
|
240
|
+
description: "Arquitetura de cloud/infraestrutura"
|
|
241
|
+
output: "docs/system-design/sdd/{system}-infra.md"
|
|
242
|
+
|
|
243
|
+
- name: "/reliability-review"
|
|
244
|
+
description: "Análise de SLA/SLO e padrões de confiabilidade"
|
|
245
|
+
output: "docs/system-design/sdd/{system}-reliability.md"
|
|
246
|
+
|
|
247
|
+
quality_criteria:
|
|
248
|
+
- "Back-of-the-envelope calculations incluídas e validadas"
|
|
249
|
+
- "Diagramas claros usando Mermaid"
|
|
250
|
+
- "Trade-offs explicitados com pros/cons"
|
|
251
|
+
- "SLAs/SLOs/SLIs definidos quando aplicável"
|
|
252
|
+
- "Custo estimado quando aplicável"
|
|
253
|
+
- "Failure modes identificados com mitigações"
|
|
254
|
+
- "Monitoring strategy definida (métricas, alertas, dashboards)"
|
|
255
|
+
- "Rollback plan incluído"
|
|
256
|
+
|
|
257
|
+
tags:
|
|
258
|
+
- "system-design"
|
|
259
|
+
- "infrastructure"
|
|
260
|
+
- "scalability"
|
|
261
|
+
- "reliability"
|
|
262
|
+
- "distributed-systems"
|
|
263
|
+
- "capacity-planning"
|
|
264
|
+
- "observability"
|
|
265
|
+
- "sre"
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
# DevFlow Project Metadata
|
|
2
|
+
# Este arquivo contém informação estruturada sobre o estado do projeto
|
|
3
|
+
# Atualizado automaticamente pelo @chronicler
|
|
4
|
+
|
|
5
|
+
project:
|
|
6
|
+
name: "DevFlow"
|
|
7
|
+
version: "0.7.0"
|
|
8
|
+
description: "Sistema multi-agentes para desenvolvimento de software"
|
|
9
|
+
created: "2025-11-15"
|
|
10
|
+
last_updated: "2026-02-11"
|
|
11
|
+
|
|
12
|
+
# Estado atual
|
|
13
|
+
status: "active"
|
|
14
|
+
phase: "system-design-integrated"
|
|
15
|
+
|
|
16
|
+
# Repositório
|
|
17
|
+
repository:
|
|
18
|
+
url: "https://github.com/seu-usuario/devflow"
|
|
19
|
+
main_branch: "main"
|
|
20
|
+
|
|
21
|
+
# Agentes disponíveis
|
|
22
|
+
agents:
|
|
23
|
+
- id: "strategist"
|
|
24
|
+
name: "Strategist"
|
|
25
|
+
role: "planning"
|
|
26
|
+
focus: "Planejamento & Produto"
|
|
27
|
+
triggers:
|
|
28
|
+
- "@strategist"
|
|
29
|
+
- "PRD"
|
|
30
|
+
- "requirements"
|
|
31
|
+
- "user stories"
|
|
32
|
+
outputs:
|
|
33
|
+
- "docs/planning/"
|
|
34
|
+
- "PRDs"
|
|
35
|
+
- "User stories"
|
|
36
|
+
|
|
37
|
+
- id: "architect"
|
|
38
|
+
name: "Architect"
|
|
39
|
+
role: "design"
|
|
40
|
+
focus: "Design & Arquitetura"
|
|
41
|
+
triggers:
|
|
42
|
+
- "@architect"
|
|
43
|
+
- "ADR"
|
|
44
|
+
- "design"
|
|
45
|
+
- "architecture"
|
|
46
|
+
outputs:
|
|
47
|
+
- "docs/decisions/"
|
|
48
|
+
- "docs/architecture/"
|
|
49
|
+
- "ADRs"
|
|
50
|
+
- "Diagramas técnicos"
|
|
51
|
+
|
|
52
|
+
- id: "system-designer"
|
|
53
|
+
name: "System Designer"
|
|
54
|
+
role: "system-design"
|
|
55
|
+
focus: "System Design, Escalabilidade & Confiabilidade"
|
|
56
|
+
triggers:
|
|
57
|
+
- "@system-designer"
|
|
58
|
+
- "system design"
|
|
59
|
+
- "SDD"
|
|
60
|
+
- "RFC"
|
|
61
|
+
- "capacity planning"
|
|
62
|
+
- "scalability"
|
|
63
|
+
- "SLA"
|
|
64
|
+
- "infrastructure"
|
|
65
|
+
- "sharding"
|
|
66
|
+
- "reliability"
|
|
67
|
+
outputs:
|
|
68
|
+
- "docs/system-design/"
|
|
69
|
+
- "SDDs"
|
|
70
|
+
- "RFCs"
|
|
71
|
+
- "Capacity Plans"
|
|
72
|
+
- "Trade-off Analysis"
|
|
73
|
+
|
|
74
|
+
- id: "builder"
|
|
75
|
+
name: "Builder"
|
|
76
|
+
role: "implementation"
|
|
77
|
+
focus: "Implementação"
|
|
78
|
+
triggers:
|
|
79
|
+
- "@builder"
|
|
80
|
+
- "implement"
|
|
81
|
+
- "code"
|
|
82
|
+
- "refactor"
|
|
83
|
+
outputs:
|
|
84
|
+
- "Código fonte"
|
|
85
|
+
- "Testes"
|
|
86
|
+
- "Code reviews"
|
|
87
|
+
|
|
88
|
+
- id: "guardian"
|
|
89
|
+
name: "Guardian"
|
|
90
|
+
role: "quality"
|
|
91
|
+
focus: "Qualidade & Segurança"
|
|
92
|
+
triggers:
|
|
93
|
+
- "@guardian"
|
|
94
|
+
- "test"
|
|
95
|
+
- "security"
|
|
96
|
+
- "performance"
|
|
97
|
+
outputs:
|
|
98
|
+
- "Estratégia de testes"
|
|
99
|
+
- "Security audits"
|
|
100
|
+
- "Performance reports"
|
|
101
|
+
|
|
102
|
+
- id: "chronicler"
|
|
103
|
+
name: "Chronicler"
|
|
104
|
+
role: "documentation"
|
|
105
|
+
focus: "Documentação & Memória"
|
|
106
|
+
triggers:
|
|
107
|
+
- "@chronicler"
|
|
108
|
+
- "document"
|
|
109
|
+
- "snapshot"
|
|
110
|
+
- "changelog"
|
|
111
|
+
outputs:
|
|
112
|
+
- "docs/CHANGELOG.md"
|
|
113
|
+
- ".devflow/snapshots/"
|
|
114
|
+
- "ADRs automáticos"
|
|
115
|
+
- "Knowledge graph"
|
|
116
|
+
|
|
117
|
+
# Tecnologias e stack
|
|
118
|
+
tech_stack:
|
|
119
|
+
core:
|
|
120
|
+
- "Markdown"
|
|
121
|
+
- "YAML"
|
|
122
|
+
- "JSON"
|
|
123
|
+
- "Bash"
|
|
124
|
+
|
|
125
|
+
tools:
|
|
126
|
+
- "Claude Code"
|
|
127
|
+
- "Git"
|
|
128
|
+
|
|
129
|
+
# Estrutura do projeto
|
|
130
|
+
structure:
|
|
131
|
+
source_dirs:
|
|
132
|
+
- ".devflow/"
|
|
133
|
+
- "docs/"
|
|
134
|
+
|
|
135
|
+
documentation_dirs:
|
|
136
|
+
- "docs/decisions/"
|
|
137
|
+
- "docs/architecture/"
|
|
138
|
+
- "docs/planning/"
|
|
139
|
+
- "docs/api/"
|
|
140
|
+
- "docs/migration/"
|
|
141
|
+
- "docs/system-design/"
|
|
142
|
+
|
|
143
|
+
output_dirs:
|
|
144
|
+
- ".devflow/snapshots/"
|
|
145
|
+
|
|
146
|
+
# Features implementadas
|
|
147
|
+
features:
|
|
148
|
+
- id: "multi-agent-system"
|
|
149
|
+
name: "Sistema Multi-Agentes"
|
|
150
|
+
status: "implemented"
|
|
151
|
+
version: "0.1.0"
|
|
152
|
+
description: "6 agentes especializados para desenvolvimento"
|
|
153
|
+
|
|
154
|
+
- id: "documentation-automation"
|
|
155
|
+
name: "Documentação Automática"
|
|
156
|
+
status: "implemented"
|
|
157
|
+
version: "0.1.0"
|
|
158
|
+
description: "Chronicler mantém CHANGELOG e snapshots"
|
|
159
|
+
|
|
160
|
+
- id: "context-snapshots"
|
|
161
|
+
name: "Context Snapshots"
|
|
162
|
+
status: "implemented"
|
|
163
|
+
version: "0.1.0"
|
|
164
|
+
description: "Prevenção de drift através de snapshots"
|
|
165
|
+
|
|
166
|
+
- id: "structured-metadata"
|
|
167
|
+
name: "Metadata Estruturada"
|
|
168
|
+
status: "implemented"
|
|
169
|
+
version: "0.2.0"
|
|
170
|
+
description: "YAML/JSON para parse rápido pela IA"
|
|
171
|
+
|
|
172
|
+
- id: "hard-stops"
|
|
173
|
+
name: "Hard Stops & Role Enforcement"
|
|
174
|
+
status: "implemented"
|
|
175
|
+
version: "0.3.0"
|
|
176
|
+
description: "Regras explícitas que impedem agentes de fazer trabalho de outros"
|
|
177
|
+
|
|
178
|
+
- id: "mandatory-delegation"
|
|
179
|
+
name: "Delegação Obrigatória"
|
|
180
|
+
status: "implemented"
|
|
181
|
+
version: "0.3.0"
|
|
182
|
+
description: "Fluxo mandatório de delegação entre agentes"
|
|
183
|
+
|
|
184
|
+
- id: "auto-story-generation"
|
|
185
|
+
name: "Geração Automática de Stories"
|
|
186
|
+
status: "implemented"
|
|
187
|
+
version: "0.3.0"
|
|
188
|
+
description: "Chronicler gera stories se strategist não criar"
|
|
189
|
+
|
|
190
|
+
- id: "system-designer-agent"
|
|
191
|
+
name: "System Designer Agent"
|
|
192
|
+
status: "implemented"
|
|
193
|
+
version: "0.6.0"
|
|
194
|
+
description: "6th agent specializing in system design at scale (DDIA, SRE)"
|
|
195
|
+
|
|
196
|
+
# Decisões arquiteturais (resumo - detalhes em ADRs)
|
|
197
|
+
decisions:
|
|
198
|
+
- id: "ADR-001"
|
|
199
|
+
title: "6 Agentes especializados ao invés de 19+ (inicialmente 5, expandido para 6 em v0.7.0)"
|
|
200
|
+
status: "accepted"
|
|
201
|
+
date: "2025-11-15"
|
|
202
|
+
tags: ["architecture", "agents", "simplicity"]
|
|
203
|
+
|
|
204
|
+
- id: "ADR-002"
|
|
205
|
+
title: "Documentação centralizada em docs/"
|
|
206
|
+
status: "accepted"
|
|
207
|
+
date: "2025-11-15"
|
|
208
|
+
tags: ["structure", "documentation"]
|
|
209
|
+
|
|
210
|
+
- id: "ADR-003"
|
|
211
|
+
title: "Metadata estruturada (YAML/JSON)"
|
|
212
|
+
status: "accepted"
|
|
213
|
+
date: "2025-11-15"
|
|
214
|
+
tags: ["metadata", "ai-optimization"]
|
|
215
|
+
|
|
216
|
+
# Métricas (atualizadas pelo Chronicler)
|
|
217
|
+
metrics:
|
|
218
|
+
total_files: 28
|
|
219
|
+
total_agents: 6
|
|
220
|
+
total_decisions: 3
|
|
221
|
+
total_adrs: 2
|
|
222
|
+
total_features: 8
|
|
223
|
+
documentation_coverage: "excellent"
|
|
224
|
+
metadata_coverage: "excellent"
|
|
225
|
+
orchestration_coverage: "complete"
|
|
226
|
+
last_snapshot: "2026-02-11"
|
|
227
|
+
|
|
228
|
+
# Configurações
|
|
229
|
+
config:
|
|
230
|
+
chronicler:
|
|
231
|
+
auto_snapshot: false
|
|
232
|
+
snapshot_frequency: "on-demand"
|
|
233
|
+
auto_changelog: true
|
|
234
|
+
|
|
235
|
+
documentation:
|
|
236
|
+
format: "markdown"
|
|
237
|
+
adr_template: "docs/decisions/000-template.md"
|
|
238
|
+
|
|
239
|
+
quality:
|
|
240
|
+
require_tests: true
|
|
241
|
+
require_security_review: true
|
|
242
|
+
require_documentation: true
|