run-tests

run-tests is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 67 tokens per session (1,091 once invoked), scanned A, original, Apache-2.0.

A procedure for running an existing project's full test suite and recording the actual result. Tests are checks that verify software behaves as expected.

In plain words
What is it for?
Use it after code changes or when a ticket requires verification, using the repository's existing test command and reporting failures accurately.
Why use it?
It provides evidence that a change did not break existing behaviour and prevents claiming success without running the project's own checks.

Skill for Claude CodeCodex

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

Good fit Use it after code changes or when a ticket requires verification, using the repository's existing test command and reporting failures accurately.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/run-tests
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 tmj-90/gaffer --skill run-tests
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

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 run-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/run-tests/github.svg)](https://agentmods.dev/skills/tmj-90/gaffer/run-tests)
Your own site
<a href="https://agentmods.dev/skills/tmj-90/gaffer/run-tests"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/run-tests/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 run-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/run-tests"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/run-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,091 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.00067 $0.01091
Opus 5.5 $0.00027 $0.00436
Sonnet 5.5 $0.00013 $0.00218
Haiku 4.5 $0.00007 $0.00109

Measured 1mo ago against content hash 2e3b22954b0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

run-tests 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 1mo 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.

runner/skills/run-tests/SKILL.md · 71 lines

How it starts

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

Run the test suite

Run the repo's own test command, report the real result, and evidence it per acceptance criterion. "Green" only counts if the suite actually ran the tests that prove each criterion: in live runs the weakest dimension across ~30 tickets was test adequacy — suites passed while an AC had no test, or only a test that never exercised its behaviour.

Independent tester? Follow the black-box-test skill instead where they differ: you never fix implementation code, you run the command once (and once more after fixing your own test), and you record manual_note rows, not test_output. You run no git beyond the final add + commit (so no git diff in step 4), and you hold no claim, so step 5's mark_ticket_blocked is refused — a failure you cannot attribute is a FAIL finding.

Procedure

  1. Find the command. Use the context packet's verification commands (pnpm test, npm test, pytest, go test ./..., mvn test, cargo test). If the packet is silent, read the manifest (package.json scripts, pyproject.toml/tox.ini, Makefile, go.mod, pom.xml, Cargo.toml). Use the project script, not the underlying tool, so config, setup files and globs match CI. Note any separate integration or e2e command the ticket's ACs depend on.
  2. Map ACs to tests before running. Call get_ticket if you do not have the ACs. For each AC, name the test(s) that would fail if it were not met. An AC with no such test is a gap to fill now (the add-unit-test or add-integration-test skill); an AC about persistence, concurrency or failure needs a test running that real schedule, not a happy-path call.
  3. Run the full suite (or the scoped subset the ticket names, followed by the full suite before you finish). Capture the exact command and the summary counts: passed, failed, skipped, and the number of test files. Confirm your new tests appear in the output — a file outside the runner's glob, a wrong suffix, or a describe.only/it.only elsewhere means they silently did not run.
  4. Read failures before touching anything. Reproduce a single failure in isolation (vitest run <file> -t "<name>", pytest path::test -x, go test -run '^TestX$'). Decide: your change broke it → fix the code, not the test's expectation, unless the AC changed that expectation; pre-existing and unrelated → show that neither the test nor the code it exercises is in your diff (git diff --stat <base>...HEAD) and that it fails the same way in the runner's recorded gate evidence or lore, then note it; intermittent → the fix-flaky-test skill.
  5. Re-run until green, or until you have shown a failure is out of scope and blocking (then mark_ticket_blocked with the evidence rather than faking a pass — refused when you hold no claim: on a resumed delivery raise request_decision with severity human_required; as the merge resolver, abort and say why in your final message).
  6. Check the skip count. Skipped or todo tests in files you touched must be justified by the ticket; new .skip, xit, @pytest.mark.skip, t.Skip added to go green are a defect.
  7. Evidence and stop. Use the record-evidence skill: per AC, a test_output row with the command, the pass summary and the test name(s) that prove that AC. The runner runs the gates and submits for review; you do not.

Read the full file on GitHub · 71 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. 1mo ago Changed 2e3b22954b0d
  2. 2mo ago Changed · +38 lines · +14 tokens per session 2fc493faf41b
  3. 3mo ago First seen · 33 lines · 53 tokens per session scan A c07284f8e6fa

Subscribe to this mod's changes

run-tests is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 67 tokens to every session and 1,091 once invoked, about $0.0003 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

run-tests compared with skills from other repositories

run-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
run-teststmj-90/gafferSkill14d agoApache-2.0A67Claude Code, Codex
bulwark-brainstormQBall-Inc/the-bulwarkSkill9yesterdayMITA50Claude Code
plan-creationQBall-Inc/the-bulwarkSkill9yesterdayMITA38Claude Code
anthropic-validatorQBall-Inc/the-bulwarkSkill9yesterdayMITA40Claude Code
create-subagentQBall-Inc/the-bulwarkSkill9yesterdayMITA42Claude Code
test-auditQBall-Inc/the-bulwarkSkill9yesterdayMITA0Claude Code
code-reviewQBall-Inc/the-bulwarkSkill9yesterdayMITA61Claude Code