pw-module-development

pw-module-development is a skill for Claude Code, Codex from trk/processwire-boost. It costs 66 tokens per session (2,755 once invoked), scanned A, original, MIT.

A guide for building and reorganising native ProcessWire backend modules in PHP 8.4 with strict type checking.

In plain words
What is it for?
Use it when creating, structuring, or refactoring backend modules for ProcessWire websites.
Why use it?
It provides conventions for keeping ProcessWire module code structured and type-safe during development or refactoring.

Skill for Claude CodeCodex

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

Good fit Use it when creating, structuring, or refactoring backend modules for ProcessWire websites.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trk/processwire-boost/pw-module-development
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 trk/processwire-boost --skill pw-module-development
Clone the repo
git clone --depth 1 https://github.com/trk/processwire-boost

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-module-development

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/trk/processwire-boost/pw-module-development"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-module-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,755 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.00066 $0.02755
Opus 5.5 $0.00026 $0.01102
Sonnet 5.5 $0.00013 $0.00551
Haiku 4.5 $0.00007 $0.00276

Measured today against content hash 7a7469126847, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pw-module-development 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 today.

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-module-development/SKILL.md · 144 lines

How it starts

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

ProcessWire Module Development

Authoritative playbook for building, refactoring, and packaging ProcessWire 3 modules using PHP 8.3+ and strict typing. Scaffold modules via php vendor/bin/wire make:module <ModuleName> --type=module|process|fieldtype|inputfield.

Mandatory Step 1: Specialized Module & Core Reference Routing

Every module obeys the rules below. Read the matching sibling reference in references/ before writing code:

Topic / Module Family Scope & Naming Mandatory Reference File
Core Runtime, Boot & Native APIs Boot guarantees, cross-namespace scoping, $input, $session->CSRF, $files, WireHttp, WireUpload Read references/core-runtime-and-scoping.md
Fieldtype & Inputfield Fieldtype<Base> + Inputfield<Base> + <Base>Field.php Read references/fieldtype-inputfield.md
Process (Admin Controller) Process<Name> extends Process (___execute*, RBAC, admin page) Read references/process.md (and pw-admin-ui for UI)
Textformatter Textformatter<Name> extends Textformatter (format(&$str): void) Read references/textformatter.md
FileValidator FileValidator<Name> extends FileValidatorModule (isValidFile($filename)) Read references/filevalidator.md
Backend / Service / Markup WireData implements Module (and optional ConfigurableModule) Covered directly below

Boot Contract & 6-Context API Scoping

  1. Guaranteed Non-Null Booted Core APIs: ProcessWire preloads core classes via wire/core/WireClassLoader/boot.php and populates wire, classLoader, hooks, config, urls, notices, log, sanitizer, datetime, files, mail, database, cache, modules, fieldtypes, fields, fieldgroups, templates, pages, permissions, roles, users, session ($session->CSRF), user, and input before statusInit. Access them directly ($this->wire()->session, $this->wire()->sanitizer) — never guard them with if ($session instanceof Session), if ($this->wire()->modules), $this->wire()?->..., or method_exists($csrf, ...). Reserve null checks strictly for optional/lifecycle vars ($languages, $adminTheme, $pagesVersions, $profiler, $page before statusReady, and custom module Fuel vars).
  2. 6-Context Scoping & Cross-Namespace Matrix:

Read the full file on GitHub · 144 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · +10 lines · +9 tokens per session 7a7469126847
  2. 12d ago Changed · +4 lines · +14 tokens per session 413fcfed8ea8
  3. 14d ago Changed · -4 lines fe98e50e9562
  4. 1mo ago Changed · +13 tokens per session abde9cfae05c
  5. 1mo ago Changed · -105 lines 10066b340dd8
  6. 3mo ago First seen · 239 lines · 30 tokens per session scan A bcdf416f94b3

Subscribe to this mod's changes

pw-module-development is a skill published in the GitHub repository trk/processwire-boost (5 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 2,755 once invoked, about $0.0003 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-module-development compared with skills from other repositories

pw-module-development next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pw-module-developmenttrk/processwire-boostSkill5todayMITA66Claude Code, Codex
drupaltools-optimizedrupaltools/skillsSkill181mo agononeA100Claude Code, Codex
drupaltools-oop-hooksdrupaltools/skillsSkill181mo agononeC160Claude Code, Codex
authoring-java-sdk-tasksastronomer/agentsSkill465todayApache-2.0A152Claude Code
mvc-expertroedyrustam/vibes-plugSkill1315d agoMITA30Cursor
zcfgAdamBien/airailsSkill76todayMITA75Claude Code
loom-phpcosmix/loomSkill66yesterdayMITA15Claude Code, Codex