Design screenshot spec
Skill ytvee-dev/webdev-agent-kit/skills/design-screenshot-spec
A cross-platform frontend kit for Codex, Claude Code, Cursor, OpenCode, etc. It helps AI coding agents work predictably and safely with existing frontend projects.
npx -y skills add ytvee-dev/webdev-agent-kit --skill design-screenshot-specAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Turn user-supplied screenshots, copied inspect values, exports, assets, or design notes into a strict frontend Design Implementation Spec. Live design links alone are insufficient.
SKILL.md
7.0 KB, as published. Nobody here has run it
Design Screenshot Spec
Purpose
Convert user-supplied Figma screenshots, copied visual inspect panels, exported
assets, and design notes into a strict Design Implementation Spec for a
frontend implementer.
When To Use
- The user sends screenshots of Figma frames, components, screens, or inspect panels.
- The user asks to analyze a visual design before implementation.
- The next step is frontend layout work and the implementer needs a structured spec.
When Not To Use
- The user asks for live Figma inspection, canvas editing, file creation, Figma whiteboard workflows, design-system generation, or Code Connect.
- The user supplies only a Figma URL, file key, or node id without screenshots or copied design material.
- The user already provides a complete
Design Implementation Specand asks to implement it. Usefrontend-layout-implementer.
Required Context
- Read
AGENTS.md. - Confirm the classified task is
design-specor design intake for later frontend implementation. - Read
common/approved-patterns.md. - Read
common/anti-patterns.md. - Read
project/design-reference-profile.mdwhen present. - Read
references/spec-extraction-checklist.md.
Tool Contract
- Do not use Figma MCP.
- Use Visual Reference MCP when available for user-supplied image references.
- Use Design Spec MCP when available to store or read structured specs.
- If those MCP servers are unavailable, work from attached images, local image files, copied inspect text, and user-provided notes.
- Do not open live Figma links.
Workflow
- Inventory all supplied artifacts: screenshots, inspect panels, exported assets, dimensions, fonts, colors, states, notes, and target screens.
- If only a Figma URL, file key, node id, Figma whiteboard reference is present, stop and ask for screenshots, exported assets, copied inspect values, or a written brief.
- Group screenshots by screen, component, state, and viewport. For each screenshot, record the visible frame or viewport width, height, state, screen or component ownership, and confidence.
- Treat each screenshot or design-frame size as a reference coordinate system, not as a production container cap. Record whether containment is explicitly visible and capture desktop edge anchors plus expected behavior beyond the reference viewport.
- Extract visible layout, hierarchy, typography, color, spacing, sizing, radius, shadow, assets, states, and responsive behavior.
- For typography, prefer copied inspect values or selected-text properties for
font-family,font-size,font-weight,line-height, color, alignment, max width, and wrapping. When properties are unavailable, estimate from the screenshot and mark each estimate asscreenshot-inferred. - For spacing, separate outside margins, section rhythm, inter-component gaps, container padding, and internal control padding instead of merging them into one generic gap value.
- Mark each value as
source-provided,screenshot-inferred, orunknown. - Resolve conflicts by preferring copied inspect values and exported values over screenshot estimates.
- Ask the user about disputed or low-confidence values when the answer changes layout, responsive behavior, visual hierarchy, typography, or implementation acceptance.
- Produce the
Design Implementation Specand stop unless the user also asks for implementation. - Route to
frontend-design-directorbefore implementation when the supplied material needs redesign, polish, distinctive visual direction, anti-template critique, interface-copy stance, motion stance, or visual acceptance criteria.
Output Contract
Final response: return only facts that affect the user's understanding, confidence, or next action. Omit empty fields and workflow narration.
Return a Design Implementation Spec with these sections:
Source InventoryScreen And Component ScopeLayout StructureTypographyColor And EffectsSpacing And SizingAssetsStates And InteractionsResponsive BehaviorAccessibility NotesImplementation Acceptance CriteriaConfidence And Unknowns
Validation Gates
- Every concrete value must cite its source confidence.
Source Inventorymust record each screenshot's viewport or frame size when visible or provided.Spacing And Sizingmust distinguish measured or estimated margins, section rhythm, inter-component gaps, container padding, and internal control padding with confidence labels.Typographymust distinguish inspect-provided text properties from inferred font family, size, weight, line height, color, alignment, and wrapping.Responsive Behaviormust include viewport-aware notes based on supplied screenshot widths, desktop edge anchors, and behavior beyond each reference viewport, and must mark inferred intermediate behavior explicitly.- Screenshot or design-frame dimensions must not become runtime
max-width, fixed container dimensions, or equivalent caps without source evidence of a centered container and an explicit responsive rationale. - Missing states, assets, breakpoints, and token names must be explicit.
- Disputed values that materially affect implementation must be asked back to the user or listed as unresolved questions.
- The spec must be usable by
frontend-layout-implementerwithout guessing the target layout intent. - When visual judgment is needed, the handoff must name
frontend-design-directorbefore implementation. - The response must not mention using Figma MCP or live Figma inspection.
Trigger Evals
Should trigger:
- "Here are Figma screenshots with dimensions and colors; write the layout spec."
- "Read these frame screenshots and inspect panels before coding."
- "Create a frontend implementation spec from these design screenshots."
Should not trigger:
- "Implement this existing Design Implementation Spec."
- "Open this Figma node and inspect it."
- "Create a new Figma whiteboard."
Reference Map
references/spec-extraction-checklist.mdskills/frontend-design-director/SKILL.md