Token导航 LogoToken导航

Agent Skill · 开发

api-testing-en(API 测试 EN)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

api-testing-en 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 20,111。

总安装 240周安装 10GitHub Stars 39下载 80核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:api-testing-en(API 测试 EN)
来源仓库:https://github.com/naodeng/awesome-qa-skills
仓库路径:skills/api-testing-en
安装命令:
npx skills add https://github.com/naodeng/awesome-qa-skills --skill api-testing-en
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/naodeng/awesome-qa-skills --skill api-testing-en

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

提供英文版本的 API 测试指导,适用于需要国际化输出的场景。支持生成 CSV/JSON/Excel 格式测试用例,灵活适配不同交付需求。基于 prompts/api-testing_EN.md 模板扩展业务上下文与测试环境说明。

安装方式:通过 GitHub 仓库安装,命令为 npx skills add <repo> --skill api-testing-en。中文用户可参考同仓库 api-testing 技能获取本地化支持。

来源仓库内路径:skills/api-testing-en

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/naodeng/awesome-qa-skills --skill api-testing-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

api-testing-en 怎么安装?

在终端执行 npx skills add https://github.com/naodeng/awesome-qa-skills --skill api-testing-en。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

api-testing-en 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

api-testing-en 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

api-testing-en 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

api-testing-en 用的人多吗?

公开数据是累计安装 240 次,近一周安装 10 次,下载 80 次,GitHub 39 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

api-testing-en 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
api-testing-en

API 测试 EN · 本页

24039接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

API Testing (English)

中文版: See skill api-testing.

Prompt: this directory's prompts/api-testing_EN.md.

When to Use

  • User mentions API testing, api-testing
  • Need to execute this testing type or produce deliverables per Standard-version
  • Trigger examples: "Generate/design/write API test cases for the following"

Output Format Options

Markdown by default. For Excel / CSV / JSON, add at the end of your request; see output-formats.md.

How to Use

  1. Open the relevant file in this directory's prompts/ and copy the content below the dashed line.
  2. Append your requirements and context (business flow, environment, constraints, acceptance criteria).
  3. If you need non-Markdown output, append the request sentence from output-formats.md at the end.

Code Examples

1. Postman + Newman REST API Testing

Complete user management API test example with 10 test cases.

Location: examples/postman-rest-api/

Includes:

  • Postman collection file (10 test cases)
  • Environment variable configuration
  • Newman automation run script
  • Detailed README documentation

Quick Start:

cd examples/postman-rest-api
npm install -g newman
./newman-run.sh

Test Coverage:

  • User CRUD operations (Create, Read, Update, Delete)
  • Authentication and authorization testing
  • Error handling and boundary conditions
  • Response time validation
  • Data format validation

See: examples/postman-rest-api/README.md

2. REST Assured (Java)

Coming soon - Java-based REST API testing with REST Assured framework.

Location: examples/rest-assured-java/

3. SuperTest (Node.js)

Coming soon - Node.js API testing with SuperTest framework.

Location: examples/supertest-nodejs/

Best Practices

API Test Design Principles

  1. Test Pyramid

- Unit tests: Test individual API endpoints - Integration tests: Test interactions between multiple endpoints - End-to-end tests: Test complete business workflows

  1. Test Data Management

- Use environment variables for different environment configurations - Use dynamic variables to avoid hardcoding - Clean up data after tests

  1. Assertion Strategy

- Verify status codes - Verify response structure (Schema Validation) - Verify response data - Verify response time

  1. Error Handling

- Test various error scenarios (4xx, 5xx) - Verify error message format - Test boundary conditions

Tool Selection Guide

ToolUse CaseAdvantages
Postman/NewmanREST API testingEasy to use, visual, CI/CD integration
REST AssuredJava projectsStrong typing, BDD style
Pytest + RequestsPython projectsFlexible, rich ecosystem
SuperTestNode.js projectsGood integration with Express
GraphQL PlaygroundGraphQL APIDesigned specifically for GraphQL

Common Pitfalls

  • ❌ Testing only happy paths → ✅ Cover validation, error handling, auth failures, and edge cases
  • ❌ Weak contract checks → ✅ Assert status, schema, business fields, and backward compatibility
  • ❌ Not isolating test data → ✅ Use deterministic seed data and clear teardown rules
  • ❌ Ignoring environment parity → ✅ Validate base URL, auth config, and dependency versions per environment

Troubleshooting

Detailed troubleshooting steps were moved to references/troubleshooting.md. Load it on demand to keep the main skill concise.

Reference Files

  • prompts/api-testing_EN.md — API testing Standard-version prompt
  • output-formats.md — Markdown / Excel / CSV / JSON request instructions
  • examples/postman-rest-api/ — Complete Postman + Newman example
  • quick-start.md — 5-minute quick start guide

Related skills: automation-testing-en, performance-testing-en, security-testing-en, functional-testing-en.

Target Audience

  • QA engineers and developers executing this testing domain in real projects
  • Team leads who need structured, reproducible testing outputs
  • AI users who need fast, format-ready deliverables for execution and reporting

Not Recommended For

  • Pure production incident response without test scope/context
  • Decisions requiring legal/compliance sign-off without expert review
  • Requests lacking minimum inputs (scope, environment, expected behavior)

Critical Success Factors

  • Provide clear scope, environment, and acceptance criteria before generation
  • Validate generated outputs against real system constraints before execution
  • Keep artifacts traceable (requirements -> test points -> defects -> decisions)

Output Templates and Parsing Scripts

  • Template directory: output-templates/

- template-word.md (Word-friendly structure) - template-excel.tsv (Excel paste-ready) - template-xmind.md (XMind-friendly outline) - template-json.json - template-csv.csv - template-markdown.md

  • Parser scripts directory: scripts/

- Parse (generic): parse_output_formats.py - Parse (per-format): parse_word.py, parse_excel.py, parse_xmind.py, parse_json.py, parse_csv.py, parse_markdown.py - Convert (generic): convert_output_formats.py - Convert (per-format): convert_to_word.py, convert_to_excel.py, convert_to_xmind.py, convert_to_json.py, convert_to_csv.py, convert_to_markdown.py - Batch convert: batch_convert_templates.py (outputs into artifacts/)

Examples:

python3 scripts/parse_json.py output-templates/template-json.json
python3 scripts/parse_markdown.py output-templates/template-markdown.md
python3 scripts/convert_to_json.py output-templates/template-markdown.md
python3 scripts/convert_output_formats.py output-templates/template-json.json --to csv
python3 scripts/batch_convert_templates.py --skip-same

平台分布

Codex

39.62%
按下载量换算32

Claude

28.7%
按下载量换算23

Cursor

17.57%
按下载量换算14

Gemini CLI

10.82%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills