@daniel-da-silva-alves/sddk 2.0.0 → 2.1.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +21 -4
  3. package/bin/cli.js +4 -4
  4. package/package.json +7 -2
  5. package/sddk/plugin.json +1 -1
  6. package/sddk/skills/code-review/SKILL.md +142 -141
  7. package/sddk/skills/code-review/references/anti-ai-design-patterns.md +90 -90
  8. package/sddk/skills/code-review/references/refactoring-severity-guide.md +60 -60
  9. package/sddk/skills/code-review/references/security-checklist.md +59 -59
  10. package/sddk/skills/fullstack-development/SKILL.md +79 -78
  11. package/sddk/skills/fullstack-development/references/clean-code-rules.md +65 -65
  12. package/sddk/skills/fullstack-development/references/self-review-checklist.md +42 -42
  13. package/sddk/skills/implementation-planning/SKILL.md +65 -64
  14. package/sddk/skills/implementation-planning/references/manual-tests-template.md +53 -53
  15. package/sddk/skills/implementation-planning/references/microtask-template.md +47 -47
  16. package/sddk/skills/software-requirements-specification/SKILL.md +46 -45
  17. package/sddk/skills/software-requirements-specification/references/checklist-template.md +48 -48
  18. package/sddk/skills/software-requirements-specification/references/ieee-830-template.md +94 -94
  19. package/sddk/skills/software-requirements-specification/references/socratic-interview-guide.md +65 -65
  20. package/sddk/skills/system-design-document/SKILL.md +108 -107
  21. package/sddk/skills/system-design-document/references/architecture-patterns.md +59 -59
  22. package/sddk/skills/system-design-document/references/documentation-sources-guide.md +69 -69
  23. package/sddk/skills/system-design-document/references/sdd-template.md +117 -117
  24. package/sddk/skills/system-design-document/references/standards-api-template.md +47 -47
  25. package/sddk/skills/system-design-document/references/standards-architecture-template.md +42 -42
  26. package/sddk/skills/system-design-document/references/standards-coding-template.md +64 -64
  27. package/sddk/skills/system-design-document/references/standards-design-system-template.md +81 -81
  28. package/sddk/skills/system-design-document/references/standards-naming-template.md +59 -59
  29. package/sddk/skills/system-design-document/references/standards-onboarding-guide.md +80 -80
  30. package/sddk/skills/system-design-document/references/tech-stack-analysis.md +37 -37
@@ -1,126 +1,126 @@
1
- # Guia de Configuração de Fontes de Documentação Técnica
1
+ # Technical Documentation Sources Configuration Guide
2
2
 
3
- ## Propósito
3
+ ## Purpose
4
4
 
5
- Durante o desenvolvimento (Skill 4) e code review (Skill 5), o agente precisa consultar documentação técnica das tecnologias da stack. Este guia define como configurar as fontes de documentação para cada tecnologia, garantindo que o agente use **a versão correta** e **a fonte mais confiável**.
5
+ During development (Skill 4) and code review (Skill 5), the agent needs to consult technical documentation for the stack's technologies. This guide defines how to configure documentation sources for each technology, ensuring the agent uses **the correct version** and **the most reliable source**.
6
6
 
7
- ## Hierarquia de Consulta
7
+ ## Lookup Hierarchy
8
8
 
9
- Ao precisar de documentação técnica, o agente segue esta ordem de prioridade:
9
+ When needing technical documentation, the agent follows this priority order:
10
10
 
