The Frontend Testing Skill
300+ hours in the making · already in use by a few teams
You may have a thousand agents producing endless pull requests per day. Without trusting their tests, you're still moving at a human pace.
The testing skill makes those tests trustworthy: anytime your coding agent works on a feature, a page, or a component, it follows 55 battle-tested testing rules, proves how good each test is, and keeps tests consistent across the codebase.
- 🧭 A thoughtful test planner — intelligently ranks and realizes the most important test cases for the mission.
- 🛡️ A neat test verifier — a zero-trust agent that ensures all test metrics, coverage, and rules are satisfied.
- 🔧 Self-healing tests — agents and tools that fix failing and flaky tests.
- 📖 55 testing rules — the century's greatest testing books, distilled straight into your agent's mind.
- 🧩 Your stack — Playwright, Vitest Browser Mode, React, and any other frontend stack you already use.
- 📚 Proven foundations — built on our JavaScript Testing Best Practices by Yoni Goldberg (25,000 ⭐) and our engagement with 50+ firms around the globe.
Table of Contents
Install from the Claude Marketplace
If you use Claude Code, this is the recommended way to install — it pulls in the skill, all commands, and all agents in one step.
1. Add the marketplace (one-time):
/plugin marketplace add practicajs/the-frontend-testing-skill
2. Install the plugin:
/plugin install frontend-testing@frontend-testing-skill-marketplace
Or run /plugin, open the Discover tab, find frontend-testing, and install it interactively.
3. Reload to activate:
/reload-plugins
Then set up your project with /testskill.init (see Quick Start).
To update later, run /plugin marketplace update frontend-testing-skill-marketplace. To remove, run /plugin uninstall frontend-testing@frontend-testing-skill-marketplace.
Quick Start
Once the skill is installed (see Install from the Claude Marketplace above), configure it and you're ready.
1. Run /testskill.init
It sets everything up for you — creates testskill.config.toml in your project root, detects your frameworks, installs the required MCP servers, and asks you a question or two to fill in the essentials.
You're welcome to open the generated config and revise the values. The key sections to glance at:
[framework]
integration_test_framework = "playwright" # or "vitest-browser-mode"
network_interception_framework = "playwright-route" # or "msw" with Vitest Browser Mode
[commands]
test_run_command = "pnpm test:page"
app_start_command = "pnpm dev"
[canonical_example]
path = "src/pages/Products/Products.page.test.ts"
Everything else has a sensible default — see the config template for the full list. In a monorepo, keep one testskill.config.toml per app (beside each package.json).
2. Get going
-
Just prompt for a feature the way you normally do. The testing skill activates automatically and ensures great test coverage alongside your code.
-
Test already-existing untested code (recommended way to get started) — use the dedicated command:
/testskill.write-test Cart page
The skill plans, analyzes, writes, and verifies — then hands you a report.
Comprehensive Overview Video
Features
55 Testing Rules, Enforced Automatically
Every test is written and checked against numbered rules covering anatomy, assertions, mocking, DOM interaction, data factories, and file organization. Not guidelines — guardrails. Based on our JavaScript Testing Best Practices repo.
Here's a taste of what the rules catch: