skills/en/tao-test-strategy/SKILL.md
Test pyramid strategy with coverage analysis, edge case identification, and test planning. Use when planning tests, improving coverage, identifying edge cases, or writing test specifications.
npx skillsauth add andretauan/tao tao-test-strategyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use when planning tests, writing test specs, improving coverage, or identifying edge cases.
╱╲
╱ E2E ╲ Few (critical user flows)
╱────────╲
╱Integration╲ Medium (API/service boundaries)
╱──────────────╲
╱ Unit Tests ╲ Many (pure functions, business logic)
╱════════════════════╲
| Layer | Target | Focus | |-------|--------|-------| | Unit | 80%+ | Business logic, calculations, transformations | | Integration | Key paths | API endpoints, DB queries, external services | | E2E | Critical flows | Login, checkout, data submission |
Always test these categories:
// Arrange — set up test data and context
// Act — execute the code under test
// Assert — verify the expected outcome
[unit]_[scenario]_[expected_result]
createUser_withValidEmail_returnsUserIdcreateUser_withDuplicateEmail_throwsConflictErrorgetOrder_withInvalidId_returns404testing
Estratégia de pirâmide de testes com análise de cobertura, identificação de edge cases e planejamento de testes. Use ao planejar testes, melhorar cobertura, identificar edge cases ou escrever especificações de teste.
development
Auditoria de segurança alinhada ao OWASP Top 10 com checklist para injection, XSS, autenticação, autorização, gestão de secrets e vulnerabilidades comuns. Use ao auditar segurança, revisar código de auth ou hardening de aplicação.
development
Metodologia de refatoração segura com detecção de code smells, transformação passo-a-passo e prevenção de regressão. Use ao refatorar código, reduzir dívida técnica ou melhorar estrutura.
testing
Decomposição expert de tarefas para criar PLAN.md no TAO. Quebra features em fases e tarefas com critérios de aceite, estimativas e dependências. Use ao planejar trabalho, criar fases ou decompor features.