worker-job-testing

worker-job-testing is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 42 tokens per session (596 once invoked), scanned A, original, Apache-2.0.

A procedure for testing background work such as queue consumers, scheduled jobs, and webhooks by triggering the real product path and checking its later effects. It also covers retries, duplicate handling, and messages that cannot be processed.

In plain words
What is it for?
Use it for workers and other asynchronous jobs. It starts the worker, fires the real trigger, waits with a timeout, and checks database changes, outgoing requests, files, notifications, or completion logs.
Why use it?
Background jobs do not return an immediate web response, so checking only the trigger or reading the source does not prove they worked. Polling for observable results avoids mistaking a delayed job for a failed one.

Skill for Claude CodeCodex

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

Good fit Use it for workers and other asynchronous jobs. It starts the worker, fires the real trigger, waits with a timeout, and checks database changes, outgoing requests, files, notifications, or completion logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/worker-job-testing
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 makifbaysal/tasktrooper --skill worker-job-testing
Clone the repo
git clone --depth 1 https://github.com/makifbaysal/tasktrooper

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 worker-job-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/worker-job-testing/github.svg)](https://agentmods.dev/skills/makifbaysal/tasktrooper/worker-job-testing)
Your own site
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/worker-job-testing"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/worker-job-testing/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 worker-job-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/worker-job-testing"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/worker-job-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 596 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.00042 $0.00596
Opus 5.5 $0.00017 $0.00238
Sonnet 5.5 $0.00008 $0.00119
Haiku 4.5 $0.00004 $0.00060

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

Security

Grade A, and why

worker-job-testing 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 8d 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.

catalog/agents/qa-agent/skills/worker-job-testing/SKILL.md · 40 lines

How it starts

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

Worker & Async Job Testing

Overview

A worker has no HTTP response to assert on. You verify it the way the product uses it: fire the real trigger, then observe the side effects. Reading the worker's source to convince yourself it works is not testing.

The Pattern

  1. Identify the worker processes the repo defines (a cmd/worker, a queue consumer, a scheduler) and start them alongside the API with logs captured to a file.
  2. Trigger through the product path. Prefer the API call or user action that enqueues the job over inserting queue rows by hand — the enqueue side is part of what you are testing. Hand-crafted messages are a fallback for hard-to-reach cases and must match the real schema.
  3. Assert on observable outcomes: the DB state the job must produce, the outbound request it must make (assert against the stub's received requests — test-data-and-stubs), the file/notification/event it must emit, and the log line that marks completion.
  4. Poll, don't guess. Async means eventually: loop with a timeout (for i in $(seq 30); do check && break; sleep 1; done) instead of one arbitrary sleep. A job that needs longer than the product's own expectation is a finding.

The scenarios a worker always owes you

Scenario How PASS looks like
Happy path real trigger → poll expected side effect appears, completion logged
Idempotency / duplicate delivery fire the same trigger twice effect applied once, no double-charge/double-send
Dependency failure WireMock returns 5xx/timeout retries with backoff per config, then DLQ/parked state — not an infinite hot loop
Poison message malformed payload job fails contained: logged, quarantined, worker keeps processing others
Restart mid-work kill the worker during a job, restart job resumes or reruns safely; nothing half-applied

Skip a row only if the task's scope genuinely excludes it — say so in the scenario plan rather than silently.

Read the full file on GitHub · 40 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. 8d ago First seen · 40 lines · 42 tokens per session scan A b1db242cf1f8

Subscribe to this mod's changes

worker-job-testing is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 42 tokens to every session and 596 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-10-05.

Related

Other skills, from other repositories

qa-acceptance

Produce QA acceptance criteria and a manual validation plan for a feature change — golden path, edge cases, error states, performance limits, and explicit pass/fail evidence.

paperclipai/paperclip · 38 tokens

proof-api

Build API test suites — endpoint testing, contract testing, load testing for REST/GraphQL/gRPC APIs. Use when asked to "test this API", "API tests", "endpoint testing", "contract tests", or "load test".

tonone-ai/tonone · 51 tokens

ambient-healthcare-agent-with-nemotron-voice-agent

Customize NVIDIA Nemotron Voice Agent's Generic Pipecat example for healthcare appointment, five-field patient intake, or custom tool-calling workflows without a separate backend.

NVIDIA/skills · 44 tokens

earth2studio-create-datasource

Create and validate Earth2Studio data source wrappers (DataSource, ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores. Do NOT use for fetching data with existing sources, model inference, or installation tasks.

NVIDIA/skills · 53 tokens

nemo-automodel-recipe-development

Create and modify NeMo AutoModel training and evaluation recipes, including YAML structure, builders, and execution flow.

NVIDIA/skills · 31 tokens

nemo-fabric-build-adapter

Build, migrate, review, and maintain third-party NVIDIA NeMo Fabric adapters against the public adapter contract. Use when creating adapter or target descriptors, mapping AgentConfig into an agent harness or custom-agent runtime, implementing start/invoke/stop, declaring schemas and capabilities, packaging discovery…

NVIDIA/skills · 87 tokens