·msw

MSW (Mock Service Worker) best practices for API mocking in tests (formerly test-msw). This skill should be used when setting up MSW, writing request handlers, or mocking HTTP APIs. This skill does NOT cover general testing patterns (use test-vitest or test-tdd skills) or test methodology.

3Installs·0Trend·@thongdn-it

Installation

$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 (Mock Service Worker) best practices for API mocking in tests (formerly test-msw). This skill should be used when setting up MSW, writing request handlers, or mocking HTTP APIs. This skill does NOT cover general testing patterns (use test-vitest or test-tdd skills) or test methodology. Source: thongdn-it/react-agent-skills.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/thongdn-it/react-agent-skills --skill msw
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is msw?

MSW (Mock Service Worker) best practices for API mocking in tests (formerly test-msw). This skill should be used when setting up MSW, writing request handlers, or mocking HTTP APIs. This skill does NOT cover general testing patterns (use test-vitest or test-tdd skills) or test methodology. Source: thongdn-it/react-agent-skills.

How do I install msw?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/thongdn-it/react-agent-skills --skill msw Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/thongdn-it/react-agent-skills