11
11
  ```
12
- 1. 📁 Docs locais do projeto (docs/, README, ARCHITECTURE.md)
13
- se não encontrar
14
- 2. 🔌 MCP/Skill da tecnologia (se existir e for da versão correta)
15
- se não existir
16
- 3. 🌐 URL oficial pré-configurada (registrada no SDD, pinada à versão)
17
- se não cobrir o caso
18
- 4. 🔍 Web search como fallback (pesquisa direcionada ao site oficial)
12
+ 1. 📁 Local project docs (docs/, README, ARCHITECTURE.md)
13
+ if not found
14
+ 2. 🔌 Technology MCP/Skill (if it exists and matches the version)
15
+ if it doesn't exist
16
+ 3. 🌐 Pre-configured official URL (registered in the SDD, pinned to version)
17
+ if it doesn't cover the case
18
+ 4. 🔍 Web search as fallback (search directed at the official site)
19
19
  ```
20
20
 
21
- ### Por que esta ordem?
21
+ ### Why this order?
22
22
 
23
- | Prioridade | Fonte | Justificativa |
23
+ | Priority | Source | Justification |
24
24
  |:---:|:---|:---|
25
- | 1 | **Docs locais** | Mais específico ao projeto, padrões customizados, convenções internas |
26
- | 2 | **MCP/Skill** | Curado, confiável, eficiente em tokens, funciona offline |
27
- | 3 | **URL oficial** | Fonte canônica da tecnologia, pinada à versão correta |
28
- | 4 | **Web search** | Fallback universal, mas ruidoso e pode trazer versão errada |
25
+ | 1 | **Local docs** | Most specific to the project, custom standards, internal conventions |
26
+ | 2 | **MCP/Skill** | Curated, reliable, token-efficient, works offline |
27
+ | 3 | **Official URL** | Canonical source of the technology, pinned to the correct version |
28
+ | 4 | **Web search** | Universal fallback, but noisy and may bring the wrong version |
29
29
 
30
30
  ---
31
31
 
32
- ## Como Conduzir a Entrevista de Fontes
32
+ ## How to Conduct the Sources Interview
33
33
 
34
- Durante a Fase 2.5 do SDD, após definir a stack, perguntar para cada tecnologia:
34
+ During Phase 2.5 of the SDD, after defining the stack, ask for each technology:
35
35
 
36
- ### Pergunta padrão (via ask_question):
36
+ ### Standard question (via ask_question):
37
37
 
38
38
  ```
39
- Para a tecnologia {nome} v{versão}, qual fonte de documentação devemos usar?
39
+ For technology {name} v{version}, which documentation source should we use?
40
40
  ```
41
41
 
42
- **Opções:**
43
- 1. **URL oficial** — informar a URL da documentação oficial pinada na versão
44
- 2. **MCP disponível** — informar qual MCP server provê docs desta tecnologia
45
- 3. **Skill local** — o projeto tem uma skill customizada para esta tecnologia
46
- 4. **Docs no projeto** — existe pasta `docs/` ou wiki com documentação interna
42
+ **Options:**
43
+ 1. **Official URL** — provide the official documentation URL pinned to the version
44
+ 2. **MCP available** — specify which MCP server provides docs for this technology
45
+ 3. **Local skill** — the project has a custom skill for this technology
46
+ 4. **Docs in project** — there's a `docs/` folder or wiki with internal documentation
47
47
 
48
- ### Tecnologias com MCPs conhecidos:
48
+ ### Technologies with known MCPs:
49
49
 
50
- | Tecnologia | MCP Disponível | Notas |
50
+ | Technology | MCP Available | Notes |
51
51
  |:---|:---|:---|
52
- | Múltiplas libs | Context7 | Cobre muitas bibliotecas populares via `context7` |
52
+ | Multiple libs | Context7 | Covers many popular libraries via `context7` |
53
53
  | PostgreSQL | postgres-mcp | Schema awareness |
54
54
  | GitHub | github-mcp | Issues, PRs, repos |
55
- | Filesystem | filesystem-mcp | Nativo do Antigravity |
55
+ | Filesystem | filesystem-mcp | Native to Antigravity |
56
56
 
57
57
  > [!NOTE]
58
- > A disponibilidade de MCPs muda frequentemente. Pergunte ao usuário se ele tem MCPs configurados no projeto.
58
+ > MCP availability changes frequently. Ask the user if they have MCPs configured in their project.
59
59
 
