.claude/skills/design-preview/SKILL.md
Preview the planned design for a scenario before writing tests. Shows domain model changes, usecase patterns, and key design choices. Use before red-usecase to get user approval on the implementation approach. If the user rejects the design, offers to discuss inline or escalate to /architecture for a full ADR.
npx skillsauth add rakovi4/continue-example design-previewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/design-preview 10 "Filter by date range" # Story 10, named scenario
/design-preview 10 9 # Story 10, scenario 9
/design-preview # Detect from progress.md
Before writing any test code, present the planned implementation design to the user for approval. This catches design disagreements early — before red-usecase locks in the approach.
tests/01_API_Tests.mdProductSpecification/ExpectedLoad.txt — for scale assumptions (use real numbers, never guess)decisions/*-decision.md files in the story directory that may constrain the designred-acceptance is done) — understand expected API behaviorThink through: domain changes needed, ports needed, multiple viable approaches and recommendation.
Simple scenarios (validation, error handling, single CRUD): brief text summary (3-5 lines).
Complex scenarios (new domain concepts, filtering, multi-step workflows): text summary plus method signatures/pseudocode, domain model changes, pipeline/sequence diagrams, port changes.
Ask with AskUserQuestion: Approve / Approve and ADR / Needs changes / Reject — need /architecture.
design step as [x]. No files created.design step as [x], then write an ADR using .claude/templates/spec/adr-format.md to the story's decisions/ subfolder. Commit includes the ADR file./architecture: mark after ADR is decided./architecture)design checkbox as [x]. It must NOT modify, skip, or rewrite any other steps (usecase, adapter, green-acceptance). Skip recommendations go in the design output text only — /continue applies approved skips to progress.md after the design work unit completes, validating each skip against the "zero production files modified" rule in tdd-rules.md.testing
Run use-case module tests quickly. Use when user wants to run use-case tests or mentions /test-usecase command.
development
Generate BDD test specifications for story in 6 categories (API, UI, Load, Infrastructure, Security, Integration). Use when user wants to create test cases or mentions /test-spec command.
testing
Review tests to replace loose validation (contains, isNotNull, isNotEmpty) with strict validation (isEqualTo on parsed fields). Use when user wants to improve test assertions or mentions /test-review command.
development
Run frontend tests. Use when user wants to run frontend unit tests or mentions /test-frontend command.