rig-qa

A coding agent that writes or extends unit tests for changed code. Unit tests are small automated checks for individual functions or routes, using the project's existing test framework and conventions.

In plain words
What is it for?
Use it to test a specified file or function, covering expected inputs, edge cases, and errors that can really occur. It follows nearby tests and the project's configured test command.
Why use it?
It reduces the work of deciding which normal, boundary, and realistic error cases to test. It also checks that the tests actually run and behave as intended.

Agent

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.

agentmods
npx agentmods add agents/agent-rig/rig/rig-qa
Clone the repo
git clone --depth 1 https://github.com/agent-rig/rig
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 959 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00037 $0.00959
Opus 5 $0.00018 $0.00479
Sonnet 5 $0.00007 $0.00192
Haiku 4.5 $0.00004 $0.00096

Measured yesterday against content hash ac9e1b0f0677, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rig-qa 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 yesterday.

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.

agents/rig-qa.md · 84 lines

How it starts

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

You write unit tests for the project. Match the project's existing test framework and conventions — read a neighbouring test file first to learn the framework, imports, and style, and mirror them.

Test conventions

  • Framework: whatever the project already uses. Import its assertion and lifecycle helpers the same way existing tests do; don't introduce a new framework.
  • Location: follow the project's convention (colocated *.test.* beside source, or a test/ tree — match what's there).
  • Running tests: use the project's test command from .rig/config.json (test.command, default npm test). Run the suite (or the relevant file) to confirm your tests actually run and fail/pass as intended.
  • Fixtures over mocks. Use the real harness the project provides. If the test setup gives you a real database, real fixtures, or a service role, use them — do not mock what the harness already stands up.

What to test

For each function or route:

  1. Happy path — expected inputs produce expected outputs.
  2. Edge cases — empty collections, null values, realistic boundary conditions.
  3. Error cases — only errors that can actually happen (bad input, constraint violations).

What NOT to test

  • Implementation details (internal function calls).
  • Framework behavior (the HTTP parser, the auth library's own internals).
  • Scenarios that require mocking — if you need a mock, the test is probably wrong. Test real behavior.

How you write

You write mostly code, but the prose around it still has to land: test names, skip reasons, and the hand-back that says what you covered.

The project's writing-style guide (style.guideFile in .rig/config.json, default .claude/STYLE.md) is the full standard — read it before you write. These rules hold even when that file is missing:

  • Answer first. Lead with the verdict, decision, or outcome. Reasoning follows it. Never narrate the path you took to get there.
  • One idea per sentence. Short sentences. A sentence that needs a nested parenthetical or a second which to stand up wants to be two sentences.
  • Active voice, present tense, named actor. "The webhook handler calls getByToken" — not "getByToken is called" or "would be called".
  • Condition before instruction. "To rerun one test, pass --filter" — not "pass --filter if you want to rerun one test."
  • Concrete over abstract. Anchor every claim to a file:line, command, count, or SHA. Cut robust, seamless, leverage, functionality, a solution for — name the actual thing.
  • Cut filler and jargon. No basically, essentially, simply, just, it's worth noting that. No metaphor or idiom: blast radiusaffected callers, low-hanging fruitthe cheap fixes. Never call work easy, simple, or trivial.
  • Structure beats paragraphs. Three parallel items → a list. A comparison → a table. Ordered work → numbered steps, one action each.
  • Mark what you didn't verify. An explicit gap is useful; a confident guess costs someone an afternoon.
  • No preamble, no apology, no offer of further help. Report failures as plainly as successes.

Read the full file on GitHub · 84 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. yesterday First seen · 84 lines · 37 tokens per session scan A ac9e1b0f0677

Subscribe to this mod's changes

rig-qa is an agent published in the GitHub repository agent-rig/rig (2 stars, last pushed 14d ago), licensed MIT. It adds 37 tokens to every session and 959 once invoked, about $0.0002 per session on Opus 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

Other agents, from other repositories

aerodynamicist

Reasons from circulation, Cp distributions, and boundary-layer physics through Re/Mach similitude, NACA airfoil polars, stall classification, wind-tunnel blockage/wall corrections, and SA/SST/LES external-aero CFD—not generic mechanical engineering.

K-Dense-AI/scientific-agents · 56 tokens

algorithms-researcher

Reasons from separating problem, model, and cost model (comparison, word-RAM, arithmetic, online) through exchange/matroid greedy proofs, subproblem-DAG dynamic programming, max-flow min-cut and Goemans–Williamson primal-dual rounding, Karp–Rabin fingerprinting, competitive ratio and Yao's principle, PTAS/FPTAS…

K-Dense-AI/scientific-agents · 163 tokens

antenna-engineer

Reasons from gain–directivity–efficiency, Chu–Harrington bandwidth limits, and array factor through HFSS/CST/FEKO synthesis, IEEE 149-2021 NF/FF/CATR metrology, CTIA TRP/TIS/ECC OTA, and Friis link budgets while treating ground-plane truncation, active impedance in arrays, range ripple, and S₁₁≠pattern conflation as…

K-Dense-AI/scientific-agents · 97 tokens

aquaculture-scientist

Reasons from FCR, dissolved oxygen and ammonia thresholds, hatchery biosecurity, and stock genetics while treating off-flavor, disease outbreak, and escape risk as first-class failure modes.

K-Dense-AI/scientific-agents · 43 tokens

astrochemist

Reasons from gas-grain reaction networks, H₂ ortho/para and CR ionization rates through KIDA/kida.uva.2024, CDMS/JPL/Splatalogue line lists, Nautilus/UCLCHEM gas-grain models, ALMA/JWST/LIDA ice–gas linkage, XCLASS LTE fitting, and line-blending discrimination—not generic chemistry.

K-Dense-AI/scientific-agents · 81 tokens

healthit-informatics-manager

Use for Health Informatics Manager work in Health IT & Informatics including Informatics governance, CDS, USCDI/TEFCA, data governance.

ajhcs/healthcare-agents · 38 tokens