e2e-setup

e2e-setup is a skill for Claude Code, Codex from YoungjaeDev/my-claude-plugins. It costs 155 tokens per session (3,878 once invoked), scanned B, original, MIT.

A workflow for setting up a complete Playwright end-to-end testing system, including browser test roles, authentication setup, network mocking, project guidance, and gated continuous integration checks.

In plain words
What is it for?
Use it to onboard Playwright in a project, separate test authentication, make network behavior predictable, document critical flows, and add test checks to CI.
Why use it?
It provides the surrounding structure needed for dependable browser tests instead of only generating individual test files. Playwright is a tool for automating browsers and checking user journeys.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the e2e-harness plugin — 3 skills 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/youngjaedev/my-claude-plugins/e2e-setup
Any agent
npx skills add YoungjaeDev/my-claude-plugins --skill e2e-setup
Clone the repo
git clone --depth 1 https://github.com/YoungjaeDev/my-claude-plugins

Made for: Claude Code, Codex.

Or install e2e-harness, the plugin that ships this one along with the rest of its 3 skills.

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-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/youngjaedev/my-claude-plugins/e2e-setup.svg)](https://agentmods.dev/skills/youngjaedev/my-claude-plugins/e2e-setup)
Your own site
<a href="https://agentmods.dev/skills/youngjaedev/my-claude-plugins/e2e-setup"><img src="https://agentmods.dev/badge/skills/youngjaedev/my-claude-plugins/e2e-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,878 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00155 $0.03878
Opus 5 $0.00077 $0.01939
Sonnet 5 $0.00031 $0.00776
Haiku 4.5 $0.00015 $0.00388

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

Security

Grade B, and why

e2e-setup scanned grade B with 1 finding 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.

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.

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

- Do not invent an unsupported loop. Feature-detect `--loop=codex` rather than version-guessing (`npx playwright init-agents --help | grep -qw codex`). Even when it is advertised, Codex 0.135 cannot register the generate
plugins/e2e-harness/skills/e2e-setup/SKILL.md · 170 lines

How it starts

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

E2E Setup — full Playwright harness onboarding

Stand up Playwright's official AI test harness (planner -> generator -> healer) plus the surrounding engineering (auth separation, deterministic mocking, an E2E SSOT doc, gated CI). The harness is the point: a test run is a sensor, a test file is a spec, and the three roles form a self-improving loop. This skill only does setup + orchestration + CI + integration — it does not re-implement the roles.

Two runtime paths (Step 2). Under Claude Code, init-agents --loop=claude generates the planner/generator/healer as registerable .claude/agents/*.md, and e2e-author / e2e-debug dispatch them by name (Path A). Under Codex 0.135, those generated agent files are not registerable as named subagents, so setup skips them, ensures the .mcp.json playwright-test entry, and the author/debug skills run the same roles as generic subagents carrying the bundled references/role-contracts.md (Path B), or sequentially when no delegation is available (Path C). The engineering below (Steps 3-7) and every gate are identical on both paths.

Why this skill exists (the harness-engineering point). Installing the official agents is NOT enough — out of the box they skip auth setup, can't resolve project-known API errors, and don't know test-account usage, because they lack codebase context. Steps 3-7 below onboard them like a new hire: the config, auth scaffold, route-mock guidance, and especially the E2E SSOT doc are the context an agent needs to work autonomously. Skipping them is the usual reason "the official agents didn't just work."

Bundled templates live at <plugin-root>/assets/. Resolve <plugin-root> with the cross-runtime block in Step 0 (Claude CLAUDE_PLUGIN_ROOT, Codex plugin cache) — Codex 0.135 does not export CLAUDE_PLUGIN_ROOT, so a bare ${CLAUDE_PLUGIN_ROOT}/assets/... copy fails there. The three template files are playwright-ci.yml, e2e-guidelines.template.md, route-mock.scaffold.ts.

Verified against Playwright 1.61.0 (init-agents introduced in 1.56; trace CLI in 1.59). Filenames/output below are current-version facts — Playwright's docs say agent definitions "should be regenerated whenever Playwright is updated," so re-run init-agents after upgrades.

Read the full file on GitHub · 170 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 · 170 lines · 155 tokens per session scan B ffc2e6594575

Subscribe to this mod's changes

e2e-setup is a skill published in the GitHub repository YoungjaeDev/my-claude-plugins (2 stars, last pushed 9d ago), licensed MIT. It adds 155 tokens to every session and 3,878 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.