e2e-test-writer

e2e-test-writer is a skill for Claude Code, Codex from JansenAnalytics/claudex. It costs 35 tokens per session (933 once invoked), scanned A, original, MIT.

An end-to-end test generator for web applications using Playwright. End-to-end tests imitate a user's complete journey through a site, such as opening a page, filling in a form, and checking the result.

In plain words
What is it for?
Use it to create Playwright tests from flow descriptions, page snapshots, or existing page analysis, in either TypeScript or JavaScript.
Why use it?
It reduces the effort of turning described user flows into repeatable browser tests for feature checks and regression testing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/generate-test.py --input flow.json --output tests/login.spec.ts.

Good fit Use it to create Playwright tests from flow descriptions, page snapshots, or…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/JansenAnalytics/claudex
agentmods
npx agentmods add skills/jansenanalytics/claudex/e2e-test-writer

Made for: Claude Code, Codex.

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-test-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/jansenanalytics/claudex/e2e-test-writer.svg)](https://agentmods.dev/skills/jansenanalytics/claudex/e2e-test-writer)
Your own site
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/e2e-test-writer"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/e2e-test-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 933 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00035 $0.00933
Opus 5 $0.00017 $0.00466
Sonnet 5 $0.00007 $0.00187
Haiku 4.5 $0.00003 $0.00093

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

Security

Grade A, and why

e2e-test-writer 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 3d 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/e2e-test-writer/SKILL.md · 117 lines

How it starts

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

e2e-test-writer

Generate end-to-end tests for web applications using Playwright. Create test files from user flow descriptions, page snapshots, or existing page analysis.

When to Use

  • Adding E2E test coverage to a web application
  • Generating regression tests after building features
  • Creating smoke tests for critical user flows
  • Automating user flow verification
  • Setting up Playwright test infrastructure from scratch

Scripts

generate-test.py

Generates a complete Playwright test file from a JSON flow description.

# From a JSON file
python3 scripts/generate-test.py --input flow.json --output tests/login.spec.ts

# From stdin
echo '{"name":"login","steps":[{"action":"goto","url":"/"},{"action":"fill","selector":"#email","value":"[email protected]"},{"action":"click","selector":"button[type=submit]"},{"action":"assert_text","text":"Welcome"}]}' | python3 scripts/generate-test.py --output tests/login.spec.ts

# JavaScript output instead of TypeScript
python3 scripts/generate-test.py --input flow.json --output tests/login.spec.js --lang js

Flow JSON format:

{
  "name": "login",
  "baseURL": "http://localhost:3000",
  "steps": [
    { "action": "goto", "url": "/login" },
    { "action": "fill", "selector": "#email", "value": "[email protected]" },
    { "action": "fill", "selector": "#password", "value": "secret123" },
    { "action": "click", "selector": "button[type=submit]" },
    { "action": "assert_url", "url": "/dashboard" },
    { "action": "assert_text", "text": "Welcome back" },
    { "action": "assert_visible", "selector": ".user-avatar" },
    { "action": "screenshot", "name": "dashboard-loaded" },
    { "action": "select", "selector": "#role", "value": "admin" },
    { "action": "wait", "ms": 1000 }
  ]
}

Supported actions: goto, click, fill, select, assert_text, assert_url, assert_visible, wait, screenshot

flow-recorder.sh

Creates a template JSON flow file with placeholder steps.

bash scripts/flow-recorder.sh --name "login-flow" --steps 5
bash scripts/flow-recorder.sh --name "checkout" --steps 8 --output flows/checkout.json

Read the full file on GitHub · 117 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. 3d ago First seen · 117 lines · 35 tokens per session scan A c118eb0d4b28

Subscribe to this mod's changes

e2e-test-writer is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 2mo ago), licensed MIT. It adds 35 tokens to every session and 933 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.

Related

Other skills, from other repositories