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-expertgit 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-expert)<a href="https://agentmods.dev/skills/trk/processwire-boost/pw-expert"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-expert/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-expert"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-expert.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.00047 | $0.02566 |
| Opus 5.5 | $0.00019 | $0.01026 |
| Sonnet 5.5 | $0.00009 | $0.00513 |
| Haiku 4.5 | $0.00005 | $0.00257 |
Grade A, and why
pw-expert 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 — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ProcessWire Expert: CLI Architecture & API Scoping
Reference for authoring trk/processwire-console commands (Symfony Console + laravel/prompts + InteractWithProcessWire) and accessing ProcessWire API variables safely across every runtime scope.
Part 1: trk/processwire-console Command Architecture
Command Skeleton & InteractWithProcessWire Trait
Every console command is a final class extending Symfony\Component\Console\Command\Command and using Totoglu\Console\Traits\InteractWithProcessWire:
<?php
declare(strict_types=1);
namespace Totoglu\Console\Commands;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Totoglu\Console\Traits\InteractWithProcessWire;
use function Laravel\Prompts\confirm;
use function Laravel\Prompts\info;
final class ExampleActionCommand extends Command
{
use InteractWithProcessWire;
protected function configure(): void
{
$this
->setName('domain:action')
->setDescription('Perform a domain action on a ProcessWire item')
->addArgument('name', InputArgument::OPTIONAL, 'Target item name')
->addOption('dry-run', null, InputOption::VALUE_NONE, 'Preview changes without saving')
->addOption('force', 'f', InputOption::VALUE_NONE, 'Skip confirmation prompt')
->addOption('json', null, InputOption::VALUE_NONE, 'Output structured JSON');
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$asJson = (bool) $input->getOption('json');
$force = (bool) $input->getOption('force');
$dryRun = (bool) $input->getOption('dry-run');
$name = (string) ($input->getArgument('name') ?? '');
if ($name === '' || !$this->isValidIdentifier($name)) {
return $this->failCommand($output, $asJson, 'INVALID_NAME', 'A valid identifier is required.');
}
// Run target resolution and system-entity pre-validation BEFORE --dry-run / confirmation
$field = \ProcessWire\wire('fields')->get($name);
if (!$field) {
return $this->failCommand($output, $asJson, 'NOT_FOUND', "Field '{$name}' does not exist.");
}
if (($field->flags & (\ProcessWire\Field::flagSystem | \ProcessWire\Field::flagPermanent)) !== 0) {
return $this->failCommand($output, $asJson, 'SYSTEM_PROTECTED', "Field '{$name}' is system-protected.");
}
if (!$dryRun && !$force) {
if (!$this->canPrompt($input, $asJson, $force)) {
return $this->failCommand(
$output,
$asJson,
'CONFIRMATION_REQUIRED',
'Use --force when running this destructive command non-interactively or with --json.'
);
}
if (!confirm("Apply changes to {$name}?", default: false)) {
return Command::SUCCESS;
}
}
if (!$dryRun) {
// Perform ProcessWire operation via \ProcessWire\wire()
}
if ($asJson) {
return $this->outputJsonSuccess($output, [
'name' => $name,
'dryRun' => $dryRun,
]);
}
info("Processed {$name} successfully.");
return Command::SUCCESS;
}
}
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 · +17 lines 7a3ede1820fb
- 13d ago Changed · +1 lines · -2 tokens per session 9fd93c1f48e1
- 29d ago Changed · -70 lines · +5 tokens per session 9fdc5e4032d9
- 1mo ago Changed 3928fce13e80
- 3mo ago First seen · 216 lines · 44 tokens per session scan A 90731cb04b08
pw-expert is a skill published in the GitHub repository trk/processwire-boost (5 stars, last pushed 13d ago), licensed MIT. It adds 47 tokens to every session and 2,566 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-expert compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pw-experttrk/processwire-boost | Skill | 5 | 13d ago | MIT | A | 47 | Claude Code, Codex |
| loom-phpcosmix/loom | Skill | 66 | 2d ago | MIT | A | 15 | Claude Code, Codex |
| drupaltools-optimizedrupaltools/skills | Skill | 17 | 1mo ago | none | A | 100 | Claude Code, Codex |
| drupaltools-phpstandrupaltools/skills | Skill | 17 | 1mo ago | none | A | 53 | Claude Code, Codex |
| drupaltools-oop-hooksdrupaltools/skills | Skill | 17 | 1mo ago | none | C | 160 | Claude Code, Codex |
| authoring-go-sdk-tasksastronomer/agents | Skill | 465 | yesterday | Apache-2.0 | A | 165 | Claude Code |
| authoring-java-sdk-tasksastronomer/agents | Skill | 465 | yesterday | Apache-2.0 | A | 152 | Claude Code |