Design sync

From squadcodercom/squadcoder · View interactive version

Design sync is an AI agent skill from the GitHub repository squadcodercom/squadcoder. Turn a design reference into matching, production code and keep code in sync with the design. Ingest a screenshot, Figma export, design-tokens file, or a design URL; extract colors/spacing/type/radii; map them onto the project's existing design-system tokens (reuse, don't duplicate); generate or upd

How to use this skill

Skill file

Design Sync — design reference → matching code

Convert a design into code that matches the project's existing system, and keep the two in sync.

The goal is parity and consistency: never hard-code a value you could pull from an existing token.

This skill is portable — it relies only on a design reference + the repo, so it works the same in

Claude Code, Codex, and opencode/SquadCoder. It does not require any hosted design connector.

Step 0 — identify the design reference

Accept any of:

If nothing is provided, ask for one — do not invent a design.

Step 1 — read the project's design system FIRST (reuse > duplicate)

Before writing anything, inventory what already exists so you extend it instead of forking it:

any tokens.json, or a design-system package.

design-system / israeli-ui-design-system skills for token architecture and Hebrew typography.

Step 2 — extract design intent, then map to tokens

  1. Pull the raw values from the reference: palette, type scale, spacing rhythm, radii, shadows,

breakpoints, states (hover/active/disabled/focus).

  1. Map each raw value to the nearest existing token. Only mint a new token when there is a real

gap, and add it at the right layer (primitive → semantic → component), never inline.

  1. Record the mapping (design value → token) so the sync is auditable and repeatable.

Step 3 — generate or update components

result works in both LTR and RTL — never physical left/right for layout. Mirror directional icons.

Step 4 — verify visual parity (don't claim "pixel-perfect" blind)

compare against the reference at the same width. Check both an LTR and an RTL render for Hebrew.

Step 5 — report the sync

Output: the token mapping (Step 2), files created/changed, any new tokens added (and why), the parity

check result (with the screenshot), and any intentional deviations.

Keeping in sync over time

the tokens/components whose mapped values changed — don't rewrite untouched code.

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.