testing

testing is a skill for Claude Code, Codex from MadAppGang/magus. It costs 46 tokens per session (2,691 once invoked), scanned A, original, MIT.

A testing toolkit for Bun applications, including Bun's built-in test runner. It focuses on tests that send real HTTP requests to a running application and on reliable test doubles and coverage checks.

In plain words
What is it for?
Use it to write and repair component tests, test APIs over HTTP, create fakes and builders, control flaky tests, and enforce code-coverage requirements.
Why use it?
It helps avoid tests that pass while skipping routing, request parsing, response handling or database behaviour. It also addresses misleading coverage gates and tests that accidentally call the real implementation.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the bunjs plugin — 9 skills, 9 commands shipped together

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 skills/madappgang/magus/testing
Any agent
npx skills add MadAppGang/magus --skill testing
Clone the repo
git clone --depth 1 https://github.com/MadAppGang/magus

Made for: Claude Code, Codex.

Or install bunjs, the plugin that ships this one along with the rest of its 9 skills, 9 commands.

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 testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/magus/testing.svg)](https://agentmods.dev/skills/madappgang/magus/testing)
Your own site
<a href="https://agentmods.dev/skills/madappgang/magus/testing"><img src="https://agentmods.dev/badge/skills/madappgang/magus/testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,691 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.00046 $0.02691
Opus 5 $0.00023 $0.01345
Sonnet 5 $0.00009 $0.00538
Haiku 4.5 $0.00005 $0.00269

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

Security

Grade A, and why

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 3d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (assets/testing/builders.test.ts, assets/testing/builders.ts, assets/testing/harness.test.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/bunjs/skills/testing/SKILL.md · 208 lines

How it starts

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

Testing in Bun

bun:test is jest-compatible and fast enough that the usual excuses for a thin suite do not apply — a full server start, request and shutdown cycle runs in well under 50 ms (MEASURED, asserted by a shipped test). The interesting decisions are therefore not "which runner" but what to test, at what level, and how to keep it from lying to you.

Two things in this skill are measured behaviour you cannot guess:

  1. coverageThreshold keys are silently ignored when singular — your CI gate may be dead right now.
  2. spyOn calls through to the original by default — unlike jest.fn(), it is an observer, not a stub.

Both are below, with the measurements.

Test at the component level by default

The single highest-leverage choice. A component (API) test drives your real server over real HTTP:

✗ unit-mocking     call handler(req) directly, mock the service, mock the repo
✓ component        start the real server, POST /users, assert the response and the DB row

Calling a handler as a function skips routing, method matching, body parsing, header handling, the error() hook and the status your framework actually produces. Every one of those has shipped a bug. Worse, a suite built from mocks asserts that your mocks agree with each other — it goes green while the real wiring is broken, which is the failure mode that erodes trust in a suite until nobody reads it.

Reserve isolated unit tests for genuinely algorithmic code: pricing rules, parsers, state machines, backoff policy. Those have many input combinations and no I/O, which is exactly when isolation pays.

The five exit doors — what "assert enough" actually means

"Assert on outcomes, not interactions" is good advice that does not tell you when you are done. This does. A backend request can only affect the world through five doors, so for any feature, ask which it opens and assert on each:

# Exit door Assert
1 Response status, body, headers — the whole object, not one field
2 State change the row that was written, deleted or left alone
3 External calls the outgoing request you made, and its shape
4 Message queue the message published, and its payload
5 Observability the log line or metric an operator will page on

Read the full file on GitHub · 208 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. 3d ago First seen · 208 lines · 46 tokens per session scan A ae2bea99af0a

Subscribe to this mod's changes

testing is a skill published in the GitHub repository MadAppGang/magus (9 stars, last pushed 5d ago), licensed MIT. It adds 46 tokens to every session and 2,691 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 skills, from other repositories

use-agent-browser-for-airi

Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…

moeru-ai/airi · 87 tokens

verify

Exercise the real app/API/CLI and collect observable evidence; tests alone do not count as end-to-end verification.

Hmbown/CodeWhale · 25 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

local-frontend-check

Smoke-test or verify UI behaviour on the local Jarvis Registry frontend running at http://localhost/gateway. Use for manual regression checks, bug-fix verification, and end-to-end confirmation of specific flows without running the automated test suite.

ascending-llc/jarvis-registry · 52 tokens

pr-integration-test

Design, implement, and validate Intelligent Terminal integration tests for a target pull request or regression. Use when asked to add PR integration tests, convert a bug fix into E2E coverage, prove existing behavior still works, map tests to the release checklist, or verify E2E reports mark checklist cases complete.

microsoft/intelligent-terminal · 66 tokens

test-warp-ui

Guides testing Warp UI features and changes using the computer use tool. Use this skill only when computer-use testing was requested (explicit request or accepted offer) and the computeruse tool is available to the agent. Covers launching Warp and verifying UI behavior.

warpdotdev/warp · 55 tokens