api-tester
- Repo stars 246
- Author repo claude-code-skills-zh
API 测试生成器
触发条件
当用户要求测试 API、生成测试用例、接口测试、集成测试时激活此技能。
工作流程
- 发现 API — 查找 OpenAPI/Swagger 文件、路由定义
- 生成测试用例 — 为每个 endpoint 生成:
- 正常场景测试(happy path)
- 边界值测试(空值、超长、特殊字符)
- 错误场景测试(400/401/403/404/500)
- 生成测试代码 — 支持 pytest / jest / curl
测试模板
正常测试
def test_get_users_success(client):
response = client.get("/api/users")
assert response.status_code == 200
assert isinstance(response.json(), list)
边界测试
def test_create_user_empty_name(client):
response = client.post("/api/users", json={"name": ""})
assert response.status_code == 422- Fluxly category
- Engineering
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 88 / 100 · heuristic scan, not runtime safety proof
- Author / version / license
- @laolaoshiren · no license declared
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Plug-and-play
- External API key
- No requirement detected
- Detected OS requirements
- Unspecified
- Runtime requirements
- Python
- Detected file/system behavior
-
- Read-only
- Detected network behavior
- External requests
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
The current SKILL.md does not define a fixed output example. 触发条件
当用户要求测试 API、生成测试用例、接口测试、集成测试时激活此技能。
工作流程
发现 API — 查找 OpenAPI/Swagger 文件、路由定义 生成测试用例 — 为每个 endpoint 生成: 正常场景测试(happy path)
测试模板
测试模板
正常测试
正常测试
边界测试
边界测试
# API 测试生成器
## 触发条件
当用户要求测试 API、生成测试用例、接口测试、集成测试时激活此技能。
## 工作流程
1. **发现 API** — 查找 OpenAPI/Swagger 文件、路由定义
2. **生成测试用例** — 为每个 endpoint 生成:
- 正常场景测试(happy path)
- 边界值测试(空值、超长、特殊字符)
- 错误场景测试(400/401/403/404/500)
3. **生成测试代码** — 支持 pytest / jest / curl
## 测试模板
### 正常测试
```python
def test_get_users_success(client):
response = client.get("/api/users")
assert response.status_code == 200
assert isinstance(response.json(), list)
```
### 边界测试
```python
def test_create_user_empty_name(client):
response = client.post("/api/users", json={"name": ""})
assert response.status_code == 422
``` Evidence boundary and execution chain
Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
sections -> 触发条件 → 工作流程 → 测试模板 → 正常测试 → 边界测试
terms -> 发现 API · 生成测试用例 · 生成测试代码 · 1. 发现 API — 查找 OpenAPI/Swagger 文件、路由定义 2.
files/cmd -> OpenAPI/Swagger · 400/401/403/404/500 · api/users · response.js
body sha256 -> edc64d50ce12
Decide Fit First
Design Intent
How To Use It
Boundaries And Review