Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

e2e

verified

E2E test generation skill using Playwright CLI with Page Object Model pattern and visual regression testing via @visual tag.

View on GitHub

Marketplace

playwright-cli-agents

yusuftayman/playwright-cli-agents

Plugin

playwright-cli-agents

Repository

yusuftayman/playwright-cli-agents
5stars

plugins/playwright-cli-agents/skills/e2e/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/yusuftayman/playwright-cli-agents/blob/main/plugins/playwright-cli-agents/skills/e2e/SKILL.md -a claude-code --skill e2e

Installation paths:

Claude
.claude/skills/e2e/
Powered by add-skill CLI

Instructions

# E2E Test Generator Skill

This skill generates E2E tests using **playwright-cli** commands for browser automation. It uses the **Page Object Model** pattern and supports **visual regression testing** with the `@visual` tag in test titles.

## When to Use

Use this skill when:
- The user provides a URL to explore and create tests for
- You need to create new E2E tests for a web application
- You want to generate Page Object classes for a website
- Visual regression tests are needed (integrated with integration tests using `@visual` tag)

## Prerequisites

- **playwright-cli** installed globally (`npm install -g @playwright/cli@latest`)
- Target URL must be accessible
- Project should have Playwright configured

---

## Workflow Overview

```
1. EXPLORE → Navigate to URL, take snapshot, understand the page structure
2. PLAN → Identify testable features and create test plan
3. GENERATE PAGES → Create Page Object classes
4. GENERATE TESTS → Create test specs (add @visual tag for visual checks)
5. VALIDATE → Run tests to ensure they pass
```

---

## References

For detailed exploration techniques and CLI commands, see:
- **[references/component-exploration.md](references/component-exploration.md)** - How to explore UI components, CLI browser commands, locator strategies
- **[references/api-mocking.md](references/api-mocking.md)** - How to mock API responses using `mockApi` utility for deterministic tests

## Examples

For code templates and patterns, see:
- **[examples/page-object-model.md](examples/page-object-model.md)** - Page Object class templates and helper patterns
- **[examples/e2e-tests.md](examples/e2e-tests.md)** - Integration test templates with `@visual` tag for visual testing

---

## Quick Start Workflow

### Phase 1: URL Exploration

1. **Open URL**
   ```bash
   playwright-cli open https://example.com
   ```

2. **Take Page Snapshot**
   ```bash
   playwright-cli snapshot
   ```

3. **Identify Interactive Elements** from snapshot output:
   - Buttons,

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
9906 chars