/testkit:generate-api-artifactsfrom testkit
Converts reviewed OpenAPI/Swagger contracts into Postman Collection v2.1, Apifox-importable OpenAPI, and Apache JMeter JMX artifacts. Useful when users need to generate multiple API tool artifacts from a single contract.
Ships in testkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
将 OpenAPI/Swagger 视为版本化源契约,将 Postman、Apifox 和 JMeter 文件视为可重新生成的派生产物。不得让生成的集合悄悄取代源契约。
直接输入必须是已复核的 OpenAPI 3.0/3.1 或 Swagger 2.0 文档。
若输入是 curl、Raw HTTP、自然语言或 Markdown,先创建待复核的 OpenAPI 草稿。服务器、schema、状态码、认证规则和示例只要是推断得到的,都必须标为待确认;未知服务器不得默认成 localhost,未知成功状态码不得默认成 200。
本技能只检查 API 定义文件并生成可移植产物,不得:
用户只提供源码或要求源码发现时,说明本技能需要 OpenAPI/Swagger 后停止。用户同时要求转换和执行时,只生成请求的产物,并说明执行不属于本技能。
生成前按目标读取 targets.md:
postman:用于协作、手动请求、示例和 Collection Runner。apifox:用于 API 设计和导入;输出已复核的 OpenAPI,不发明私有格式。jmeter:输出压测脚本骨架;没有负载模型时不得称为生产可用压测方案。python <skill-dir>/scripts/generate_artifacts.py inspect <openapi-or-swagger>
报告检测到的版本、operation 数量、未解析的服务器变量、缺少 operationId 的接口,以及没有明确成功响应的接口。只有用户要求纯分析时才停在检查阶段。
一次生成一个或多个目标:
python <skill-dir>/scripts/generate_artifacts.py generate <openapi-or-swagger> \
--target apifox \
--target jmeter \
--output-dir <project>/api-artifacts
Postman 使用官方 openapi2postmanv2 转换器;脚本不得隐式下载工具:
python <skill-dir>/scripts/generate_artifacts.py generate openapi.yaml \
--target postman \
--output-dir api-artifacts \
--postman-converter openapi2postmanv2
JMeter 使用安全默认值,并允许在运行时覆盖负载参数:
python <skill-dir>/scripts/generate_artifacts.py generate openapi.yaml \
--target jmeter \
--output-dir api-artifacts \
--base-url https://test.example.invalid \
--threads 10 \
--ramp-seconds 30 \
--loops 1
需要时可把下面命令作为交接说明,但本技能不得执行:
jmeter -n -t api-artifacts/<name>.jmx -l api-artifacts/results.jtl \
-Jthreads=25 -Jramp_seconds=60 -Jloops=5
artifact-manifest.json 中记录目标格式损失和人工复核项。--force。artifact-manifest.json 中的警告与人工复核项。agents/openai.yaml (opens in a new tab)evals/evals.json (opens in a new tab)references/targets.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/builder.py (opens in a new tab)scripts/generate_artifacts.py (opens in a new tab)scripts/generator.py (opens in a new tab)scripts/parsers.py (opens in a new tab)tests/__init__.py (opens in a new tab)tests/fixtures/mini-openapi.yaml (opens in a new tab)tests/test_generate_artifacts.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub winhok/testkit --plugin testkit26 skills in this plugin
/android-static-app-reverseAndroid 应用纯静态逆向分析工作流,支持从 ADB 导出 APK、处理 split APK、使用 JADX/apktool/Vineflower 反编译、盘点静态产物、检测加固、提取 API endpoint 并生成带证据和置信度的报告。当用户要求「用 JADX 逆向」「从手机导出安装包」「查包名并反编译」「提取接口」「检测加固」「分析 APK/JADX 输出」「检查 Retrofit/OkHttp/Volley」「查找静态泄漏」「追踪 Android 调用链」时使用。/api-test-automation基于 HTTP API 定义生成并执行自动化测试,支持 Swagger/OpenAPI 2.0、OpenAPI 3.0/3.1/3.2、YApi、Postman Collection 2.1、受控运行已有 pytest 资产,以及用户明确要求的后端源码静态扫描。适用于「做接口自动化测试」「从 YApi 或 Swagger 生成并运行测试」「导入 Postman Collection」「运行已有 pytest 接口用例」「扫描后端接口」「跑 API smoke」「登录后提取 Token」「串联多接口并传递变量」「执行 setup/cleanup、数据驱动、业务断言、正负向、模糊或状态化测试」「检查接口实现与文档是否一致」以及从接口发现、导入、执行到结果归因的端到端任务。/app-test执行 Android、iOS 与 Web 的真实运行测试,验证页面交互、系统行为和跨端业务旅程,记录实际断言与证据。用户要按已确认用例测试网站、操作手机应用、跑端到端用例或验证 WebView 时使用;没有代码仓库、需要逆向网站并为 TestSpec 建立实现证据时走 web-app-reverse,录屏转缺陷报告走 video-to-issue。Other plugins' skills for the same job