seed-forge/harness-ai-kit/devlab-srv-test-api
Claude Code and agent skill by seed-forge/harness-ai-kit
- community
Checking that the SKILL.md file is still in the repository.
后端 API 测试专家技能。支持 Java(JUnit)/ Python(pytest)/ Node.js(supertest + jest)后端项目的接口测试、Mock 服务、测试数据管理。
Install
npx vskill@latest install seed-forge/harness-ai-kit/devlab-srv-test-apiSKILL.md
The same SKILL.md was published earlier as seed-forge/harness-ai-kit/devlab-srv-test-api.
Service API 测试专家技能
专注后端微服务 API 的自动化测试能力。
支持 REST/GraphQL/OpenAPI 规范的接口测试,覆盖身份认证、数据一致性、链路追踪等核心场景。
触发条件
当用户提到以下关键词时触发此 Skill:
- "API 测试" / "接口测试" / "interface testing"
- "OpenAPI 测试" / "Swagger 测试"
- "微服务集成测试" / "microservice integration test"
- "REST API 验证" / "GraphQL schema test"
- "认证授权测试" / "authn/authz testing"
技术栈依赖
核心 CLI
辅助工具
功能范围
Phase 1: API Schema 分析与测试点提取
输入:
- OpenAPI/Swagger YAML 文档
- (可选)现有 API 客户端代码
- (可选)业务需求描述
输出:
specs/api-endpoints.md— 接口清单与测试点specs/data-contracts.md— 数据模型定义specs/auth-scenarios.md— 认证授权场景
Step 1.1: OpenAPI 解析算法
Step 1.2: 测试用例生成规则
| 维度 | 测试类型 | 示例 | |
|---|---|---|---|
| HTTP Method | CRUD 覆盖 | GET/POST/PUT/DELETE | |
| Authentication | 权限验证 | 未登录/普通用户/管理员 | |
| Query Params | 分页过滤排序 | ?limit=10&offset=20 | |
| Path Params | 边界值验证 | /users/{invalid-id} | |
| Request Body | 必填字段验证 | 缺失 email/password | |
| Response Codes | 状态码断言 | 200/400/401/404/500 | |
| Data Integrity | 一致性校验 | POST after GET shows new record |
Step 1.3: 输出测试计划
{ "email": "user@example.com", "password": "SecurePass123!", "name": "John Doe" }
{ "id": "uuid-1234", "email": "user@example.com", "name": "John Doe", "status": "active", "createdAt": "2026-07-22T10:00:00Z" }
Phase 2: API 测试代码生成
输入:
specs/api-endpoints.md测试计划- 基础测试配置模板
输出:
tests/api/users.spec.tstests/api/auth.spec.tstests/integration/*.spec.ts
Step 2.1: 基础配置模板
Step 2.2: CRUD 测试套件
Step 2.3: 认证授权测试
Phase 3: 微服务集成测试
场景:跨服务业务流程验证
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/devlab-srv-test-api/SKILL.md
Popularity
- Repository stars
- 25
- Repository forks
- 2
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/seed-forge/harness-ai-kit/devlab-srv-test-api)