Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 interview or write-prd for 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 example meme-editor.
  • A raw request, issue, idea-brief.md, or PRD.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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. Derive the specification. Copy templates/design-spec.md to docs/features/<slug>/design-spec.md and fill the specification sections (1–15). Use N/A — <reason> instead of deleting a section. Requirements must describe observable product behavior, not an arbitrary implementation.

  7. Separate facts, decisions, and proposals. Mark every material item as one of: Confirmed (user or SDLC artifact), Observed (repository evidence), or Proposed (needs approval). Do not quietly turn a model preference into a requirement.

  8. 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.

  9. 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.

  10. 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.

  11. 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, and pixel-perfect with observable criteria.

  12. 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

Полный SKILL.md на GitHub

Установить prepare-design-spec в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamltemplates/design-spec.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить prepare-design-spec с