Command Palette

Search for a command to run...

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

design-to-dev

БесплатноБез исполняемых скриптовНе проверен

Orchestrate frontend implementation from design wireframes. Extracts tokens, creates Linear issues with full specs, drives phased parallel development in git…

sliamh11от sliamh11★ 50 звёзд на GitHub

Об этом скилле

/design-to-dev

Orchestrate frontend implementation from design wireframes. Takes wireframe screenshots, extracts design tokens, creates Linear issues with full specs, and drives phased parallel development in git worktrees.

Patterns: Mediator (wave orchestration — agents communicate via Linear comments and git PRs, not with each other), State Machine (design/state.json), Structural Isolation (visual judge never receives source code).

Arguments

  • /design-to-dev <path1> <path2> ... — wireframe screenshot paths
  • /design-to-dev resume — resume from paused state (reads design/state.json)

Phase 0 — Preflight

Step 1: Detect project

Verify cwd is a git repository. If not, fail with: "This skill must be run from within a git repository."

Step 2: Detect stack

Scan package.json for React, Tailwind CSS, and shadcn/ui.

If any are missing:

AskUserQuestion:
  question: "The project is missing required dependencies. How should we proceed?"
  options:
    - label: "Scaffold missing deps in Wave 0"
      description: "The foundation wave will install and configure the missing dependencies before any component work begins."
    - label: "Abort"
      description: "Set up the project manually first, then re-run /design-to-dev."

On abort: exit. On scaffold: note missing deps for Wave 0 issue creation.

Step 3: Accept wireframe files

If args contain file paths, use those. Otherwise:

AskUserQuestion:
  question: "Provide the paths to your wireframe/design screenshots."
  options:
    - label: "I'll paste paths now"
      description: "Enter file paths in the chat (space or newline separated)."
    - label: "They're already in design/wireframes/"
      description: "Skip — files are already in the project."

Copy wireframe files to design/wireframes/ in the project root. Create the directory if it doesn't exist. Verify each file exists and is a readable image.

Add design/ to .gitignore if not already present. Design assets are temporary build artifacts — they must be removed after implementation completes.

Step 4: Linear project setup

Discover available teams via mcp__linear__linear_getTeams.

AskUserQuestion:
  question: "Which Linear project should issues go into?"
  options:
    - label: "Create new project"
      description: "Create a new Linear project named after this repo."
    - label: "Use existing project"
      description: "Select from existing projects."

On "Create new": use mcp__linear__linear_createProject with the repo name. On "Use existing": list projects via mcp__linear__linear_getProjects and let the user choose.

Store the project ID and team ID for issue creation.


Phase 1 — Design Analysis

Step 5: Extract design tokens

For each wireframe screenshot in design/wireframes/:

Read the image via the Read tool (multimodal). Analyze it to extract:

  • Color palette: all hex values with semantic names (primary, secondary, muted, destructive, background, foreground, border, accent, sidebar colors)
  • Typography: font family, weights used, sizes for each text level (h1-h4, body, caption, label, table cell)
  • Spacing scale: padding, margin, and gap values observed
  • Border radius values (cards, buttons, inputs, avatars)
  • Shadow values
  • Component states visible (hover highlights, active states, disabled elements)

Write the structured output to design/tokens.json:

{
  "colors": { "primary": "#2563EB", "background": "#FFFFFF" },
  "typography": { "fontFamily": "Inter", "sizes": { "h1": "24px" } },
  "spacing": [4, 8, 12, 16, 24, 32, 48],
  "radius": { "sm": "4px", "md": "6px", "lg": "8px", "full": "9999px" },
  "shadows": { "sm": "0 1px 2px rgba(0,0,0,0.05)" }
}

Step 6: Generate Tailwind theme

From design/tokens.json, generate a Tailwind v4 @theme CSS block and write it to design/tokens.css. This file will be imported into the project's src/index.css during Wave 0.

Annotate each token with its wireframe source as a CSS comment.

Step 7: Component inventory

Analyze each wireframe to identify distinct UI regions. For each region, note:

  • Candidate component name (e.g., "Sidebar", "UserTable", "StatCard")
  • Which wireframe it appears in
  • Whether it's shared across wireframes (shared = Wave 0) or page-specific
  • Visible states (if data is shown, assume loading/empty/error states exist)
  • Candidate shadcn/ui primitives it maps to (Button, Card, Table, Input, etc.)

This inventory drives issue creation in Phase 2.


Phase 2 — Issue Breakdown

Step 8: Create Linear issues

For each component/page identified in step 7, create a Linear issue via mcp__linear__linear_createIssue. Use the team ID and project ID from step 4.

Every issue MUST contain all of the following (hard rule — no exceptions):

Title format: [Wave N] Component/Page Name

Description (markdown) must include these sections:

## Overview — What this component/page does and where it app

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

Установить design-to-dev в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл design-to-dev?

Orchestrate frontend implementation from design wireframes. Extracts tokens, creates Linear issues with full specs, drives phased parallel development in git worktrees, and validates output against the original design.

Как установить скилл design-to-dev?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл design-to-dev запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить design-to-dev с