e2e

e2e is a skill for Claude Code, Codex from helderberto/agent-skills. It costs 73 tokens per session (624 once invoked), scanned A, original, MIT.

A workflow for writing end-to-end tests with Cypress, a tool that tests a website through realistic user actions in a browser. It is intended for complete user flows rather than individual functions or components.

In plain words
What is it for?
Use it to test flows such as signing in, submitting forms, navigating between pages, and seeing success or error states. It reads the project's Cypress setup and existing tests, then adds matching files under cypress/e2e/.
Why use it?
It turns a described user journey into repeatable checks, helping catch problems across pages and interactions. It also encourages tests to use meaningful labels and roles, making them closer to how users find controls.

Skill for Claude CodeCodex

Part of the hb plugin — 40 skills, 6 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/helderberto/agent-skills/e2e
Any agent
npx skills add helderberto/agent-skills --skill e2e
Clone the repo
git clone --depth 1 https://github.com/helderberto/agent-skills

Made for: Claude Code, Codex.

Or install hb, the plugin that ships this one along with the rest of its 40 skills, 6 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

README.md
[![agentmods](https://agentmods.dev/badge/skills/helderberto/agent-skills/e2e.svg)](https://agentmods.dev/skills/helderberto/agent-skills/e2e)
Your own site
<a href="https://agentmods.dev/skills/helderberto/agent-skills/e2e"><img src="https://agentmods.dev/badge/skills/helderberto/agent-skills/e2e.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 624 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.00073 $0.00624
Opus 5 $0.00036 $0.00312
Sonnet 5 $0.00015 $0.00125
Haiku 4.5 $0.00007 $0.00062

Measured 4d ago against content hash dbcbfd3f3abc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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/SKILL.md · 67 lines

How it starts

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

End-to-End Tests (Cypress)

Detection

Run in parallel:

  • Check package.json for cypress version
  • Read cypress.config.ts for baseUrl and test file patterns
  • Read 1-2 existing test files in cypress/e2e/ to match conventions

Workflow

  1. Read existing tests and config to match project style
  2. Understand the user flow — ask if unclear
  3. Identify selectors (see selectors.md)
  4. Write tests in cypress/e2e/ — one file per flow or feature

Format

describe('login flow', () => {
  beforeEach(() => {
    cy.visit('/login')
  })

  it('logs in with valid credentials', () => {
    cy.findByLabelText('Email').type('[email protected]')
    cy.findByLabelText('Password').type('password')
    cy.findByRole('button', { name: 'Sign in' }).click()
    cy.url().should('include', '/dashboard')
    cy.findByRole('heading', { name: 'Dashboard' }).should('be.visible')
  })

  it('shows error with invalid credentials', () => {
    cy.findByLabelText('Email').type('[email protected]')
    cy.findByLabelText('Password').type('wrong')
    cy.findByRole('button', { name: 'Sign in' }).click()
    cy.findByRole('alert').should('contain.text', 'Invalid credentials')
  })
})

Selector priority

Prefer @testing-library/cypress commands when installed, e.g. cy.findByRole('button', { name: 'Submit' }); use cy.get('[data-testid="submit"]') only as a last resort.

See selectors.md for the full priority guide.

Rules

  • Use @testing-library/cypress selectors when available, else cy.get
  • Use data-testid only as last resort
  • One logical outcome per it block
  • Test behavior, not implementation details
  • Never use cy.wait(<number>) — use cy.findBy* auto-retry instead

Error Handling

  • If cypress is not in package.json → stop and ask user to install Cypress first
  • If cypress.config.ts is missing → ask user to run npx cypress open to initialize config
  • If baseUrl is unreachable → verify the dev server is running before writing tests that require it

Read the full file on GitHub · 67 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. 4d ago First seen · 67 lines · 73 tokens per session scan A dbcbfd3f3abc

Subscribe to this mod's changes

e2e is a skill published in the GitHub repository helderberto/agent-skills (14 stars, last pushed 2d ago), licensed MIT. It adds 73 tokens to every session and 624 once invoked, about $0.0004 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

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work.

browser-use/browser-use · 26 tokens

opencli-autofix

Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.

jackwener/OpenCLI · 61 tokens

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

opencli-browser-sitemap

Use when driving a website with opencli browser and sitemap context is available, requested, or needed to avoid blind navigation. Guides agents to consume site sitemap files lazily, choose adapter/browser fallback paths, resume from state signatures, and mark stale sitemap entries without trusting them over live…

jackwener/OpenCLI · 64 tokens

js-in-html-testing

Test JS logic embedded in HTML using two-layer strategy - Python unit tests + Playwright browser integration tests.

liaohch3/claude-tap · 25 tokens