QA Code Review
This skill defines how to review QA Playwright code (specs, test-data, fixtures) by considering the perspective of each QA subagent, then consolidating their concerns into one report focused on manutenção, qualidade e padronização.
When to Use
- User asks for a code review of specs, test-data, or flow.
- User asks "o que acha do código?" or "revise esse teste".
- User wants a consolidated improvement list from the point of view of the project's QA standards.
Process
- Identify scope: What is under review? (single spec, whole flow, test-data, fixtures.)
- Apply each relevant QA perspective by reading and applying the criteria from:
- Optionally consider:
- Produce a single report with the structure below.
Output Structure
Produce the review in this order:
1. Manutenção (conventions)
- Checklist from maintain skill: imports from fixtures, test-data vs hardcode, directory structure, baseURL.
- Explicit: ✅ atende / ⚠️ atenção / ❌ não atende, with short reason.
2. Qualidade
- Locators: resilient (getByRole, getByLabel, getByText) vs brittle (XPath por posição, classes).
- Assertions: web-first, timeouts adequados, critérios de sucesso claros.
- Legibilidade: Arrange–Act–Assert, comentários úteis, nome do teste descritivo.
3. Padronização
- Estrutura: tests/ e test-data/ alinhados ao fluxo; nomenclatura de pastas e arquivos.
- Dados: inputs.json/builder.ts conforme docs; uso de data-factory quando fizer sentido.
- Fixtures: se faz sentido sugerir fixture (ex.: página logada, inputs por fluxo) para evitar duplicação.
4. Resumo de melhorias
- Lista objetiva e acionável (ex.: "Usar inputs.produto.categoria no spec ou remover do JSON").
- Priorize: quebra de convenção > qualidade > padronização > sugestões opcionais.
Delegation Note
You cannot invoke other agents programmatically. Instead, apply their criteria yourself: read the skills listed above (maintain, add-fixture, add-flow, and optionally add-test-data, frontend-qa-friendly) and evaluate the code under review as each of those agents would. Then merge the findings into the single report (maintenance, quality, standardization, summary).
References
1---2name: qa-code-review3description: Perform QA Playwright code review by applying the perspectives of maintain, add-fixture, and add-flow agents; produce a consolidated improvement summary focused on maintenance, quality, and standardization. Use when the user asks for a code review, review of specs/test-data, or improvement summary.4---56# QA Code Review78This skill defines how to review QA Playwright code (specs, test-data, fixtures) by **considering the perspective of each QA subagent**, then **consolidating** their concerns into one report focused on **manutenção**, **qualidade** e **padronização**.910## When to Use1112- User asks for a code review of specs, test-data, or flow.13- User asks "o que acha do código?" or "revise esse teste".14- User wants a consolidated improvement list from the point of view of the project's QA standards.1516## Process17181. **Identify scope:** What is under review? (single spec, whole flow, test-data, fixtures.)192. **Apply each relevant QA perspective** by reading and applying the criteria from:20 - **Conventions (maintain):** [skill-qa-playwright-maintain-conventions](../skill-qa-playwright-maintain-conventions/SKILL.md) — imports, test-data usage, structure, locators.21 - **Fixtures (add-fixture):** [skill-qa-playwright-add-fixture](../skill-qa-playwright-add-fixture/SKILL.md) — whether fixtures would reduce duplication or improve structure.22 - **Flow (add-flow):** [skill-qa-playwright-add-new-flow](../skill-qa-playwright-add-new-flow/SKILL.md) — when reviewing a flow: folders, inputs, baseURL, naming.233. **Optionally** consider:24 - **Test-data:** [skill-qa-playwright-add-test-data](../skill-qa-playwright-add-test-data/SKILL.md) — if the review involves inputs.json, builder.ts.25 - **Frontend-friendly:** [skill-frontend-qa-friendly](../skill-frontend-qa-friendly/SKILL.md) — locators, accessibility, stability.264. **Produce a single report** with the structure below.2728## Output Structure2930Produce the review in this order:3132### 1. Manutenção (conventions)3334- Checklist from maintain skill: imports from fixtures, test-data vs hardcode, directory structure, baseURL.35- Explicit: ✅ atende / ⚠️ atenção / ❌ não atende, with short reason.3637### 2. Qualidade3839- Locators: resilient (getByRole, getByLabel, getByText) vs brittle (XPath por posição, classes).40- Assertions: web-first, timeouts adequados, critérios de sucesso claros.41- Legibilidade: Arrange–Act–Assert, comentários úteis, nome do teste descritivo.4243### 3. Padronização4445- Estrutura: tests/ e test-data/ alinhados ao fluxo; nomenclatura de pastas e arquivos.46- Dados: inputs.json/builder.ts conforme docs; uso de data-factory quando fizer sentido.47- Fixtures: se faz sentido sugerir fixture (ex.: página logada, inputs por fluxo) para evitar duplicação.4849### 4. Resumo de melhorias5051- Lista objetiva e acionável (ex.: "Usar inputs.produto.categoria no spec ou remover do JSON").52- Priorize: quebra de convenção > qualidade > padronização > sugestões opcionais.5354## Delegation Note5556You cannot invoke other agents programmatically. Instead, **apply their criteria yourself**: read the skills listed above (maintain, add-fixture, add-flow, and optionally add-test-data, frontend-qa-friendly) and evaluate the code under review as each of those agents would. Then merge the findings into the single report (maintenance, quality, standardization, summary).5758## References5960- [AGENTS.md](../../../AGENTS.md) — list of QA agents and skills61- [docs/02-estrutura-de-diretórios.md](../../../docs/02-estrutura-de-diretórios.md) — directory roles62- [docs/03-fixtures.md](../../../docs/03-fixtures.md) — fixtures63- [docs/07-como-adicionar-novo-fluxo.md](../../../docs/07-como-adicionar-novo-fluxo.md) — flow structure