pwp-test

pwp-test is a skill for Claude Code from shandar/pwp-plugin. It costs 104 tokens per session (1,110 once invoked), scanned A, original, MIT.

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 Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: positional $N argument.

Part of the pwp plugin — 11 skills shipped together

Good fit Use it when writing tests, adding test coverage, choosing a testing strategy, or deciding how to test business logic, APIs, interfaces, and integrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shandar/pwp-plugin/pwp-test
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.

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.

Or install pwp, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pwp-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/shandar/pwp-plugin/pwp-test/github.svg)](https://agentmods.dev/skills/shandar/pwp-plugin/pwp-test)
Your own site
<a href="https://agentmods.dev/skills/shandar/pwp-plugin/pwp-test"><img src="https://agentmods.dev/badge/skills/shandar/pwp-plugin/pwp-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pwp-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/shandar/pwp-plugin/pwp-test"><img src="https://agentmods.dev/badge/skills/shandar/pwp-plugin/pwp-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00104 $0.01110
Opus 5.5 $0.00042 $0.00444
Sonnet 5.5 $0.00021 $0.00222
Haiku 4.5 $0.00010 $0.00111

Measured 1mo ago against content hash 656cb318cf04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 7mo ago), licensed MIT. It adds 104 tokens to every session and 1,110 once invoked, about $0.0004 per session on Opus 5.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.

Related

Other skills, from other repositories

test-strategy-document

Create a production-ready Testing Strategy and QA Execution Plan. Covers testing levels (unit, integration, E2E, performance), mocking boundaries, test environment matrix, code coverage thresholds, and automated CI pipeline runsheets. Use when establishing a QA framework for a new system or feature set.

fattain-naime/engineering-docs · 62 tokens

test-selection

Use this skill when someone describes a specific code path, feature, or bug and asks what kind of test to write for it — or when an audit or strategy engagement surfaces a testing gap and needs a recommendation for where to start. Trigger on "what test should I write for this", "unit or integration test for X", "our…

EmanueleMinotto/minottobot · 108 tokens

tools-unity-test-framework

Unity Test Framework patterns for EditMode and PlayMode tests including async testing, mocking, and test organization.

IdoCohen560/claude-unity-game-studio · 27 tokens

craft-testing

Craftsman standard for automated testing: strategy, unit/integration/e2e selection, refactor-proof design, flaky tests, mocking boundaries, deterministic data, and merge-gate policy. Use WHENEVER work touches tests: writing/reviewing tests, strategy, "add tests", "why is this flaky", "what should I test", "tests pass…

gul-labs/craftsman-marketplace · 162 tokens

swift-testing

Writes unit tests and UI tests for Swift, SwiftUI, and UIKit projects following enterprise or indie testing standards. Use when user says "write tests", "add unit tests", "test this code", "create test cases", "add XCTest", "write Swift Testing tests", "help me test this", or "add tests for". Applies enterprise or…

jeremieb/swift-unit-test-instructions · 87 tokens

testing-arsenal

Testing strategies including unit tests, integration tests, E2E tests, mocking, coverage analysis, and TDD workflow. Trigger when users need help writing tests, choosing testing frameworks, implementing mocking strategies, or setting up test infrastructure.

FutureJJ/claude-skills · 51 tokens