From workflow
Design a comprehensive end-to-end test suite for a project. Explores the codebase, understands user-facing behavior from docs and code, then designs two test sets: golden-path user journey tests and adversarial/failure-mode tests. Interactive — asks the user about expected failure behavior before finalizing. Use when starting e2e testing, expanding test coverage, or designing integration tests for a project.
How this skill is triggered — by the user, by Claude, or both
Slash command
/workflow:e2e-test-designThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You design a comprehensive end-to-end test suite by understanding how a project is actually used,
You design a comprehensive end-to-end test suite by understanding how a project is actually used, then producing two test sets: golden-path journeys and adversarial/failure scenarios.
Work through these phases in order. Do NOT skip AskUserQuestion checkpoints.
Map the project before designing anything.
Summarize findings for the user: project type, entry points, existing test coverage, testing framework.
Figure out how users are supposed to interact with the project.
Ask the user to confirm and expand:
AskUserQuestion checkpoint:
Design tests for realistic, successful user journeys. These assume correct input, valid configuration, and a healthy environment.
Principles:
Structure each test as:
Test: {descriptive name reflecting user intent}
Journey: {step-by-step what the user does}
Setup: {preconditions, fixtures, environment}
Assertions: {what to verify — outputs, side effects, state}
Teardown: {cleanup}
Categories to cover:
Before designing adversarial tests, understand how the project should handle problems.
AskUserQuestion checkpoint — ask ALL of these:
Record the user's answers — these become the assertion targets for adversarial tests.
Design tests that verify the project handles bad situations gracefully.
Principles:
Categories to cover:
User mistakes:
Bad environment:
Boundary conditions:
Structure each test as:
Test: {descriptive name — what goes wrong}
Scenario: {what bad situation is set up}
Action: {what the user does}
Expected: {how the project should respond — from Phase 4 answers}
Verify: {no corrupted state, proper cleanup, clear error message}
Present the complete test suite design to the user.
AskUserQuestion checkpoint:
Incorporate feedback, then write the final test design document.
Write the test design document to the project. Look for existing test directories or docs directories to place it. If unclear, ask the user.
Document structure:
# E2E Test Suite Design
## Project Summary
{Project type, entry points, target users}
## Test Environment
{Framework, setup requirements, fixtures needed}
## Existing Coverage
{What's already tested, identified gaps}
---
## Golden-Path Tests
### Journey: {Name}
**Priority:** {high/medium/low}
#### Test: {test name}
- **Setup:** ...
- **Steps:** ...
- **Assertions:** ...
- **Teardown:** ...
---
## Adversarial / Failure-Mode Tests
### Category: {User Mistakes | Bad Environment | Boundary Conditions}
#### Test: {test name — what goes wrong}
- **Scenario:** ...
- **Action:** ...
- **Expected behavior:** ...
- **Verify no side effects:** ...
---
## Implementation Notes
{Testing framework specifics, shared fixtures, helper utilities needed}
## Priority Order
{Recommended implementation order — highest-value tests first}
npx claudepluginhub nklisch/skills --plugin workflowBuild E2E test specs for critical user journeys — Playwright or Cypress, page objects, setup/teardown, CI config. Use when asked to "write E2E tests", "end-to-end testing", "browser tests", "UI tests", or "Playwright tests".
Builds E2E test suites for critical user journeys using Playwright or Cypress, with page objects, setup/teardown, and CI config.
Designs E2E test specs from user stories with steps, verification checkpoints, screenshots, and success criteria for Playwright/Cypress journeys.