60
60
  ---
61
61
 
62
- ## Formato da Seção no SDD
62
+ ## SDD Section Format
63
63
 
64
- A seção "10. Fontes de Documentação Técnica" no SDD deve seguir este formato:
64
+ Section "10. Technical Documentation Sources" in the SDD should follow this format:
65
65
 
66
66
  ```markdown
67
- ## 10. Fontes de Documentação Técnica
67
+ ## 10. Technical Documentation Sources
68
68
 
69
- ### 10.1 Configuração de Fontes
69
+ ### 10.1 Source Configuration
70
70
 
71
- | Tecnologia | Versão | Fonte Primária | URL Oficial | MCP/Skill |
71
+ | Technology | Version | Primary Source | Official URL | MCP/Skill |
72
72
  |:---|:---|:---|:---|:---|
73
- | Next.js | 15.2 | URL oficial | https://nextjs.org/docs | — |
74
- | React | 19.1 | URL oficial | https://react.dev/reference | — |
73
+ | Next.js | 15.2 | Official URL | https://nextjs.org/docs | — |
74
+ | React | 19.1 | Official URL | https://react.dev/reference | — |
75
75
  | Prisma | 6.3 | MCP | https://prisma.io/docs | context7 |
76
- | Tailwind CSS | 4.0 | URL oficial | https://tailwindcss.com/docs | — |
76
+ | Tailwind CSS | 4.0 | Official URL | https://tailwindcss.com/docs | — |
77
77
  | PostgreSQL | 16 | MCP | https://www.postgresql.org/docs/16/ | postgres-mcp |
78
- | TypeScript | 5.7 | URL oficial | https://www.typescriptlang.org/docs/ | — |
78
+ | TypeScript | 5.7 | Official URL | https://www.typescriptlang.org/docs/ | — |
79
79
 
80
- ### 10.2 Documentação Local do Projeto
80
+ ### 10.2 Local Project Documentation
81
81
 
82
- | Caminho | Conteúdo |
82
+ | Path | Content |
83
83
  |:---|:---|
84
- | `docs/api.md` | Documentação da API interna |
85
- | `docs/conventions.md` | Convenções de código do projeto |
86
- | `ARCHITECTURE.md` | Arquitetura geral do sistema |
84
+ | `docs/api.md` | Internal API documentation |
85
+ | `docs/conventions.md` | Project code conventions |
86
+ | `ARCHITECTURE.md` | General system architecture |
87
87
 
88
- ### 10.3 Regra de Consulta
88
+ ### 10.3 Lookup Rule
89
89
 
90
- Ordem de prioridade para consulta de documentação durante o desenvolvimento:
91
- 1. Documentação local do projeto (caminhos listados em 10.2)
92
- 2. MCP/Skill (se listado na coluna MCP/Skill em 10.1)
93
- 3. URL oficial (usar `read_url_content` na URL listada em 10.1)
94
- 4. Web search (usar `search_web` com query: "{tecnologia} {versão} {tópico} site:{domínio oficial}")
90
+ Priority order for documentation lookup during development:
91
+ 1. Local project documentation (paths listed in 10.2)
92
+ 2. MCP/Skill (if listed in the MCP/Skill column in 10.1)
93
+ 3. Official URL (use `read_url_content` on the URL listed in 10.1)
94
+ 4. Web search (use `search_web` with query: "{technology} {version} {topic} site:{official domain}")
95
95
  ```
96
96
 
97
97
  ---
98
98
 
99
- ## Instruções para o Agente (Dev e CodeReview)
99
+ ## Agent Instructions (Dev and CodeReview)
100
100
 
101
- Quando o agente precisar consultar documentação durante o desenvolvimento:
101
+ When the agent needs to consult documentation during development:
102
102
 
103
- ### Passo 1: Ler a seção 10 do SDD
104
- Abrir `.specs/features/{feature}/sdd.md` e ler a seção "10. Fontes de Documentação Técnica"
103
+ ### Step 1: Read section 10 of the SDD
104
+ Open `.specs/features/{feature}/sdd.md` and read section "10. Technical Documentation Sources"
105
105
 
106
- ### Passo 2: Seguir a hierarquia
107
- 1. **Docs local?** → `view_file` no caminho listado em 10.2
108
- 2. **MCP/Skill?** → Usar a ferramenta/skill configurada em 10.1
109
- 3. **URL oficial?** → `read_url_content("{url-da-tabela-10.1}/topico-especifico")`
110
- 4. **Nenhum?** → `search_web("{tecnologia} {versão} {tópico} site:{domínio}")`
106
+ ### Step 2: Follow the hierarchy
107
+ 1. **Local docs?** → `view_file` on the path listed in 10.2
108
+ 2. **MCP/Skill?** → Use the tool/skill configured in 10.1
109
+ 3. **Official URL?** → `read_url_content("{url-from-table-10.1}/specific-topic")`
110
+ 4. **None?** → `search_web("{technology} {version} {topic} site:{domain}")`
111
111
 
112
- ### Passo 3: Validar a versão
112
+ ### Step 3: Validate the version
113
113
  > [!WARNING]
114
- > Antes de usar qualquer informação de documentação, verificar se corresponde à versão listada na tabela 10.1. Documentação da versão errada pode gerar código incompatível.
114
+ > Before using any documentation information, verify it matches the version listed in table 10.1. Documentation from the wrong version may generate incompatible code.
115
115
 
116
- ### Exemplo prático de consulta:
116
+ ### Practical lookup example:
117
117
 
118
118
  ```
119
- Microtask: "Implementar server action de criação de usuário"
119
+ Microtask: "Implement user creation server action"
120
120
  Stack: Next.js 15.2
121
121
 
122
- 1. Docs local? → Não tem docs sobre server actions
123
- 2. MCP/Skill? → Não tem MCP de Next.js
124
- 3. URL oficial? → read_url_content("https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations")
125
- 4. Se URL não cobrir → search_web("Next.js 15 server actions mutations site:nextjs.org")
122
+ 1. Local docs? → No docs about server actions
123
+ 2. MCP/Skill? → No Next.js MCP
124
+ 3. Official URL? → read_url_content("https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations")
125
+ 4. If URL doesn't cover → search_web("Next.js 15 server actions mutations site:nextjs.org")
126
126
  ```
@@ -1,51 +1,51 @@
1
- # Template de System Design Document (SDD)
1
+ # System Design Document (SDD) Template
2
2
 
3
- Use este template como base para gerar o documento SDD. Adapte as seções conforme a complexidade da feature.
3
+ Use this template as a base to generate the SDD document. Adapt sections according to the feature's complexity.
4
4
 
5
5
  ---
6
6
 
7
- ## Estrutura do Documento
7
+ ## Document Structure
8
8
 
