Skip to content
Back to skills

Testing Strategy Builder

ASecurity

Create a practical test strategy that coding agents can extend consistently. Use when a repo needs unit/integration/e2e conventions, fixtures, test command wrappers, examples, or a bug-fix rule that starts with a failing reproduction test.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
testingtestingapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add pax-k/pax-fullstack-harness --skill testing-strategy-builder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Testing Strategy Builder?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Testing Strategy Builder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pax-k-testing-strategy-builder/badge)](https://www.skillsdirectory.com/skills/pax-k-testing-strategy-builder)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: testing-strategy-builder
description: Create a practical test strategy that coding agents can extend consistently. Use when a repo needs unit/integration/e2e conventions, fixtures, test command wrappers, examples, or a bug-fix rule that starts with a failing reproduction test.
---

# Testing Strategy Builder

## Purpose

Make tests easy for agents to add correctly by defining taxonomy, commands, fixtures, naming, and examples.

Use `tdd-playwright-workflow` for strict red-green-refactor execution, failing bug reproductions, or Playwright browser workflows.

## Inspect First

- existing tests, fixtures, and test runners
- package scripts or framework commands
- CI test behavior
- source modules with high behavioral risk
- previous bug reports when available

## Procedure

1. Classify tests.
   - Unit: isolated domain or utility behavior.
   - Integration: database, API, service, or module collaboration.
   - E2E: full user or API workflow.
   - Contract: public API or schema compatibility when relevant.
   - For web apps, prefer at least one browser e2e flow covering create/edit/delete or the closest product lifecycle.

2. Normalize commands.
   - Add `scripts/test`.
   - Add `scripts/test-unit`, `scripts/test-integration`, and `scripts/test-e2e` only when the repo can support them.
   - For Bun projects with Playwright, make `scripts/test` target unit/integration paths explicitly so it does not discover Playwright specs; keep Playwright behind `scripts/test-e2e`.
   - Include tests in `scripts/validate`.

3. Document conventions.
   - File naming and placement.
   - Fixture ownership.
   - When to use each test type.
   - How to run narrow tests.
   - How to write a bug reproduction test.

4. Add examples.
   - Prefer one small realistic example per test layer that exists.
   - Do not add fake tests that assert implementation details or pass trivially.
   - Use `assets/templates/playwright-e2e.spec.ts.tmpl` only when Playwright is already present or the task explicitly accepts adding browser e2e tooling.
   - Browser tests should locate icon-only controls by accessible name; UI code should provide `aria-label` or an equivalent component prop.

5. Align CI.
   - Ensure CI runs the same command interface.
   - Keep slow e2e tests separated if needed.
   - Use `tdd-playwright-workflow` when a change must prove behavior through unit and Playwright tests before implementation.
   - Use `termination-gatekeeper` to require e2e evidence when changed files cross UI, API, runtime, or data boundaries.

## Required Rule

When fixing a bug, add a failing reproduction test first unless impossible. If impossible, document why in the final response or PR validation notes.

## Validation

- Run the narrowest test command for any added tests.
- Run `./scripts/test`.
- Confirm docs match actual runner names and paths.
- For web e2e additions, run the browser flow or document the exact missing runtime dependency.

## Completion Criteria

- Agents know which test type to write for a change.
- Test commands are stable and documented.
- Fixtures and examples are easy to copy without creating brittle tests.

Files in this skill

  • SKILL.md3.1 KB
  • agents/openai.yaml217 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.