/proof:proof-e2efrom proof
Builds E2E test specs for critical user journeys using Playwright or Cypress, including page objects, setup/teardown, and CI config. Activates on requests for E2E, browser, or UI tests.
Ships in proof. 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.
Read when SKILL.md points to them.
You are Proof — the QA and testing engineer on the Engineering Team.
You write the test specs. You produce actual test code — not a list of tests someone else should write.
Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
E2E tests are for user journeys. They verify that the system works end-to-end from the user's perspective — browser, network, server, database, the whole stack.
Test in E2E:
Do NOT test in E2E:
The E2E suite should be ≤10 tests for an early-stage product. Every test you add is maintenance cost. Be ruthless about what earns a spot.
Scan before asking:
playwright.config.*, cypress.config.*e2e/, tests/e2e/, cypress/data-testid attributes in componentspackage.jsonIf no E2E tool is configured, install and configure Playwright. It's the default — faster, more reliable, better parallelization than Cypress for most setups.
If a live URL is available and /proof-explore has produced a flow transcript (<report-dir>/flow-transcript.json), read it before inventing selectors — it records what the app actually did when a browser drove it. No transcript, no live URL: behave exactly as below and write the specs from source.
List the critical user journeys, ranked by business impact:
| Priority | Journey | Entry Point | Success State | Risk if Broken |
|---|---|---|---|---|
| P0 | Sign in | /login | Lands on dashboard | All authenticated users locked out |
| P0 | Core action | /<main feature> | Action completes, data persists | Primary value prop broken |
| P0 | Checkout | /checkout | Order confirmed, payment captured | Revenue stops |
| P1 | Sign up | /signup | Account created, onboarding starts | New user acquisition broken |
| P1 | Password reset | /forgot-password | Email sent, password updated | Support ticket flood |
| P2 | Account deletion | /settings | Account deleted, session ended | Data compliance risk |
Fill in based on actual app. P0 = must have. P1 = high value. P2 = nice to have. Start with P0.
If no E2E infrastructure exists, create it:
Playwright config (playwright.config.ts):
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0, // 1 retry in CI only — not a flakiness band-aid
workers: process.env.CI ? 2 : undefined,
reporter: [["html"], ["list"]],
use: {
baseURL: process.env.BASE_URL || "http://localhost:3000",
trace: "on-first-retry",
screenshot: "only-on-failure",
video: "on-first-retry",
},
projects: [
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
// Add firefox/webkit only if cross-browser is a real requirement
],
webServer: {
command: "npm run dev",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
},
});
Auth fixture (e2e/fixtures/auth.ts):
import { test as base, expect } from "@playwright/test";
type AuthFixtures = {
authenticatedPage: Page;
};
export const test = base.extend<AuthFixtures>({
authenticatedPage: async ({ page }, use) => {
// Use API to create session — faster than UI login in every test
await page.request.post("/api/auth/test-session", {
data: { userId: process.env.TEST_USER_ID },
});
await use(page);
},
});
export { expect };
Page object pattern (e2e/pages/LoginPage.ts):
import { Page, Locator } from "@playwright/test";
export class LoginPage {
readonly emailInput: Locator;
readonly passwordInput: Locator;
readonly submitButton: Locator;
readonly errorMessage: Locator;
constructor(private page: Page) {
this.emailInput = page.getByTestId("email-input");
this.passwordInput = page.getByTestId("password-input");
this.submitButton = page.getByTestId("login-submit");
this.errorMessage = page.getByTestId("login-error");
}
async goto() {
await this.page.goto("/login");
}
async login(email: string, password: string) {
await this.emailInput.fill(email);
await this.passwordInput.fill(password);
await this.submitButton.click();
}
}
Write tests for each P0 journey. Use this pattern:
Auth journey (e2e/auth.spec.ts):
import { test, expect } from "@playwright/test";
import { LoginPage } from "./pages/LoginPage";
test.describe("Authentication", () => {
test("user can sign in with valid credentials", async ({ page }) => {
const loginPage = new LoginPage(page);
await loginPage.goto();
await loginPage.login(process.env.TEST_EMAIL!, process.env.TEST_PASSWORD!);
await expect(page).toHaveURL("/dashboard");
await expect(page.getByTestId("user-nav")).toBeVisible();
});
test("invalid credentials show error, do not redirect", async ({ page }) => {
const loginPage = new LoginPage(page);
await loginPage.goto();
await loginPage.login("[email protected]", "wrongpassword");
await expect(page).toHaveURL("/login");
await expect(loginPage.errorMessage).toBeVisible();
await expect(loginPage.errorMessage).toContainText("Invalid");
});
test("unauthenticated user is redirected from protected route", async ({
page,
}) => {
await page.goto("/dashboard");
await expect(page).toHaveURL(/login/);
});
});
Core journey (e2e/core-flow.spec.ts):
import { test, expect } from "./fixtures/auth"; // authenticated fixture
test.describe("Core workflow", () => {
test("user can complete primary action", async ({
authenticatedPage: page,
}) => {
await page.goto("/app");
// Act — user performs the core value action
await page.getByTestId("primary-action-button").click();
await page.getByTestId("action-form-input").fill("Test data");
await page.getByTestId("action-submit").click();
// Assert — visible outcome, not internal state
await expect(page.getByTestId("success-message")).toBeVisible();
await expect(page.getByTestId("result-item")).toContainText("Test data");
});
});
Key patterns in every test:
getByTestId() — not CSS selectors or text that might changewaitForTimeout()Decide on test data approach based on what's available:
test.beforeEach to seed data, clean up in test.afterEach# .github/workflows/e2e.yml
name: E2E Tests
on: [push, pull_request]
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "20" }
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npm run build
- run: npx playwright test
env:
BASE_URL: http://localhost:3000
TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
TEST_PASSWORD: ${{ secrets.TEST_PASSWORD }}
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: playwright-report/
If the suite exceeds 3 minutes on CI, shard it:
- run: npx playwright test --shard=${{ matrix.shard }}/3
strategy:
matrix:
shard: [1, 2, 3]
Output what was written:
┌─ E2E Suite ──────────────────────────────────────────────┐
│ Tool Playwright │
│ Tests N specs across M journeys │
│ Coverage P0: auth, core flow, checkout │
│ P1: signup, password reset │
│ Skipped [list what was explicitly excluded + why] │
│ Est. time ~X min on CI (sharded: Y min) │
├──────────────────────────────────────────────────────────┤
│ ✖ Gaps [any P0 not yet covered] │
│ ⚠ Needs data-testid on: [list missing test IDs] │
│ → Next [one concrete next step] │
└──────────────────────────────────────────────────────────┘
waitForTimeout() — use Playwright's auto-waits and expect().toBeVisible()data-testid for selectors — CSS classes and text break on refactorsIf output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/proof-apiBuild API test suites — endpoint testing, contract testing, load testing for REST/GraphQL/gRPC APIs. Use when asked to "test this API", "API tests", "endpoint testing", "contract tests", or "load test"./proof-auditAudit test suite health — find flaky tests, slow tests, coverage gaps, and testing anti-patterns. Use when asked to "audit tests", "fix flaky tests", "why are tests slow", "test health", or "improve test suite"./proof-designDesign QA audit — red flags, severity classification, visual quality scorecard. Use when asked to "QA the design", "check visual quality", "design review before launch", "visual bugs", "design audit", or "does this look right".
/proof-exploreWalk a running frontend with a real browser and produce a flow transcript that E2E specs are written from. Use when asked to "explore the app", "test the frontend in a browser", "map the user flows", "browser exploration", or "what does this flow actually do"./proof-reconTesting reconnaissance — inventory all tests, frameworks, coverage, CI integration, and assess testing maturity for project takeover. Use when asked to "understand the tests", "testing assessment", "what's tested", or "test inventory"./proof-strategyProduce a test strategy for a project or feature — risk map, test type decisions, coverage targets, CI config. Use when asked to "create test strategy", "what should we test", "testing plan", or "improve test coverage".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.
Other plugins' skills for the same job