api-testing-patterns

api-testing-patterns is a skill for Claude Code from summarybotng/summarybot-ng. It costs 34 tokens per session (2,161 once invoked), scanned A, a copy of api-testing-patterns, MIT.

A collection of patterns for testing REST and GraphQL APIs, including their contracts, inputs, errors, authentication, and integration points.

In plain words
What is it for?
Use it to design API test strategies, validate microservice contracts, and automate checks in CI/CD.
Why use it?
It helps catch broken API behavior and changes that could disrupt services or clients.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to design API test strategies, validate microservice contracts, and automate checks in CI/CD.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/summarybotng/summarybot-ng/api-testing-patterns
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 summarybotng/summarybot-ng --skill api-testing-patterns
Clone the repo
git clone --depth 1 https://github.com/summarybotng/summarybot-ng

Made for: Claude Code.

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 api-testing-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/summarybotng/summarybot-ng/api-testing-patterns/github.svg)](https://agentmods.dev/skills/summarybotng/summarybot-ng/api-testing-patterns)
Your own site
<a href="https://agentmods.dev/skills/summarybotng/summarybot-ng/api-testing-patterns"><img src="https://agentmods.dev/badge/skills/summarybotng/summarybot-ng/api-testing-patterns/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 api-testing-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/summarybotng/summarybot-ng/api-testing-patterns"><img src="https://agentmods.dev/badge/skills/summarybotng/summarybot-ng/api-testing-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,161 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 89% copy Near-identical to another mod 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.00034 $0.02161
Opus 5.5 $0.00014 $0.00864
Sonnet 5.5 $0.00007 $0.00432
Haiku 4.5 $0.00003 $0.00216

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

Security

Grade A, and why

api-testing-patterns 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.

Origin

This is a copy

89% identical to api-testing-patterns — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/api-testing-patterns/SKILL.md · 300 lines

How it starts

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

API Testing Patterns

<default_to_action> When testing APIs or designing API test strategy:

  1. IDENTIFY testing level: contract, integration, or component
  2. TEST the contract, not implementation (consumer perspective)
  3. VALIDATE auth, input, errors, idempotency, concurrency
  4. AUTOMATE in CI/CD with schema validation
  5. MONITOR production APIs for contract drift

Quick Pattern Selection:

  • Microservices → Consumer-driven contracts (Pact)
  • REST APIs → CRUD + pagination + filtering tests
  • GraphQL → Query validation + complexity limits
  • External deps → Mock with component testing
  • Performance → Load test critical endpoints

Critical Success Factors:

  • APIs are contracts - test from consumer perspective
  • Always test error scenarios, not just happy paths
  • Version your API tests to prevent breaking changes </default_to_action>

Quick Reference Card

When to Use

  • Testing REST or GraphQL APIs
  • Validating microservice contracts
  • Designing API test strategies
  • Preventing breaking API changes

Testing Levels

Level Purpose Dependencies Speed
Contract Provider-consumer agreement None Fast
Component API in isolation Mocked Fast
Integration Real dependencies Database, services Slower

Critical Test Scenarios

Scenario Must Test Example
Auth 401/403 handling Expired token, wrong user
Input 400 validation Missing fields, wrong types
Errors 500 graceful handling DB down, timeout
Idempotency Duplicate prevention Same idempotency key
Concurrency Race conditions Parallel checkout

Tools

  • Contract: Pact, Spring Cloud Contract
  • REST: Supertest, REST-assured, Playwright
  • Load: k6, Artillery, JMeter

Agent Coordination

  • qe-api-contract-validator: Validate contracts, detect breaking changes
  • qe-test-generator: Generate tests from OpenAPI spec
  • qe-performance-tester: Load test endpoints
  • qe-security-scanner: API security testing

Read the full file on GitHub · 300 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 First seen · 300 lines · 34 tokens per session scan A 31b788fa5f6b

Subscribe to this mod's changes

api-testing-patterns is a skill published in the GitHub repository summarybotng/summarybot-ng (2 stars, last pushed 4mo ago), licensed MIT. It adds 34 tokens to every session and 2,161 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to api-testing-patterns, differing in 8 lines, and is treated as a copy.