e2e-test-generator

e2e-test-generator is a skill for Claude Code, Codex from tahirraufkeeyu/software-development-agent-stack--sdas. It costs 63 tokens per session (2,384 once invoked), scanned A, original, MIT.

A tool for turning a user story or acceptance criteria into runnable browser tests using Playwright or Cypress. It organizes tests around reusable page objects, which represent parts of a website.

In plain words
What is it for?
Use it to create or convert end-to-end tests for website flows such as adding items to a cart and checking out, including login, mocked network responses, and screenshots when tests fail.
Why use it?
It removes the manual work of translating product requirements into repeatable tests and helps cover unusual cases and accessibility checks.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { ProductPage } from '../pages/ProductPage';.

Good fit Use it to create or convert end-to-end tests for website flows such as adding items to a cart and checking out, including login, mocked network responses, and screenshots when tests fail.

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/tahirraufkeeyu/software-development-agent-stack--sdas
agentmods
npx agentmods add skills/tahirraufkeeyu/software-development-agent-stack--sdas/e2e-test-generator

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/tahirraufkeeyu/software-development-agent-stack--sdas/e2e-test-generator.svg)](https://agentmods.dev/skills/tahirraufkeeyu/software-development-agent-stack--sdas/e2e-test-generator)
Your own site
<a href="https://agentmods.dev/skills/tahirraufkeeyu/software-development-agent-stack--sdas/e2e-test-generator"><img src="https://agentmods.dev/badge/skills/tahirraufkeeyu/software-development-agent-stack--sdas/e2e-test-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,384 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.00063 $0.02384
Opus 5 $0.00032 $0.01192
Sonnet 5 $0.00013 $0.00477
Haiku 4.5 $0.00006 $0.00238

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

Security

Grade A, and why

e2e-test-generator 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 8d 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.

departments/qa/skills/e2e-test-generator/SKILL.md · 229 lines

How it starts

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

When to use

Invoke this skill when:

  • A product manager or engineer provides a user story ("As a user, I want to add items to cart and checkout").
  • You need a new spec for an existing flow and the repo already uses Playwright or Cypress.
  • You want to port an ad-hoc smoke test into the page object model.
  • You are adding regression coverage for a recently shipped feature.

Do NOT use when: the target flow is unstable or not yet wired up (write stubs instead); the repo uses a framework other than Playwright/Cypress (propose one first); the story is a pure API flow (use api-test-generator).

Inputs

  • story (required): User story or acceptance criteria in plain text.
  • framework (required): playwright or cypress. Inferred from repo if present.
  • base_url (required): Origin under test, e.g. https://staging.example.com.
  • selectors (optional): Known data-testid values or a path to a selectors map.
  • auth_mode (optional): storage-state, api-login, or ui-login. Default storage-state.
  • paths (optional): Target directories — pageObjectsDir (default tests/pages/), specsDir (default tests/e2e/).

Outputs

  • One or more spec files in specsDir.
  • One page object per distinct page the story touches in pageObjectsDir.
  • A fixtures file if the story requires seeded data.
  • A short report listing: files written, tests generated, any TODO markers for selectors that could not be resolved.

Tool dependencies

  • Read, Write, Edit, Grep, Glob (always).
  • Playwright MCP (optional) for dry-running generated specs.
  • references/test-patterns.md for the catalog of 20+ reusable patterns.

Procedure

  1. Discover the framework. Grep for @playwright/test or cypress in package.json. If neither is present, ask the user which to scaffold.
  2. Load selectors. Grep the target pages/components for data-testid="...". If fewer than 3 are found on the critical path, emit a report entry recommending the developer add testids first.
  3. Parse the story. Extract actors, preconditions, actions (one per sentence), and observable outcomes. Each observable becomes one expect.
  4. Draft page objects. One class per page. Public methods correspond to user actions (addToCart, checkout). Fields are Locators built from data-testid. No CSS classes.
  5. Draft the spec. Use test.describe per story, one test per acceptance criterion. Every test ends with at least one expect.
  6. Add waits. Use web-first assertions (expect(locator).toBeVisible()) and page.waitForResponse(url) for async flows. Never waitForTimeout.
  7. Mock non-happy paths. For empty states, 5xx, and rate-limit flows, use page.route(url, route => route.fulfill({ status, body })).
  8. Add screenshot + trace. Confirm use: { screenshot: 'only-on-failure', trace: 'retain-on-failure' } is set in playwright.config.ts; add it if missing.
  9. Add inline a11y. Inject @axe-core/playwright on the final page of each flow and assert zero violations with serious/critical impact.
  10. Write files. Never overwrite without diffing. Emit a summary.

Read the full file on GitHub · 229 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 229 lines · 63 tokens per session scan A b2d1ca0fe3a2

Subscribe to this mod's changes

e2e-test-generator is a skill published in the GitHub repository tahirraufkeeyu/software-development-agent-stack--sdas (18 stars, last pushed 4mo ago), licensed MIT. It adds 63 tokens to every session and 2,384 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

test-warp-ui

Guides testing Warp UI features and changes using the computer use tool. Use this skill only when computer-use testing was requested (explicit request or accepted offer) and the computeruse tool is available to the agent. Covers launching Warp and verifying UI behavior.

warpdotdev/warp · 55 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens

pyats-dynamic-test

Generate and execute deterministic pyATS aetest validation scripts - interface state, OSPF neighbors, BGP paths, ping matrices, and custom compliance tests. Use when writing a network test, validating post-change state, running pass/fail checks, or building automated regression tests.

automateyournetwork/netclaw · 61 tokens

test-loop

Plan, generate, and heal an executable E2E test suite from approved acceptance criteria (web and mobile).

HoangNguyen0403/agent-skills-standard · 25 tokens

playwright-cli

Automates browser interactions for testing and validating your own web applications using playwright-cli. Use when you need terminal-first browser control for navigation, form filling, screenshots, tracing, bound browser sessions, debugging, or generating Playwright test code. Only use against applications you own or…

testdino-hq/playwright-skill · 64 tokens