api-tester

A test runner for REST and GraphQL APIs, which are interfaces that let software exchange data over the web.

In plain words
What is it for?
Test request responses, error cases, authentication flows, rate limits, and JSON schemas using a JSON test specification.
Why use it?
It checks both normal and failing requests in a repeatable way, reducing the chance that endpoint, authentication, permission, or response-format problems go unnoticed.

Skill for Claude CodeCodex

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/jansenanalytics/claudex/api-tester
Any agent
npx skills add JansenAnalytics/claudex --skill api-tester
Clone the repo
git clone --depth 1 https://github.com/JansenAnalytics/claudex

Made for: Claude Code, Codex.

Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 626 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.00043 $0.00626
Opus 5 $0.00022 $0.00313
Sonnet 5 $0.00009 $0.00125
Haiku 4.5 $0.00004 $0.00063

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

Security

Grade A, and why

api-tester 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 2d 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.

skills/api-tester/SKILL.md · 79 lines

How it starts

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

api-tester

Systematic REST and GraphQL API endpoint testing: happy path, error cases, auth flows, rate limits, schema validation. Use when: testing backend APIs, validating endpoint responses, checking error handling, verifying auth/permissions, or benchmarking API performance.

Scripts

api-test.py

Run API tests from a JSON test spec. Reports pass/fail with response details.

# From file
python3 scripts/api-test.py --spec tests.json

# From stdin
echo '{"base_url":"https://httpbin.org","tests":[{"name":"get","method":"GET","path":"/get","expect_status":200}]}' | python3 scripts/api-test.py

Test spec format:

{
  "base_url": "http://localhost:3000",
  "default_headers": { "Authorization": "Bearer TOKEN" },
  "tests": [
    {
      "name": "list users",
      "method": "GET",
      "path": "/api/users",
      "expect_status": 200,
      "expect_json": { "type": "object" }
    },
    {
      "name": "create user",
      "method": "POST",
      "path": "/api/users",
      "headers": { "Content-Type": "application/json" },
      "body": { "name": "Test", "email": "[email protected]" },
      "expect_status": 201,
      "expect_json": { "required": ["id", "name"] }
    }
  ]
}

expect_json validation: type (array/object/string), required (list of keys that must exist), properties (nested type checks).

api-spec-gen.sh

Generate a test spec skeleton from Express/Fastify route files.

bash scripts/api-spec-gen.sh --source ./routes --output api-tests.json

api-benchmark.py

Performance benchmarking for API endpoints.

python3 scripts/api-benchmark.py --url https://httpbin.org/get --count 50 --concurrency 5
python3 scripts/api-benchmark.py --url http://localhost:3000/api/health --method GET --count 100 --concurrency 10 --headers '{"Authorization":"Bearer tok"}'

Reports: min, max, avg, median, p95, p99, throughput (req/s).

References

  • references/rest-testing-patterns.md — CRUD lifecycle, auth flows, pagination, error responses
  • references/api-checklist.md — API quality checklist: status codes, error format, CORS, input validation

Read the full file on GitHub · 79 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. 2d ago First seen · 79 lines · 43 tokens per session scan A 67d92dc5be51

Subscribe to this mod's changes

api-tester is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 626 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

API Test Suite Generator

Automatically generate comprehensive API test suites from OpenAPI specifications covering CRUD operations, error handling, authentication, pagination, and edge cases.

PramodDutta/qaskills · 29 tokens

api-guide

Guide for implementing REST and GraphQL APIs (create, get, search, update, delete, purge, scope prefix patterns, admin prefix, SearchScope, BaseFilterAdapter, @apifunction, Click CLI).

lablup/backend.ai · 46 tokens

code-trace

Trace a feature across the layered architecture (REST v2, GraphQL, Service, Repository, DB, Errors) and explore the entity source tree — includes how to read the 21k-line supergraph.graphql without loading it whole.

lablup/backend.ai · 51 tokens

bruno

Comprehensive operational skill specification for Anthropic Claude to automate, script, troubleshoot, and optimize Bruno API Client, Bru markup language (.bru), CLI runner (@usebruno/cli), and CI/CD test pipelines.

alivirgo/Major-AI-Skills · 46 tokens

wordclaw-cms

Use when Codex is connected to a WordClaw MCP server or WordClaw-backed REST runtime. Start with system://capabilities, system://deployment-status, system://current-actor, and system://workspace-context, then use guidetask or resolveworkspacetarget before writing. Covers schema-bound authoring, review workflows, asset…

dligthart/wordclaw · 88 tokens

wordclaw-cms

Use when OpenClaw is connected to a WordClaw MCP server or WordClaw-backed REST runtime. Start with system://capabilities, system://deployment-status, system://current-actor, and system://workspace-context, then use guidetask or resolveworkspacetarget before writing. Covers schema-bound authoring, review workflows…

dligthart/wordclaw · 89 tokens