norbertsuski/sdd-toolkit/sdd-e2e

Claude Code and agent skill by norbertsuski/sdd-toolkit

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Drive an approved plan's browser-level (E2E) phases against the running app, one risk at a time — plan → generate → review → verify. The E2E sibling of /sdd-implement and /sdd-tdd, sharing the same plan and Progress. Only drives risks that genuinely need a browser and whose feature is already built; redirects the rest to /sdd-tdd or /sdd-implement. Use when the user says "e2e", "write/generate a Playwright test", "browser test this risk", or "drive the plan's E2E phases".

Install

npx vskill@latest install norbertsuski/sdd-toolkit/sdd-e2e

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

SDD E2E — Risk-Driven E2E Plan Execution

You drive an approved technical plan from $CONTEXT_ROOT/changes/<change-id>/plan.md (legacy: context/changes/<change-id>/plan.md) to browser-level coverage, one phase at a time, one risk at a time. This skill operates under the CONTEXT_ROOT handed to it (the resolved base) — it does not run its own discovery; app: may be absent for flat roots. An agent can generate a passing E2E test in seconds; the hard part is making it protect a real risk and survive tomorrow's refactor. This skill drives only the phases where that work belongs — a risk that crosses several system boundaries (auth, routing, API, DB) or exists only in the rendered UI — and for each one runs the loop:

PLAN → pick the risk, explore the running app, map the flow (or fill the prompt template)
GENERATE → turn the flow into a test from the seed exemplar + E2E rules
REVIEW → check it against the five agent E2E anti-patterns; re-prompt by name
VERIFY → run it green, then confirm it fails when the risk actually materializes

This skill is the E2E sibling of `/sdd-implement` and `/sdd-tdd`. It reads the same plan, mutates the same canonical ## Progress section, and uses the same phase-end commit ritual and clipboard handoffs. The difference is the inner loop: instead of writing production code (/sdd-implement) or a failing unit test first (/sdd-tdd), you generate and harden a browser-level test against the running app. Because the three skills share ## Progress, you can interleave them freely — build a feature with /sdd-implement, unit-test the next phase with /sdd-tdd, then come back here to add the E2E layer for a cross-boundary risk, and state is never lost.

Besides this plan-driven path, /sdd-e2e also runs standalone against a single risk: /sdd-e2e <risk-id> (or no argument) reads $CONTEXT_ROOT/foundation/test-plan.md, picks the top browser-level risk, and produces one reviewed, break-verified test, then stops — no change folder, no ## Progress, no commit ritual. Use it for a quick one-off outside a tracked change. Everything below about Setup, Phase completion, and State tracking applies to the plan-driven path only; a standalone run goes straight to the gate, loops PLAN→GENERATE→REVIEW→VERIFY once, and reports the test.

The core discipline: don't generate E2E tests from scratch. Start from the risk the phase names, and govern the agent's output with two quality levers — a seed test and E2E rules. The prompt supplies only what those two can't encode: the specific risk, flow, and real-vs-mocked boundaries.

