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…
от rakovi4★ 54 звезды на GitHub
Установить design-preview в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/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
- Read the story spec — full story document for business context, requirements, constraints, business rules
- Read the scenario from the category file named by its progress section:
01_API,06_Integration,05_Security,03_Load, or04_Infrastructure - Read
ProductSpecification/ExpectedLoad.md— for scale assumptions (use real numbers, never guess
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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 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.
Как установить скилл design-preview?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-preview запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…