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.
npx skills add trk/processwire-boost --skill pw-systematic-debugginggit clone --depth 1 https://github.com/trk/processwire-boostWrote 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-systematic-debugging)<a href="https://agentmods.dev/skills/trk/processwire-boost/pw-systematic-debugging"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-systematic-debugging/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-systematic-debugging"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-systematic-debugging.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.00035 | $0.01173 |
| Opus 5.5 | $0.00014 | $0.00469 |
| Sonnet 5.5 | $0.00007 | $0.00235 |
| Haiku 4.5 | $0.00003 | $0.00117 |
Grade A, and why
pw-systematic-debugging 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 — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ProcessWire Systematic Debugging
ProcessWire catches and logs exceptions inside hooks, template rendering, and admin actions. Guessing a fix without reading the logs or reproducing the failure state wastes time and masks root causes.
Phase 1: Evidence & Log Collection (Mandatory)
- Inspect ProcessWire Logs (
site/assets/logs/):- Via MCP: Run
pw_system_get_logsorpw_system_logs_tail_lastonerrorsandexceptions. - Via CLI: Run
php vendor/bin/wire log:list --jsonandphp vendor/bin/wire log:tail errors --lines=30 --json(orphp vendor/bin/wire log:read exceptions --limit=20 --json). - Record the exact file, line number, and exception message from the stack trace.
- Via MCP: Run
- Reproduce with a Tight Feedback Loop:
- For selector bugs: Run
pw_query(MCP) orphp vendor/bin/wire page:find "template=article, limit=10" --jsonto observe what ProcessWire actually returns. - For runtime/module bugs: Run a minimal reproduction via
pw_execute(MCP) orphp vendor/bin/wire test --filter=...so you have a command that reliably goes red on the bug.
- For selector bugs: Run
- Trace Silent Hooks:
- If a hook (
Pages::saved,Page::render, URL hook) appears not to run, verify where it is registered (site/init.phpvssite/ready.phpvs moduleinit()/ready()) and log its invocation:
- If a hook (
$page = $event->arguments(0);
if ($page instanceof Page) {
$event->wire()->log->save('debug', sprintf(
'Hook fired for page %d (template=%s)',
$page->id,
$page->template->name
));
}
Phase 2: Root-Cause Hypothesis
Check the most frequent ProcessWire failure modes against your evidence:
NullPagedereference:$pages->get()and$pages->findOne()return aNullPageobject (id === 0) when no match is found, nevernull. Checkingif ($p !== null)always evaluates totrue! Always checkif ($p->id)orif (!$p instanceof NullPage).- Access/Status exclusion in
$pages->find():$pages->find()and$pages->findOne()excludehidden,unpublished, and restricted pages unlessinclude=hidden|unpublished|allis passed. - Output formatting state (
$page->of()): Saving a loaded page on the frontend without calling$page->of(false)first can throw an exception or corrupt formatted field values. PageimagevsPageimagesunderof(false): In CLI scripts, hooks, and modules where$page->of()isfalse, amaxFiles=1image/file field returns aPageimages/Pagefilescollection instead ofPageimage|null. Use$page->getUnformatted('image')->first()or$page->getFormatted('image').- Numeric-string RBAC lookup:
$users->get('41'),$roles->get('41'), and$permissions->get('41')look up page ID41rather thanname=41. Rejectctype_digit($raw)and queryname={$sanitizer->selectorValue($sanitizer->pageName($raw))}when resolving untrusted names. - Internal property bypass in Custom Page Classes: Accessing
$this->templateinside aPagesubclass can bypass lazy loading; use$this->get('template')when inside a customPagemethod if needed.
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 · +5 lines d7798722067b
- 1mo ago Changed · +5 lines · +5 tokens per session 599a4f2a0a57
- 3mo ago First seen · 58 lines · 30 tokens per session scan A 697a932c9b88
pw-systematic-debugging is a skill published in the GitHub repository trk/processwire-boost (5 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 1,173 once invoked, about $0.0001 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-systematic-debugging compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pw-systematic-debuggingtrk/processwire-boost | Skill | 5 | today | MIT | A | 35 | Claude Code, Codex |
| workers-developmentcloudflare/skills | Skill | 3.6k | 6d ago | Apache-2.0 | A | 68 | Claude Code |
| workers-profilingcloudflare/skills | Skill | 3.6k | 6d ago | Apache-2.0 | A | 31 | Claude Code |
| testing-dagsastronomer/agents | Skill | 465 | today | Apache-2.0 | A | 77 | Claude Code |
| debugging-dagsastronomer/agents | Skill | 465 | today | Apache-2.0 | A | 111 | Claude Code |
| loom-code-migrationcosmix/loom | Skill | 66 | yesterday | MIT | A | 15 | Claude Code, Codex |
| loom-debuggingcosmix/loom | Skill | 66 | yesterday | MIT | A | 24 | Claude Code |