Skill library

Agent skill Frontend

Design To Code

Connect design references and design tools to frontend implementation.

  • Design to code

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/Atharvsinh-codez/skills/tree/main/design-to-code --skill design-to-code --agent claude-code --yes

Check this file in your project.claude/skills/design-to-code/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/Atharvsinh-codez/skills/tree/main/design-to-code --skill design-to-code

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A user-owned dispatch-board mockup, authorized source assets and content, its intended viewport, and the existing frontend project.

View operation manual

What this skill helps with

  • Connect design references and design tools to frontend implementation.

Good for

  • Design handoff
Task
Implement an owned desktop dispatch mockup and resolve its phone layout
Requirements
A user-owned dispatch-board mockup, authorized source assets and content, its intended viewport, and the existing frontend project.
Deliverable
A responsive board in the existing stack, with a fidelity contract, asset decisions, and rendered comparison.
Skill name
design-to-code

Start from the actual design decision

An underspecified request

Match this desktop picture exactly on every screen.

One screenshot establishes one viewport and state. It gives no direct evidence of phone layout and hidden interactions.

A result you can check

  1. Set ownership, scope, viewport and asset availability.
  2. Preserve task behavior and recompose the phone layout.
  3. Share the discrepancies and the state checks.

Design To Code operation manual

A responsive board in the existing stack, with a fidelity contract, asset decisions, and rendered comparison.

A user-owned dispatch-board mockup, authorized source assets and content, its intended viewport, and the existing frontend project.

  1. Choose the mode and capture reference evidence

    Set ownership, scope, viewport and asset availability.

    Prompt · Step 1
    Use Atharvsinh-codez’s installed design-to-code Skill and read its SKILL.md first.
    
    Use reference reconstruction on the [owned dispatch board capture] for the operational surface. Inspect the image itself and the current repo. Take inventory of geometry, hierarchy, text and permitted assets. Record observed details separately from the phone layout you infer or any asset you substitute. Agree which states and interactions are in scope.
  2. Implement the authorized composition

    Preserve task behavior and recompose the phone layout.

    Prompt · Step 2
    Use Atharvsinh-codez’s installed design-to-code Skill and read its SKILL.md first.
    
    Build the board using the existing project primitives. Follow the reference for the observed viewport and content. Define a reasoned phone stacking order and use only the supplied approved assets or clearly documented substitutions. Keep labels, selection and empty states accessible and use semantic controls.
  3. Compare rendered results and correct visible differences

    Share the discrepancies and the state checks.

    • The comparison uses the same visible state and viewport, labels phone assumptions and separates observed, inferred and substituted details.
    Prompt · Step 3
    Use Atharvsinh-codez’s installed design-to-code Skill and read its SKILL.md first.
    
    Run the project’s actual preview and validation commands. Capture the same viewport, theme and state as the supplied frame, compare alongside it and fix the highest-impact geometry and typography deviations. Render the phone layout and exercise selection and empty states. Report residual differences and the exact checks performed.

Find the relevant source guidance

Read the cited section in your installed Skill.

Implement an owned desktop dispatch mockup and resolve its phone layoutSKILL.md
Command or reference
Dispatch before acting and Run mandatory rendered verification
Examples
The comparison uses the same visible state and viewport, labels phone assumptions and separates observed, inferred and substituted details.

Troubleshooting

Can one desktop image establish mobile fidelity?

It establishes the desktop sample. A matching mobile reference establishes mobile fidelity, while an inferred mobile layout can be verified for usability.