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.
git clone --depth 1 https://github.com/trk/processwire-boostnpx agentmods add skills/trk/processwire-boost/pw-testWrote 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.
[](https://agentmods.dev/skills/trk/processwire-boost/pw-test)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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, customProcessworkspaces, 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:
/tests/— Root project tests andtests/Pest.phpbootstrap./site/tests/Feature/&/site/tests/Unit/— Site-level feature and unit tests./site/modules/<ModuleName>/tests/Feature/&/site/modules/<ModuleName>/tests/Unit/— Module-scoped tests for every installed module insite/modules/(resolving both direct folder matches and companion*.module.phpdirectories such asBlog->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:
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.
- 12d ago Changed · +2 lines aa7bddbc7f10
- 14d ago Changed · +44 lines · +25 tokens per session dc27a5f8277b
- 1mo ago Changed · -6 lines · +3 tokens per session d27a371ad5f2
- 3mo ago First seen · 93 lines · 32 tokens per session scan A ad2a8c749b61
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.
pw-test compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pw-testtrk/processwire-boost | Skill | 5 | today | MIT | A | 60 | Claude Code, Codex |
| loom-phpcosmix/loom | Skill | 66 | yesterday | MIT | A | 15 | Claude Code, Codex |
| laravel-tddshennawardana23/skillme | Skill | 4 | 1mo ago | Apache-2.0 | A | 78 | Claude Code |
| drupaltools-optimizedrupaltools/skills | Skill | 18 | 1mo ago | none | A | 100 | Claude Code, Codex |
| drupaltools-phpstandrupaltools/skills | Skill | 18 | 1mo ago | none | A | 53 | Claude Code, Codex |
| drupaltools-oop-hooksdrupaltools/skills | Skill | 18 | 1mo ago | none | C | 160 | Claude Code, Codex |
| authoring-java-sdk-tasksastronomer/agents | Skill | 465 | today | Apache-2.0 | A | 152 | Claude Code |