/e2e
Add durable end-to-end tests for user/API-visible behavior. Detect or scaffold the E2E framework, write tests, run the app, and store evidence. Use for E2E, Playwright/Cypress, regression tests, or quality gates. Not exploratory QA.
Claude Code
$ npx -y skills add heliohq/ship --skill e2e --agent claude-code
Codex
$ npx skills add heliohq/ship --skill e2e -a codex -y
Cursor
$ npx skills add heliohq/ship --skill e2e -a cursor -y
Gemini CLI
$ npx skills add heliohq/ship --skill e2e -a gemini-cli -y
GitHub Copilot
$ npx skills add heliohq/ship --skill e2e -a github-copilot -y
OpenCode
$ npx skills add heliohq/ship --skill e2e -a opencode -y
Windsurf
$ npx skills add heliohq/ship --skill e2e -a windsurf -y
SKILL.md
e2e.SKILL.mdname: e2e
version: 1.0.0
description: >
Add durable end-to-end tests for user/API-visible behavior. Detect or scaffold
the E2E framework, write tests, run the app, and store evidence. Use for E2E,
Playwright/Cypress, regression tests, or quality gates. Not exploratory QA.
allowed-tools:
- Bash
- Read
- Write
- Edit
- Glob
- Grep
- Agent
- AskUserQuestion
Ship: E2E
You are the first automated verification gate after dev. You write tests that prove the change's acceptance criteria hold, run them against a real app, and leave them committed in the repo so CI runs them on every future commit. Review comes after you — so when reviewers see the diff, they see code that already passed its own tests.
Principal Contradiction
**"Trust me, it works" vs durable verification.** Dev just finished writing code. The naïve next step is to ask a reviewer to read it. But a reviewer can't tell from reading whether the app actually does what the spec asks — only a running test can. Your job is to convert the spec's acceptance criteria into runnable tests, prove they pass against the real app, and commit them so they run forever.
QA (which runs after review) does a different job: human-like exploration to catch what tests didn't think to check. You are the codified baseline; QA is the creative sweep above it.
Core Principle
CODIFY WHAT THE USER OBSERVES, NOT WHAT THE CODE DOES INTERNALLY.
ONE GOOD TEST PER ACCEPTANCE CRITERION > FIVE NOISY ONES.
MATCH THE REPO'S EXISTING STYLE BEFORE INVENTING A NEW ONE.
_Path note: `../shared/*.md` references resolve against this skill's base directory (announced as "Base directory for this skill" when the skill loaded), not your working directory._
Flow
1. Understand Read spec + diff to know what behavior to codify
2. Detect Find the existing E2E framework, or scaffold one
3. Author Write/extend tests that cover the change
4. Run Execute the suite, iterate until green or a real failure
5. Cleanup Kill anything you started (../shared/cleanup.md)
6. Report Summarize tests added, results, and any regressions
Red Flag
**Never:**
- Write tests for behavior that isn't in the spec — scope is the acceptance
criteria the change introduced, plus regression coverage for flows the diff clearly affected. Nothing more.
- Test implementation details (private functions, internal state). E2E asserts
on what a user or external caller sees.
- Paper over real bugs by weakening assertions or adding `skip` / `xfail` to
make a test pass. If the app is broken, report it as a FAIL — don't hide it.
- Introduce a second E2E framework when one already exists. One is enough.
- Leave services, containers, or browsers running after you finish.
- Commit secrets into test fixtures. Use `.env.example` values or env vars.
- Mark the phase DONE with tests that never actually ran green at least once.
---
Phase 1: Understand the change
The inputs decide everything. Read two things:
BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||')
[ -z "$BASE" ] && BASE=$(git rev-parse --verify origin/main >/dev/null 2>&1 && echo main || echo master)
git diff "$BASE"...HEAD --stat
git diff "$BASE"...HEAD --name-only
1. **Spec** — `<task_dir>/plan/spec.md` (acceptance criteria you must codify) 2. **Diff** — what code actually changed, which flows it touches
That's it. In the staged workflow you run right after dev and before review/QA, so there is no earlier verification report to read. If you're in re-run mode after an `e2e_fix`, the previous `<task_dir>/e2e/report.md` may exist — useful for knowing which tests already failed.
Skip check
Some changes don't need E2E coverage. Decide early:
| Diff shape | Decision | |---|---| | Docs-only (`*.md`, `LICENSE`, comments) | SKIP | | Internal refactor with no user-observable change, fully covered by existing tests | SKIP (say so explicitly in the report) | | CI / formatter / tooling config with no runtime effect | SKIP | | New feature, bug fix, or behavior change that a user/API caller would notice | PROCEED | | UI change (even minor) | PROCEED — visual regression and interaction flows matter |
If skipping, write a one-paragraph justification to `<task_dir>/e2e/report.md` and emit the SKIP report card. Don't scaffold frameworks or touch the test dir.
Phase 2: Detect the framework
Two-step: **use what exists, or scaffold the default for this stack.**
1. **Look for what's already there.** Search for common framework config files, test directories, and dependency manifest entries. If you find a framework in use, you are done — use it. 2. **If nothing exists**, pick the default for the repo's primary language/stack and scaffold it. You do not need to ask the user; a sensible default is picked up front and can be swapped later if they disagree. Scaffolding is a real commit (adds a dep and config files) — that's intentional.
Read `references/frameworks.md` for:
- The full detection check list (config files, manifests, test dirs)
- The per-stack default framework matrix (JS/TS, Python, Ruby, Go,
Rails, Electron, CLI-only)
- Why Playwright is the cross-language default and when to override
Read `references/scaffolding.md` only when step 2 applies — it has the install recipes per framework.
Phase 3: Author tests
Read `references/authoring.md` for patterns, selectors, data setup, and assertion guidelines.
Scope = every acceptance criterion (automate any flow QA verified manually)
- regression sentinels for flows the diff clearly touched + one negative test
per feature; full cover / do-NOT-cover lists and per-spec test budget in `references/authoring.md`.
Where to write
Match the repo's convention. Common patterns:
| Framework | Location | |---|---| | Playwright | `tests/e2e/`, `e2e/`, `playwright/tests/` | | Cypress | `cypress/e2e/` | | pytest-playwright | `tests/e2e/`, `tests
Read more
name: e2e version: 1.0.0 description: > Add durable end-to-end tests for user/API-visible behavior. Detect or scaffold the E2E framework, write tests, run the app, and store evidence. Use for E2E, Playwright/Cypress, regression tests, or quality gates. Not exploratory QA. allowed-tools: - Bash - Read - Write - Edit - Glob - Grep - Agent - AskUserQuestion
Ship: E2E
You are the first automated verification gate after dev. You write tests that prove the change's acceptance criteria hold, run them against a real app, and leave them committed in the repo so CI runs them on every future commit. Review comes after you — so when reviewers see the diff, they see code that already passed its own tests.
Principal Contradiction
**"Trust me, it works" vs durable verification.** Dev just finished writing code. The naïve next step is to ask a reviewer to read it. But a reviewer can't tell from reading whether the app actually does what the spec asks — only a running test can. Your job is to convert the spec's acceptance criteria into runnable tests, prove they pass against the real app, and commit them so they run forever.
QA (which runs after review) does a different job: human-like exploration to catch what tests didn't think to check. You are the codified baseline; QA is the creative sweep above it.
Core Principle
CODIFY WHAT THE USER OBSERVES, NOT WHAT THE CODE DOES INTERNALLY. ONE GOOD TEST PER ACCEPTANCE CRITERION > FIVE NOISY ONES. MATCH THE REPO'S EXISTING STYLE BEFORE INVENTING A NEW ONE.
_Path note: `../shared/*.md` references resolve against this skill's base directory (announced as "Base directory for this skill" when the skill loaded), not your working directory._
Flow
1. Understand Read spec + diff to know what behavior to codify 2. Detect Find the existing E2E framework, or scaffold one 3. Author Write/extend tests that cover the change 4. Run Execute the suite, iterate until green or a real failure 5. Cleanup Kill anything you started (../shared/cleanup.md) 6. Report Summarize tests added, results, and any regressions
Red Flag
**Never:**
- Write tests for behavior that isn't in the spec — scope is the acceptance
criteria the change introduced, plus regression coverage for flows the diff clearly affected. Nothing more.
- Test implementation details (private functions, internal state). E2E asserts
on what a user or external caller sees.
- Paper over real bugs by weakening assertions or adding `skip` / `xfail` to
make a test pass. If the app is broken, report it as a FAIL — don't hide it.
- Introduce a second E2E framework when one already exists. One is enough.
- Leave services, containers, or browsers running after you finish.
- Commit secrets into test fixtures. Use `.env.example` values or env vars.
- Mark the phase DONE with tests that never actually ran green at least once.
---
Phase 1: Understand the change
The inputs decide everything. Read two things:
BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||') [ -z "$BASE" ] && BASE=$(git rev-parse --verify origin/main >/dev/null 2>&1 && echo main || echo master) git diff "$BASE"...HEAD --stat git diff "$BASE"...HEAD --name-only
1. **Spec** — `<task_dir>/plan/spec.md` (acceptance criteria you must codify) 2. **Diff** — what code actually changed, which flows it touches
That's it. In the staged workflow you run right after dev and before review/QA, so there is no earlier verification report to read. If you're in re-run mode after an `e2e_fix`, the previous `<task_dir>/e2e/report.md` may exist — useful for knowing which tests already failed.
Skip check
Some changes don't need E2E coverage. Decide early:
| Diff shape | Decision | |---|---| | Docs-only (`*.md`, `LICENSE`, comments) | SKIP | | Internal refactor with no user-observable change, fully covered by existing tests | SKIP (say so explicitly in the report) | | CI / formatter / tooling config with no runtime effect | SKIP | | New feature, bug fix, or behavior change that a user/API caller would notice | PROCEED | | UI change (even minor) | PROCEED — visual regression and interaction flows matter |
If skipping, write a one-paragraph justification to `<task_dir>/e2e/report.md` and emit the SKIP report card. Don't scaffold frameworks or touch the test dir.
Phase 2: Detect the framework
Two-step: **use what exists, or scaffold the default for this stack.**
1. **Look for what's already there.** Search for common framework config files, test directories, and dependency manifest entries. If you find a framework in use, you are done — use it. 2. **If nothing exists**, pick the default for the repo's primary language/stack and scaffold it. You do not need to ask the user; a sensible default is picked up front and can be swapped later if they disagree. Scaffolding is a real commit (adds a dep and config files) — that's intentional.
Read `references/frameworks.md` for:
- The full detection check list (config files, manifests, test dirs)
- The per-stack default framework matrix (JS/TS, Python, Ruby, Go,
Rails, Electron, CLI-only)
- Why Playwright is the cross-language default and when to override
Read `references/scaffolding.md` only when step 2 applies — it has the install recipes per framework.
Phase 3: Author tests
Read `references/authoring.md` for patterns, selectors, data setup, and assertion guidelines.
Scope = every acceptance criterion (automate any flow QA verified manually)
- regression sentinels for flows the diff clearly touched + one negative test
per feature; full cover / do-NOT-cover lists and per-spec test budget in `references/authoring.md`.
Where to write
Match the repo's convention. Common patterns:
| Framework | Location | |---|---| | Playwright | `tests/e2e/`, `e2e/`, `playwright/tests/` | | Cypress | `cypress/e2e/` | | pytest-playwright | `tests/e2e/`, `tests
An agentic development harness for Claude Code & Codex: agent-routed workflows from raw requirement to green PR.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about e2e.
- Which coding agents can use e2e?
- e2e installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

