Skill Issue ›
Browse Skills ›
Api testing
Api testing
Api testing is an AI agent skill from the GitHub repository rnavarych/alpha-engineer . API test automation with Postman/Newman, REST Assured, SuperTest, and httpx. Contract testing (Pact, consumer-driven), schema validation (JSON Schema, OpenAPI), mock servers (WireMock, MSW), API performance baselines, and auth token management. Use when testing REST/GraphQL APIs or setting up API te
How to use this skill
Claude Code: save it as .claude/skills/api-testing/SKILL.md
Cursor: save it as .cursor/rules/api-testing.md
Codex: save it as .agents/skills/api-testing/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
API Testing
When to use
Writing integration tests for REST or GraphQL endpoints (SuperTest, REST Assured, httpx)
Setting up contract testing between consumer and provider services with Pact
Validating API responses against an OpenAPI spec or JSON Schema
Configuring WireMock or MSW to stub external dependencies in tests
Auditing coverage of an existing API test suite against the HTTP scenario checklist
Running Newman collections in CI pipelines
Setting performance baselines for critical endpoints
Core principles
Test the contract, not the implementation — verify what the API returns, not how it produces it
Every status code is a scenario — 200 is one test; 400, 401, 403, 404, 429 are five more
Mock at the network boundary — WireMock/MSW intercept at the wire; never mock internal service methods
Tokens come from helpers, never fixtures — hardcoded tokens in test files are a security incident waiting to happen
Performance baselines belong in CI — if P95 regresses >20%, it's a bug, not a metric
Reference Files
references/tools-and-patterns.md — tool selection table, SuperTest examples, Pact contract testing workflow, schema validation with schemathesis, WireMock and MSW mock server setup, auth token patterns, performance baseline approach
references/coverage-checklist.md — HTTP scenario coverage checklist (happy path through rate limiting), GraphQL-specific scenarios, error response quality standards, edge cases worth testing
Use this skill with your AI agent:
Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.