api-tester SKILL.md skillA

api-tester from laolaoshiren/claude-code-skills-zh is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add laolaoshiren/claude-code-skills-zh/api-tester@git:20260716.e06495d

Pins git:20260716.e06495d in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
laolaoshiren/claude-code-skills-zh
Path
skills/api-tester/SKILL.md
Versions recorded
4
Latest version
git:20260716.e06495d, committed Jul 16, 2026
First version recorded
Apr 14, 2026
Size
5,504 bytes
Repository stars
869
License
MIT

依据真实 OpenAPI、路由实现和现有测试生成并验证 API 测试。用于用户要求测试接口、补集成测试、验证 API 契约、生成回归用例或排查接口兼容性时;区分“生成测试”和“执行请求”的授权,不猜测状态码、响应结构或 SLA,不在未确认环境中发送写请求。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# API 测试助手

## 核心原则

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

## 工作流程

### 1. 读取项目与接口证据

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

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

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

### 2. 建立契约矩阵

为目标 endpoint 记录:

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

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

### 3. 明确环境与授权

在执行任何请求前确认:

- Base URL、环境归属以及是否为 local、test、staging 或 production。
- 测试账号、权限范围和凭据来源。
- 是否允许执行 POST、PUT、PATCH、DELETE、上传、支付、通知等有副作用操作。
- 测试数据隔离、唯一标识、清理或事务回滚方案。

用户只要求“生成测试”时只产出代码。生产环境、共享 staging、第三方服务及任何可能改变真实数据的执行都必须获得明确授权。GET 也不能仅凭 method 判定无副作用。

### 4. 选择项目锁定的工具

- 优先运行仓库已有的 test、OpenAPI lint 或 contract test script。
- 读取 package manager、lockfile 和已安装版本后再选择命令。
- 不用裸 `npx`、全局工具或临时下载的最新版解析规范。
- 缺少依赖时先报告;安装工具、更新 lockfile 或修改测试配置需要单独授权。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add laolaoshiren/claude-code-skills-zh/api-tester@sha256:b1f537163db79152

The line at the top of this page pins the label git:20260716.e06495d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_7jpr7vcaiqmlz5no.svg)](https://markdownregistry.com/a/art_7jpr7vcaiqmlz5no)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Apr 14, 2026 and Jul 16, 2026, about one every 31 days.

versioncommittedcommitsizeaudit
git:20260716.e06495d latest2026-07-16 e06495d 5,504 BA view · diff
git:20260713.6d2b0082026-07-13 6d2b008 4,869 BA view · diff
git:20260617.b8acb5f2026-06-17 b8acb5f 4,403 BA view · diff
git:20260414.35838392026-04-14 3583839 978 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5504 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

laolaoshiren/claude-code-skills-zh · 869 stars · license MIT · pushed 2026-09-22 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_7jpr7vcaiqmlz5no
GET https://markdownregistry.com/api/v1/resolve?ref=laolaoshiren/claude-code-skills-zh/api-tester
GET https://markdownregistry.com/api/v1/blob/b1f537163db791526bda2f79bba0bb4c09a35f78cc24ed4b062e46de09a4804c

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from laolaoshiren/claude-code-skills-zh

changelog-gen SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/changelog-gen/SKILL.md · Changelog 生成器 - 从 Git 历史自动生成 CHANGELOG
git:20260713.6d2b008 · audit A · 869 stars
db-migrator SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/db-migrator/SKILL.md · 数据库迁移助手 - Schema 对比、迁移脚本生成
git:20260713.6d2b008 · audit A · 869 stars
dep-auditor SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/dep-auditor/SKILL.md · 审计 Node.js、Python、Go、Rust、JVM、Ruby 项目的依赖漏洞、版本健康度与许可证事实;当用户要求检查 package.json、lockfile、requirements、go.mod、Cargo.toml、pom…
git:20260718.456f951 · audit A · 869 stars
ds-mapper SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/ds-mapper/SKILL.md · 项目目录结构地图 - 生成带说明的可视化目录树,快速理解任意代码库
git:20260421.2086438 · audit A · 869 stars
env-manager SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/env-manager/SKILL.md · 环境变量管理器:扫描、校验、同步 .env 文件,生成安全配置模板
git:20260713.6d2b008 · audit A · 869 stars
error-translator SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/error-translator/SKILL.md · 编程错误消息翻译专家 — 将英文错误消息翻译成中文,解释原因并提供修复方案
git:20260421.c1b858a · audit A · 869 stars
eslint-fix SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/eslint-fix/SKILL.md · 安全诊断并修复 ESLint error、warning 和配置兼容问题。用于用户要求运行 lint、解释 ESLint 报错、限定范围自动修复或迁移 ESLint…
git:20260715.81812dc · audit A · 869 stars
git-workflow SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/git-workflow/SKILL.md · 安全处理 Git 状态检查、提交信息、commit、分支、push、PR 和 rebase。用于用户要求检查改动、生成或创建提交、管理分支、推送、发起 PR 或整理历史时;严格区分每个动作的授权,并保护工作树中已有和无关的修改。
git:20260715.81812dc · audit A · 869 stars
github-actions-gen SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/github-actions-gen/SKILL.md · 分析真实项目并生成或修订安全、可验证的 GitHub Actions workflow;当用户要求创建 CI、测试矩阵、构建、Release、部署、缓存、Secrets、OIDC、PR 自动化或排查 workflow 配置时使用
git:20260722.bac2f9d · audit A · 869 stars
i18n-helper SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/i18n-helper/SKILL.md · 国际化/本地化助手 — 扫描代码中的硬编码文本、生成 i18n 配置、批量翻译
git:20260415.28119e9 · audit A · 869 stars
log-analyzer SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/log-analyzer/SKILL.md · 日志分析助手 — 智能解析日志文件,识别异常模式,定位问题根因
git:20260415.28119e9 · audit A · 869 stars
perf-profiler SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/perf-profiler/SKILL.md · 基于可复现基线和 profiler 证据分析性能问题。用于用户要求定位慢接口、慢任务、慢查询、内存或网络瓶颈,制定优化方案,或验证优化收益时;区分实测结论与静态推断,不虚构耗时和提升比例,生产环境操作需明确授权。
git:20260715.81812dc · audit A · 869 stars

Every file in laolaoshiren/claude-code-skills-zh

Other files named api-tester

api-tester SKILL.md skill
chainlesschain/chainlesschain · desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/api-tester/SKILL.md · API测试技能 - IPC处理器发现、测试生成、健康检查、回归测试
v1.0.0 · audit A · 11 stars
api-tester SKILL.md skill
dannykkh/skill-olympus · skills/api-tester/SKILL.md · API 연동 테스트 스킬. 프론트-백엔드 통신 검증, 프록시 설정 확인, CORS, JWT 토큰, 에러 응답, 파일 업로드 테스트. "API 테스트해줘"로 실행.
git:20261002.d0b4bfd · audit A · 7 stars
api-tester SKILL.md skill
vodouai/os · skills/agents/testing/api-tester/SKILL.md · Expert API testing agent that designs test suites, validates endpoints, tests contracts, and builds integration and…
v1.0.0 · audit A · 1 stars

Browse by kind, by grade A, or by owner.