← 返回 Skills 市场
95
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install skylv-api-tester
功能描述
API测试助手。测试REST API接口,验证响应、生成测试报告。使用场景:(1) 测试API接口可用性,(2) 验证响应格式和数据,(3) 性能测试,(4) 生成API文档。
使用说明 (SKILL.md)
API Tester — API测试助手
功能说明
测试和验证REST API接口。
使用方法
1. 基础接口测试
用户: 测试 GET https://api.example.com/users
执行步骤:
- 发送请求
- 记录响应时间
- 验证状态码
- 解析响应体
- 输出测试结果
2. 完整接口测试
用户: 测试以下API:
POST https://api.example.com/users
Headers: Content-Type: application/json
Body: {"name": "test", "email": "[email protected]"}
执行步骤:
- 构造请求
- 发送并计时
- 验证响应:
- 状态码是否符合预期
- 响应格式是否正确
- 必要字段是否存在
- 输出详细报告
3. 批量测试
用户: 批量测试以下接口列表:
1. GET /users
2. GET /users/1
3. POST /users
4. PUT /users/1
5. DELETE /users/1
执行步骤:
- 依次测试每个接口
- 记录每个接口的结果
- 汇总成功/失败数量
- 计算平均响应时间
4. 性能测试
用户: 对 GET /api/data 进行性能测试,发送100次请求
执行步骤:
- 循环发送请求
- 记录每次响应时间
- 计算统计指标:
- 平均响应时间
- 最小/最大响应时间
- P95/P99 延迟
- 识别慢请求
示例输出
API 测试报告
接口: GET https://api.example.com/users
时间: 2026-04-06 10:00:00
请求信息:
- 方法: GET
- URL: https://api.example.com/users
- Headers: Authorization: Bearer xxx
响应信息:
- 状态码: 200 OK ✓
- 响应时间: 156ms
- 响应大小: 2.3KB
响应体验证:
✓ status 字段存在
✓ data 字段为数组
✓ data 包含 25 条记录
✓ 每条记录包含 id, name, email
性能指标:
- 平均: 156ms
- 最小: 98ms
- 最大: 312ms
- P95: 245ms
结论: 测试通过 ✓
认证支持
- Bearer Token
- API Key (Header/Query)
- Basic Auth
- OAuth 2.0
安全使用建议
This instruction-only skill appears to do what it says: construct HTTP requests, validate responses, and produce reports. Before using it: (1) do performance/load tests only with explicit authorization from the API owner and preferably against a staging environment to avoid accidental DoS; (2) avoid pasting real secrets (bearer tokens, API keys, passwords) into free-form prompts unless you trust the agent runtime and know how it stores/retains conversation history; (3) implement appropriate rate limiting and respect target service terms of use; (4) if you need the skill to store credentials, prefer secure secret storage rather than embedding them in prompts.
功能分析
Type: OpenClaw Skill
Name: skylv-api-tester
Version: 1.0.1
The skill bundle 'skylv-api-tester' is a standard API testing assistant designed to help users test REST endpoints and generate reports. The SKILL.md file contains only instructional guidance for the AI agent on how to handle various HTTP methods, performance testing, and authentication, with no evidence of malicious intent, data exfiltration, or unauthorized command execution.
能力标签
能力评估
Purpose & Capability
Name/description (API testing, response validation, performance testing, report generation) align with the SKILL.md steps. The skill does not request unrelated binaries, environment variables, or config paths.
Instruction Scope
Instructions only describe constructing requests, timing, validating responses, aggregating results, and generating reports. They do not instruct reading system files or exfiltrating data. Caveat: performance testing instructions ('循环发送请求', send 100 requests, etc.) can be used to perform load tests that may impact target services — the SKILL.md does not warn about authorization or safe limits. Also examples show Authorization headers (Bearer xxx); users may supply real secrets in prompts, which the agent would use.
Install Mechanism
No install spec or code files are present; this is instruction-only so nothing is written to disk or downloaded during install.
Credentials
The skill declares no required environment variables, credentials, or config paths. The SKILL.md mentions authentication methods (Bearer, API key, Basic, OAuth2) but does not request storage of secrets or access to unrelated credentials.
Persistence & Privilege
always is false and there is no persistence or modification of other skills or system-wide configuration. The skill does not request elevated or persistent privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install skylv-api-tester - 安装完成后,直接呼叫该 Skill 的名称或使用
/skylv-api-tester触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Updated the description to English and added trigger keywords for easier discovery.
- No functional changes; documentation only.
v1.0.0
Initial release of API Tester (api-tester) — API测试助手:
- Test and validate REST API endpoints for availability, response structure, and performance.
- Supports single requests, batch testing, performance testing, and report generation.
- Outputs detailed test reports including response time, status code, and data validation.
- Supports authentication methods: Bearer Token, API Key, Basic Auth, OAuth 2.0.
- Facilitates API documentation and diagnostics.
元数据
常见问题
Skylv Api Tester 是什么?
API测试助手。测试REST API接口,验证响应、生成测试报告。使用场景:(1) 测试API接口可用性,(2) 验证响应格式和数据,(3) 性能测试,(4) 生成API文档。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 95 次。
如何安装 Skylv Api Tester?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install skylv-api-tester」即可一键安装,无需额外配置。
Skylv Api Tester 是免费的吗?
是的,Skylv Api Tester 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Skylv Api Tester 支持哪些平台?
Skylv Api Tester 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Skylv Api Tester?
由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.1。
推荐 Skills