9
9
  ```markdown
10
10
  # System Design Document (SDD)
11
- ## {Nome da Feature}
11
+ ## {Feature Name}
12
12
 
13
- **Versão**: 1.0
14
- **Data**: {data de criação}
15
- **Projeto**: {nome do projeto}
16
- **Feature**: {nome da feature}
17
- **SRS Referência**: [srs.md](./srs.md)
13
+ **Version**: 1.0
14
+ **Date**: {creation date}
15
+ **Project**: {project name}
16
+ **Feature**: {feature name}
17
+ **SRS Reference**: [srs.md](./srs.md)
18
18
 
19
19
  ---
20
20
 
21
- ## 1. Visão Geral Técnica
21
+ ## 1. Technical Overview
22
22
 
23
- ### 1.1 Resumo
24
- Breve descrição técnica do que será implementado e como.
23
+ ### 1.1 Summary
24
+ Brief technical description of what will be implemented and how.
25
25
 
26
- ### 1.2 Stack Tecnológica
26
+ ### 1.2 Technology Stack
27
27
 
28
- | Camada | Tecnologia | Justificativa |
28
+ | Layer | Technology | Justification |
29
29
  |:---|:---|:---|
30
- | Linguagem | {ex: TypeScript} | {por que esta escolha} |
31
- | Framework | {ex: Next.js 14} | {por que esta escolha} |
32
- | Banco de dados | {ex: PostgreSQL} | {por que esta escolha} |
33
- | ORM/Query | {ex: Prisma} | {por que esta escolha} |
34
- | Autenticação | {ex: NextAuth.js} | {por que esta escolha} |
35
- | Estilização | {ex: Tailwind CSS v4} | {por que esta escolha} |
30
+ | Language | {e.g.: TypeScript} | {why this choice} |
31
+ | Framework | {e.g.: Next.js 14} | {why this choice} |
32
+ | Database | {e.g.: PostgreSQL} | {why this choice} |
33
+ | ORM/Query | {e.g.: Prisma} | {why this choice} |
34
+ | Authentication | {e.g.: NextAuth.js} | {why this choice} |
35
+ | Styling | {e.g.: Tailwind CSS v4} | {why this choice} |
36
36
 
37
- ### 1.3 Decisões Arquiteturais
37
+ ### 1.3 Architectural Decisions
38
38
 
39
- | Decisão | Escolha | Alternativas Consideradas | Justificativa |
39
+ | Decision | Choice | Alternatives Considered | Justification |
40
40
  |:---|:---|:---|:---|
41
- | Padrão | {ex: Clean Architecture} | MVC, Hexagonal | {razão} |
42
- | State Management | {ex: Zustand} | Redux, Context | {razão} |
41
+ | Pattern | {e.g.: Clean Architecture} | MVC, Hexagonal | {reason} |
42
+ | State Management | {e.g.: Zustand} | Redux, Context | {reason} |
43
43
 
44
44
  ---
45
45
 
46
- ## 2. Arquitetura do Sistema
46
+ ## 2. System Architecture
47
47
 
48
- ### 2.1 Diagrama de Arquitetura
48
+ ### 2.1 Architecture Diagram
49
49
 
50
50
  ```mermaid
51
51
  graph TB
@@ -61,46 +61,46 @@ graph TB
61
61
  C --> D
62
62
  ```
63
63
 
64
- ### 2.2 Estrutura de Diretórios
64
+ ### 2.2 Directory Structure
65
65
 
66
66
  ```
67
67
  src/
68
68
  ├── app/ # Routes / pages
69
- ├── components/ # Componentes reutilizáveis
69
+ ├── components/ # Reusable components
70
70
  │ ├── ui/ # Design system (atoms)
71
- │ └── features/ # Componentes de feature
72
- ├── lib/ # Utilitários e helpers
73
- ├── services/ # Lógica de negócio
74
- ├── repositories/ # Acesso a dados
71
+ │ └── features/ # Feature components
72
+ ├── lib/ # Utilities and helpers
73
+ ├── services/ # Business logic
74
+ ├── repositories/ # Data access
75
75
  ├── types/ # TypeScript types/interfaces
