api-test-supertest
API 测试(Supertest)(中文版)
英文版: 见对应英文技能。
何时使用
- 需要把 API 测试结果落到 Supertest 自动化结构里。
- 项目偏 Node.js,或已经在用 Supertest/Jest。
输出格式选项
默认使用 Markdown,除非需求明确要求其他格式。
如何使用
- 打开
prompts/api-test-supertest.md,把它作为主提示词使用。 - 补充真实项目上下文:范围、环境、限制、风险、依赖和期望产出。
- 如果输入不完整,先给出可用初版,并标出信息缺口和假设。
参考文件
prompts/api-test-supertest.md:本技能的主提示词。references/:按需查看的补充说明。examples/:示例输入或输出。scripts/:本技能相关的辅助脚本或转换脚本。
常见误区
- 不要在范围和上下文都不清楚时直接使用。
- 不要把所有内容都当成同等重要。
- 不要跳过假设和信息缺口。
最佳实践
- 先从提示词正文出发,再补真正影响结果的上下文。
- 结果要按风险聚焦,而且能直接执行。
- 如果信息不全,先给可用初版,并把缺口标出来。
More from naodeng/awesome-qa-skills
test-case-writing
Use this skill when you need to create high-quality test cases with normal, exception, and boundary scenarios; triggers include test case writing and test design.
138requirements-analysis
Use this skill when you need to analyze requirements, identify test points, boundaries, dependencies, and risks before test design; triggers include requirements analysis and test point analysis.
65automation-testing
Use this skill when you need to design automation testing approaches using patterns like POM, data-driven testing, or BDD; triggers include automation testing and test automation strategy.
43test-case-reviewer
Use this skill when you need to review test cases for completeness, clarity, maintainability, and missing scenarios; triggers include test case review and test case QA.
43api-testing
Use this skill when you need to design API test plans or cases for REST, GraphQL, or gRPC interfaces; triggers include API testing and API test cases.
30test-reporting
Use this skill when you need to generate test reports with summary, metrics, defect analysis, and risk assessment; triggers include test reporting and QA status report.
27