ワンクリックで
ui-screenshot-to-storybook-product
Turn screenshots or Figma exports into token-backed Storybook components and composed product screens.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Turn screenshots or Figma exports into token-backed Storybook components and composed product screens.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create, apply, audit, and understand Variables in Figma using Google Material Design's three-tier token inheritance (Ref → Sys → Comp). Use when: creating Variables for components or screens, applying existing Variables to one node, selected nodes, a component set, or the current page, auditing token naming and structure for compliance, or having AI read existing Variables to reverse-engineer design components. Triggers: create Variables, apply Variables, Figma variables, M3 token, design token, token inheritance, token audit, audit variables, design component from variables, batch apply variables, bind variables to component, three-tier token.
Create or update PRD-led Storybook product prototypes under src/pages/prototypes with docs, typed route and transition metadata, deterministic fixtures, intuitive UI Flow review data, draggable Storybook UI Flow viewers with animated dashed arrow connections, Figma-exportable flow stories, and prototype Storybook stories. Use when building a new product prototype, turning a product idea into PRD plus UI Flow, standardizing prototype docs, updating an existing prototype flow, or preparing a Storybook prototype flow for JSON import into Figma with storybook-to-figma.
Build or update token-backed Storybook foundations, shared UI components, and stories from an extracted design-system package. Use after design-system-extractor, or when Codex must read design-system Markdown and token files, automatically trace original design sources such as Figma URLs/nodes, UI images, rendered routes, and frontend folders, infer component dependency order so core primitives are built before composed components, map component specs into a product repo, create or update Storybook docs, plan component batches, structure stories and DOM for reliable Figma export, and verify implementation with the bundled Figma export addon without bypassing tokens.
Create or update PRD-led Storybook product prototypes under src/pages/prototypes with docs, typed route and transition metadata, deterministic fixtures, UI Flow review data, and prototype Storybook stories. Use when building a new product prototype, turning a product idea into PRD plus UI Flow, standardizing prototype docs, or updating an existing prototype flow.
Create PRD-led product prototypes in Storybook with docs, deterministic data, typed UI Flow route and transition metadata, and prototype stories. Use when turning a product idea into PRD, UI Flow, Data Spec, Acceptance Criteria, and a clickable Storybook prototype; when scaffolding a new prototype folder; or when validating prototype docs and metadata across React Storybook projects.
Create PRD-led product prototypes in Storybook with docs, deterministic data, typed UI Flow route and transition metadata, and prototype stories. Use when turning a product idea into PRD, UI Flow, Data Spec, Acceptance Criteria, and a clickable Storybook prototype; when scaffolding a new prototype folder; or when validating prototype docs and metadata across React Storybook projects.
| name | ui-screenshot-to-storybook-product |
| description | Turn screenshots or Figma exports into token-backed Storybook components and composed product screens. |
Use this workflow when the workspace is driven by screenshots in reference/, or by Figma when .env.local is configured.
reference/.env.localproduct/start-here/ACCURACY_CONTRACT.mdBefore implementation, classify the source mode:
Figma-first: highest-fidelity path because the workflow can use structured layout, variables, components, and selected frame context.Multi-reference screenshot: good visual reconstruction when repeated patterns and breakpoints are visible, but component boundaries and hidden states still need confirmation.Single-image: first-pass approximation only. Record observed facts, inferred decisions, missing context, and open questions before coding.Do not present a single image as a complete product specification. If only one image is available, ask for or record the target viewport, product purpose, key states, real data assumptions, responsive behavior, brand assets, and acceptance threshold.
If .env.local contains FIGMA_FILE_URL and FIGMA_NODE_ID but has neither FIGMA_PAT nor FIGMA_AUTH_MODE=connector, stop and ask the user to set FIGMA_PAT in .env.local, or set FIGMA_AUTH_MODE=connector when the tool already has authenticated Figma MCP/connector access, before continuing with Figma-first automation.
If .env.local contains the Figma URL and node plus either FIGMA_PAT or FIGMA_AUTH_MODE=connector:
reference/ screenshots only as secondary visual validation.Before code, produce:
start-here/ACCURACY_CONTRACT.mdobserved, what is inferred, and what is an intentional exceptionIf references disagree, identify the dominant pattern and document the exceptions instead of averaging everything together.
Use this exact response structure for Phase A:
| Dimension | Observed pattern | Confidence | Notes |
|---|---|---|---|
| Color proportion | high / medium / low | ||
| Spacing feel | high / medium / low | ||
| Corner size | high / medium / low | ||
| Typography weight | high / medium / low | ||
| Hierarchy contrast | high / medium / low |
| Principle | Source evidence | Interpretation | Design rule | Token impact |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Add rows 6-7 only when justified by real repeated patterns.
| Element | Recommendation | Why it fits the principles | Token direction |
|---|---|---|---|
| Primary color | # | --sys-color-* | |
| Secondary color | # | --sys-color-* | |
| Background/surface color | # | --sys-color-* | |
| Typography family | --sys-font-* | ||
| Typography weight strategy | --sys-font-weight-* | ||
| Corner strategy | --sys-radius-* | ||
| Base spacing grid | --sys-space-* | ||
| Layout density | spacing and layout tokens |
| Item | Type | Detail | Reason |
|---|---|---|---|
| 1 | observed / inferred / exception | ||
| 2 | observed / inferred / exception | ||
| 3 | observed / inferred / exception |
Do not write code yet.
After the design-system analysis, produce:
| Block | Purpose | Visual cues | Candidate component owner | Token roles |
Do not write code yet.
For each block:
Output:
| Component | Responsibility | Screens | Decision |
Create or update shared UI before screen files:
argTypes plus expanded controlsdesign/foundations/*.md as the written source for principles, specs, and token usageAssemble screens from documented exports only.
Run the compare workflow before calling the screen done.
The parity loop must:
argTypes.