What problem does it solve? Setting up MSW (Mock Service Worker) v2 incorrectly leads to silent handler failures, flaky tests, and mock drift between development and test environments. This Skill provides 45 prioritized rules across 8 categories so AI agents and developers configure, write, and debug API mocks correctly. ## Core Features & Use Cases - Setup & Handler Architecture Rules: Covers critical configuration like Node.js entrypoints, lifecycle hooks, absolute URLs, v2 response syntax, and explicit request body parsing. - Test Integration & Response Patterns: Guides handler resets, concurrent test boundaries, realistic delays, error simulation, streaming responses, and custom headers. - GraphQL & Advanced Mocking: Explains operation-name matching, variables access, batched queries, cookies/auth, file uploads, and passthrough requests. - Use Case: When writing a test that mocks a REST endpoint, apply the handler rules to destructure resolver arguments correctly, parse the request body explicitly, and return an HttpResponse with the proper status and headers. ## Quick Start Ask the agent to review your MSW handler file and apply the MSW best practices rules to fix any incorrect v2 patterns.