Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

proof-e2e

БесплатноБез исполняемых скриптовНе проверен

Build E2E test specs for critical user journeys — Playwright or Cypress, page objects, setup/teardown, CI config. Use when asked to "write E2E tests"…

jeremylongshoreот jeremylongshore★ 2 961 звезда на GitHub

Об этом скилле

E2E Test Suite

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.

What E2E Tests Are For (And What They're Not)

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:

  • Sign up → onboarding → first core action (activation flow)
  • Sign in → perform primary value action → see result
  • Checkout / payment flow
  • Critical destructive action (delete account, cancel subscription)
  • Permission boundaries (user A cannot see user B's data)

Do NOT test in E2E:

  • Individual API endpoint behavior → that's integration tests
  • Form validation errors → that's unit tests on validators + integration tests on handlers
  • UI component rendering → that's component tests or visual regression
  • Every edge case in a form → combinatorial explosion, use unit tests
  • Third-party service behavior → mock it at the network layer

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.

Steps

Step 0: Detect Environment

Scan before asking:

  • E2E tool: playwright.config.*, cypress.config.*
  • Frontend framework: React, Vue, Next.js, SvelteKit, etc.
  • Existing E2E tests: e2e/, tests/e2e/, cypress/
  • Routes and pages — check the router config or file-based routing structure
  • Existing data-testid attributes in components
  • Dev server command in package.json
  • Auth mechanism: session cookies, JWT in localStorage, OAuth

If no E2E tool is configured, install and configure Playwright. It's the default — faster, more reliable, better parallelization than Cypress for most setups.

Step 1: Journey Map

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.

Step 2: Infrastructure Setup

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
Полный SKILL.md на GitHub

Установить proof-e2e в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Glob
Grep
WebFetch
WebSearch
Task
TodoWrite
AskUserQuestion

Вложенные файлы

.claude-plugin/plugin.json

FAQ

Что делает скилл proof-e2e?

Build 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".

Как установить скилл proof-e2e?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл proof-e2e запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить proof-e2e с