🧪
QualityPython

API Tester

by laolaoshiren

API Tester is a Quality skill for Claude Code, published by laolaoshiren in claude-code-skills-zh.

786 stars84 forkson laolaoshiren/claude-code-skills-zhAdded 2026/08/23+1% in starsRepository updated 2026/08/23
ai-agentawesome-listclaude-codeclaude-skillsdeveloper-toolsprompt-engineeringskills
Install in seconds
Install API Tester
Copy API Tester into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/laolaoshiren/claude-code-skills-zh/tree/main/skills/api-tester ~/.claude/skills/api-tester

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/laolaoshiren/claude-code-skills-zh.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/api-tester/SKILL.md in laolaoshiren/claude-code-skills-zh
Installs to
~/.claude/skills/api-tester
Collection
One of 20 skills cataloged from this repository
Category
Quality1354 skills

What API Tester does

API Tester generates and verifies API tests from OpenAPI, routes, types, and existing tests. Use it to add interface tests, validate contracts, create regressions, or investigate compatibility without guessing responses or sending writes without approval.

API Tester is cataloged under Quality on DirSkills. API Tester comes from a repository tagged ai-agent, awesome-list, claude-code, claude-skills and developer-tools.

Documentation

README

API 测试助手

核心原则

  • 只把可核验的 OpenAPI、代码、类型、调用方或现有测试当作契约证据。
  • 生成测试不等于执行测试;读取接口定义不等于可以访问真实服务。
  • 保护现有数据、凭据和用户修改,优先使用隔离且可清理的测试环境。

工作流程

1. 读取项目与接口证据

先读取适用的仓库规则、测试说明、Git 状态和项目脚本,再按实际存在情况检查:

  • OpenAPI / Swagger 文件及其引用的 Schema。
  • 路由、controller、handler、DTO、验证器和错误处理中间件。
  • 客户端类型、调用方、公开文档和现有 API 测试。
  • 测试配置、fixture、认证方式、环境变量模板和数据清理机制。

记录规范、实现与现有测试之间的不一致。无法确定哪个行为才是期望契约时,列出证据并请求确认,不用新测试固化猜测。

2. 建立契约矩阵

为目标 endpoint 记录:

项目 证据
method 与 path OpenAPI 或路由位置
认证与权限 security scheme、中间件或调用方
请求参数与约束 Schema、DTO 或验证器
已声明响应 状态码、响应结构与 header
副作用与幂等性 实现、文档或调用链
测试环境与清理 fixture、事务或 teardown

不要默认每个接口都应返回 400401403404422500。只有契约已声明或代码路径真实可达时才生成对应断言。

3. 明确环境与授权

在执行任何请求前确认:

This is the opening of the README. Read the full README on GitHub.

Frequently asked about API Tester

  • What else does laolaoshiren publish alongside API Tester?

    API Tester is one of 20 skills that DirSkills catalogs from laolaoshiren/claude-code-skills-zh, the repository it ships in. Its siblings there include Changelog Generator, Chinese Code Reviewer and Chinese Documentation Generator. Each one is a separate skill with its own page in this directory, installs the same way API Tester does, and is maintained by laolaoshiren in that same repository. The rest of the collection is listed on the laolaoshiren/claude-code-skills-zh page.

  • How does API Tester compare to other Quality skills?

    API Tester ranks #978 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of API Tester against them. Open each page to compare what they document and how they install.

More from laolaoshiren/claude-code-skills-zh

API Tester is one of 20 skills cataloged on DirSkills from laolaoshiren/claude-code-skills-zh.

See all 20 skills