norbertsuski/sdd-toolkit/sdd-e2e
Claude Code and agent skill by norbertsuski/sdd-toolkit
- community
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-e2eSemi-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:
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.
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 orwebServerconfig) 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.tsand the E2E rules file fromreferences/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
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:
- 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-newinstead." and STOP. - If nothing was provided, print the message below and STOP and wait:
- Read the plan completely — every phase, every Changes Required block, every Success Criteria item. Never use limit/offset; you need full context. The
## Progresssection 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.mdrisk that needs browser-level coverage; those are the ones this skill drives.
- 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.
- 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.
- 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/ asetupproject), and how the app starts (awebServerblock, or a dev-server command). A singleGlobfor*.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:
- 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 usesgetByRole, generated tests do too; if it haswaitForTimeout, every generated test inherits it. If absent, create it fromreferences/seed-test-pattern.md, adapted to this app's real routes and roles. See alsoreferences/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.
- Update `change.md`: with pending executable work, apply
../sdd-run/references/verification-freshness.md— setstatus: implementingfrom{planned, plan_reviewed, implemented, impl_reviewed}and bumpupdatedbefore editing. This invalidates any older snapshot.
- 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 withsubject: "Phase N: [Phase Name]"andactiveForm: "E2E Phase N". Mark the current phasein_progressbefore starting; mark itcompletedwhen its success criteria pass.
- Find the starting point: scan
## Progress— the first- [ ]in document order is where you start. If aphase Nargument was passed, jump to the first- [ ]under### Phase N:.
Clipboard convention. Wherever this skill says copy `X` to the clipboard, pipe the exact stringXto the platform clipboard — trypbcopy(macOS), thenclip.exe(Windows/WSL), thenxclip -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:
- Browser-level fit — the phase's risk genuinely needs end-to-end coverage.
- Feature presence — the feature under test is already built and the app is runnable.
- 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
- SKILL.md in the repositoryCheckingskills/sdd-e2e/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooksconfigConfiguration 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
[](https://verified-skill.com/skills/norbertsuski/sdd-toolkit/sdd-e2e)