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 agentmods add skills/pymodel/react-frontend-skills/mswnpx skills add PyModel/react-frontend-skills --skill mswgit clone --depth 1 https://github.com/PyModel/react-frontend-skillsWhat 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 | $0.00046 | $0.01202 |
| Opus 5 | $0.00023 | $0.00601 |
| Sonnet 5 | $0.00009 | $0.00240 |
| Haiku 4.5 | $0.00005 | $0.00120 |
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 2d 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 — 119 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, designed for AI agents and LLMs. Contains 45 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.
- AGENTS.md 9.1 KB
- metadata.json 802 B
- references/_sections.md 1.9 KB
- 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-vitest-browser.md 2.3 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-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.
- 2d 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 (3 stars, last pushed 12d ago), licensed MIT. It adds 46 tokens to every session and 1,202 once invoked, about $0.0002 per session on Opus 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-app-generator
Use when the user asks for "App生成器", "生成 Web App", "生成 Tauri App", "生成原生 macOS App", "Finder Quick Action", "只创建 web", or to standardize an existing app with branding, CI/CD, native integration, and Lovinsp where applicable.
lov-maintain-partners
Maintain the Skill Publisher website's partners section AND align partner logo rows on event posters / hero strips: reuse lov-find-logo for brand logo discovery, normalize collected logos to a 240px-tall content canvas (retina-ready), rasterize SVGs via rsvg-convert before normalizing (so SVG viewBox padding gets…
dsh-plugin-publisher
Publish a validated DSH plugin package (@deepseek-ai/dsh- or @lovstudio/dsh-) to npm, git, or tarball channels and verify it loads in the DeepSeek Harness. Use when the user asks to publish, release, or ship a plugin. 触发:发布插件 / 上架插件 / release dsh 插件。.
lov-human-writing
用作者性账本、篇章审计和 30 项中文表层度量改进稿件,保留真实判断并定位过度解释、 单线因果和强行收束。Use when users say“去 AI 味”“保留我的判断”或 "humanize this Chinese draft".
lov-any2deck
Generate professional slide deck images from content (Markdown, text, URLs). Creates outlines with style instructions, then generates individual slide images. Supports 16 visual styles, CJK/Latin mixed text, branding overlays, and PPTX/PDF export. Use when the user asks to "create slides", "make a presentation"…
lov-bp
Orchestrate a complete investor BP workflow or route to one focused module: source-backed outline, PPTX/PDF production, or evidence/content/visual polishing. Use when the user wants to create a business plan end to end, combine BP stages, continue from an existing BP workspace, or is unsure which BP skill to use.…