pwp-test

A structured approach to planning and implementing software tests across unit, integration, and end-to-end levels. Unit tests check small pieces of logic, integration tests check connected parts, and end-to-end tests check complete user journeys.

In plain words
What is it for?
Use it when writing tests, adding test coverage, choosing a testing strategy, or deciding how to test business logic, APIs, interfaces, and integrations.
Why use it?
It helps teams choose appropriate tests and check both normal behaviour and failures, reducing the chance that bugs reach users.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/shandar/pwp-plugin/pwp-test
Any agent
npx skills add shandar/pwp-plugin --skill pwp-test
Clone the repo
git clone --depth 1 https://github.com/shandar/pwp-plugin

Made for: Claude Code, Codex.

Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,110 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00104 $0.01110
Opus 5 $0.00052 $0.00555
Sonnet 5 $0.00021 $0.00222
Haiku 4.5 $0.00010 $0.00111

Measured 2d ago against content hash 656cb318cf04, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pwp-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pwp-test/SKILL.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PWP Testing Protocol

You are now operating under the Project Workflow Protocol's testing discipline. Follow this structured approach for every testing task.

Context: $ARGUMENTS

Phase 1: Assess Testing Needs

Before writing any test, understand:

  1. What is being tested? — Business logic, API endpoint, UI component, integration?
  2. What layer of the test pyramid? — Unit (fast, many), Integration (medium, some), E2E (slow, few)
  3. What already exists? — Check for existing test files, test utils, and coverage reports
  4. What's the testing stack? — Jest, Vitest, Playwright, Cypress, React Testing Library, etc.

Phase 2: Apply the Test Pyramid

Distribute testing effort intentionally:

Layer What It Tests Speed Quantity
Unit Pure functions, utilities, isolated logic Fast (ms) Many
Integration Component interactions, API endpoints, DB queries Medium (s) Some
E2E Full user journeys through real UI Slow (min) Few

Always Test

  • Business logic and calculations
  • Data transformations and parsing
  • Edge cases: empty inputs, null values, boundary conditions
  • Error paths: what happens when things fail
  • API contracts: request/response shapes
  • Auth and permission logic

Test With Judgment

  • Component rendering (test behavior, not snapshot every div)
  • Form validation rules
  • State transitions
  • Navigation flows

Rarely Test

  • Third-party library internals (trust the library, mock the boundary)
  • Pure styling (visual regression tools handle this better)
  • One-line getters or trivial pass-through functions
  • Framework boilerplate

Phase 3: Write Tests

File Naming

Co-locate test files with source:

src/utils/formatCurrency.ts
src/utils/formatCurrency.test.ts      ← co-located
src/components/InvoiceTable.tsx
src/components/InvoiceTable.test.tsx   ← co-located
__tests__/integration/checkout.test.ts ← integration in dedicated folder

Read the full file on GitHub · 118 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 118 lines · 104 tokens per session scan A 656cb318cf04

Subscribe to this mod's changes

pwp-test is a skill published in the GitHub repository shandar/pwp-plugin (1 stars, last pushed 6mo ago), licensed MIT. It adds 104 tokens to every session and 1,110 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.