Skip to content
Skill

E2E playwright

Guides an agent to write and run Playwright end-to-end tests for acceptance criteria

E2E playwright is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
8
Last commit
License
MIT
Listing updated

Similar skills

About E2E playwright

This skill sets out how to turn acceptance criteria into Playwright end-to-end journeys, one test per user-facing criterion. It covers choosing accessible selectors, replacing fixed sleeps with web-first assertions, and building per-test fixtures and data through the API rather than the UI.

It also describes the workflow around the tests: a Playwright config that reads a base URL from an environment variable and can start a local dev server, bringing a local stack up and down with Docker Compose, and running suites against dev or staging environments tagged as smoke tests. On failure the agent is directed to inspect traces, console output and failed network requests before changing code.

Flaky tests are handled by reproducing them with repeated runs and fixing the root cause instead of adding delays or retries. The skill expects a Playwright project with a configured test directory and, for local runs, a domain harness that defines the stack and test accounts.

When your agent uses it

Writing and running Playwright end-to-end tests for factory jobs - one journey per acceptance criterion, role and label selectors, web-first assertions instead of sleeps, fixtures and test data, local stack up/down, traces and screenshots on failure, flake handling, and targeting a deployed URL through a baseURL env var. Use when adding or running e2e tests.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (5 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the forgeline plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add Nabwinsaud/forgeline
/plugin install forgeline@forgeline

Or copy only this skill to ~/.claude/skills/e2e-playwright:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/e2e-playwright &&
cp -R "$tmp/skills/e2e-playwright" ~/.claude/skills/e2e-playwright &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/e2e-playwright inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/e2e-playwright to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/e2e-playwright &&
cp -R "$tmp/skills/e2e-playwright" ~/.agents/skills/e2e-playwright &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/e2e-playwright inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/e2e-playwright to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/e2e-playwright &&
cp -R "$tmp/skills/e2e-playwright" ~/.cursor/skills/e2e-playwright &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/e2e-playwright inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Nabwinsaud/forgeline.git --path skills/e2e-playwright

Or copy the folder to ~/.gemini/skills/e2e-playwright yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/e2e-playwright:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/e2e-playwright &&
cp -R "$tmp/skills/e2e-playwright" ~/.copilot/skills/e2e-playwright &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/e2e-playwright inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git

Then copy forgeline/skills/e2e-playwright into your agent's skills folder as e2e-playwright. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Journey-based test writing
Guides writing one focused end-to-end test per user-facing acceptance criterion.
Accessible selector guidance
Prefers role, label and text selectors and discourages CSS chains and XPath.
Web-first assertions
Uses auto-retrying assertions and response waits instead of fixed sleeps.
Isolated fixtures and data
Creates unique per-test data through the API with cleanup after each test.
Local stack management
Covers starting dependencies, migrations, seeding and tearing down the stack.
Deployed URL targeting
Runs the same suite against dev or staging through a base URL variable, never production.
Failure and flake triage
Uses traces, screenshots and repeated runs to diagnose and fix flaky tests.

Good for

  • Write an end-to-end test for a new user-facing acceptance criterion
  • Run the Playwright suite locally against the stack
  • Run smoke tests against a deployed dev environment
  • Diagnose a failing Playwright test using its trace
  • Track down and fix a flaky end-to-end test

E2E playwright FAQ

Which tools does E2E playwright assume?

It assumes Playwright tests written in TypeScript, a playwright.config file and, for local runs, Docker Compose services defined by a domain harness.

Can E2E playwright run against production?

No. The skill restricts deployed runs to dev and staging URLs supplied by the job context and says never to target production.

How does E2E playwright handle flaky tests?

It asks the agent to reproduce the flake with repeated runs and fix the cause, not to add sleeps, longer timeouts or remove assertions.

When does E2E playwright apply?

It applies when the agent is adding or running end-to-end tests.

How do I install E2E playwright in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/e2e-playwright to use it in all your projects, or to .claude/skills/e2e-playwright in one project. Or install the forgeline plugin, which includes it: /plugin marketplace add Nabwinsaud/forgeline, then /plugin install forgeline@forgeline.

Does E2E playwright run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use E2E playwright?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to E2E playwright?

The closest alternatives to E2E playwright are E2E testing, E2E testing edho ferdian, Playwright skill, Playwright generate test and Webapp testing.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Nabwinsaud/forgeline

  1. Gives agents conventions for designing HTTP/JSON endpoints, errors and pagination

    • Open source
    • 8 GitHub stars
    • Developer tools
  2. Records a human approve, reject or retry decision on a paused Forgeline job

    • Open source
    • 8 GitHub stars
    • Developer tools
  3. Gives a read-only reviewer agent a prioritized procedure for checking factory PRs

    • Open source
    • 8 GitHub stars
    • Developer tools
  4. Guides agents through safe Postgres schema changes, backfills and sqlc regeneration

    • Open source
    • 8 GitHub stars
    • Databases
  5. Turns one sentence into a Forgeline job that runs through to a reviewed PR

    • Open source
    • 8 GitHub stars
    • Developer tools
  6. Checks whether your machine and repo are ready to run the Forgeline factory

    • Open source
    • 8 GitHub stars
    • Developer tools