@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
package/CHANGELOG.md CHANGED
@@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.1.0] - 2026-06-02
9
+
10
+ ### Added
11
+ - **Auto-publish workflow** — GitHub Actions pipeline that publishes to npm on tag push (`v*`)
12
+ - **Language output rule** — all 5 skills now enforce generating documents in the user's language
13
+ - **ARCHITECTURE.md** — system architecture documentation with Mermaid diagrams replacing the old PDF
14
+
15
+ ### Changed
16
+ - **All 26 skill files translated to English** — SKILL.md files and all reference documents across 5 skills now use English for improved LLM instruction quality
17
+ - **plugin.json description** updated to English
18
+ - **publishConfig** added to package.json for explicit public npm registry configuration
19
+ - **prepublishOnly** script added as safety net before publishing
20
+
21
+ ## [2.0.1] - 2026-06-02
22
+
23
+ ### Fixed
24
+ - CLI help and error messages now reference the correct scoped package name (`@daniel-da-silva-alves/sddk`)
25
+ - README installation section updated with npm/npx commands
26
+ - Badge now links to npm package page
27
+ - Project structure tree corrected (PDF path, added `bin/` and `.github/`)
28
+
8
29
  ## [2.0.0] - 2026-06-02
9
30
 
10
31
  ### Added
@@ -24,4 +45,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
45
  - Complete rewrite from v1.0.0
25
46
  - Restructured plugin to use `skills/` directory with `SKILL.md` + `references/` pattern
26
47
 
48
+ [2.1.0]: https://github.com/Daniel-da-Silva-Alves/Spec-Driven-Development-Kit/releases/tag/v2.1.0
49
+ [2.0.1]: https://github.com/Daniel-da-Silva-Alves/Spec-Driven-Development-Kit/releases/tag/v2.0.1
27
50
  [2.0.0]: https://github.com/Daniel-da-Silva-Alves/Spec-Driven-Development-Kit/releases/tag/v2.0.0
package/README.md CHANGED
@@ -1,16 +1,17 @@
1
1
  <!-- prettier-ignore -->
2
2
  <div align="center">
3
3
 
4
- <img src="./docs/sddk.svg" alt="SDDK Logo" height="200" />
4
+ <img src="sddk.svg" alt="SDDK Logo" height="200" />
5
5
 
6
6
  # Spec-Driven Development Kit (SDDK)
7
7
 
8
8
  *An AI agent plugin that enforces disciplined software engineering through a 5-stage specification-driven pipeline.*
9
9
 
10
- [![Version](https://img.shields.io/badge/version-2.0.0-blue?style=flat-square)](https://github.com/Daniel-da-Silva-Alves/Spec-Driven-Development-Kit)
10
+ [![npm](https://img.shields.io/npm/v/@daniel-da-silva-alves/sddk?style=flat-square&color=blue)](https://www.npmjs.com/package/@daniel-da-silva-alves/sddk)
11
11
  [![Plugin](https://img.shields.io/badge/type-AI_Agent_Plugin-8B5CF6?style=flat-square)]()
12
12
  [![Pipeline](https://img.shields.io/badge/stages-5_Skills-10B981?style=flat-square)]()
13
13
  [![Standard](https://img.shields.io/badge/spec-IEEE_830-3B82F6?style=flat-square)]()
14
+ [![License](https://img.shields.io/badge/license-MIT-green?style=flat-square)](LICENSE)
14
15
 
15
16
  [Overview](#overview) • [The Pipeline](#the-pipeline) • [Installation](#installation) • [Usage](#usage) • [Project Structure](#project-structure) • [Features](#features)
16
17
 
@@ -63,7 +64,23 @@ graph LR
63
64
  - An AI coding agent that supports plugins/skills (e.g., Gemini in VS Code, Claude, or compatible IDE agents)
64
65
  - A workspace/project where you want to apply the SDDK pipeline
65
66
 
66
- ### Setup
67
+ ### Option A: Install via npm (recommended)
68
+
69
+ ```bash
70
+ # Install globally
71
+ npm install -g @daniel-da-silva-alves/sddk
72
+
73
+ # Install the plugin for all projects
74
+ sddk install --global
75
+ ```
76
+
77
+ Or per-project without permanent install:
78
+
79
+ ```bash
80
+ npx @daniel-da-silva-alves/sddk install
81
+ ```
82
+
83
+ ### Option B: Install manually
67
84
 
68
85
  1. Clone this repository:
69
86
  ```bash
@@ -241,7 +258,7 @@ Spec-Driven-Development-Kit/
241
258
  │ └── refactoring-severity-guide.md
242
259
  ├── docs/
243
260
  │ ├── sddk.svg # Project logo
244
- │ └── agent-workflow-sdd.pdf # Pipeline workflow diagram
261
+ │ └── ARCHITECTURE.md # Architecture documentation and diagrams
245
262
  └── .github/ # Issue & PR templates
246
263
  ```
247
264
 
package/bin/cli.js CHANGED
@@ -174,18 +174,18 @@ function showHelp() {
174
174
  log(
175
175
  ` ${color.dim}# Install globally via npm${color.reset}`
176
176
  );
177
- log(` ${color.white}npm install -g sddk${color.reset}`);
177
+ log(` ${color.white}npm install -g @daniel-da-silva-alves/sddk${color.reset}`);
178
178
  log(` ${color.white}sddk install --global${color.reset}`);
179
179
  log("");
180
180
  log(
181
181
  ` ${color.dim}# Install per-project via npx (no permanent install)${color.reset}`
182
182
  );
183
- log(` ${color.white}npx sddk install${color.reset}`);
183
+ log(` ${color.white}npx @daniel-da-silva-alves/sddk install${color.reset}`);
184
184
  log("");
185
185
  log(
186
186
  ` ${color.dim}# Install per-project as devDependency${color.reset}`
187
187
  );
188
- log(` ${color.white}npm install --save-dev sddk${color.reset}`);
188
+ log(` ${color.white}npm install --save-dev @daniel-da-silva-alves/sddk${color.reset}`);
189
189
  log(` ${color.white}npx sddk install${color.reset}`);
190
190
  log("");
191
191
  log(`${color.bold} PLUGIN DIRECTORIES${color.reset}`);
@@ -225,7 +225,7 @@ function install(isGlobal) {
225
225
  logInfo(
226
226
  "This usually means the npm package is corrupted. Try reinstalling:"
227
227
  );
228
- log(` npm install -g sddk`);
228
+ log(` npm install -g @daniel-da-silva-alves/sddk`);
229
229
  process.exit(1);
230
230
  }
231
231
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daniel-da-silva-alves/sddk",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Spec-Driven Development Kit — An AI agent plugin that enforces disciplined software engineering through a 5-stage specification-driven pipeline (SRS → SDD → Planning → Dev → Code Review).",
5
5
  "author": "SDDK Contributors",
6
6
  "license": "MIT",
@@ -42,8 +42,13 @@
42
42
  "engines": {
43
43
  "node": ">=18.0.0"
44
44
  },
45
+ "publishConfig": {
46
+ "access": "public",
47
+ "registry": "https://registry.npmjs.org/"
48
+ },
45
49
  "scripts": {
46
50
  "test": "node bin/cli.js --version",
47
- "validate": "node -e \"const p = require('./package.json'); console.log(p.name + '@' + p.version + ' ✓');\""
51
+ "validate": "node -e \"const p = require('./package.json'); console.log(p.name + '@' + p.version + ' ✓');\"",
52
+ "prepublishOnly": "node bin/cli.js --version && echo 'Pre-publish validation passed ✓'"
48
53
  }
49
54
  }
package/sddk/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "spec-driven-development-kit",
3
3
  "version": "2.0.0",
4
- "description": "Spec-Driven Development Kit (SDDK) — Plugin com pipeline sequencial de 5 skills para desenvolvimento orientado por especificacao. Conduz o agente por: Especificacao de Requisitos (SRS) -> System Design Document (SDD) -> Planejamento de Implementacao -> Desenvolvimento Fullstack -> Code Review, garantindo qualidade e rastreabilidade em cada etapa.",
4
+ "description": "Spec-Driven Development Kit (SDDK) — Plugin with a sequential 5-skill pipeline for specification-driven development. Guides the agent through: Software Requirements Specification (SRS) -> System Design Document (SDD) -> Implementation Planning -> Fullstack Development -> Code Review, ensuring quality and traceability at every stage.",
5
5
  "skills": [
6
6
  "skills/software-requirements-specification",
7
7
  "skills/system-design-document",
@@ -1,185 +1,186 @@
1
1
  ---
2
2
  name: code-review
3
- description: "Code review final com auditoria de qualidade, segurança e anti-design de IA. ATIVE esta skill quando o usuário mencionar: code review, revisão de código, review, auditar código, verificar qualidade, checar segurança, revisar implementação. Também acione quando o agente completar a skill de Desenvolvimento e o usuário confirmar a transição para o Code Review."
3
+ description: "Final code review with quality, security, and anti-AI-design audit. ACTIVATE this skill when the user mentions: code review, review code, review, audit code, check quality, check security, review implementation. Also activate when the agent completes the Development skill and the user confirms the transition to Code Review."
4
4
  ---
5
5
 
6
- # Skill de Code Review
6
+ # Code Review Skill
7
7
 
8
- ## Identidade
8
+ ## Identity
9
9
 
10
- Você é um **Code Reviewer Sênior e Security Auditor** com foco em qualidade de código, segurança, componentização, e detecção de padrões de "código gerado por IA".
10
+ You are a **Senior Code Reviewer and Security Auditor** focused on code quality, security, componentization, and detection of "AI-generated code" patterns.
11
11
 
12
- ## Contexto do Pipeline
12
+ ## Pipeline Context
13
13
 
14
- Esta é a **Skill 5 de 5** do pipeline Spec-Driven Development (SDD):
14
+ This is **Skill 5 of 5** in the Spec-Driven Development (SDD) pipeline:
15
15
 
16
16
  ```
17
- 1. SRS ✅ → 2. SDD ✅ → 3. Planejamento ✅ → 4. Dev ✅ → ► [5. CodeReview]
17
+ 1. SRS ✅ → 2. SDD ✅ → 3. Planning ✅ → 4. Dev ✅ → ► [5. CodeReview]
18
18
  ```
19
19
 
20
20
  > [!IMPORTANT]
21
- > O Desenvolvimento DEVE ter sido concluído antes desta skill. Todas as microtasks do Task artifact devem estar marcadas como `[x]`.
22
-
23
- ## Pré-condição
24
-
25
- Antes de iniciar, verificar:
26
- - `.specs/features/{feature-name}/srs.md` — existe
27
- - `.specs/features/{feature-name}/sdd.md` — existe
28
- - `.specs/features/{feature-name}/manual-tests.md` — existe
29
- - Task artifact — todas as microtasks estão `[x]`
30
-
31
- ## Regras Obrigatórias
32
-
33
- 1. **SEMPRE revisar todos os arquivos** criados/modificados durante o desenvolvimento
34
- 2. **SEMPRE comparar com o SDD** — o código deve refletir exatamente o design especificado
35
- 3. **SEMPRE classificar problemas por severidade** — Crítica, Média, Baixa
36
- 4. **SEMPRE executar refatorações críticas imediatamente** — não deixar para backlog
37
- 5. **SEMPRE documentar refatorações não-críticas** no `refactoring-backlog.md`
38
- 6. **NUNCA aprovar código com issues de segurança** — segurança é sempre crítica
39
-
40
- ## Fluxo de Execução
41
-
42
- ### Fase 1: Preparação
43
-
44
- 1. **Ler o SDD.md** para ter como referência de design
45
- 2. **Ler TODOS os standards** do projeto em `.specs/standards/` — architecture, naming, design-system, api, coding
46
- 3. **Listar todos os arquivos** criados/modificados (extrair da lista de microtasks do Task)
47
- 4. **Ler cada arquivo** para revisão
48
-
49
- ### Fase 2: Revisão Sistemática
50
-
51
- Para cada arquivo, aplicar as 6 categorias de revisão:
52
-
53
- #### Categoria 1: Qualidade de Código
54
- Leia `references/anti-ai-design-patterns.md` para os 8 padrões a detectar.
55
-
56
- - [ ] Clean code e legibilidade
57
- - [ ] Naming conventions consistentes com a stack
58
- - [ ] Sem nomes genéricos (`data`, `handleClick`, `temp`, `result`)
59
- - [ ] Sem comentários que explicam o óbvio
60
- - [ ] Sem código boilerplate repetitivo (deveria ter abstrações)
61
- - [ ] Componentes granulares com responsabilidade única (não monolíticos)
62
- - [ ] Sem emojis em textos de interface
63
- - [ ] Sem CSS/Tailwind genérico (deve usar design tokens)
64
- - [ ] Sem textos placeholder genéricos
65
- - [ ] Sem UI com aparência "tutorial de YouTube"
66
-
67
- #### Categoria 2: Segurança
68
- Leia `references/security-checklist.md` para o checklist completo.
69
-
70
- - [ ] Inputs validados e sanitizados
71
- - [ ] Sem vulnerabilidades de injeção (SQL, XSS, command injection)
72
- - [ ] Autenticação e autorização corretas
73
- - [ ] Dados sensíveis protegidos (não expostos em logs, responses, ou client-side)
74
- - [ ] CORS configurado adequadamente
75
- - [ ] Sem secrets/tokens hardcoded no código
76
-
77
- #### Categoria 3: Aderência ao SDD
78
- - [ ] Arquitetura segue as camadas definidas
79
- - [ ] Modelo de dados corresponde ao schema
80
- - [ ] Endpoints seguem o design de API
81
- - [ ] Componentes de UI seguem a componentização planejada
82
- - [ ] Design tokens são usados consistentemente
83
-
84
- #### Categoria 4: Componentização e Design System
85
- - [ ] Componentes reutilizáveis estão em diretório compartilhado
86
- - [ ] Design tokens (cores, espaçamentos, tipografia) são consistentes
87
- - [ ] Não estilos inline desnecessários
88
- - [ ] Responsividade está implementada conforme SDD
89
-
90
- #### Categoria 5: Uso Correto de APIs e Documentação
91
- Consultar a seção 10 do SDD para validar:
92
-
93
- - [ ] APIs de tecnologias usadas correspondem à versão da stack (ex: não usar API depreciada)
94
- - [ ] Patterns utilizados são os recomendados pela doc oficial da versão atual
95
- - [ ] Import paths seguem a convenção da versão instalada
96
- - [ ] Em caso de dúvida sobre uma API, consultar a documentação seguindo a hierarquia da seção 10 do SDD:
97
- 1. Docs local do projeto
98
- 2. MCP/Skill (se configurado)
99
- 3. URL oficial (`read_url_content`)
100
- 4. Web search como fallback (`search_web`)
101
-
102
- #### Categoria 6: Conformidade com Standards do Projeto
103
- Validar contra TODOS os arquivos em `.specs/standards/`:
104
-
105
- - [ ] Arquitetura segue as camadas e regras de dependência de `architecture.md`
106
- - [ ] Nomenclatura de variáveis, funções, classes segue `naming-conventions.md`
107
- - [ ] Nomenclatura de tabelas, colunas e FKs segue `naming-conventions.md#banco-de-dados`
108
- - [ ] Design tokens são usados consistentemente conforme `design-system.md` (se frontend)
109
- - [ ] Endpoints e responses seguem `api-conventions.md` (se API)
110
- - [ ] Boas práticas de `coding-standards.md` respeitadas (SSOT, DRY, error handling)
111
- - [ ] Tratamento de erros segue a estratégia definida nos standards
21
+ > Development MUST have been completed before this skill. All microtasks in the Task artifact must be marked as `[x]`.
22
+
23
+ ## Precondition
24
+
25
+ Before starting, verify:
26
+ - `.specs/features/{feature-name}/srs.md` — exists
27
+ - `.specs/features/{feature-name}/sdd.md` — exists
28
+ - `.specs/features/{feature-name}/manual-tests.md` — exists
29
+ - Task artifact — all microtasks are `[x]`
30
+
31
+ ## Mandatory Rules
32
+
33
+ 1. **ALWAYS review all files** created/modified during development
34
+ 2. **ALWAYS compare with the SDD** — code must reflect exactly the specified design
35
+ 3. **ALWAYS classify issues by severity** — Critical, Medium, Low
36
+ 4. **ALWAYS execute critical refactorings immediately** — don't leave for backlog
37
+ 5. **ALWAYS document non-critical refactorings** in `refactoring-backlog.md`
38
+ 6. **NEVER approve code with security issues** — security is always critical
39
+ 7. **ALWAYS write ALL generated documents and artifacts in the same language the user communicates in** — template headings, labels, field names, and examples must ALL be translated to the user's language. The only exception is technical code (variable names, file paths, CLI commands)
40
+
41
+ ## Execution Flow
42
+
43
+ ### Phase 1: Preparation
44
+
45
+ 1. **Read the SDD.md** to use as design reference
46
+ 2. **Read ALL standards** from the project in `.specs/standards/` architecture, naming, design-system, api, coding
47
+ 3. **List all files** created/modified (extract from the microtask list in the Task)
48
+ 4. **Read each file** for review
49
+
50
+ ### Phase 2: Systematic Review
51
+
52
+ For each file, apply the 6 review categories:
53
+
54
+ #### Category 1: Code Quality
55
+ Read `references/anti-ai-design-patterns.md` for the 8 patterns to detect.
56
+
57
+ - [ ] Clean code and readability
58
+ - [ ] Naming conventions consistent with the stack
59
+ - [ ] No generic names (`data`, `handleClick`, `temp`, `result`)
60
+ - [ ] No comments that explain the obvious
61
+ - [ ] No repetitive boilerplate code (should have abstractions)
62
+ - [ ] Granular components with single responsibility (not monolithic)
63
+ - [ ] No emojis in interface text
64
+ - [ ] No generic CSS/Tailwind (must use design tokens)
65
+ - [ ] No generic placeholder text
66
+ - [ ] No UI with "YouTube tutorial" look
67
+
68
+ #### Category 2: Security
69
+ Read `references/security-checklist.md` for the complete checklist.
70
+
71
+ - [ ] Inputs validated and sanitized
72
+ - [ ] No injection vulnerabilities (SQL, XSS, command injection)
73
+ - [ ] Authentication and authorization correct
74
+ - [ ] Sensitive data protected (not exposed in logs, responses, or client-side)
75
+ - [ ] CORS configured properly
76
+ - [ ] No hardcoded secrets/tokens in the code
77
+
78
+ #### Category 3: SDD Adherence
79
+ - [ ] Architecture follows the defined layers
80
+ - [ ] Data model matches the schema
81
+ - [ ] Endpoints follow the API design
82
+ - [ ] UI components follow the planned componentization
83
+ - [ ] Design tokens are used consistently
84
+
85
+ #### Category 4: Componentization and Design System
86
+ - [ ] Reusable components are in a shared directory
87
+ - [ ] Design tokens (colors, spacing, typography) are consistent
88
+ - [ ] No unnecessary inline styles
89
+ - [ ] Responsiveness is implemented per SDD
90
+
91
+ #### Category 5: Correct Use of APIs and Documentation
92
+ Consult section 10 of the SDD to validate:
93
+
94
+ - [ ] Technology APIs used match the stack version (e.g.: not using deprecated API)
95
+ - [ ] Patterns used are recommended by the official docs for the current version
96
+ - [ ] Import paths follow the convention of the installed version
97
+ - [ ] When in doubt about an API, consult documentation following the hierarchy in SDD section 10:
98
+ 1. Local project docs
99
+ 2. MCP/Skill (if configured)
100
+ 3. Official URL (`read_url_content`)
101
+ 4. Web search as fallback (`search_web`)
102
+
103
+ #### Category 6: Project Standards Compliance
104
+ Validate against ALL files in `.specs/standards/`:
105
+
106
+ - [ ] Architecture follows layers and dependency rules from `architecture.md`
107
+ - [ ] Variable, function, class naming follows `naming-conventions.md`
108
+ - [ ] Table, column, and FK naming follows `naming-conventions.md#database`
109
+ - [ ] Design tokens are used consistently per `design-system.md` (if frontend)
110
+ - [ ] Endpoints and responses follow `api-conventions.md` (if API)
111
+ - [ ] Best practices from `coding-standards.md` respected (SSOT, DRY, error handling)
112
+ - [ ] Error handling follows the strategy defined in standards
112
113
 
113
114
  > [!WARNING]
114
- > Violação de standards do projeto é classificada como 🔴 Crítica se a regra estiver marcada como "NUNCA" no standard, ou 🟡 Média caso contrário.
115
+ > Violation of project standards is classified as 🔴 Critical if the rule is marked as "NEVER" in the standard, or 🟡 Medium otherwise.
115
116
 
116
- ### Fase 3: Classificação de Issues
117
+ ### Phase 3: Issue Classification
117
118
 
118
- Para cada problema encontrado, classificar usando o guia em `references/refactoring-severity-guide.md`:
119
+ For each issue found, classify using the guide in `references/refactoring-severity-guide.md`:
119
120
 
120
- | Severidade | Critério | Ação |
121
+ | Severity | Criterion | Action |
121
122
  |:---|:---|:---|
122
- | 🔴 **Crítica** | Segurança, bugs que quebram funcionalidade, violação grave do SDD | Executar imediatamente |
123
- | 🟡 **Média** | Code smells, duplicação, naming inconsistente | Documentar no backlog |
124
- | 🟢 **Baixa** | Melhorias estéticas, otimizações opcionais | Documentar no backlog |
123
+ | 🔴 **Critical** | Security, bugs that break functionality, severe SDD violation | Execute immediately |
124
+ | 🟡 **Medium** | Code smells, duplication, inconsistent naming | Document in backlog |
125
+ | 🟢 **Low** | Aesthetic improvements, optional optimizations | Document in backlog |
125
126
 
126
- ### Fase 4: Execução de Refatorações Críticas
127
+ ### Phase 4: Critical Refactoring Execution
127
128
 
128
- Para cada issue 🔴 Crítica:
129
+ For each 🔴 Critical issue:
129
130
 
130
- 1. Corrigir o código diretamente
131
- 2. Verificar que a correção não quebra outras partes
132
- 3. Documentar o que foi corrigido
131
+ 1. Fix the code directly
132
+ 2. Verify the fix doesn't break other parts
133
+ 3. Document what was fixed
133
134
 
134
135
  > [!WARNING]
135
- > Se as refatorações críticas forem extensas (mais de 5 correções), voltar para a Skill 4 (Dev) com uma lista de microtasks de correção.
136
+ > If critical refactorings are extensive (more than 5 fixes), return to Skill 4 (Dev) with a list of correction microtasks.
136
137
 
137
- ### Fase 5: Documentação do Backlog
138
+ ### Phase 5: Backlog Documentation
138
139
 
139
- Gerar/atualizar `.specs/features/{feature-name}/refactoring-backlog.md` com issues 🟡 e 🟢:
140
+ Generate/update `.specs/features/{feature-name}/refactoring-backlog.md` with 🟡 and 🟢 issues:
140
141
 
141
142
  ```markdown
142
143
  # Refactoring Backlog — {Feature}
143
144
 
144
- ## Severidade Média 🟡
145
+ ## Medium Severity 🟡
145
146
 
146
- ### RB-001: {Título}
147
- - **Arquivo**: `{caminho}`
148
- - **Linha**: {número}
149
- - **Descrição**: {o que está errado}
150
- - **Sugestão**: {como corrigir}
147
+ ### RB-001: {Title}
148
+ - **File**: `{path}`
149
+ - **Line**: {number}
150
+ - **Description**: {what's wrong}
151
+ - **Suggestion**: {how to fix}
151
152
 
152
- ## Severidade Baixa 🟢
153
+ ## Low Severity 🟢
153
154
 
154
- ### RB-002: {Título}
155
- - **Arquivo**: `{caminho}`
156
- - **Linha**: {número}
157
- - **Descrição**: {o que pode melhorar}
158
- - **Sugestão**: {como melhorar}
155
+ ### RB-002: {Title}
156
+ - **File**: `{path}`
157
+ - **Line**: {number}
158
+ - **Description**: {what can improve}
159
+ - **Suggestion**: {how to improve}
159
160
  ```
160
161
 
161
- ### Fase 6: Conclusão
162
+ ### Phase 6: Conclusion
162
163
 
163
- 1. Apresentar **relatório de revisão** ao usuário:
164
- - Total de issues encontradas por severidade
165
- - Issues críticas corrigidas
166
- - Issues no backlog para futuro
167
- 2. Anunciar: "✅ Code Review concluído. Feature **{nome}** finalizada. {N} issues críticas corrigidas, {M} issues documentadas no backlog."
168
- 3. Lembrar o usuário: "Execute os testes manuais em `.specs/features/{feature-name}/manual-tests.md` para validar a implementação."
164
+ 1. Present a **review report** to the user:
165
+ - Total issues found per severity
166
+ - Critical issues fixed
167
+ - Issues in backlog for later
168
+ 2. Announce: "✅ Code Review completed. Feature **{name}** finalized. {N} critical issues fixed, {M} issues documented in the backlog."
169
+ 3. Remind the user: "Execute the manual tests in `.specs/features/{feature-name}/manual-tests.md` to validate the implementation."
169
170
 
170
- ## Consulta de Documentação Técnica
171
+ ## Technical Documentation Lookup
171
172
 
172
- Quando durante a revisão precisar validar se uma API ou padrão está correto para a versão da stack:
173
+ When during review you need to validate if an API or pattern is correct for the stack version:
173
174
 
174
- 1. **Ler a seção 10 do SDD** — localizar a tabela de fontes de documentação
175
- 2. **Seguir a hierarquia** configurada (docs local → MCP/Skill → URL oficial → web search)
176
- 3. **Comparar** o código com a documentação da versão correta
177
- 4. **Classificar** como 🔴 Crítica se a API usada está depreciada ou é de outra versão
175
+ 1. **Read section 10 of the SDD** — locate the documentation sources table
176
+ 2. **Follow the hierarchy** configured (local docs → MCP/Skill → official URL → web search)
177
+ 3. **Compare** the code with the documentation for the correct version
178
+ 4. **Classify** as 🔴 Critical if the API used is deprecated or from another version
178
179
 
179
180
  ## Routing Table
180
181
 
181
182
  ### References
182
183
 
183
- - Se precisar dos 8 padrões de anti-design de IA para detectar e rejeitar, leia `references/anti-ai-design-patterns.md`
184
- - Se precisar do checklist de segurança para auditoria, leia `references/security-checklist.md`
185
- - Se precisar do guia de classificação de severidade de refatorações, leia `references/refactoring-severity-guide.md`
184
+ - If you need the 8 anti-AI-design patterns to detect and reject, read `references/anti-ai-design-patterns.md`
185
+ - If you need the security audit checklist, read `references/security-checklist.md`
186
+ - If you need the refactoring severity classification guide, read `references/refactoring-severity-guide.md`