·msw

MSW(模擬服務工作人員)測試中 API 模擬的最佳實踐(以前稱為 test-msw)。在設置 MSW、編寫請求處理程序或模擬 HTTP API 時,應該使用此技能。此技能不涵蓋一般測試模式(使用 test-vitest 或 test-tdd 技能)或測試方法。

3安裝·0熱度·@thongdn-it

安裝

$npx skills add https://github.com/thongdn-it/react-agent-skills --skill msw

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