e2e
Skill93 starsChanged 5 months agoMITView on GitHub
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.
- Reads credentials
25 other projects use a version of this.
Adopted by
Most recently taken up by
- kortix-ai/sunatheir own version, first seen Oct 5, 2026
- AsiaOstrich/universal-dev-standardstheir own version, first seen Sep 30, 2026
- getsentry/sentry-javascripttheir own version, first seen Sep 27, 2026
- flightctl/ai-workflowstheir own version, first seen Sep 21, 2026
- Pawel-Kica/claude-code-100their own version, first seen Sep 12, 2026
- kdlbs/kandevtheir own version, first seen Sep 10, 2026
Used with
Projects with it also use instinct-export, instinct-import and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
TheKREATORSSkillinstinct-export
Export instincts from project/global scope to a file
Also in 3 projects that use this
TheKREATORSSkillinstinct-import
Import instincts from file or URL into project/global scope
Also in 3 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 4 projects that use this
LangChainSkillapi-docs
OpenAPI documentation and REST API design patterns
Also in 3 projects that use this
SentrySkilldb-migrate
Create database migrations using Drizzle Kit. Use when adding/modifying tables, columns, or indexes. Ensures schema.ts and migrations stay in sync.
Also in 3 projects that use this
MontimageSkilltest-coverage
Improve test coverage by finding untested branches, error paths, and edge cases. Use when measuring or strengthening a project's tests. Don't use for production debugging, code review, or feature implementation.
Also in 3 projects that use this
- +1 more from TheKREATORS
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- kortix-ai/suna★ 20ksame name
- getsentry/sentry-javascript★ 8.8ksame name
- entireio/cli★ 5.2ksame name
- kdlbs/kandev★ 899same name
- platformplatform/PlatformPlatform★ 440same name
- kangraemin/claude-inspector★ 131same name
- AsiaOstrich/universal-dev-standards★ 76same name
- DGouron/review-flow★ 44same name
- sgaabdu4/building-flutter-apps★ 23same name
- ggombee/code-forge★ 18same name
15 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 9 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 66
Write tests for behavior that isn't in the spec — scope is the acceptance criteria the change introduced, plus regression coverage for …
- Distinctive: line 69
Test implementation details (private functions, internal state).
- Distinctive: line 74
Leave services, containers, or browsers running after you finish.
- Very specific: line 75
Commit secrets into test fixtures.
- Very specific: line 111
If skipping, write a one-paragraph justification to <task_dir>/e2e/report.md and emit the SKIP report card.
- Distinctive: line 119
Look for what's already there: Search for common framework config files, test directories, and dependency manifest entries.
- Distinctive: line 121
If you find a framework in use, you are done — use it.
- Very specific: line 134
Read references/scaffolding.md only when step 2 applies — it has the install recipes per framework.
- Very specific: line 139
Read references/authoring.md for patterns, selectors, data setup, and assertion guidelines.
- Very specific: line 158
If the repo already has one of these directories, use it.
- Distinctive: line 177
Run the new/modified tests first.
- Distinctive: line 178
If they pass, run the full E2E suite to check for regressions.
- Very specific: line 179
If anything fails, decide test issue vs real bug (flake policy: references/authoring.md).
- Very specific: line 201
Mandatory — never skip, even on failure or timeout: Follow ../shared/cleanup.md with the same EVIDENCE_DIR you set in Phase 4.
- Distinctive: line 218
Keep the report tight — the tests themselves are the durable artifact.
- Very specific: line 225
When invoked with --recheck (after e2e_fix made code changes):
- Distinctive: line 227
Run only the previously-failing tests + full regression suite
- Very specific: line 233
When invoked outside /ship:auto (user types /ship:e2e directly):
“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 regressionsRed 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/xfailto 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.examplevalues 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- Spec —
<task_dir>/plan/spec.md(acceptance criteria you must codify) - 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.
- 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.
- 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/integration/ |
| Capybara | spec/system/, spec/features/ |
If the repo already has one of these directories, use it. If scaffolding from
scratch, prefer tests/e2e/ (readable, language-agnostic).
Phase 4: Run
Bring the app up via the shared startup reference:
Read ../shared/startup.md. Set EVIDENCE_DIR=".ship/tasks/<task_id>/e2e"
before running its commands so logs and PIDs land under the e2e folder.
Start services → run migrations → verify readiness.Track PIDs in <task_dir>/e2e/pids.txt (the shared startup reference does
this automatically via $EVIDENCE_DIR). Phase 5 reads the same file.
Then run the suite. The exact command depends on the framework, but the workflow is constant:
- Run the new/modified tests first. Fastest feedback.
- If they pass, run the full E2E suite to check for regressions.
- If anything fails, decide test issue vs real bug (flake policy:
references/authoring.md). Real bug → report it as a FAIL, never weaken the test to make it pass. In auto mode this triggerse2e_fix, which routes back to /ship:dev to fix the code.
Save artifacts
Playwright/Cypress produce traces, videos, and screenshots on failure. Copy
them into <task_dir>/e2e/ so debuggers (human or agent) have evidence:
# $EVIDENCE_DIR was set before entering ../shared/startup.md — reuse it here
mkdir -p "$EVIDENCE_DIR/artifacts"
# Framework-specific examples — adapt to whatever the runner actually produces
[ -d playwright-report ] && cp -r playwright-report "$EVIDENCE_DIR/artifacts/" 2>/dev/null
[ -d test-results ] && cp -r test-results "$EVIDENCE_DIR/artifacts/" 2>/dev/null
[ -d cypress/screenshots ] && cp -r cypress/screenshots "$EVIDENCE_DIR/artifacts/" 2>/dev/null
[ -d cypress/videos ] && cp -r cypress/videos "$EVIDENCE_DIR/artifacts/" 2>/dev/nullPhase 5: Cleanup
Mandatory — never skip, even on failure or timeout. Follow
../shared/cleanup.md with the same EVIDENCE_DIR you set in Phase 4.
It kills tracked PIDs (graceful then forceful), stops any docker compose
stack, and verifies ports are free. Do not inline your own cleanup logic —
the shared contract is the single source of truth.
Phase 6: Report
Write <task_dir>/e2e/report.md with:
- Framework — name, version, whether it was pre-existing or scaffolded
- Tests added/modified — file paths and what each covers
- Run results — pass/fail counts, timing
- Failures (if any) — test name, assertion, and verdict (test issue vs real bug, with evidence)
- Regressions (if any) — previously-passing tests that broke
Keep the report tight — the tests themselves are the durable artifact; the report is for the pipeline to route decisions.
Re-run mode
When invoked with --recheck (after e2e_fix made code changes):
- Restart services
- Run only the previously-failing tests + full regression suite
- Skip writing new tests (already written in first pass)
- Cleanup is still mandatory
Standalone mode
When invoked outside /ship:auto (user types /ship:e2e directly):
- There is no
<task_dir>. Pick one:.ship/e2e-<date>/works as a fallback evidence directory, or write directly next to the repo's test directory if no evidence is needed. - The "understand" phase relies on
git diffalone (no spec, no QA report). Use AskUserQuestion if the diff's intent is unclear — what flow does the user want locked in?
Artifacts
<task_dir>/
e2e/
report.md — run summary & test inventory
pids.txt — tracked PIDs for cleanup
artifacts/ — framework traces, videos, screenshots on failure
<repo>/tests/e2e/ — actual test files (committed to repo)
or framework-idiomatic path depending on detectionReference files
../shared/startup.md— bring the app up (shared with /ship:qa)../shared/cleanup.md— mandatory cleanup contract (shared with /ship:qa)references/frameworks.md— detection checks + framework selection matrixreferences/scaffolding.md— install recipes for each default frameworkreferences/authoring.md— writing good E2E tests (selectors, data, assertions, parallelization, stability)
Execution Handoff
Output the report card (read ../shared/report-card.md for the standard
format):
## [E2E] Report Card
| Field | Value |
|-------|-------|
| Status | <DONE / FAIL / BLOCKED / SKIP> |
| Summary | <N> tests added, <M>/<total> passing |
### Metrics
| Metric | Value |
|--------|-------|
| Framework | <name> (<pre-existing | scaffolded>) |
| Tests added | <N> |
| Tests modified | <N> |
| Suite pass rate | <N>/<total> |
| Regressions | <N> |
| Failures (real bugs) | <N> |
### Artifacts
| File | Purpose |
|------|---------|
| <task_dir>/e2e/report.md | Run summary |
| <task_dir>/e2e/artifacts/ | Traces, videos, screenshots (on failure) |
| <repo>/tests/e2e/*.spec.ts | New/modified test files (committed) |
### Next Steps
1. **Fix failures** — /ship:dev to address real bugs found by new tests
2. **Review next (if green)** — /ship:review to check correctness of the code
3. **Iterate tests** — /ship:e2e --recheck after fixesDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

