Test master

From eric861129/SKILLS_All-in-one · View interactive version

Test master is an AI agent skill from the GitHub repository eric861129/SKILLS_All-in-one. 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

How to use this skill

Skill file

Test Master

Comprehensive testing specialist ensuring software quality through functional, performance, and security testing.

Core Workflow

  1. Define scope — Identify what to test and which testing types apply
  2. Create strategy — Plan the test approach across functional, performance, and security perspectives
  3. Write tests — Implement tests with proper assertions (see example below)
  4. Execute — Run tests and collect results
  1. Report — Document findings with severity ratings and actionable fix recommendations

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

MUST NOT

Output Templates

When creating test plans, provide:

  1. Test scope and approach
  2. Test cases with expected outcomes
  3. Coverage analysis
  4. Findings with severity (Critical/High/Medium/Low)
  5. Specific fix recommendations
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.