From agent-workflows
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-workflows:e2eThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Every e2e failure is exactly one of:
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.
The human is the most expensive verifier — spend them last, and once.
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 decisions# Playwright
yarn playwright test --reporter=line
# Or project-specific
yarn test:e2e
Parse 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.
## E2E Results
**Run**: `yarn test:e2e` on <date>
**Result**: X/Y passed
### Fixed
- FLAKY: `auth.spec.ts:42` - replaced waitForTimeout with getByRole wait
- OUTDATED: `profile.spec.ts:88` - updated selector after header redesign
- BUG: `transfer.spec.ts:120` - fixed amount validation per SPEC.md#transfers
### Remaining Failures
- UNVERIFIED: `settings.spec.ts:55` - no spec, needs user decision
### Unit Tests Added
- `src/transfer.test.ts` - amount validation edge cases (covers BUG fix)
See testing-best-practices for async handling, flake classification, and preflight check patterns.
npx claudepluginhub alleneubank/agent-profile --plugin agent-workflowsCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.