pw-queue

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

A guide for working with file-based background job queues in ProcessWire, a PHP content management system.

In plain words
What is it for?
It is for managing Queue jobs through ProcessWire Console.
Why use it?
It explains how to create, send, and work with queued jobs instead of handling those operations directly in a web request.

Skill for Claude CodeCodex

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

Good fit It is for managing Queue jobs through ProcessWire Console.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/trk/processwire-boost/pw-queue"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-queue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,284 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.00031 $0.01284
Opus 5.5 $0.00012 $0.00514
Sonnet 5.5 $0.00006 $0.00257
Haiku 4.5 $0.00003 $0.00128

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

Security

Grade A, and why

pw-queue 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-queue/SKILL.md · 123 lines

How it starts

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

ProcessWire Queue Management

trk/processwire-console provides a database-backed job queue using the queue_jobs and failed_jobs database tables managed by Totoglu\Console\Queue\QueueManager, with automatic class discovery across site/queue/ and site/modules/*/queue/.

When to Use

  • Offloading slow operations (sending emails, webhook calls, image/PDF generation, external API syncs) out of the HTTP request cycle.
  • Creating *Queue.php job classes or dispatching jobs via Totoglu\Console\Queue\Queue::push().
  • Running workers (wire queue:work) or inspecting/retrying failed jobs (wire queue:failed, wire queue:retry).

Directory & Naming Conventions

  • Locations:
    • Global jobs: site/queue/*Queue.php (default namespace Site\Queue)
    • Module jobs: site/modules/<ModuleName>/queue/*Queue.php (default namespace ProcessWire)
  • Naming: Class and file names must end with Queue (e.g., SendEmailQueue in SendEmailQueue.php).
  • Base Class: Every job class must extend Totoglu\Console\Queue\Queue and implement public function handle(array $payload): void.

Scaffolding & Implementing a Queue Job

Scaffold a new queue job via the CLI:

# Global queue job in site/queue/SendEmailQueue.php
php vendor/bin/wire make:queue SendEmailQueue

# Module-scoped queue job in site/modules/Newsletter/queue/SendEmailQueue.php
php vendor/bin/wire make:queue SendEmailQueue --module=Newsletter

Implementation pattern:

<?php

declare(strict_types=1);

namespace Site\Queue;

use Totoglu\Console\Queue\Queue;

final class SendEmailQueue extends Queue
{
	/**
	 * @param array<string, mixed> $payload
	 */
	public function handle(array $payload): void
	{
		$to = (string) ($payload['to'] ?? '');
		$subject = (string) ($payload['subject'] ?? '');
		$body = (string) ($payload['body'] ?? '');

		if ($to === '' || $body === '') {
			throw new \InvalidArgumentException('Missing required email payload fields.');
		}

		$mail = \ProcessWire\wireMail();
		$mail->to($to)->subject($subject)->body($body)->send();
	}
}

Read the full file on GitHub · 123 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 · +10 lines 308ced9e3e66
  2. 14d ago Changed a1dcc7cb381e
  3. 1mo ago Changed · +28 lines · +4 tokens per session a14b6209fdd3
  4. 3mo ago First seen · 85 lines · 27 tokens per session scan A d739f7195960

Subscribe to this mod's changes

pw-queue is a skill published in the GitHub repository trk/processwire-boost (5 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 1,284 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-queue compared with skills from other repositories

pw-queue next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pw-queuetrk/processwire-boostSkill5todayMITA31Claude Code, Codex
sandbox-stablecloudflare/skillsSkill3.6k6d agoApache-2.0A39Claude Code
durable-objectscloudflare/skillsSkill3.6k6d agoApache-2.0A22Claude Code
sandbox-nextcloudflare/skillsSkill3.6k6d agoApache-2.0A39Claude Code
cloudflarecloudflare/skillsSkill3.6k6d agoApache-2.0A103Claude Code
cloudflare-email-servicecloudflare/skillsSkill3.6k6d agoApache-2.0A21Claude Code
workers-best-practicescloudflare/skillsSkill3.6k6d agoApache-2.0A25Claude Code