mastra: Skill for Claude Code

.claude/skills/playground-msw-tests/SKILL.md

playground-msw-tests is a skill for Claude Code from mastra-ai/mastra. It costs 121 tokens per session (2,461 once invoked), scanned A, original, no licence file.

A testing guide for the playground packages, using Vitest and the real client and data-fetching setup. Mock Service Worker, or MSW, is used to simulate network responses during tests.

In plain words
What is it for?
Use it when adding or changing hooks, pages, route components, React Query code, or tests in packages/playground and packages/playground-ui.
Why use it?
It provides the required testing approach for changes that involve React components, data fetching, or related hooks and interactions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is mastra-ai/mastra's own configuration. It tells Claude Code how to work on mastra itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mastra configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mastra-ai/mastra. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mastra-ai/mastra/main/.claude/skills/playground-msw-tests/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mastra-ai/mastra

Made for: Claude Code.

Wrote 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.

agentmods badge for playground-msw-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/mastra-ai/mastra/playground-msw-tests/github.svg)](https://agentmods.dev/skills/mastra-ai/mastra/playground-msw-tests)
Your own site
<a href="https://agentmods.dev/skills/mastra-ai/mastra/playground-msw-tests"><img src="https://agentmods.dev/badge/skills/mastra-ai/mastra/playground-msw-tests/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.

agentmods 80×15 button for playground-msw-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/mastra-ai/mastra/playground-msw-tests"><img src="https://agentmods.dev/badge/skills/mastra-ai/mastra/playground-msw-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,461 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00121 $0.02461
Opus 5 $0.00060 $0.01230
Sonnet 5 $0.00024 $0.00492
Haiku 4.5 $0.00012 $0.00246

Measured 12d ago against content hash d6b4b348ccba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

playground-msw-tests 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 12d 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.

.claude/skills/playground-msw-tests/SKILL.md · 277 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Changes

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.

  1. 12d ago First seen · 277 lines · 121 tokens per session scan A d6b4b348ccba

Subscribe to this mod's changes

playground-msw-tests is a skill published in the GitHub repository mastra-ai/mastra (27,896 stars, last pushed yesterday), with no licence file. It adds 121 tokens to every session and 2,461 once invoked, about $0.0006 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-30.

Related

Other skills, from other repositories

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

VoltAgent/voltagent · 52 tokens

testing-e2e

End-to-end testing patterns with Playwright — page objects, AI agent testing, visual regression, accessibility testing with axe-core, and CI integration. Use when writing E2E tests, setting up Playwright, implementing visual regression, or testing accessibility.

yonatangross/orchestkit · 55 tokens

chat-formatting-widgets

Governs the custom markdown widgets rendered in the QuantumByte chat interface. This includes the inline highlight-mark span (use on every question the user must answer). You must check this skill on every reply to format highlights.

QuantumByteOSS/quantumbyte · 50 tokens

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.

react/react · 42 tokens

copilotkit-integrations

Use when wiring an external agent framework (LangGraph, CrewAI, PydanticAI, Mastra, ADK, LlamaIndex, Agno, Strands, Microsoft Agent Framework, or others) into a CopilotKit application via the AG-UI protocol.

CopilotKit/CopilotKit · 61 tokens

screen-reader-testing

Test web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility, debugging accessibility issues, or ensuring assistive technology support.

wshobson/agents · 39 tokens