e2e
Skill3 starsChanged 6 months agoMITView on GitHub
End-to-end test authoring and execution for web, mobile, React Native, or Flutter apps. Discovers user flows, sets up the E2E framework if needed, writes tests covering the golden path and critical edge cases, runs them, and fixes failures. Primary tool is agent-browser (web). Falls back to Playwright (desktop/complex web), Maestro (iOS/Android/React Native/Flutter), or Claude for Chrome (web, last resort).
- Pipes a download into a shell
- Installs packages
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 8 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
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
qtzx06Skilleval
Evaluate trained YOLO model accuracy with mAP metrics and per-class error analysis. Identifies failure cases for targeted improvement. Use after training.
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
- heliohq/ship★ 93same name
- AsiaOstrich/universal-dev-standards★ 76same name
- DGouron/review-flow★ 44same name
- sgaabdu4/building-flutter-apps★ 23same 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.
In this repository38 other files it gives its agents.
- agentic-ai-threatsSkill
- agentic-skills-top10Skill
- ai-agent-securitySkill
- app-store-complianceSkill
- asoSkill
- better-t-stackSkill
- distill-skillSkill
- edge-casesSkill
- hardeningSkill
- iconsSkill
- legal-complianceSkill
- lighthouseSkill
- llm-top10Skill
- mirrorSkill
- a11ySkill
- agent-qualitySkill
- analyticsSkill
- authSkill
- bundle-analysisSkill
- ciSkill
- contextSkill
- cookie-consentSkill
- db-migrateSkill
- email-transactionalSkill
- free-trialSkill
- i18nSkill
- launch-checklistSkill
- load-testSkill
- observabilitySkill
- og-imagesSkill
- paymentsSkill
- push-notificationsSkill
- waitlistSkill
- owasp-web-top10Skill
- prompt-injectionSkill
- reflectSkill
- seoSkill
- youtube-to-skillSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. 0 are common, 13 are distinctive, and 15 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
If a framework already exists, use it.
- Very specific: line 69
No config file needed for basic use.
- Very specific: line 81
Create a minimal playwright.config.ts following project conventions
- Very specific: line 82
Add to package.json scripts: "test:e2e": "playwright test"
- Very specific: line 83
Verify: write one trivial passing test and run $PM run test:e2e
- Very specific: line 93
Create maestro/ folder at project root
- Very specific: line 94
Write a trivial smoke flow to maestro/smoke.yaml, verify: maestro test maestro/smoke.yaml
- Very specific: line 104
Make sure Claude Code is v2.0.73 or higher (claude --version).
- Very specific: line 106
If "extension not detected" appears, restart Chrome (the first connection installs a native messaging host that Chrome reads on startup), …
- Distinctive: line 110
If a framework already exists, read its config and confirm test directory and launch settings before proceeding.
- Distinctive: line 174
Always snapshot before clicking — refs change after navigation
- Very specific: line 175
Use wait --text or wait --load networkidle instead of fixed sleeps
- Distinctive: line 182
Read similar existing tests first: match their style, helpers, and assertions exactly
- Distinctive: line 183
Use the Page Object pattern if the project already uses it.
- Distinctive: line 184
Use semantic selectors in priority order:
- Distinctive: line 189
Never assert implementation details (Redux state, internal API calls, class names)
- Very specific: line 194
If a data-testid is missing from the UI, add it to the source file in the same PR
- Very specific: line 199
Start every flow with appId and launchApp:
- Distinctive: line 206
Use visible text first for element targeting:
- Very specific: line 218
No fixed waits: Maestro handles timing automatically.
- Very specific: line 219
If an element has no stable text or ID, add a testID to the source
- Distinctive: line 229
Run every test/flow immediately after writing it.
- Distinctive: line 236
Read the error output carefully: distinguish selector/ref mismatch, timing issue, and actual behavior bug
- Very specific: line 238
agent-browser timeout: - use wait --text or wait --load networkidle before the next action.
- Very specific: line 241
Maestro element not found: - use maestro hierarchy to inspect the current screen state
- Distinctive: line 244
Do not modify assertions to make tests pass: assertions represent the correct expected behavior.
- Distinctive: line 251
agent-browser: - run each flow as a batch command sequence, or via a shell script:
- Distinctive: line 266
All tests must pass. If existing E2E tests are now failing, treat them as regressions and fix the cause before reporting done.
“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
E2E
You are writing end-to-end tests that simulate real user behavior. Work through each phase in order. Do not skip phases.
Target: {{args}}
Called from another skill? If {{args}} contains --verify-fix or --verify-feature, skip Phase 2 (framework setup) if one already exists, skip the user-confirmation step in Phase 3 (auto-confirm the scope described in args), and run Phases 4-6 directly. Report pass/fail counts explicitly at the end so the calling skill can confirm completion.
Phase 1: Discover
Spawn 3 parallel subagents to map what needs testing:
| Subagent | Focus | What to find |
| 1 | App entry points | How the app starts, what port/URL it runs on (web) or bundle ID/package name (mobile), how to launch it in test mode, any seed/fixture scripts |
| 2 | User flows | Routes, screens, forms, actions, and navigation paths relevant to the target area |
| 3 | Existing tests | Current E2E framework (agent-browser, Playwright, Maestro, Cypress, Detox, etc.), test structure, helper utilities, existing coverage gaps |
Synthesize into:
- Platform - web browser, iOS, Android, React Native, Flutter, or mixed
- Launch command - how to start the app under test
- Base URL or App ID - where to point the test runner
- Flow inventory - numbered list of user flows to cover, with the UI elements involved
- Framework decision - see below
Framework Decision
If a framework already exists, use it. If not, choose:
| Platform | Primary | Fallback | Last resort |
| Web | agent-browser | Playwright (if agent-browser unavailable or insufficient) | Claude for Chrome (/chrome) |
| Desktop app | Playwright | — | Computer Use (native macOS) |
| iOS / Android (native) | Maestro | — | — |
| React Native | Maestro | — | — |
| Flutter | Maestro | — | — |
| Web + mobile | agent-browser (web) + Maestro (mobile) | — | — |
Check availability:
agent-browser --version 2>/dev/null && echo "AGENT_BROWSER_AVAILABLE" || echo "AGENT_BROWSER_MISSING"
npx playwright --version 2>/dev/null && echo "PLAYWRIGHT_AVAILABLE" || echo "PLAYWRIGHT_MISSING"
maestro --version 2>/dev/null && echo "MAESTRO_AVAILABLE" || echo "MAESTRO_MISSING"For Claude for Chrome there is no CLI to version-check: it is the built-in browser automation that runs through the Claude in Chrome extension (the modern replacement for browser-based Computer Use). It is available when the extension is connected: confirm by attempting a tab-context call, or ask the user to run /chrome to connect. See the setup steps in Phase 2.
Always confirm the framework choice with the user before setup (skip confirmation in --verify-fix/--verify-feature mode).
Phase 2: Framework Setup (if needed)
Shell note: The shell snippets in this skill (the availability checks above, package-manager detection,
curl | bash, andjqpipes) assume a POSIX shell. On Windows they will not run in the default PowerShell; run them via the Bash tool / Git Bash, or use the PowerShell equivalents (e.g.agent-browser --versionthen check the exit code, and detect the package manager withGet-Command bun).
agent-browser (web — primary)
- Install:
npm install -g agent-browser - Install browser:
agent-browser install - Verify:
agent-browser --version - Smoke-check:
agent-browser open <base-url> && agent-browser screenshot /tmp/smoke.png && echo "OK"
No config file needed for basic use. For headed mode during debugging: AGENT_BROWSER_HEADED=true agent-browser open <url>.
Playwright (web — fallback for desktop apps or when agent-browser is unavailable)
Detect the package manager first:
command -v bun >/dev/null 2>&1 && PM=bun || (command -v pnpm >/dev/null 2>&1 && PM=pnpm || PM=npm)
echo "Using: $PM"- Install:
$PM add -D @playwright/test(use${PM}xornpxto run binaries) - Install browser:
${PM}x playwright install --with-deps chromium - Create a minimal
playwright.config.tsfollowing project conventions - Add to
package.jsonscripts:"test:e2e": "playwright test" - Verify: write one trivial passing test and run
$PM run test:e2e
Maestro (mobile / React Native / Flutter)
- Install (requires Java 17+):
curl -fsSL "https://get.maestro.mobile.dev" | bash - Verify:
maestro --version - Confirm device/emulator:
maestro devices - Create
maestro/folder at project root - Write a trivial smoke flow to
maestro/smoke.yaml, verify:maestro test maestro/smoke.yaml
Claude for Chrome (web, last resort)
Claude for Chrome is built into Claude Code, so there is nothing to npm install. It drives a real Chrome (or Edge) window through the Claude in Chrome extension, sharing the browser's login state. Use it only when agent-browser and Playwright are both unavailable, or for interactive verification where a reusable test file is not required.
It cannot be enabled programmatically; the user must connect it. When this is the chosen tool, check whether the extension is connected (attempt a tab-context call). If it is not connected, stop and ask the user to enable it, giving these steps:
- Install Google Chrome or Microsoft Edge (Brave, Arc, and WSL are not supported).
- Install the Claude in Chrome extension (v1.0.36+) from the Chrome Web Store and sign in with the same Anthropic account as Claude Code. Requires a direct Anthropic plan (Pro, Max, Team, or Enterprise) — not available through Bedrock, Vertex AI, or Foundry.
- Make sure Claude Code is v2.0.73 or higher (
claude --version). - In this Claude Code session, run
/chrometo connect the extension (or launch withclaude --chrome). Run/chromeagain any time to check status, reconnect, or pick which browser to use. Selecting "Enabled by default" avoids the flag each session. - If "extension not detected" appears, restart Chrome (the first connection installs a native messaging host that Chrome reads on startup), then run
/chrome→ "Reconnect extension".
Once connected, confirm with the user which browser to use, then proceed to Phase 4.
If a framework already exists, read its config and confirm test directory and launch settings before proceeding.
Phase 3: Plan Test Scenarios
For the target area, define test scenarios at two levels:
Golden path - the happy path a user follows when everything works:
- List each step as a user action (tap, type, click, navigate, submit)
- Define the expected outcome after each step
- One scenario per major flow
Critical edge cases - the failures a user will actually hit:
- Empty states (no data, first use)
- Validation errors (bad input, required fields)
- Auth boundaries (logged out, wrong role)
- Error recovery (server error, network failure)
- Navigation correctness after actions
Present the scenario list to the user and confirm scope before writing any tests. Note which flows are already covered by existing tests.
Phase 4: Write Tests
agent-browser (web — primary)
agent-browser uses a snapshot + ref model. Every interaction starts with a snapshot that returns stable refs (@e1, @e2, ...) for interactive elements. Use those refs instead of selectors.
Basic workflow:
agent-browser open <url>
agent-browser snapshot -i # get interactive elements with refs
agent-browser click @e3 # click by ref
agent-browser fill @e5 "user@example.com"
agent-browser press Tab
agent-browser wait --text "Welcome" # wait for expected content
agent-browser screenshot /tmp/after.pngSemantic find (when ref is ambiguous):
agent-browser find role button click --name "Submit"
agent-browser find label "Email" fill "test@example.com"Batch commands (faster — single startup, multiple actions):
agent-browser batch \
"open http://localhost:3000/login" \
"snapshot -i" \
"fill @e2 user@example.com" \
"fill @e3 password123" \
"click @e4" \
"wait --text Dashboard" \
"screenshot /tmp/login-result.png"JSON output for assertions:
agent-browser get url --json
agent-browser snapshot --json | jq '.elements[] | select(.text | test("Welcome"))'Rules:
- Always snapshot before clicking — refs change after navigation
- Use
wait --textorwait --load networkidleinstead of fixed sleeps - Individual operations must complete within 25 seconds (daemon timeout)
- Take a screenshot after each major step as visual proof
- For
--verify-fix/--verify-featuremode: save screenshots to a named folder and report their paths in the final summary
Playwright (web — fallback / desktop)
- Read similar existing tests first: match their style, helpers, and assertions exactly
- Use the Page Object pattern if the project already uses it; otherwise write direct locator calls
- Use semantic selectors in priority order:
getByRole/getByLabel/getByText(prefer: match what users see)data-testidattributes (add them to the source if needed)- CSS selectors only as a last resort
- Assert the visible outcome the user would notice: page content, URL, toast message, element state
- Never assert implementation details (Redux state, internal API calls, class names)
Rules:
- Each test must be independent: no shared state between tests
- Flaky assertions must use
waitForor explicit waits, neversleep - If a
data-testidis missing from the UI, add it to the source file in the same PR
Maestro (mobile / React Native / Flutter)
- One flow file per scenario:
maestro/<feature>-<flow>.yaml - Start every flow with
appIdandlaunchApp:appId: com.example.app --- - launchApp: clearState: true - Use visible text first for element targeting:
- tapOn: "Sign In" - inputText: "user@example.com" - tapOn: { id: "submit_button" } # fall back to ID if text is ambiguous - assertVisible: "Welcome back" - Key commands:
tapOn,inputText,scrollUntilVisible,assertVisible,assertNotVisible,back,takeScreenshot,swipe - For environment-specific values, pass with
--env:${APP_URL},${TEST_USER}
Rules:
- Each flow must be runnable in isolation (
clearState: trueon launch) - No fixed waits: Maestro handles timing automatically; use
assertVisibleas the sync point - If an element has no stable text or ID, add a
testIDto the source
Claude for Chrome (web, last resort)
Fall back to Claude for Chrome only when agent-browser and Playwright are both unavailable, or when a flow needs a real authenticated browser session that those tools cannot reproduce. Confirm the extension is connected first (see Phase 2); if not, ask the user to run /chrome.
Drive the real Chrome window through the claude-in-chrome browser tools (run /mcp → claude-in-chrome to see the full list): create a tab, navigate to the app, walk through each flow from the acceptance criteria, and assert the visible outcome at each step. Take a screenshot (or record a GIF) at each major step as proof. When Claude for Chrome hits a login page or CAPTCHA it pauses for the user to handle it manually; do not attempt to bypass it.
This is agentic rather than file-based: it verifies flows live but does not produce a reusable test file. Note in the summary that Claude for Chrome was used and list the screenshot/GIF paths.
Run every test/flow immediately after writing it. A passing golden-path test is the baseline before writing edge cases.
Phase 5: Fix Failures
For every failing test or flow:
- Read the error output carefully: distinguish selector/ref mismatch, timing issue, and actual behavior bug
- agent-browser ref mismatch - re-snapshot after the last navigation; refs change on page load
- agent-browser timeout - use
wait --textorwait --load networkidlebefore the next action; keep each operation under 25 seconds - Playwright selector mismatch - fix the locator or add a
data-testidto the source - Playwright timing issue - replace fixed waits with
waitFortargeting a visible element or network idle - Maestro element not found - use
maestro hierarchyto inspect the current screen state - Actual bug found - real find; report it to the user before deciding whether to fix the app or mark the test as known-failing with a TODO
Do not modify assertions to make tests pass: assertions represent the correct expected behavior.
Fix → run → fix → run. One failure at a time.
Phase 6: Run Full Suite & Confirm
agent-browser - run each flow as a batch command sequence, or via a shell script:
bash e2e/run-all.sh # if the project has a runner scriptPlaywright:
$PM run test:e2eMaestro:
maestro test maestro/All tests must pass. If existing E2E tests are now failing, treat them as regressions and fix the cause before reporting done.
Report:
- Framework used (agent-browser / Playwright / Maestro / Claude for Chrome)
- How many flows are now covered
- How many tests were written (golden path vs. edge cases)
- Screenshot paths (for agent-browser runs)
- Any bugs found in the app during testing
- Any flows intentionally deferred (with reason)
Completion Checklist
- Platform confirmed (web / iOS / Android / React Native / Flutter)
- Framework chosen and confirmed with user (agent-browser / Playwright / Maestro / Claude for Chrome)
- App launch and base URL / app ID confirmed
- E2E framework installed and configured
- Flow inventory created and confirmed with user
- Golden path test written and passing for each major flow
- Critical edge cases covered with dedicated tests
- agent-browser: refs re-fetched after every navigation; screenshots taken at each major step
- Playwright: semantic selectors or
data-testid; no flaky waits (waitForused) - Maestro:
clearState: trueon launch;assertVisibleas sync point - Full E2E suite passes with no regressions
- Any app bugs found are reported to the user
Does 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.

