/godmode:e2efrom godmode
Guides end-to-end testing with Playwright, Cypress, or Selenium: scaffolds tests, applies page object models, fixes flaky tests, and runs cross-browser checks.
Ships in godmode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/godmode:e2e# Find existing E2E tests
find . -name "*.e2e.*" -o -name "*.spec.*" \
| grep -i -E "e2e|playwright|cypress" \
| grep -v node_modules
# Check for test framework config
ls playwright.config.* cypress.config.* wdio.conf.* \
2>/dev/null
# Count existing test files
find e2e/ tests/ -name "*.spec.ts" 2>/dev/null | wc -l
E2E TEST STATE:
Framework: <Playwright | Cypress | Selenium | none>
Config file: <path or none>
Test count: <N>
Page objects: <N> (or none)
Flaky tests: <N known flaky | unknown>
IF test count == 0: scaffold from scratch
IF test count > 0 AND flaky > 3: prioritize remediation
IF framework == none: default to Playwright
e2e/
├── tests/ # By feature
│ ├── auth/
│ │ ├── login.spec.ts
│ │ └── registration.spec.ts
│ ├── checkout/
│ │ ├── cart.spec.ts
│ │ └── payment.spec.ts
│ └── dashboard/
│ └── navigation.spec.ts
├── pages/ # Page Object Models
│ ├── base.page.ts
│ ├── login.page.ts
│ └── dashboard.page.ts
└── fixtures/
└── test-data.ts
All locators live in page objects. Tests call methods only.
Simulate real user journeys (login, add to cart, checkout), not individual page checks.
FLAKINESS DIAGNOSIS:
| Symptom | Fix |
|----------------------|------------------------------|
| Element not found | Use auto-waiting locators |
| Timeout on nav | waitForLoadState, bump limit |
| Stale element ref | Re-query after action |
| Test order deps | Isolate data in beforeEach |
ANTI-FLAKINESS RULES:
- Never use fixed sleep — use auto-waiting assertions
- Never depend on execution order — independent tests
- Never use CSS selectors — use data-testid, roles
- Always seed test data via API, not through the UI
- Always retry failed tests in CI (investigate repeats)
- Always record traces/screenshots on failure
THRESHOLDS:
Pass rate target: 100% over 10 consecutive runs
Max flaky tolerance: 0 (zero flaky tests in suite)
Retry budget in CI: 2 retries per test max
BROWSER MATRIX:
| Browser | Engine | Status |
|---------------|----------|------------|
| Chrome | Chromium | <PASS/FAIL>|
| Firefox | Gecko | <PASS/FAIL>|
| Safari | WebKit | <PASS/FAIL>|
| Mobile Chrome | Chromium | <PASS/FAIL>|
| Mobile Safari | WebKit | <PASS/FAIL>|
E2E REPORT — <project>
Framework: <Playwright | Cypress>
Total: <N> tests, Passing: <N>, Failing: <N>
Duration: <X>s (parallel: <N> workers)
Cross-browser: chromium PASS, firefox PASS, webkit PASS
Commit: "e2e: <project> — <N> tests across <N> flows"
# Run end-to-end tests
npx playwright test --reporter=list
npx cypress run --browser chrome
Never ask to continue. Loop autonomously until done.
sleep().sleep() or waitForTimeout().After EACH test spec or flakiness fix:
1. MEASURE: Run 10 times — pass rate?
2. DECIDE:
KEEP if: 100% pass rate AND no timing waits
DISCARD if: <100% OR uses sleep/waitForTimeout
3. COMMIT kept. Delete discarded before adding more.
test_flow_queue = detect_untested_user_flows()
WHILE test_flow_queue is not empty:
batch = test_flow_queue.take(3)
FOR each flow in batch:
1. Create Page Objects for the flow
2. Write spec: happy + error + edge cases
3. Run across browser matrix
4. IF flaky: diagnose, apply fix
5. IF pass rate < 100%: discard and rewrite
IF queue empty: run full suite, generate report
1. Check for: playwright.config.*, cypress.config.*
2. Scan for: *.e2e.*, *.spec.* in e2e/ or tests/
3. Detect frontend: Next.js, React, Vue, Angular
4. Check for page objects: e2e/pages/
5. Detect app URL from config or package.json
Print: E2E: {tests} tests, {flows} flows, {browsers} browsers. Pass: {rate}%. Flaky: {count}. Verdict: {verdict}.
Log to .godmode/e2e-results.tsv:
iteration flow browser tests_passing flaky status
STOP when ANY of:
- All critical flows covered at 100% pass rate
- Cross-browser matrix passes (chromium, firefox, webkit)
- User requests stop
- Max 10 iterations reached
npx playwright install.--repeat-each=10, fix root cause.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
e2e-testing, playwright, cypress, selenium, flaky-test-fix, page-object-model
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
135 skills in this plugin
/a11yAccessibility. WCAG 2.1 AA/AAA, a11y audit, color contrast, keyboard navigation, screen reader, Axe, Pa11y, Lighthouse./agentAI agent development. ReAct/plan-and-execute/multi-agent architectures, tool design, memory systems, guardrails, orchestration (LangChain, LlamaIndex, CrewAI, AutoGen)./analyticsProduct analytics implementation — event tracking, funnel analysis, A/B testing, Segment/Amplitude/Mixpanel/PostHog, privacy-compliant instrumentation./angularAngular architecture. NgRx, Signals, RxJS, standalone components, lazy loading, dependency injection, Jasmine, Jest.Other plugins' skills for the same job