Skip to content

Code Reference

Tool Inventory

Tool Type Purpose
Playwright Test Agents (1.56+) Built-in Planner / Generator / Healer agents
@playwright/mcp MCP server Browser control for AI agents
Claude Code with MCP AI harness Runs the agents
Cursor / Copilot agent AI harness Alternative harnesses
playwright-cli-agents (yusuftayman) Community skill pack Page-Object-aware agents — fork-starter
qa-skills (neonwatty) Community skill pack Multi-user flows + QA agents
playwright-skill (lackeyjb) Community skill Single-skill simpler starter

Install Commands

# Playwright 1.56+
npm install -D @playwright/test@latest
npx playwright install --with-deps

# Playwright MCP for Claude Code
claude mcp add playwright npx @playwright/mcp@latest

# Restart Claude Code

Key References

Resource URL
Playwright Test Agents docs https://playwright.dev/docs/test-agents
Playwright MCP repo https://github.com/microsoft/playwright-mcp
Planner agent prompt (source) https://github.com/microsoft/playwright/blob/main/packages/playwright/src/agents/playwright-test-planner.agent.md
playwright-cli-agents https://github.com/yusuftayman/playwright-cli-agents
qa-skills https://github.com/neonwatty/qa-skills
playwright-skill https://github.com/lackeyjb/playwright-skill
Spec-Driven Development with AI https://www.javacodegeeks.com/2026/05/spec-driven-development-with-ai-write-the-spec-first-then-prompt-the-implementation.html
Writing a good spec for AI (Addy Osmani) https://addyosmani.com/blog/good-spec/
Writing better Gherkin (Cucumber) https://cucumber.io/docs/bdd/better-gherkin/

See Also