pw-maintenance

pw-maintenance is a skill for Claude Code, Codex from trk/processwire-boost. It costs 32 tokens per session (952 once invoked), scanned A, original, MIT.

A maintenance-mode helper for ProcessWire applications.

In plain words
What is it for?
It is for switching maintenance mode on or off and managing the related downtime settings in ProcessWire.
Why use it?
It provides instructions for taking a ProcessWire application offline during maintenance and bringing it back afterward. It also handles the configuration that controls the downtime message or behavior.

Skill for Claude CodeCodex

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

Good fit It is for switching maintenance mode on or off and managing the related downtime settings in ProcessWire.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trk/processwire-boost/pw-maintenance
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-maintenance
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-maintenance

README.md
[![agentmods](https://agentmods.dev/badge/skills/trk/processwire-boost/pw-maintenance/github.svg)](https://agentmods.dev/skills/trk/processwire-boost/pw-maintenance)
Your own site
<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.

agentmods 80×15 button for pw-maintenance

Your own site · 80×15
<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>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 952 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.00032 $0.00952
Opus 5.5 $0.00013 $0.00381
Sonnet 5.5 $0.00006 $0.00190
Haiku 4.5 $0.00003 $0.00095

Measured 12d ago against content hash 2926ab64d76a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

resources/boost/skills/pw-maintenance/SKILL.md · 90 lines

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.');
		}
	}
}

Read the full file on GitHub · 90 lines

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. 12d ago Changed · +4 lines 2926ab64d76a
  2. 13d ago Changed f905c166005b
  3. 29d ago Changed · +21 lines · +8 tokens per session 745b119acade
  4. 3mo ago First seen · 65 lines · 24 tokens per session scan A f967429265de

Subscribe to this mod's changes

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.

Related

pw-maintenance compared with skills from other repositories

pw-maintenance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pw-maintenancetrk/processwire-boostSkill513d agoMITA32Claude Code, Codex
mk:context-auditngocsangyem/MeowKitSkill17yesterdayMITA24Claude Code
cf-clicloudflare/skillsSkill3.5k6d agoApache-2.0A78Claude Code
workers-best-practicescloudflare/skillsSkill3.5k6d agoApache-2.0A25Claude Code
cloudflare-app-bootstrapcloudflare/skillsSkill3.5k6d agoApache-2.0A69Claude Code
ai-answer-auditelvisun/newsjackSkill1.7k6d agoMITA70Claude Code
find-journalistselvisun/newsjackSkill1.7k6d agoMITA52Claude Code