AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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, .proto files, 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/todo and 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

  1. "Add integration tests for the order-creation endpoint" → derives assertions from validators and only covers error branches that are actually reachable.
  2. "Check whether openapi.yaml matches the real routes" → parses both with proper parsers and reports a drift table instead of guessing.
  3. "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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/laolaoshiren/claude-code-skills-zh.git
  3. Create the skills directory: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r claude-code-skills-zh/skills/api-tester ~/.claude/skills/
  5. Verify that ~/.claude/skills/api-tester/SKILL.md exists.
  6. Restart Claude Code and try a prompt like "Write integration tests for this project's API".
  7. If real requests are needed, state the base URL, environment type, test account scope, and whether write operations are allowed.