$CONTEXT_ROOT/foundation/test-plan.md (the risks the plan's phases trace back to)
│
▼
seed.spec.ts + E2E rules → shape every generated test
│ (getByRole, isolation, wait-for-state, real vs mocked)
▼
PLAN → GENERATE → REVIEW → VERIFY → one reviewed test per risk → CI

Agents see the accessibility tree (roles, names, states in a YAML snapshot with element refs), not pixels — so they naturally produce getByRole-based tests, not CSS selectors.

Plan path: $ARGUMENTS

What this skill assumes — and what it will not do

  • Playwright is installed and the app is runnable. A Playwright config, a way to run a single spec, an auth pattern (storageState), and a way to start the app (dev server or webServer config) are assumed to be in place. This skill discovers them; it does not install Playwright, scaffold configs, or wire up CI. If Playwright is absent entirely, stop and tell the user to set it up first.
  • The feature under test already exists. E2E runs against a real, running app — so unlike /sdd-tdd, the implementation must be present, not absent. If the phase's feature isn't built yet, there is nothing for the browser to drive; stop and redirect to /sdd-implement (or /sdd-tdd) to build it first, then come back.
  • It creates the two quality levers, but nothing more. On first use it creates seed.spec.ts and the E2E rules file from references/ if they're missing — this is the one-time per-project setup the levers need. It does not set up the rest of the test infrastructure.
  • It drives one reviewed test per risk, not a sweep. Unlike "generate tests for every page," this skill writes a small, risk-tied set and hardens each one through review and a deliberate-break check. E2E is the most expensive, most flake-prone layer — coverage count is never the goal; protected risk is.
  • It gates every phase on whether E2E actually fits and whether the app is ready. Some phases (pure logic, config, scaffolding) should never get an E2E test. Features that aren't built can't be driven in a browser. Those cases are redirected or stopped as described below.

Phase overview

SETUP → Resolve plan, read fully, confirm Playwright + app runnable, ensure seed + rules exist, create per-phase tasks
For each phase:
├─ GATE → Is this risk browser-level, AND is the feature built, AND is the E2E test absent? If not → redirect or stop
├─ PLAN/GENERATE/REVIEW/VERIFY → Loop per risk in the phase until its success criteria are met
└─ PHASE END → Relevant E2E green → manual gate → commit ritual → next-phase decision (clipboard)
After all phases → Completion summary + optional /sdd-impl-review

Each phase ends with a user checkpoint. Never silently skip a phase or merge two phases into one commit.


Setup

Standalone (risk-driven) runs skip this whole section — go straight to the gate.

When this skill is invoked:

  1. Resolve the plan:
  • /sdd-e2e <change-id> [phase N] → $CONTEXT_ROOT/changes/<change-id>/plan.md.
  • @$CONTEXT_ROOT/changes/<change-id>/plan.md (legacy: @context/changes/<change-id>/plan.md) or a full path → accept as-is.
  • Refuse if the resolved path starts with `$CONTEXT_ROOT/archive/` (legacy: context/archive/) — print "This change is archived. Open a new change with /sdd-new instead." and STOP.
  • If nothing was provided, print the message below and STOP and wait:
I'll drive an approved plan's browser-level (E2E) phases — plan → generate → review → verify, one risk at a time. Please provide:
1. A change-id (e.g., `/sdd-e2e save-session phase 6`), or
2. A full path (e.g., `@$CONTEXT_ROOT/changes/save-session/plan.md`).
You can list active changes with: `ls "$CONTEXT_ROOT/changes/"`
Tip: the plan should already be reviewed and approved — this skill executes its E2E phases, it doesn't write the plan.
  1. Read the plan completely — every phase, every Changes Required block, every Success Criteria item. Never use limit/offset; you need full context. The ## Progress section at the bottom is authoritative for execution state — checkmarks (- [x]) live ONLY there. Phase blocks carry plain - bullets, no checkboxes. Note which phases trace back to a $CONTEXT_ROOT/foundation/test-plan.md risk that needs browser-level coverage; those are the ones this skill drives.
  1. Read `$CONTEXT_ROOT/foundation/test-plan.md` if present — it carries the risk map each E2E phase protects (impact, likelihood, the behavior that would prove protection). The risk, not a file, is the unit of work here.
  1. Read `$CONTEXT_ROOT/foundation/lessons.md` if present and internalize each entry before starting any phase — these are the team's accepted recurring rules and must shape every test choice in this run.
  1. Confirm Playwright infrastructure exists and the app is runnable (light check — do not research the world):
  • Find the Playwright config (playwright.config.*), learn the command to run a single spec, the auth setup (storageState / a setup project), and how the app starts (a webServer block, or a dev-server command). A single Glob for *.spec.ts / playwright.config.* plus reading one example and the config is enough.
  • If there is no Playwright config and no `*.spec.ts` files at all, STOP:
This plan's E2E phases need Playwright in place before I can drive them — I found none
(no playwright.config.*, no *.spec.ts files).
This skill assumes Playwright is already installed; it won't set it up. Options:
• Install and configure Playwright first (npm init playwright@latest), then re-run /sdd-e2e.
• Use /sdd-tdd or /sdd-implement for non-browser coverage.
  1. Ensure the two quality levers exist (the one-time per-project setup). These do the heavy lifting — the prompt stays thin.
  • Seed test (seed.spec.ts): the exemplar every generated test is modeled on. What you show is what you get — if the seed uses getByRole, generated tests do too; if it has waitForTimeout, every generated test inherits it. If absent, create it from references/seed-test-pattern.md, adapted to this app's real routes and roles. See also references/browser-driven-generation.md.
  • E2E rules: the rules file the agent reads automatically before generating code (the project's AI configuration file (AGENTS.md), the AI tool's configuration directory, or a dedicated file in the test dir). If absent, create it from references/e2e-quality-rules.md.
  • Treat both as part of the first phase's touched-file set so they land in that phase's commit. Once they exist, leave them — don't recreate them each phase.
  1. Update `change.md`: with pending executable work, apply ../sdd-run/references/verification-freshness.md — set status: implementing from {planned, plan_reviewed, implemented, impl_reviewed} and bump updated before editing. This invalidates any older snapshot.
  1. Create one task per phase (these surface in the user's status bar): for each ## Phase N: header you intend to drive, create a task with subject: "Phase N: [Phase Name]" and activeForm: "E2E Phase N". Mark the current phase in_progress before starting; mark it completed when its success criteria pass.
  1. Find the starting point: scan ## Progress — the first - [ ] in document order is where you start. If a phase N argument was passed, jump to the first - [ ] under ### Phase N:.
Clipboard convention. Wherever this skill says copy `X` to the clipboard, pipe the exact string X to the platform clipboard — try pbcopy (macOS), then clip.exe (Windows/WSL), then xclip -selection clipboard (Linux), and fall back silently if none exist. Then display the copied command on its own line suffixed with (✓ copied).

The E2E eligibility gate — run before every phase (plan-driven) / once (standalone)

Before you plan a single test for a phase, decide three things in this order:

  1. Browser-level fit — the phase's risk genuinely needs end-to-end coverage.
  2. Feature presence — the feature under test is already built and the app is runnable.
  3. Test absence — a passing E2E test for this risk doesn't already exist.

A phase is eligible for this skill only when all three hold.

Browser-level fit check

A risk needs E2E when it crosses several system boundaries (auth, routing, API, DB) or exists only in the rendered UI. If an isolated function, endpoint contract, or integration test could prove the risk, E2E is the wrong (slow, brittle) tool — drive it with /sdd-tdd or /sdd-implement instead.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks
  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/norbertsuski/sdd-toolkit/sdd-e2e/badge)](https://verified-skill.com/skills/norbertsuski/sdd-toolkit/sdd-e2e)

Something wrong with this skill or its page? Tell us.