e2e

e2e is a skill for Claude Code from anton-abyzov/specweave. It costs 38 tokens per session (3,534 once invoked), scanned A, original, MIT.

A workflow for creating and running Playwright end-to-end tests, which simulate complete actions a user takes in a browser, with optional accessibility checks.

In plain words
What is it for?
Use it to generate tests from a feature specification, run them, map results to requirement IDs, and scan pages with an accessibility checker.
Why use it?
It links browser-test results to acceptance criteria and can reveal both broken user journeys and accessibility problems.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

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/anton-abyzov/specweave/e2e
Any agent
npx skills add anton-abyzov/specweave --skill e2e
Clone the repo
git clone --depth 1 https://github.com/anton-abyzov/specweave

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/anton-abyzov/specweave/e2e.svg)](https://agentmods.dev/skills/anton-abyzov/specweave/e2e)
Your own site
<a href="https://agentmods.dev/skills/anton-abyzov/specweave/e2e"><img src="https://agentmods.dev/badge/skills/anton-abyzov/specweave/e2e.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,534 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.1 $0.00038 $0.03534
Opus 5 $0.00019 $0.01767
Sonnet 5 $0.00008 $0.00707
Haiku 4.5 $0.00004 $0.00353

Measured 2d ago against content hash 04902948bfbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

e2e 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 2d 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.

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-optional/e2e/SKILL.md · 419 lines

How it starts

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

E2E Testing — Playwright + AC Traceability

Generate Playwright E2E tests from spec.md acceptance criteria, run them, and produce a structured report that maps pass/fail results to AC-IDs. The report is evidence for whatever closure step you run.

Modes

Flag Action
--generate <id> Read spec.md → create one .spec.ts per US with one test() per AC
--run <id> Execute npx playwright test → parse results → write e2e-report.json
--a11y <id> Like --run but also scans each page with @axe-core/playwright

Combine --run + --a11y to get both functional and accessibility results. --generate ignores --a11y (warn if combined).


Step 1: Parse Arguments

Extract mode and increment ID from $ARGUMENTS:

# Parse: --generate 0042 | --run 0042 | --a11y 0042 | --run --a11y 0042
MODE="run"       # default
A11Y=false
INCREMENT_ID=""

for arg in $ARGUMENTS; do
  case "$arg" in
    --generate) MODE="generate" ;;
    --run)      MODE="run" ;;
    --a11y)     A11Y=true ;;
    *)          INCREMENT_ID="$arg" ;;
  esac
done

If no increment ID provided, check for an active increment:

ACTIVE=$(find .specweave/increments -maxdepth 2 -name "metadata.json" -exec grep -l '"active"' {} \; 2>/dev/null | head -1)

If still no ID → STOP: "No increment ID provided and no active increment found."

Resolve increment path: .specweave/increments/<id>/

Step 2: Environment Validation — Playwright Detection

MANDATORY before any operation. Detect Playwright installation:

# 1. Find playwright.config
PW_CONFIG=$(find . repositories -maxdepth 4 -name "playwright.config.ts" -o -name "playwright.config.js" 2>/dev/null | head -1)

# 2. Check for @playwright/test in package.json
PW_PACKAGE=$(grep -r '"@playwright/test"' package.json packages/*/package.json repositories/*/*/package.json 2>/dev/null | head -1)

Decision matrix:

Config Package Action
Found Found Proceed — use config path
Missing Found FAIL: "Playwright installed but no config found. Run npx playwright init to create playwright.config.ts"
Missing Missing FAIL: "Playwright not installed. Run npm init playwright@latest to set up E2E testing"
Found Missing Proceed with warning: "Playwright config found but package not in package.json (global install?)"

Read the full file on GitHub · 419 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. 2d ago First seen · 419 lines · 38 tokens per session scan A 04902948bfbf

Subscribe to this mod's changes

e2e is a skill published in the GitHub repository anton-abyzov/specweave (159 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 3,534 once invoked, about $0.0002 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-09-03.