Playwright CLI agents for automated E2E test generation, debugging, and planning using Page Object Model pattern
npx claudepluginhub yusuftayman/playwright-cli-agentsThree specialized agents (planner, generator, healer) and shared skills for Playwright E2E testing with Page Object Model pattern
Claude Code marketplace entries for the plugin-safe Antigravity Awesome Skills library and its compatible editorial bundles.
Production-ready workflow orchestration with 79 focused plugins, 184 specialized agents, and 150 skills - optimized for granular installation and minimal token usage
Curated collection of 141 specialized Claude Code subagents organized into 10 focused categories
A production-ready set of Claude Code agents and skills that automate Playwright E2E test generation, debugging, and planning using the Page Object Model pattern.
Drop these files into any project's .claude/ directory and get an AI-powered E2E testing workflow — from exploring a live URL to generating robust, maintainable test suites.
npm install -g @playwright/cli@latest
playwright-cli --help
Note that you might need to force it to reclaim the playwright-cli binary from our older MCP package.
npm install -g @playwright/cli@latest --force
> Use playwright skills to test https://demo.playwright.dev/todomvc/.
Take screenshots for all successful and failing scenarios.
Your agent will be running commands, but it does not mean you can't play with it manually:
playwright-cli open https://demo.playwright.dev/todomvc/ --headed
playwright-cli type "Buy groceries"
playwright-cli press Enter
playwright-cli type "Water flowers"
playwright-cli press Enter
playwright-cli check e21
playwright-cli check e35
playwright-cli screenshot
Point your agent at the CLI and let it cook. It'll read the skill off playwright-cli --help on its own:
Test the "add todo" flow on https://demo.playwright.dev/todomvc using playwright-cli.
Check playwright-cli --help for available commands.
Claude Code, GitHub Copilot and others will let you install the Playwright skills into the agentic loop.
Plugin (recommended)
/plugin marketplace add microsoft/playwright-cli
/plugin install playwright-cli
Manual
mkdir -p .claude/skills/playwright-cli
curl -o .claude/skills/playwright-cli/SKILL.md \
https://raw.githubusercontent.com/microsoft/playwright-cli/main/skills/playwright-cli/SKILL.md
.claude-plugin/
└── marketplace.json # Plugin marketplace catalog
plugins/
└── playwright-cli-agents/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── agents/ # Specialized subagents
│ ├── playwright-cli-planner.md # Explores pages → creates test plans
│ ├── playwright-cli-generator.md # Executes plans → writes test code
│ └── playwright-cli-healer.md # Debugs & fixes failing tests
└── skills/
├── playwright-cli/ # Browser automation via CLI
│ └── SKILL.md # playwright-cli command reference
└── e2e/ # Shared domain knowledge
├── SKILL.md # Core skill (auto-injected into agents)
├── examples/
│ ├── page-object-model.md # Page Object class templates
│ └── e2e-tests.md # Integration test patterns
└── references/
├── component-exploration.md # How to explore UIs via playwright-cli
└── api-mocking.md # Deterministic test data setup
| Agent | Purpose | Trigger Example |
|---|---|---|
| Planner | Navigates to a URL, explores interactive elements, and produces a structured test plan | "Create a test plan for our checkout flow at localhost:3000/checkout" |
| Generator | Takes a test plan (or creates one), drives the browser in real-time, and outputs Page Object + spec files | "Generate Playwright tests for the login page" |
| Healer | Runs failing tests, inspects the DOM, console, and network, then fixes broken locators/timing | "The dashboard test is failing after the redesign, fix it" |
You describe what to test
│
▼
┌─────────────┐
│ Planner │ Explores the page, identifies elements,
│ (green) │ writes a markdown test plan
└──────┬──────┘
│ test plan
▼
┌─────────────┐
│ Generator │ Drives browser via playwright-cli, records actions,
│ (blue) │ generates Page Object + spec files
└──────┬──────┘
│ test files
▼
┌─────────────┐
│ Healer │ Runs tests, catches failures,
│ (red) │ auto-fixes locators & timing
└─────────────┘
The e2e skill is shared domain knowledge that all three agents preload via the skills: [e2e, playwright-cli] frontmatter field. It defines:
@visual tagmockApi utilitywaitForTimeout, no full-page screenshots, no fixture files