| name | qa-code-review |
| description | 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. |
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