npx skills add ...
npx skills add alleneubank/claude-code --skill e2e
Use when running e2e tests, debugging test failures, or fixing flaky tests. Covers failure taxonomy, fix rules, and workflow. Never changes source code logic or API without spec backing.
npx skills add alleneubank/claude-code --skill e2e
Every e2e failure is exactly one of:
A. Flaky (test infrastructure issue)
B. Outdated (test no longer matches implementation)
C. Bug (implementation doesn't match spec)
Flaky fixes:
waitForTimeout with auto-waiting locatorsgetByRole/getByLabel/getByTestIdexpect() web-first assertionsOutdated fixes:
Bug fixes:
E2e test fixes must not change application logic, API contracts, database schemas, or configuration defaults. The only exception: bug fixes where a spec explicitly defines the correct behavior and unit tests cover the fix.
playwright.config.ts, vitest.config.ts, or project-specific setuppackage.json for the canonical e2e command*.spec.md, docs/*.spec.md - source of truth for bug decisionsParse failures into:
| Test | File | Error | Category |
|---|---|---|---|
login flow | auth.spec.ts:42 | timeout waiting for selector | TBD |
For each failure: read the test file, read the source code it exercises, check for a corresponding spec file, assign category (flaky / outdated / bug / unverified).
Apply fixes in order: flaky first (unblocks other tests), then outdated, then bug.
See testing-best-practices for async handling, flake classification, and preflight check patterns.