test-master
What it does
It helps the AI create unit, integration and end-to-end tests and plan how a project should be tested. It is for developers and QA staff.
When to use it
- βWhen you want tests written for a new feature or for existing code.
- βWhen you need to find gaps in your test coverage.
- βWhen your tests fail or are flaky and you want the root cause fixed.
Skill link
https://github.com/Jeffallan/claude-skills/blob/main/skills/test-master/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you write unit tests for this pricing function and tell me which cases I am missing?β
5 new skills a week. 1 minute to read.
How it works
The AI defines the scope, writes tests with clear checks, runs them, fixes failures and writes a report with severity ratings.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
Maintained by @jeffallan, Principal Consultant at Synergetic Solutions
FAQ
Does it only write unit tests?
No. It also covers integration, end-to-end, performance and security testing.
Which tools does it use?
Its examples use Jest, and it mentions k6 and Artillery for performance tests.
How does it handle flaky tests?
It looks for ordering problems and async issues and can add retry or stabilization logic.
Details
Original description by the author
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.
repo: Jeffallan/claude-skills
Popularity
- GitHub stars
- 12k
- Ranking position
- #11464
- License
- MIT
- Updated
- 10/30/2026
Comments
- β¦
More skills from this repository
angular-architect
12kHelps your agent build Angular 17 and newer apps with standalone components, lazy-loaded routing, NgRx state, RxJS patterns, and performance tuning.
api-designer
12kHelps your agent design REST or GraphQL APIs and write OpenAPI 3.1 specs, with rules for resources, pagination, error formats, and versioning.
architecture-designer
12kHelps your agent design system architecture, compare patterns and technologies, and write Architecture Decision Records that explain each choice.
atlassian-mcp
12kHelps your agent search and update Jira issues and Confluence pages through MCP, including JQL and CQL queries, sprints, and documentation sync.
Similar skills
test-driven-development
311kTeaches your agent to write a failing test first, watch it fail, then write the smallest code that passes, before building any feature or fix.
verification-before-completion
311kTeaches your agent to run real checks and read their output before claiming that a task, fix, or build is complete or passing.
migrate-to-shoehorn
310kReplaces risky type casts in your test files with the shoehorn library, so tests can use partial data and still pass type checks.