← Back to Skills Marketplace
sky-lv

Skylv Api Tester

by SKY-lv · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
95
Downloads
0
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install skylv-api-tester
Description
API测试助手。测试REST API接口,验证响应、生成测试报告。使用场景:(1) 测试API接口可用性,(2) 验证响应格式和数据,(3) 性能测试,(4) 生成API文档。
README (SKILL.md)

API Tester — API测试助手

功能说明

测试和验证REST API接口。

使用方法

1. 基础接口测试

用户: 测试 GET https://api.example.com/users

执行步骤:

  1. 发送请求
  2. 记录响应时间
  3. 验证状态码
  4. 解析响应体
  5. 输出测试结果

2. 完整接口测试

用户: 测试以下API:
POST https://api.example.com/users
Headers: Content-Type: application/json
Body: {"name": "test", "email": "[email protected]"}

执行步骤:

  1. 构造请求
  2. 发送并计时
  3. 验证响应:
    • 状态码是否符合预期
    • 响应格式是否正确
    • 必要字段是否存在
  4. 输出详细报告

3. 批量测试

用户: 批量测试以下接口列表:
1. GET /users
2. GET /users/1
3. POST /users
4. PUT /users/1
5. DELETE /users/1

执行步骤:

  1. 依次测试每个接口
  2. 记录每个接口的结果
  3. 汇总成功/失败数量
  4. 计算平均响应时间

4. 性能测试

用户: 对 GET /api/data 进行性能测试,发送100次请求

执行步骤:

  1. 循环发送请求
  2. 记录每次响应时间
  3. 计算统计指标:
    • 平均响应时间
    • 最小/最大响应时间
    • P95/P99 延迟
  4. 识别慢请求

示例输出

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
Usage Guidance
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.
Capability Analysis
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.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install skylv-api-tester
  3. After installation, invoke the skill by name or use /skylv-api-tester
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug skylv-api-tester
Version 1.0.1
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 2
Frequently Asked Questions

What is Skylv Api Tester?

API测试助手。测试REST API接口,验证响应、生成测试报告。使用场景:(1) 测试API接口可用性,(2) 验证响应格式和数据,(3) 性能测试,(4) 生成API文档。 It is an AI Agent Skill for Claude Code / OpenClaw, with 95 downloads so far.

How do I install Skylv Api Tester?

Run "/install skylv-api-tester" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Skylv Api Tester free?

Yes, Skylv Api Tester is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Skylv Api Tester support?

Skylv Api Tester is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Skylv Api Tester?

It is built and maintained by SKY-lv (@sky-lv); the current version is v1.0.1.

💬 Comments