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-maintenancegit 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-maintenance)<a href="https://agentmods.dev/skills/trk/processwire-boost/pw-maintenance"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-maintenance/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-maintenance"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-maintenance.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.00032 | $0.00952 |
| Opus 5.5 | $0.00013 | $0.00381 |
| Sonnet 5.5 | $0.00006 | $0.00190 |
| Haiku 4.5 | $0.00003 | $0.00095 |
Grade A, and why
pw-maintenance 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 — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ProcessWire Maintenance Mode
Manage application downtime via vendor/bin/wire down and vendor/bin/wire up, paired with early HTTP interception in site/init.php.
When to Use
- Before running disruptive schema migrations, bulk imports, or database restores.
- When putting the site into maintenance or demo mode while allowing developers to bypass downtime using a secret token.
How It Works
vendor/bin/wire down writes a JSON payload to $config->paths->site . 'down.json' (site/down.json, mode 0600, outside web-accessible site/assets/ so the secret token cannot be fetched over HTTP). vendor/bin/wire up removes site/down.json.
Because CLI commands run in a separate process from web requests, site/init.php must check for site/down.json on non-CLI requests.
HTTP Interception Setup (site/init.php)
Place this check in site/init.php (never in index.php, which is overwritten during ProcessWire core upgrades):
<?php
declare(strict_types=1);
namespace ProcessWire;
$downFile = $config->paths->site . 'down.json';
$reqPath = (string) (parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH) ?: '/');
if (!$config->cli && is_file($downFile) && !is_link($downFile) && !str_starts_with($reqPath, $config->urls->admin)) {
/** @var array{redirect?: ?string, retry?: ?int, secret?: ?string, status?: int, time?: int}|null $down */
$down = json_decode((string) file_get_contents($downFile), true);
if (is_array($down)) {
$secret = (string) ($down['secret'] ?? '');
$querySecret = $input->get->text('secret');
$providedSecret = $querySecret !== '' ? $querySecret : (string) $session->get('maintenance_secret');
if ($secret !== '' && hash_equals($secret, $providedSecret)) {
$session->set('maintenance_secret', $secret);
} else {
$redirect = (string) ($down['redirect'] ?? '');
$redirectPath = (string) (parse_url($redirect, PHP_URL_PATH) ?: '');
if ($redirect !== '' && $reqPath !== $redirectPath) {
$session->redirect($redirect, false);
}
if (!empty($down['retry'])) {
header('Retry-After: ' . (int) $down['retry']);
}
http_response_code((int) ($down['status'] ?? 503));
exit('Site is under maintenance. Please check back soon.');
}
}
}
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 · +4 lines 2926ab64d76a
- 13d ago Changed f905c166005b
- 29d ago Changed · +21 lines · +8 tokens per session 745b119acade
- 3mo ago First seen · 65 lines · 24 tokens per session scan A f967429265de
pw-maintenance is a skill published in the GitHub repository trk/processwire-boost (5 stars, last pushed 13d ago), licensed MIT. It adds 32 tokens to every session and 952 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-maintenance compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pw-maintenancetrk/processwire-boost | Skill | 5 | 13d ago | MIT | A | 32 | Claude Code, Codex |
| mk:context-auditngocsangyem/MeowKit | Skill | 17 | yesterday | MIT | A | 24 | Claude Code |
| cf-clicloudflare/skills | Skill | 3.5k | 6d ago | Apache-2.0 | A | 78 | Claude Code |
| workers-best-practicescloudflare/skills | Skill | 3.5k | 6d ago | Apache-2.0 | A | 25 | Claude Code |
| cloudflare-app-bootstrapcloudflare/skills | Skill | 3.5k | 6d ago | Apache-2.0 | A | 69 | Claude Code |
| ai-answer-auditelvisun/newsjack | Skill | 1.7k | 6d ago | MIT | A | 70 | Claude Code |
| find-journalistselvisun/newsjack | Skill | 1.7k | 6d ago | MIT | A | 52 | Claude Code |