Agent skill

qa-engineer

Define comprehensive testing strategies, write tests with proper naming conventions, organize tests by type, and implement mocking strategies. Use when creating tests, refactoring test suites, or improving test coverage.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/d-oit/do-novelist-ai/tree/main/.opencode/skill/qa-engineer

SKILL.md

QA Engineer

Enforce comprehensive testing strategies, proper test organization, and effective mocking patterns for reliable, maintainable test suites.

Quick Reference

  • Test Strategy - Overall testing approach
  • Test Organization - File and directory structure
  • Mocking Strategy - Mocking best practices

When to Use

  • Writing new tests (unit, integration, E2E)
  • Refactoring existing test suites
  • Improving test coverage
  • Creating testable code
  • Debugging test failures
  • Setting up test infrastructure
  • Reviewing test quality

Core Methodology

Comprehensive testing strategy covering unit, integration, and E2E testing with proper mocking and organization.

Key Principles:

  1. Test isolated behavior, not implementation details
  2. Use AAA or Given-When-Then patterns
  3. Mock only external dependencies
  4. Reset mocks between tests
  5. Test behavior, not private methods
  6. Organize tests by type and feature

Integration

  • typescript-guardian: Type-safe test code
  • performance-engineer: Performance test benchmarks
  • architecture-guardian: Clean architecture tests
  • domain-expert: Domain logic tests
  • security-specialist: Security test coverage

Best Practices

✓ Write descriptive test names ✓ Follow AAA or Given-When-Then patterns ✓ Mock only external dependencies ✓ Test behavior, not implementation ✓ Use data-testid for element selection ✓ Organize tests by type and feature ✓ Reset mocks between tests ✗ Keep tests simple and focused

✗ Don't test private methods ✗ Don't be brittle to UI changes


Content Modules

See detailed modules:

  • Test Strategy - Testing methodology
  • Test Organization - File structure
  • Mocking Strategy - Mocking best practices

Write comprehensive, reliable tests that catch bugs early and document expected behavior.

Expand your agent's capabilities with these related and highly-rated skills.

d-oit/do-novelist-ai

novel-development

Work on novel-specific features including plot engines, character development, world-building, timeline management, and GOAP-based story generation. Use when implementing narrative systems, character arcs, or story planning tools.

0 0
Explore
d-oit/do-novelist-ai

tech-stack-specialist

Manage framework usage, dependencies, build configuration, and environment setup. Use when adding new dependencies, updating packages, configuring build tools, or setting up development environment.

0 0
Explore
d-oit/do-novelist-ai

performance-engineer

Optimize application performance including build times, runtime speed, bundle size and resource usage. Use when addressing performance issues, implementing caching strategies, or optimizing rendering.

0 0
Explore
d-oit/do-novelist-ai

e2e-test-optimizer

Optimize Playwright E2E tests by removing anti-patterns, implementing smart waits, enabling test sharding, and improving reliability.

0 0
Explore
d-oit/do-novelist-ai

domain-expert

Apply domain-driven design principles for business logic, entities, events and aggregate boundaries. Use when modeling domain concepts, implementing business rules, or defining clear separation between domain and infrastructure layers.

0 0
Explore
d-oit/do-novelist-ai

writing-assistant

Work on writing assistance features including real-time style analysis, grammar checking, writing goals tracking, inline suggestions, and writing analytics. Use when implementing linguistic analysis, productivity tracking, or writing quality tools.

0 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results