test-master
jeffallan/claude-skills
Comprehensive testing specialist for unit, integration, E2E, performance, and security tests.
What is test-master?
Test Master generates test files, designs test strategies, analyzes coverage, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use it when writing tests, creating test automation frameworks, analyzing coverage gaps, performance testing with k6 or Artillery, security testing with OWASP methods, debugging flaky tests, or working on QA, regression, quality gates, and shift-left testing.
- Generate unit, integration, and E2E test files with proper assertions and isolated dependencies
- Create mocking strategies and test fixtures to avoid external API/database calls
- Design test architectures and automation frameworks with patterns for scaling and maintenance
- Analyze code coverage and identify gaps; flag unmet coverage targets explicitly
- Produce test plans, defect reports, and findings with severity ratings and actionable recommendations
- Debug flaky tests by isolating ordering dependencies, async handling, and stabilization logic
How to install test-master
npx skills add https://github.com/jeffallan/claude-skills --skill test-masterHow to use test-master
- 1.Define the scope: identify what to test and which testing types apply (unit, integration, E2E, performance, security)
- 2.Create a test strategy: plan the approach across functional, performance, and security perspectives
- 3.Write tests: implement with meaningful descriptions, specific assertions, and isolated dependencies
- 4.Execute tests: run and collect results; classify failures and fix root causes; quarantine and stabilize flaky tests
- 5.Report findings: document with severity ratings, coverage analysis, and specific fix recommendations
Use cases
- Writing Jest or pytest unit tests with meaningful descriptions and specific assertions
- Creating integration tests with Supertest for API endpoints
- Designing E2E test strategies and user flow automation with Playwright or similar
- Performance testing with k6 or Artillery to identify load bottlenecks
- Security testing using OWASP methods and checklists
- QA engineers and test automation specialists
- Backend and full-stack developers writing unit and integration tests
- DevOps engineers implementing quality gates and CI/CD test pipelines
- Tech leads designing test architectures and automation frameworks
- Teams adopting TDD or shift-left testing practices
test-master FAQ
Jest, Vitest, and pytest for unit testing; Supertest for API integration testing; Playwright and similar for E2E; k6 and Artillery for performance testing. The skill applies the same patterns across all frameworks.
Isolate ordering dependencies, check async handling, add retry or stabilization logic, and quarantine flaky tests until fixed. Never ignore or re-run until green without addressing root cause.
Yes, always. Mock external APIs and databases in unit tests using fixtures or factories. Never call real services; reserve integration tests for that.
Write it as a plain-English specification that reads naturally, e.g., 'applies 10% discount for premium users' instead of 'test discount function'. This makes tests self-documenting.
Test Master analyzes coverage and flags gaps explicitly. Test both happy paths and error/edge cases (empty input, null, boundary values). Document coverage targets and remediate gaps before closing.
Full instructions (SKILL.md)
Source of truth, from jeffallan/claude-skills.
name: test-master description: Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation frameworks; analyzing coverage gaps; performance testing with k6 or Artillery; security testing with OWASP methods; debugging flaky tests; or working on QA, regression, test automation, quality gates, shift-left testing, or test maintenance. license: MIT metadata: author: https://github.com/Jeffallan version: "1.1.1" domain: quality triggers: test, testing, QA, unit test, integration test, E2E, coverage, performance test, security test, regression, test strategy, test automation, test framework, quality metrics, defect, exploratory, usability, accessibility, localization, manual testing, shift-left, quality gate, flaky test, test maintenance role: specialist scope: testing output-format: report related-skills: fullstack-guardian, playwright-expert, devops-engineer, debugging-wizard, code-reviewer, feature-forge
Test Master
Comprehensive testing specialist ensuring software quality through functional, performance, and security testing.
Core Workflow
- Define scope — Identify what to test and which testing types apply
- Create strategy — Plan the test approach across functional, performance, and security perspectives
- Write tests — Implement tests with proper assertions (see example below)
- Execute — Run tests and collect results
- If tests fail: classify the failure (assertion error vs. environment/flakiness), fix root cause, re-run
- If tests are flaky: isolate ordering dependencies, check async handling, add retry or stabilization logic
- Report — Document findings with severity ratings and actionable fix recommendations
- Verify coverage targets are met before closing; flag gaps explicitly
Quick-Start Example
A minimal Jest unit test illustrating the key patterns this skill enforces:
// ✅ Good: meaningful description, specific assertion, isolated dependency
describe('calculateDiscount', () => {
it('applies 10% discount for premium users', () => {
const result = calculateDiscount({ price: 100, userTier: 'premium' });
expect(result).toBe(90); // specific outcome, not just truthy
});
it('throws on negative price', () => {
expect(() => calculateDiscount({ price: -1, userTier: 'standard' }))
.toThrow('Price must be non-negative');
});
});
Apply the same structure for pytest (def test_…, assert result == expected) and other frameworks.
Reference Guide
Load detailed guidance based on context:
<!-- TDD Iron Laws and Testing Anti-Patterns adapted from obra/superpowers by Jesse Vincent (@obra), MIT License -->| Topic | Reference | Load When |
|---|---|---|
| Unit Testing | references/unit-testing.md | Jest, Vitest, pytest patterns |
| Integration | references/integration-testing.md | API testing, Supertest |
| E2E | references/e2e-testing.md | E2E strategy, user flows |
| Performance | references/performance-testing.md | k6, load testing |
| Security | references/security-testing.md | Security test checklist |
| Reports | references/test-reports.md | Report templates, findings |
| QA Methodology | references/qa-methodology.md | Manual testing, quality advocacy, shift-left, continuous testing |
| Automation | references/automation-frameworks.md | Framework patterns, scaling, maintenance, team enablement |
| TDD Iron Laws | references/tdd-iron-laws.md | TDD methodology, test-first development, red-green-refactor |
| Testing Anti-Patterns | references/testing-anti-patterns.md | Test review, mock issues, test quality problems |
Constraints
MUST DO
- Test happy paths AND error/edge cases (e.g., empty input, null, boundary values)
- Mock external dependencies — never call real APIs or databases in unit tests
- Use meaningful
it('…')descriptions that read as plain-English specifications - Assert specific outcomes (
expect(result).toBe(90)), not just truthiness - Run tests in CI/CD; document and remediate coverage gaps
MUST NOT
- Skip error-path testing (e.g., don't test only the success branch of a try/catch)
- Use production data in tests — use fixtures or factories instead
- Create order-dependent tests — each test must be independently runnable
- Ignore flaky tests — quarantine and fix them; don't just re-run until green
- Test implementation details (internal method calls) — test observable behaviour
Output Templates
When creating test plans, provide:
- Test scope and approach
- Test cases with expected outcomes
- Coverage analysis
- Findings with severity (Critical/High/Medium/Low)
- Specific fix recommendations
Related skills
More from jeffallan/claude-skills and the wider catalog.

laravel-specialist
Build Laravel 10+ applications with Eloquent models, Sanctum auth, queues, APIs, and Livewire components.

golang-pro
Senior Go developer for concurrent systems, microservices, and production-grade performance optimization.

flutter-expert
Senior Flutter engineer for cross-platform apps with Riverpod, Bloc, GoRouter, and performance optimization.

php-pro
Senior PHP developer for modern PHP 8.3+, Laravel, Symfony with strict typing, PHPStan level 9, and enterprise patterns.

kubernetes-specialist
Deploy and manage Kubernetes workloads with secure manifests, RBAC, networking, and troubleshooting.

devops-engineer
Creates Dockerfiles, CI/CD pipelines, Kubernetes manifests, and infrastructure-as-code templates for deployment automation.