pw-test

pw-test is a skill for Claude Code, Codex from trk/processwire-boost. It costs 60 tokens per session (1,628 once invoked), scanned A, original, MIT.

A testing guide for Pest, a PHP testing framework, in ProcessWire websites and modules.

In plain words
What is it for?
It is for writing, running, and managing Pest tests for ProcessWire projects and modules.
Why use it?
It helps developers create and run repeatable checks instead of relying only on manual testing. It also supports Test-Driven Development, where tests are written before the code they check.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { attachRuntimeErrorTracker, getAdminUrl } from '../../../../../tests/e2e/helpers';.

Good fit It is for writing, running, and managing Pest tests for ProcessWire projects and modules.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/trk/processwire-boost
agentmods
npx agentmods add skills/trk/processwire-boost/pw-test

Made for: Claude Code, Codex.

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 pw-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/trk/processwire-boost/pw-test/github.svg)](https://agentmods.dev/skills/trk/processwire-boost/pw-test)
Your own site
<a href="https://agentmods.dev/skills/trk/processwire-boost/pw-test"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-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 pw-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/trk/processwire-boost/pw-test"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,628 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.00060 $0.01628
Opus 5.5 $0.00024 $0.00651
Sonnet 5.5 $0.00012 $0.00326
Haiku 4.5 $0.00006 $0.00163

Measured 12d ago against content hash aa7bddbc7f10, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pw-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 12d 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.

resources/boost/skills/pw-test/SKILL.md · 133 lines

How it starts

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

ProcessWire Testing (pw-test)

Scaffold and execute Pest PHP unit/feature tests and optional Playwright browser E2E / WCAG 2.1 AA specs across a ProcessWire project and its installed modules.

When to Use

  • Writing unit or feature tests in PHP for ProcessWire templates, custom page classes, hooks, or modules (wire test).
  • Writing browser E2E and accessibility (@axe-core/playwright) specs for ProcessWire Admin, custom Process workspaces, interactive client-rendered views, or frontend flows (wire test:e2e).

Part 1: Pest PHP Testing (wire test)

Discovery Architecture

TestCommand uses FeatureDiscoverer::discoverPaths('tests') to aggregate PHP test directories in a single run:

  1. /tests/ — Root project tests and tests/Pest.php bootstrap.
  2. /site/tests/Feature/ & /site/tests/Unit/ — Site-level feature and unit tests.
  3. /site/modules/<ModuleName>/tests/Feature/ & /site/modules/<ModuleName>/tests/Unit/ — Module-scoped tests for every installed module in site/modules/ (resolving both direct folder matches and companion *.module.php directories such as Blog -> ProcessBlog).

When initialized via vendor/bin/wire test, tests/Pest.php boots ProcessWire (index.php), exposing \ProcessWire\wire(), $pages, $sanitizer, and all installed modules.

Scaffolding & Running Pest Tests

# Site Feature test -> site/tests/Feature/AuthFlowTest.php
php vendor/bin/wire make:test AuthFlowTest

# Site Unit test -> site/tests/Unit/SlugParserTest.php
php vendor/bin/wire make:test SlugParser --unit

# Module Feature test -> site/modules/MyCustomApi/tests/Feature/ApiConnectorTest.php
php vendor/bin/wire make:test ApiConnector --module=MyCustomApi

# Run all discovered root, site, and installed module Pest tests
php vendor/bin/wire test

# Filter by test name or target path with structured JSON output
php vendor/bin/wire test --filter=AuthFlowTest --json

Canonical Pest Test Example

Mark every PHP test file under site/ with <?php // __(file-not-translatable) on line 1 so ProcessWire's LanguagePorter / ProcessLanguageTranslator scanner skips test files when searching for translatable strings:

Read the full file on GitHub · 133 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. 12d ago Changed · +2 lines aa7bddbc7f10
  2. 14d ago Changed · +44 lines · +25 tokens per session dc27a5f8277b
  3. 1mo ago Changed · -6 lines · +3 tokens per session d27a371ad5f2
  4. 3mo ago First seen · 93 lines · 32 tokens per session scan A ad2a8c749b61

Subscribe to this mod's changes

pw-test is a skill published in the GitHub repository trk/processwire-boost (5 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 1,628 once invoked, about $0.0002 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

pw-test compared with skills from other repositories

pw-test next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pw-testtrk/processwire-boostSkill5todayMITA60Claude Code, Codex
loom-phpcosmix/loomSkill66yesterdayMITA15Claude Code, Codex
laravel-tddshennawardana23/skillmeSkill41mo agoApache-2.0A78Claude Code
drupaltools-optimizedrupaltools/skillsSkill181mo agononeA100Claude Code, Codex
drupaltools-phpstandrupaltools/skillsSkill181mo agononeA53Claude Code, Codex
drupaltools-oop-hooksdrupaltools/skillsSkill181mo agononeC160Claude Code, Codex
authoring-java-sdk-tasksastronomer/agentsSkill465todayApache-2.0A152Claude Code