76
- └── config/ # Configurações
76
+ └── config/ # Configurations
77
77
  ```
78
78
 
79
- ### 2.3 Camadas e Responsabilidades
79
+ ### 2.3 Layers and Responsibilities
80
80
 
81
- | Camada | Responsabilidade | Exemplo |
81
+ | Layer | Responsibility | Example |
82
82
  |:---|:---|:---|
83
- | **Presentation** | UI, formulários, validação visual | Componentes React |
84
- | **Application** | Orquestração, use cases | Services |
85
- | **Domain** | Regras de negócio puras | Entidades, Value Objects |
86
- | **Infrastructure** | Acesso a dados, APIs externas | Repositories, API clients |
83
+ | **Presentation** | UI, forms, visual validation | React Components |
84
+ | **Application** | Orchestration, use cases | Services |
85
+ | **Domain** | Pure business rules | Entities, Value Objects |
86
+ | **Infrastructure** | Data access, external APIs | Repositories, API clients |
87
87
 
88
88
  ---
89
89
 
90
- ## 3. Modelo de Dados
90
+ ## 3. Data Model
91
91
 
92
- ### 3.1 Entidades
92
+ ### 3.1 Entities
93
93
 
94
- #### {NomeEntidade}
94
+ #### {EntityName}
95
95
 
96
- | Campo | Tipo | Constraints | Descrição |
96
+ | Field | Type | Constraints | Description |
97
97
  |:---|:---|:---|:---|
98
- | id | UUID | PK, auto-generated | Identificador único |
99
- | {campo} | {tipo} | {constraints} | {descrição} |
100
- | created_at | DateTime | NOT NULL, default NOW | Data de criação |
101
- | updated_at | DateTime | NOT NULL, auto-update | Última atualização |
98
+ | id | UUID | PK, auto-generated | Unique identifier |
99
+ | {field} | {type} | {constraints} | {description} |
100
+ | created_at | DateTime | NOT NULL, default NOW | Creation date |
101
+ | updated_at | DateTime | NOT NULL, auto-update | Last update |
102
102
 
103
- ### 3.2 Relacionamentos
103
+ ### 3.2 Relationships
104
104
 
105
105
  ```mermaid
106
106
  erDiagram
@@ -110,23 +110,23 @@ erDiagram
110
110
 
111
111
  ### 3.3 Migrations
112
112
 
113
- Lista de migrations necessárias em ordem:
114
- 1. `001_create_{table}.sql` — Criar tabela principal
115
- 2. `002_create_{table}.sql` — Criar tabelas secundárias
113
+ List of required migrations in order:
114
+ 1. `001_create_{table}.sql` — Create main table
115
+ 2. `002_create_{table}.sql` — Create secondary tables
116
116
 
117
117
  ---
118
118
 
119
- ## 4. Design de API
119
+ ## 4. API Design
120
120
 
121
121
  ### 4.1 Endpoints
122
122
 
123
123
  #### `POST /api/{resource}`
124
- - **Descrição**: {o que faz}
125
- - **Auth**: {requer autenticação? qual role?}
124
+ - **Description**: {what it does}
125
+ - **Auth**: {requires authentication? which role?}
126
126
  - **Request Body**:
127
127
  ```json
128
128
  {
129
- "field": "type — descrição"
129
+ "field": "type — description"
130
130
  }
131
131
  ```
132
132
  - **Response 200**:
@@ -135,125 +135,125 @@ Lista de migrations necessárias em ordem:
135
135
  "data": {}
136
136
  }
