Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PyModel/react-frontend-skills --skill mswgit clone --depth 1 https://github.com/PyModel/react-frontend-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pymodel/react-frontend-skills/msw)<a href="https://agentmods.dev/skills/pymodel/react-frontend-skills/msw"><img src="https://agentmods.dev/badge/skills/pymodel/react-frontend-skills/msw/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pymodel/react-frontend-skills/msw"><img src="https://agentmods.dev/badge/skills/pymodel/react-frontend-skills/msw.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.01264 |
| Opus 5.5 | $0.00005 | $0.00506 |
| Sonnet 5.5 | $0.00002 | $0.00253 |
| Haiku 4.5 | $0.00001 | $0.00126 |
Grade A, and why
msw scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MSW Best Practices
Comprehensive API mocking guide for MSW v2 applications (current: MSW 2.15), designed for AI agents and LLMs. Contains 48 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
When to Apply
Reference these guidelines when:
- Setting up MSW for testing or development
- Writing or organizing request handlers
- Configuring test environments with MSW
- Mocking REST or GraphQL APIs
- Debugging handler matching issues
- Testing error states and edge cases
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 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- |
Quick Reference
1. Setup & Initialization (CRITICAL)
setup-server-node-entrypoint- Use correct entrypoint for Node.js (msw/node)setup-lifecycle-hooks- Configure server lifecycle in test setupsetup-worker-script-commit- Commit worker script to version controlsetup-node-version- Require Node.js 18+ for MSW v2setup-unhandled-requests- Configure unhandled request behaviorsetup-typescript-config- Configure TypeScript for MSW v2
2. Handler Architecture (CRITICAL)
handler-happy-path-first- Define happy path handlers as baselinehandler-domain-grouping- Group handlers by domainhandler-absolute-urls- Use absolute URLs in handlershandler-shared-resolvers- Extract shared response logic into resolvershandler-v2-response-syntax- Use MSW v2 response syntaxhandler-request-body-parsing- Explicitly parse request bodieshandler-resolver-argument- Destructure resolver arguments correctlyhandler-reusability-environments- Share handlers across environments
What ships with it
48 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/advanced-bypass-requests.md 2.2 KB
- references/advanced-cookies-auth.md 2.7 KB
- references/advanced-dynamic-scenarios.md 2.8 KB
- references/advanced-file-uploads.md 2.8 KB
- references/advanced-playwright-integration.md 2.8 KB
- references/advanced-vitest-browser.md 2.3 KB
- references/advanced-websocket-mocking.md 2.6 KB
- references/debug-common-issues.md 2.0 KB
- references/debug-lifecycle-events.md 2.4 KB
- references/debug-request-logging.md 3.0 KB
- references/debug-verify-interception.md 2.5 KB
- references/graphql-batched-queries.md 2.5 KB
- references/graphql-error-responses.md 2.7 KB
- references/graphql-operation-handlers.md 2.3 KB
- references/graphql-schema-first.md 2.3 KB
- references/graphql-variables-access.md 2.9 KB
- references/handler-absolute-urls.md 1.8 KB
- references/handler-domain-grouping.md 2.3 KB
- references/handler-happy-path-first.md 1.9 KB
- references/handler-request-body-parsing.md 2.0 KB
- references/handler-resolver-argument.md 2.2 KB
- references/handler-reusability-environments.md 2.2 KB
- references/handler-shared-resolvers.md 2.6 KB
- references/handler-v2-response-syntax.md 2.0 KB
- references/match-custom-predicate.md 2.4 KB
- references/match-handler-order.md 2.4 KB
- references/match-http-methods.md 2.6 KB
- references/match-query-params.md 2.5 KB
- references/match-url-patterns.md 2.1 KB
- references/response-custom-headers.md 2.8 KB
- references/response-delay-realistic.md 2.6 KB
- references/response-error-simulation.md 2.5 KB
- references/response-http-response-helpers.md 2.2 KB
- references/response-one-time-handlers.md 2.7 KB
- references/response-streaming.md 2.9 KB
- references/setup-lifecycle-hooks.md 1.6 KB
- references/setup-node-version.md 1.3 KB
- references/setup-server-node-entrypoint.md 1.2 KB
- references/setup-typescript-config.md 1.7 KB
- references/setup-unhandled-requests.md 1.9 KB
- references/setup-worker-script-commit.md 1.5 KB
- references/test-async-utilities.md 2.3 KB
- references/test-avoid-request-assertions.md 2.5 KB
- references/test-clear-request-cache.md 2.2 KB
- references/test-concurrent-boundary.md 2.4 KB
- references/test-fake-timers-config.md 2.1 KB
- references/test-jsdom-environment.md 1.8 KB
- references/test-reset-handlers.md 1.8 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 20d ago Changed · -34 tokens per session 73cb20d7e0e2
- 27d ago Changed · +3 lines 7497647398f3
- 1mo ago First seen · 119 lines · 46 tokens per session scan A bd70ee7158b3
msw is a skill published in the GitHub repository PyModel/react-frontend-skills (37 stars, last pushed 3d ago), licensed MIT. It adds 12 tokens to every session and 1,264 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
lov-atom-feature-dev
An end-to-end workflow for building a small, self-contained feature across its shared core, command-line tool, API, user interface, saved parameter presets, agent tool, and debugging panel. It uses one contract and shared test cases across the pieces.
lov-runtime-verification
Verify client runtime fixes on actual desktop builds, physical iOS/Android devices, React Native/Flutter hosts, and deployed Web/PWA browsers with comparable workloads and lifecycle checks.
lov-wechat-parity-validation
A review workflow for checking whether a WeChat compatibility fix works across data parsing, shared meaning, interfaces, downstream uses, and the real user path. It treats regression checks as proof that the fix is complete.
lov-fix-until-no-error
A verification-focused debugging workflow that repeatedly runs specified checks, fixes the highest-priority failure, and stops when the checks pass or a genuine external blockage remains.
lov-atom-operations
A checklist and implementation workflow for making a completed feature ready to explain, test, find, authorize, sell, measure, and maintain. It decides which supporting work applies instead of adding every integration by default.
lov-atom-core-sdk
A shared software core and typed SDK that contain the feature's main rules, validation, defaults, state changes, and side effects. Command-line tools, APIs, pages, and agent tools can call this core instead of implementing those rules again.