prepare-design-spec
БесплатноБез исполняемых скриптовНе проверенTurn a raw UI request or confirmed product idea into a repository-aware design spec and a testable Definition of Done before opening Figma, Pencil, or another…
от genkovich★ 17 звёзд на GitHubОб этом скилле
Skill: prepare-design-spec (SDLC design-entry utility)
Create the contract that both a designer and an implementation agent can follow in a single design-spec.md: its specification half (BR-XX) says what must be designed and what existing product behavior must survive; its Definition of Done half says how the team will prove the result is complete.
This skill closes a specific SDLC gap:
raw idea → interview / PRD → prepare-design-spec → Figma or Pencil → implementation → verify-ui
It does not invent a redesign from taste. It traces every important statement to the user's words, an existing SDLC artifact, or evidence in the repository.
Owner
Product designer or frontend engineer, with the product owner confirming scope and the developer confirming implementation constraints.
When to use
- Before creating or revising a screen in Figma, Pencil, Sketch, or code.
- When a UI task exists but nobody can explain where its spec or acceptance boundary came from.
- When design-to-code work risks dropping existing behavior, async states, accessibility, or reuse.
- When several tools must solve the same design task and need one comparable contract.
- After
intervieworwrite-prdfor a larger feature; directly from a small raw request for a bounded UI iteration.
Do not use it to discover the entire product strategy: run interview first. Do not use it to
verify a finished screen in a browser: run verify-ui after implementation.
Inputs
<slug>in kebab-case, for examplememe-editor.- A raw request, issue,
idea-brief.md, orPRD.md. - The target repository, including the current UI, routes, styles, tests, and design assets.
- Optional design references supplied by the user. Never choose a new external visual direction without explicit evidence or approval.
Protocol
Name the raw request. Preserve the user's original request verbatim in the design spec. If the request is missing, ask for one to three plain-language sentences: who needs what change and why.
Choose the evidence source. Look for, in order:
docs/features/<slug>/PRD.md,docs/features/<slug>/idea-brief.md, a linked issue, and the user's raw request. Record which sources exist. A missing PRD is acceptable for a small UI iteration; missing intent is not.Inspect the real product before proposing design. Read the route entry point, styles or tokens, reused components, data calls, navigation targets, and relevant tests. Run only read-only discovery commands. Record exact paths and current behavior in
Current evidence.Reconstruct the current user flow. Write the start state, user actions, system responses, success outcome, and recovery paths. Do not reduce an interactive screen to a screenshot.
Ask only questions the repository cannot answer. Cover these seven decisions: user and job, trigger, target route/surface, required actions, states and failures, reuse and constraints, and proof of success. Batch only the unresolved questions and explain why each answer changes the design.
Derive the specification. Copy
templates/design-spec.mdtodocs/features/<slug>/design-spec.mdand fill the specification sections (1–15). UseN/A — <reason>instead of deleting a section. Requirements must describe observable product behavior, not an arbitrary implementation.Separate facts, decisions, and proposals. Mark every material item as one of:
Confirmed(user or SDLC artifact),Observed(repository evidence), orProposed(needs approval). Do not quietly turn a model preference into a requirement.Specify the design surface. Define target routes, desktop/mobile frames, content, component and token reuse, state specimens, responsive behavior, accessibility, and explicit non-goals. For a redesign, state which existing product semantics must remain unchanged.
Write the handoff contract. Map each design element to its likely code owner or existing component. If no reusable owner exists, say
new component candidate; do not invent a path.Derive the Definition of Done from risk. Fill the Definition of Done section (16) of the same
design-spec.md. Add at least one check for every specification section that could fail: structure, tokens/reuse, states, behavior, responsive layout, accessibility, deterministic gates, live browser evidence, and repository scope.Make every DoD item testable. Each row must name the expected result and its evidence: repository path, command, browser action, screenshot, design-node inspection, or API outcome. Replace vague words such as
nice,modern,correct, andpixel-perfectwith observable criteria.Trace the contract. Give each requirement an ID (
BR-01,BR-02, ...) and each DoD item an ID (DOD-01,DOD-02, ...). The DoD table must link back to one or more requirement IDs in the same fi
Установить prepare-design-spec в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл prepare-design-spec?
Turn a raw UI request or confirmed product idea into a repository-aware design spec and a testable Definition of Done before opening Figma, Pencil, or another design tool. Use when the user asks for a "design spec", "UI spec", "design spec for Figma or Pencil", "Definition of Done for a screen", "design-to-code handoff", or invokes "/sdlc:prepare-design-spec SLUG". Reads the real repository and existing SDLC artifacts, then writes one docs/features/SLUG/design-spec.md that contains the specification and an embedded, traced Definition of Done. Do not use for broad product discovery, architecture design, implementation, or browser verification.
Как установить скилл prepare-design-spec?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prepare-design-spec запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic