e2e-testing

e2e-testing is a skill for Claude Code, Codex from mthines/agent-skills. It costs 153 tokens per session (2,433 once invoked), scanned A, original, MIT.

A workflow for creating and maintaining end-to-end browser tests with Playwright. It uses a feature description to plan tests, generate them, run them in a real browser, and repair locators when the interface changes.

In plain words
What is it for?
Testing user-facing flows, reproducing navigation-dependent bugs, handling flaky tests, and adding browser-test setup to a project.
Why use it?
It reduces manual test writing and helps keep browser tests working when page elements or navigation change.

Skill for Claude CodeCodex

Part of the mthines-agent-skills plugin — 48 skills, 5 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mthines/agent-skills/e2e-testing
Any agent
npx skills add mthines/agent-skills --skill e2e-testing
Clone the repo
git clone --depth 1 https://github.com/mthines/agent-skills

Made for: Claude Code, Codex.

Or install mthines-agent-skills, the plugin that ships this one along with the rest of its 48 skills, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for e2e-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/mthines/agent-skills/e2e-testing.svg)](https://agentmods.dev/skills/mthines/agent-skills/e2e-testing)
Your own site
<a href="https://agentmods.dev/skills/mthines/agent-skills/e2e-testing"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/e2e-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,433 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00153 $0.02433
Opus 5 $0.00077 $0.01216
Sonnet 5 $0.00031 $0.00487
Haiku 4.5 $0.00015 $0.00243

Measured 4d ago against content hash e2df232e9f4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

e2e-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/playwright.config.ts, templates/seed.spec.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/testing/e2e-testing/SKILL.md · 246 lines

How it starts

The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.

E2E Testing

Drive end-to-end tests through Playwright's MCP-backed Test Agents — Planner, Generator, Healer — released in Playwright 1.56 (Oct 2025). The user writes (or approves) a Markdown feature spec; agents generate the test, run it against a real browser via the accessibility tree, and self-heal when locators drift.

This SKILL.md is a thin index. Decision rules live in rules/*.md and load on demand. Worked references (agent reference, MCP tool catalog, pyramid math) live in references/*.md. Literal boilerplate the skill emits lives in templates/*.md. Do not preload everything — load only what the current phase asks for.


When to use

Reach for this skill when any of the following is true:

  • A feature has user-facing flow that integration tests cannot fully cover.
  • A bug repros only through real navigation (multi-page, auth, real network).
  • A flake needs a Healer pass instead of a manual locator hunt.
  • The repo has no @playwright/mcp wiring yet and needs Phase 0 setup.

Do not reach for this skill when:

  • A unit or component test would catch the same bug — defer to tdd and the layer rule in rules/layer-decision.md.
  • The change is a pure refactor with no behavioural surface.
  • You are adding test infrastructure unrelated to a real flow.

Phase 0 — Preflight (mandatory gate)

Before any agent loop, verify the repo is wired for Playwright Test Agents. Halt and ask the user before installing anything.

Run these checks (read-only):

# 1. Playwright + MCP server installed?
jq '.devDependencies | keys[]' package.json | grep -E '@playwright/(test|mcp)'

# 2. Test-agent artefacts present?
ls specs/ tests/seed.spec.ts playwright.config.ts 2>/dev/null

Decision table:

State Action
Both deps present + artefacts exist Proceed to Phase 1.
Deps missing Halt. Print install plan, ask permission before running.
Deps present, artefacts missing Halt. Print npx playwright init-agents --loop=claude, ask first.
Playwright present but version < 1.56 Halt. Test Agents require 1.56+. Ask permission to upgrade.

Read the full file on GitHub · 246 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 246 lines · 153 tokens per session scan A e2df232e9f4a

Subscribe to this mod's changes

e2e-testing is a skill published in the GitHub repository mthines/agent-skills (12 stars, last pushed today), licensed MIT. It adds 153 tokens to every session and 2,433 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ego-browser

Skill "ego-browser" from citrolabs/ego-lite, covering ego-browser, quick start, common helpers, task spaces and control handoff.

citrolabs/ego-lite · 210 tokens

eval-graphics

Turn an eval study's numbers into on-brand, publish-ready figures using the Newsjack chart room (the eval design system), then validate them with Playwright. For producing the charts in a published eval/data study.

elvisun/newsjack · 47 tokens

custom-icons

Create or refine custom icon assets as native or traced SVGs and transparent PNG/WebP files. Use when the user asks for a bespoke icon or cohesive icon set, wants an image traced into a clean vector, or needs a detailed or 3D icon with transparency.

JKc66/custom-icons-skill · 57 tokens

design-exploration

Generates multiple distinct design variants of a component or page, each with a completely different visual direction, then implements the chosen one. Use when the user asks to redesign, restyle, explore design options, create multiple visual directions, or compare design approaches for any UI element -- components…

carson2222/skills · 75 tokens

web-design

Design and implement high-quality web interfaces by synthesizing proven design philosophies from Dieter Rams, Brad Frost (Atomic Design), Google Material Design, and modern web best practices. Triggered when the user asks to design a web page, UI component, design system, layout, or when asked to review/improve…

minorcell/skills · 68 tokens

life-design

Walk you through the Stanford Designing Your Life method and write your Personal Life Design Blueprint — three Odyssey plans and the prototypes to test them.

coolTheWorld/evolution-skills · 30 tokens