Command Palette

Search for a command to run...

Back to skills
skill № 27354

design-preview

Preview the planned design for a scenario before writing tests. Shows domain model changes, usecase patterns, and key design choices. Use before red-usecase…

FreeNo executable scripts
rakovi4by rakovi4★ 54 GitHub stars

Install design-preview in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

/design-preview - Scenario Design Preview

Usage

/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

Purpose

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.

This is also the design gate for a scenario invented mid-cycle (see .claude/guidelines/workflow-detail.md "Net-New Scenarios Introduced Mid-Cycle").

Workflow

Whole-Story Stage 1 Mode

When invoked by .claude/templates/workflow/story-stages.md, design for the complete story scope while acceptance RED proceeds. The coordinator interviews the user about material cross-layer choices, reuses settled answers, and waits for required decisions; workers return open questions to the coordinator instead of assuming agreement. Freeze the agreed contracts and lane boundaries together. Reuse the concurrent modes' interface/skeleton and boundary checks, but their infer-without-questions instruction and ordinary preview's per-scenario approval/stop rules do not apply here. The coordinator owns existing progress checkboxes and commits; after the joined freeze, return for immediate implementation without a new invocation or approval round.

Concurrent Contract-Design Mode

When Stage 1 of parallel-backend-stages.md dispatches this skill beside acceptance RED, do not ask questions or wait for the acceptance lane. Infer the design from the scenario, existing architecture, and acceptance criterion; discover every adapter; create the use-case, port, and adapter skeletons; and commit only the declared files. Record a material choice in an ADR when needed. The coordinator presents the test and frozen interfaces together for user review after both lanes join.

The acceptance test is optional input in this mode: inspect its committed form when available, but never make either lane depend on the other's completion.

Before returning, apply parallel-backend-stages.md's Stage 2 lane-plan gate. Keep all collaborating classes and focused tests for one use case or adapter boundary in one complete lane; never split by production class, test class, guard subset, or work size. Thus a scenario owned by one adapter produces one RED agent for its complete focused test surface followed by one GREEN agent for its complete production fix. The frozen-surface and writable-path inventories are not test inventories. Name each lane's architectural test boundary and its public entries: usecase methods or the adapter's technology-facing entries/implemented ports. Internal requests, responses, DTOs, mappings, persistence models, security helpers, resolvers, and exception translators are collaborators covered through that entry, never standalone test targets. Freeze natural seams so genuinely independent lanes can start together, and do not mistake cross-lane post-join verification for an implementation dependency; focused composition inside one adapter stays in that adapter's RED surface. Return each lane's architectural unit, each writable path with its intended behavior delta, and separately named frozen symbol/signature/model surfaces. Never return a dependency between Stage 2 lanes: freeze the seam, coalesce the work, or fail the design gate. The coordinator records the independent-lane plan for approval and Stage 2 dispatch.

Concurrent Frontend Interface-Design Mode

When Stage 1 of parallel-frontend-stages.md dispatches this skill beside Selenium RED, do not ask questions or wait for the Selenium lane. Infer the design from the scenario, mockup, existing frontend, and acceptance criterion. Declare the shared component, logic, API-client, type, and test interfaces needed by Stage 2, then create only those interface surfaces within the coordinator's file manifest.

Apply shared coding detail and the frontend responsibility map before freezing interfaces. Name model, orchestration, transport, and presentation owners; keep pure model contracts separate from effectful controller contracts. Use the active binding for file conventions, and include each owner's tests in the lane plan.

Do not implement lane behavior, stage, commit, or edit progress.md. The Selenium test is optional input: inspect it when available, but neither lane depends on the other. Return the declared interfaces, changed paths, and checks to the coordinator, which freezes them after the Stage 1 join.

1. Gather Context

  1. Read the story spec — full story document for business context, requirements, constraints, business rules
  2. Read the scenario from the category file named by its progress section: 01_API, 06_Integration, 05_Security, 03_Load, or 04_Infrastructure
  3. Read ProductSpecification/ExpectedLoad.md — for scale assumptions (use real numbers, never guess
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the design-preview skill do?

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.

How do I install the design-preview skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the design-preview skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare design-preview with