137
137
  ```
138
- - **Errors**: 400 (validação), 401 (não autenticado), 403 (não autorizado), 500 (erro interno)
138
+ - **Errors**: 400 (validation), 401 (unauthenticated), 403 (unauthorized), 500 (internal error)
139
139
 
140
- ### 4.2 Validações
140
+ ### 4.2 Validations
141
141
 
142
- | Endpoint | Campo | Regra |
142
+ | Endpoint | Field | Rule |
143
143
  |:---|:---|:---|
144
- | POST /api/{resource} | {campo} | {regra de validação} |
144
+ | POST /api/{resource} | {field} | {validation rule} |
145
145
 
146
146
  ---
147
147
 
148
- ## 5. Design de Interface (Frontend)
148
+ ## 5. Interface Design (Frontend)
149
149
 
150
- ### 5.1 Componentes
150
+ ### 5.1 Components
151
151
 
152
- | Componente | Tipo | Descrição |
152
+ | Component | Type | Description |
153
153
  |:---|:---|:---|
154
- | `{ComponentName}` | Page | {descrição} |
155
- | `{ComponentName}` | Feature | {descrição} |
156
- | `{ComponentName}` | UI/Atom | {descrição} |
154
+ | `{ComponentName}` | Page | {description} |
155
+ | `{ComponentName}` | Feature | {description} |
156
+ | `{ComponentName}` | UI/Atom | {description} |
157
157
 
158
- ### 5.2 Estado e Fluxo de Dados
158
+ ### 5.2 State and Data Flow
159
159
 
160
- Descrever como o estado flui entre componentes:
161
- - Fonte de dados
162
- - Estado local vs global
160
+ Describe how state flows between components:
161
+ - Data source
162
+ - Local vs global state
163
163
  - Cache strategy
164
164
 
165
165
  ### 5.3 Design Tokens
166
166
 
167
- | Token | Valor | Uso |
167
+ | Token | Value | Usage |
168
168
  |:---|:---|:---|
169
- | `--color-primary` | {valor} | {onde usar} |
170
- | `--spacing-md` | {valor} | {onde usar} |
169
+ | `--color-primary` | {value} | {where to use} |
170
+ | `--spacing-md` | {value} | {where to use} |
171
171
 
172
172
  ---
173
173
 
174
- ## 6. Integrações
174
+ ## 6. Integrations
175
175
 
176
- ### 6.1 APIs Externas
176
+ ### 6.1 External APIs
177
177
 
178
- | Serviço | Propósito | Endpoint | Auth |
178
+ | Service | Purpose | Endpoint | Auth |
179
179
  |:---|:---|:---|:---|
180
- | {nome} | {para quê} | {URL base} | {tipo de auth} |
180
+ | {name} | {what for} | {base URL} | {auth type} |
181
181
 
182
- ### 6.2 Eventos / Webhooks
182
+ ### 6.2 Events / Webhooks
183
183
 
184
- | Evento | Trigger | Payload |
184
+ | Event | Trigger | Payload |
185
185
  |:---|:---|:---|
186
- | {nome} | {quando dispara} | {dados enviados} |
186
+ | {name} | {when it fires} | {data sent} |
187
187
 
188
188
  ---
189
189
 
190
- ## 7. Tratamento de Erros
190
+ ## 7. Error Handling
191
191
 
192
- ### 7.1 Estratégia
192
+ ### 7.1 Strategy
193
193
 
194
- | Camada | Estratégia | Exemplo |
194
+ | Layer | Strategy | Example |
195
195
  |:---|:---|:---|
196
- | Frontend | {ex: Error Boundary + toast} | {quando usar} |
197
- | API | {ex: HTTP status + error body padronizado} | {formato} |
198
- | Service | {ex: Custom exceptions + logging} | {tipos de erro} |
196
+ | Frontend | {e.g.: Error Boundary + toast} | {when to use} |
197
+ | API | {e.g.: HTTP status + standardized error body} | {format} |
198
+ | Service | {e.g.: Custom exceptions + logging} | {error types} |
199
199
 
200
200
  ### 7.2 Error Codes
201
201
 
202
- | Código | Mensagem | Ação do Usuário |
202
+ | Code | Message | User Action |
203
203
  |:---|:---|:---|
204
- | {code} | {mensagem} | {o que fazer} |
204
+ | {code} | {message} | {what to do} |
205
205
 
206
206
  ---
207
207
 
208
- ## 8. Segurança
208
+ ## 8. Security
209
209
 
210
- ### 8.1 Autenticação
211
- Descrever mecanismo de autenticação.
210
+ ### 8.1 Authentication
211
+ Describe the authentication mechanism.
212
212
 
213
- ### 8.2 Autorização
214
- Descrever modelo de permissões (RBAC, ABAC, etc.).
213
+ ### 8.2 Authorization
214
+ Describe the permissions model (RBAC, ABAC, etc.).
215
215
 
216
- ### 8.3 Proteção de Dados
217
- Campos sensíveis, criptografia, LGPD/GDPR.
216
+ ### 8.3 Data Protection
217
+ Sensitive fields, encryption, LGPD/GDPR.
218
218
 
219
219
  ---
220
220
 
221
- ## 9. Referências ao SRS
221
+ ## 9. SRS References
222
222
 
223
- | Seção SDD | Requisito SRS | Referência |
223
+ | SDD Section | SRS Requirement | Reference |
224
224
  |:---|:---|:---|
225
- | 3. Modelo de Dados | RF-001 | [SRS#3 RF-001](./srs.md#rf-001) |
225
+ | 3. Data Model | FR-001 | [SRS#3 FR-001](./srs.md#fr-001) |
226
226
 
227
227
  ---
228
228
 
229
- ## 10. Fontes de Documentação Técnica
229
+ ## 10. Technical Documentation Sources
230
230
 
231
- ### 10.1 Configuração de Fontes
231
+ ### 10.1 Source Configuration
232
232
 
233
- | Tecnologia | Versão | Fonte Primária | URL Oficial | MCP/Skill |
233
+ | Technology | Version | Primary Source | Official URL | MCP/Skill |
234
234
  |:---|:---|:---|:---|:---|
235
- | {tecnologia} | {versão} | {URL oficial / MCP / Skill / Docs local} | {URL} | {nome do MCP ou —} |
235
+ | {technology} | {version} | {Official URL / MCP / Skill / Local docs} | {URL} | {MCP name or —} |
236
236
 
237
- ### 10.2 Documentação Local do Projeto
237
+ ### 10.2 Local Project Documentation
238
238
 
239
- | Caminho | Conteúdo |
239
+ | Path | Content |
240
240
  |:---|:---|
241
- | {caminho} | {descrição do conteúdo} |
241
+ | {path} | {content description} |
242
242
 
243
- ### 10.3 Regra de Consulta
243
+ ### 10.3 Lookup Rule
244
244
 
245
- Ordem de prioridade para consulta de documentação durante o desenvolvimento:
246
- 1. Documentação local do projeto (caminhos listados em 10.2)
247
- 2. MCP/Skill (se listado na coluna MCP/Skill em 10.1)
248
- 3. URL oficial (usar `read_url_content` na URL listada em 10.1)
249
- 4. Web search (usar `search_web` com query: "{tecnologia} {versão} {tópico} site:{domínio oficial}")
245
+ Priority order for documentation lookup during development:
246
+ 1. Local project documentation (paths listed in 10.2)
247
+ 2. MCP/Skill (if listed in the MCP/Skill column in 10.1)
248
+ 3. Official URL (use `read_url_content` on the URL listed in 10.1)
249
+ 4. Web search (use `search_web` with query: "{technology} {version} {topic} site:{official domain}")
250
250
  ```
251
251
 
252
- ## Regras de Preenchimento
252
+ ## Filling Rules
253
253
 
254
- 1. **Cada decisão arquitetural DEVE ter justificativa** — nunca apenas "porque sim"
255
- 2. **Modelo de dados DEVE corresponder aos requisitos do SRS** — usar matriz de referência
256
- 3. **Endpoints DEVEM cobrir todos os requisitos funcionais** do SRS
257
- 4. **Componentes DEVEM ser granulares** — nunca um componente monolítico
258
- 5. **Design tokens DEVEM ser definidos** — nunca usar valores hardcoded
259
- 6. **Fontes de documentação DEVEM ser configuradas** para cada tecnologia da stack com versão pinada
254
+ 1. **Each architectural decision MUST have justification** — never just "because"
255
+ 2. **Data model MUST correspond to SRS requirements** — use reference matrix
256
+ 3. **Endpoints MUST cover all functional requirements** from the SRS
257
+ 4. **Components MUST be granular** — never a monolithic component
258
+ 5. **Design tokens MUST be defined** — never use hardcoded values
259
+ 6. **Documentation sources MUST be configured** for each technology in the stack with pinned version