{"data":{"slug":"discovered-8ef9ed4fae4fb10fc5fd98910ef42a1f58689e68f9065761","title":"Test Master","summary":"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.","url":"https:\/\/skillshunter.net\/skills\/discovered-8ef9ed4fae4fb10fc5fd98910ef42a1f58689e68f9065761","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-8ef9ed4fae4fb10fc5fd98910ef42a1f58689e68f9065761","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-8ef9ed4fae4fb10fc5fd98910ef42a1f58689e68f9065761.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-8ef9ed4fae4fb10fc5fd98910ef42a1f58689e68f9065761\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before running tests, ensure external dependencies are mocked and avoid using production data. Each test must be independently runnable and not dependent on the order of execution.","instructions":"---\nname: test-master\ndescription: 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.\nlicense: MIT\nmetadata:\n  author: https:\/\/github.com\/Jeffallan\n  company: https:\/\/synergetic.solutions\n  version: \"1.1.1\"\n  domain: quality\n  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\n  role: specialist\n  scope: testing\n  output-format: report\n  related-skills: fullstack-guardian, playwright-expert, devops-engineer, debugging-wizard, code-reviewer, feature-forge\n---\n\n# Test Master\n\nComprehensive testing specialist ensuring software quality through functional, performance, and security testing.\n\n## Core Workflow\n\n1. **Define scope** \u2014 Identify what to test and which testing types apply\n2. **Create strategy** \u2014 Plan the test approach across functional, performance, and security perspectives\n3. **Write tests** \u2014 Implement tests with proper assertions (see example below)\n4. **Execute** \u2014 Run tests and collect results\n   - If tests fail: classify the failure (assertion error vs. environment\/flakiness), fix root cause, re-run\n   - If tests are flaky: isolate ordering dependencies, check async handling, add retry or stabilization logic\n5. **Report** \u2014 Document findings with severity ratings and actionable fix recommendations\n   - Verify coverage targets are met before closing; flag gaps explicitly\n\n## Quick-Start Example\n\nA minimal Jest unit test illustrating the key patterns this skill enforces:\n\n```js\n\/\/ \u2705 Good: meaningful description, specific assertion, isolated dependency\ndescribe('calculateDiscount', () => {\n  it('applies 10% discount for premium users', () => {\n    const result = calculateDiscount({ price: 100, userTier: 'premium' });\n    expect(result).toBe(90); \/\/ specific outcome, not just truthy\n  });\n\n  it('throws on negative price', () => {\n    expect(() => calculateDiscount({ price: -1, userTier: 'standard' }))\n      .toThrow('Price must be non-negative');\n  });\n});\n```\n\nApply the same structure for pytest (`def test_\u2026`, `assert result == expected`) and other frameworks.\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n<!-- TDD Iron Laws and Testing Anti-Patterns adapted from obra\/superpowers by Jesse Vincent (@obra), MIT License -->\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Unit Testing | `references\/unit-testing.md` | Jest, Vitest, pytest patterns |\n| Integration | `references\/integration-testing.md` | API testing, Supertest |\n| E2E | `references\/e2e-testing.md` | E2E strategy, user flows |\n| Performance | `references\/performance-testing.md` | k6, load testing |\n| Security | `references\/security-testing.md` | Security test checklist |\n| Reports | `references\/test-reports.md` | Report templates, findings |\n| QA Methodology | `references\/qa-methodology.md` | Manual testing, quality advocacy, shift-left, continuous testing |\n| Automation | `references\/automation-frameworks.md` | Framework patterns, scaling, maintenance, team enablement |\n| TDD Iron Laws | `references\/tdd-iron-laws.md` | TDD methodology, test-first development, red-green-refactor |\n| Testing Anti-Patterns | `references\/testing-anti-patterns.md` | Test review, mock issues, test quality problems |\n\n## Constraints\n\n**MUST DO**\n- Test happy paths AND error\/edge cases (e.g., empty input, null, boundary values)\n- Mock external dependencies \u2014 never call real APIs or databases in unit tests\n- Use meaningful `it('\u2026')` descriptions that read as plain-English specifications\n- Assert specific outcomes (`expect(result).toBe(90)`), not just truthiness\n- Run tests in CI\/CD; document and remediate coverage gaps\n\n**MUST NOT**\n- Skip error-path testing (e.g., don't test only the success branch of a try\/catch)\n- Use production data in tests \u2014 use fixtures or factories instead\n- Create order-dependent tests \u2014 each test must be independently runnable\n- Ignore flaky tests \u2014 quarantine and fix them; don't just re-run until green\n- Test implementation details (internal method calls) \u2014 test observable behaviour\n\n## Output Templates\n\nWhen creating test plans, provide:\n1. Test scope and approach\n2. Test cases with expected outcomes\n3. Coverage analysis\n4. Findings with severity (Critical\/High\/Medium\/Low)\n5. Specific fix recommendations\n\nMaintained by [@jeffallan](https:\/\/github.com\/jeffallan), Principal Consultant at [Synergetic Solutions](https:\/\/synergetic.solutions)\n\n[Documentation](https:\/\/jeffallan.github.io\/claude-skills\/skills\/quality\/test-master\/)\n","use_cases":["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"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Jeffallan\/claude-skills\/blob\/a8be463010e2ca23afe00ea00773aea7128e8971\/plugin\/skills\/test-master\/SKILL.md","source_commit":"a8be463010e2ca23afe00ea00773aea7128e8971","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:48:12.000000Z","updated_at":"2026-11-29T10:53:27.000000Z","seo_title":"Test Master - Test Generation, Coverage Analysis, and Test Strategy","seo_description":"Test Master helps generate test files, analyze code coverage, design test architectures, and produce test plans and defect reports across functional, performance, and E2E","seo_keywords":["test generation","code coverage analysis","test strategy","unit testing","integration testing","E2E testing","performance testing","security testing"]}}