API Tester Assistant
Generates and verifies HTTP/REST/GraphQL/gRPC interface tests and contract checks grounded in real OpenAPI specs, route code, and existing tests.
Dev & CodingIntermediate★ 932⑂ 118AI score 8/10Last updated: Dec 1, 2026
What it does
- Reads OpenAPI/Swagger, GraphQL schemas,
.protofiles, route registries, DTOs/validators and global response interceptors to build a contract matrix per endpoint (method/path, auth, parameter constraints, declared responses, side effects, cleanup). - When no spec exists, it follows a fallback evidence chain from the implementation, explicitly handling the common "HTTP 200 + business envelope" pattern such as
{ code, msg, data }so business error codes aren't missed. - On spec drift, it refuses to silently patch production code or docs; disputed assertions are marked
skip/todoand surfaced in a dedicated "contract deviations" report section. - Gates execution through a 3-tier environment model: in-process offline (supertest / FastAPI TestClient / MockMvc), local services (must verify DB, Redis and third-party SDKs point to isolated instances), and remote/third-party (requires explicit per-item authorization).
- Enforces safety rules: never inline plaintext credentials, always clean up test data, report baseline failures separately from new ones, and never claim performance without measured SLA conditions.
Who it's for
- Backend engineers adding integration or regression tests to existing APIs.
- Teams that need recurring checks of OpenAPI-vs-implementation consistency.
- Anyone wary of letting an agent fire write requests at shared or production environments.
Examples
- "Add integration tests for the order-creation endpoint" → derives assertions from validators and only covers error branches that are actually reachable.
- "Check whether openapi.yaml matches the real routes" → parses both with proper parsers and reports a drift table instead of guessing.
- "Write auth regression cases for the login flow" → covers only declared roles and ownership rules, referencing tokens via environment variable names only.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/laolaoshiren/claude-code-skills-zh/HEAD/skills/api-tester/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the skills/api-tester folder from the GitHub repo laolaoshiren/claude-code-skills-zh into my ~/.claude/skills/api-tester/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/laolaoshiren/claude-code-skills-zh.git /tmp/cc-skills-zh && mkdir -p ~/.claude/skills && cp -r /tmp/cc-skills-zh/skills/api-tester ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/laolaoshiren/claude-code-skills-zh.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r claude-code-skills-zh/skills/api-tester ~/.claude/skills/ - Verify that
~/.claude/skills/api-tester/SKILL.mdexists. - Restart Claude Code and try a prompt like "Write integration tests for this project's API".
- If real requests are needed, state the base URL, environment type, test account scope, and whether write operations are allowed.
View source on GitHub ↗License: MIT