test

test is a command for Claude Code from claude-market/marketplace. It costs 11 tokens per session (3,474 once invoked), scanned A, original, MIT.

A command that runs several kinds of software tests, watches how the code behaves, and investigates failures. It can test individual functions, complete API requests, and whether an API follows its OpenAPI description.

In plain words
What is it for?
Use it to run unit, integration, contract, and optionally end-to-end tests. It is suited to checking API implementations against their documented OpenAPI specification.
Why use it?
It reduces the manual work of running tests and tracing why they fail. It can repeatedly diagnose and fix failures until the tests pass.

Command for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions CLAUDE.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is files: ./coverage/lcov.info.

Part of the specforge plugin — 5 commands, 3 agents shipped together

Good fit Use it to run unit, integration, contract, and optionally end-to-end tests. It is suited to checking API implementations against their documented OpenAPI specification.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/claude-market/marketplace
agentmods
npx agentmods add commands/claude-market/marketplace/test

Made for: Claude Code.

Or install specforge, the plugin that ships this one along with the rest of its 5 commands, 3 agents.

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 test

README.md
[![agentmods](https://agentmods.dev/badge/commands/claude-market/marketplace/test/github.svg)](https://agentmods.dev/commands/claude-market/marketplace/test)
Your own site
<a href="https://agentmods.dev/commands/claude-market/marketplace/test"><img src="https://agentmods.dev/badge/commands/claude-market/marketplace/test/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 test

Your own site · 80×15
<a href="https://agentmods.dev/commands/claude-market/marketplace/test"><img src="https://agentmods.dev/badge/commands/claude-market/marketplace/test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,474 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.00011 $0.03474
Opus 5 $0.00005 $0.01737
Sonnet 5 $0.00002 $0.00695
Haiku 4.5 $0.00001 $0.00347

Measured 8d ago against content hash 85219964a6f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

test 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.

specforge/commands/test.md · 605 lines

How it starts

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

SpecForge Test Orchestrator

Run comprehensive tests with behavior observation, diagnose failures, and iterate until all tests pass.

Overview

The test orchestrator runs tests at multiple levels and uses behavior observation to diagnose and fix issues:

  1. Unit Tests - Test individual handlers and functions
  2. Integration Tests - Test API endpoints end-to-end
  3. Contract Tests - Verify API matches OpenAPI spec
  4. Behavior Observation - Monitor test execution to identify issues
  5. Iterative Fixing - Diagnose and fix failures automatically

Test Orchestration Flow

┌─────────────────────────────────────────────┐
│  /specforge:test                             │
└─────────────────┬───────────────────────────┘
                  │
    ┌─────────────┼─────────────┬──────────────┐
    ▼             ▼             ▼              ▼
┌────────┐  ┌──────────┐  ┌──────────┐  ┌─────────────┐
│ Unit   │  │ Integration│ │ Contract │  │ E2E Tests   │
│ Tests  │  │ Tests     │  │ Tests    │  │ (optional)  │
└────┬───┘  └─────┬────┘  └─────┬────┘  └──────┬──────┘
     │            │             │              │
     └────────────┴─────────────┴──────────────┘
                  │
                  ▼
       ┌──────────────────────┐
       │ Behavior Observation │
       │ & Failure Diagnosis  │
       └──────────────────────┘
                  │
                  ▼
       ┌──────────────────────┐
       │ Iterate & Fix        │
       │ (Max 3 iterations)   │
       └──────────────────────┘

Step 1: Read Configuration

Extract the tech stack configuration from CLAUDE.md:

# Read SpecForge configuration
grep "SpecForge configuration" -A 10 CLAUDE.md

Extract:

  • Backend plugin
  • Database plugin
  • Codegen plugin
  • Frontend plugin (if applicable)

Step 2: Unit Tests

Run unit tests for the backend using the backend plugin's testing expert:

# Get backend plugin
BACKEND_PLUGIN=$(grep "backend:" CLAUDE.md | cut -d: -f2 | tr -d ' ')

Read the full file on GitHub · 605 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 · 605 lines · 11 tokens per session scan A 85219964a6f9

Subscribe to this mod's changes

test is a command published in the GitHub repository claude-market/marketplace (22 stars, last pushed 10mo ago), licensed MIT. It adds 11 tokens to every session and 3,474 once invoked, about $0.0001 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-30.