msw-skill — Cursor AI Agent
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    CursorAgentsmsw-skill
    Back to Agents
    msw-skill

    msw-skill

    anivar February 23, 2026
    1 copies 0 downloads

    AI agent skill for MSW 2.0 — 20 rules: handler design, REST/GraphQL, test patterns. Works with Claude Code, Cursor, Codex, Windsurf.

    MSW Skill

    Created by Anivar Aravind

    An AI agent skill for writing, reviewing, and debugging MSW (Mock Service Worker) v2 handlers, server setup, and test patterns with modern best practices.

    The Problem

    AI agents often generate outdated MSW v1 patterns — rest.get() instead of http.get(), res(ctx.json(...)) instead of HttpResponse.json(), (req, res, ctx) instead of ({ request, params }) — and miss critical testing best practices like server.boundary() for concurrent tests, onUnhandledRequest: 'error', and proper lifecycle hook setup. These produce code that fails to compile or silently misbehaves at runtime.

    This Solution

    20 rules with incorrect/correct code examples that teach agents MSW v2's actual API, handler design, server lifecycle, response construction, testing patterns, GraphQL usage, and v1-to-v2 migration. Each rule targets a specific mistake and shows exactly how to fix it.

    Install

    npx skills add anivar/msw-skill -g
    

    Or with full URL:

    npx skills add https://github.com/anivar/msw-skill
    

    Baseline

    • msw ^2.0.0
    • TypeScript/JavaScript

    What's Inside

    20 Rules Across 7 Categories

    PriorityCategoryRulesImpact
    1Handler Design4CRITICAL
    2Setup & Lifecycle3CRITICAL
    3Request Reading2HIGH
    4Response Construction3HIGH
    5Test Patterns4HIGH
    6GraphQL2MEDIUM
    7Utilities2MEDIUM

    Each rule file contains:

    • Why it matters
    • Incorrect code with explanation
    • Correct code with explanation
    • Decision tables and additional context

    6 Deep-Dive References

    ReferenceCovers
    handler-api.mdhttp.* and graphql.* methods, URL predicates, path params, handler options
    response-api.mdHttpResponse class, all 7 static methods, cookie handling
    server-api.mdsetupServer/setupWorker, lifecycle

    Tags

    agent-rulesagent-skillagenticai-agentapi-mockingclaudecoding-agentcopilotcursor-rulesgemini

    Comments

    More Agents

    View all
    Emuloagent-memory

    Emulo

    Mine your Claude Code and Codex logs into a local you.md agent profile.

    O
    ohad6k
    193
    Nyx Local Ailm-studio

    Nyx Local Ai

    Local-first AI coding agent for VS Code & Cursor. Ollama, LM Studio & your inference fleet. Cursor-grade agent UX — offline, private, zero token cost.

    S
    sthamann
    248
    Self Learning Skills

    Self Learning Skills

    A self-improving skill for AI coding agents (Claude Code, Cursor, AGENTS.md): recognize a hard-won golden path in a session and harvest it into a reusable skill/rule for next time.

    K
    Kulaxyz
    895
    FDEOpsagentic-ai

    FDEOps

    Second brain for Forward Deployed Engineers. Engagement memory + 35 skills across 6 domains, all behind one @fde... Works with any AI coding agent.

    S
    suboss87
    303
    Awesome Gamedev Agent Skillsagent-skills

    Awesome Gamedev Agent Skills

    Game-development Agent Skills for AI coding agents: install once and a master router loads the right skill for your engine and task. 66 original, version-pinned skills (plus a master router) in the portable SKILL.md format that runs across Claude Code, Cursor, Codex, Copilot, Gemini CLI and more, for Godot, Unity, Unreal, web and beyond.

    G
    gamedev-skills
    301
    Honey For Devsagents

    Honey For Devs

    Honey (I Shrunk the AI) by GreenPT: a cross-tool coding skill that cuts AI coding-agent token usage and LLM API costs — write less code, less prose, and denser agent-to-agent handoffs (−53%, lossless in benchmarks) with no loss of quality. Works with Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Windsurf, Cline & Kiro.

    G
    Green-PT
    177

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Cursor resource

    • Paginate Shopify Products with GraphQL Cursor-Based Navigationn8n · $4.99 · Related topic
    • Build AI Agents with Think-Plan-Act Architecture Using Llama-4 Reasoningn8n · $24.99 · Related topic
    • Create a REST API for PDF Digital Signatures with Webhooksn8n · $24.99 · Related topic
    • eBay Enhances Data Access for AI Agents with MCP Server Integrationn8n · $9.99 · Related topic
    Browse all workflows