MSW(模拟服务工作人员)测试中 API 模拟的最佳实践(以前称为 test-msw)。在设置 MSW、编写请求处理程序或模拟 HTTP API 时,应该使用此技能。此技能不涵盖一般测试模式(使用 test-vitest 或 test-tdd 技能)或测试方法。
SKILL.md
Comprehensive API mocking guide for MSW v2 applications, designed for AI agents and LLMs. Contains 45 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
| 1 | Setup & Initialization | CRITICAL | setup- | | 2 | Handler Architecture | CRITICAL | handler- | | 3 | Test Integration | HIGH | test- | | 4 | Response Patterns | HIGH | response- | | 5 | Request Matching | MEDIUM-HIGH | match- | | 6 | GraphQL Mocking | MEDIUM | graphql- | | 7 | Advanced Patterns | MEDIUM | advanced- |
| 8 | Debugging & Performance | LOW | debug- |
MSW(模拟服务工作人员)测试中 API 模拟的最佳实践(以前称为 test-msw)。在设置 MSW、编写请求处理程序或模拟 HTTP API 时,应该使用此技能。此技能不涵盖一般测试模式(使用 test-vitest 或 test-tdd 技能)或测试方法。 来源:thongdn-it/react-agent-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/thongdn-it/react-agent-skills --skill msw- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 msw?
MSW(模拟服务工作人员)测试中 API 模拟的最佳实践(以前称为 test-msw)。在设置 MSW、编写请求处理程序或模拟 HTTP API 时,应该使用此技能。此技能不涵盖一般测试模式(使用 test-vitest 或 test-tdd 技能)或测试方法。 来源:thongdn-it/react-agent-skills。
如何安装 msw?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/thongdn-it/react-agent-skills --skill msw 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/thongdn-it/react-agent-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01