sc:design-sync

A workflow for turning a design reference—such as a screenshot, Figma export, design-token file, or reachable design URL—into matching production code.

In plain words
What is it for?
Use it to inspect colors, spacing, typography, and corner shapes, then update components or styles so the code matches the design.
Why use it?
It helps keep the implementation visually consistent with the reference and reuse the project's existing design tokens instead of creating duplicate styles.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/squadcodercom/squadcoder/design-sync
Any agent
npx skills add squadcodercom/squadcoder --skill design-sync
Clone the repo
git clone --depth 1 https://github.com/squadcodercom/squadcoder

Made for: Claude Code, Codex.

Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,054 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00134 $0.01054
Opus 5 $0.00067 $0.00527
Sonnet 5 $0.00027 $0.00211
Haiku 4.5 $0.00013 $0.00105

Measured 2d ago against content hash c69e9a188753, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sc:design-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.squadcoder/skills/design-sync/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  • Screenshot / image — read it directly (vision); measure spacing/sizes against a known element.
  • Figma export — JSON/design-tokens (W3C tokens), SVG, or a CSS/Tailwind dump.
  • Design-tokens filetokens.json, theme.css, Style Dictionary, etc.
  • A design URL — if reachable, fetch and read the rendered styles; otherwise ask for an export. 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:

  • Token sources: tailwind.config.*, CSS custom properties (--color-*, --space-*), theme.*, any tokens.json, or a design-system package.
  • Existing components that resemble the target (buttons, cards, inputs) — match their API and styling.
  • For SquadCoder/this repo: prefer the shared @squadcoder/ui primitives and the bundled 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).
  2. 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.
  3. Record the mapping (design value → token) so the sync is auditable and repeatable.

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 69 lines · 134 tokens per session scan A c69e9a188753

Subscribe to this mod's changes

sc:design-sync is a skill published in the GitHub repository squadcodercom/squadcoder (11 stars, last pushed 2mo ago), licensed MIT. It adds 134 tokens to every session and 1,054 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

write-zot-themes

Help the user create, install, or package zot themes, including theme-only extensions.

patriceckhart/zot · 23 tokens

python-testing

Python testing best practices using pytest including fixtures, parametrization, mocking, coverage analysis, async testing, and test organization. Use when writing or improving Python tests.

mturac/everything-openai-codex · 35 tokens

database-migrations

Database migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORMs (Prisma, Drizzle, Django, TypeORM, golang-migrate). Use when planning or implementing database schema changes.

mturac/everything-openai-codex · 61 tokens

docker-patterns

Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration. Use when setting up containerized development environments or reviewing Docker configurations.

mturac/everything-openai-codex · 40 tokens

python-patterns

Python-specific design patterns and best practices including protocols, dataclasses, context managers, decorators, async/await, type hints, and package organization. Use when working with Python code to apply Pythonic patterns.

mturac/everything-openai-codex · 45 tokens

st-full-workflow

Use when the user asks to run the complete end-to-end Strikethroo workflow for a work order in one shot in this repository — triggers include full workflow, end-to-end, plan and execute, do everything, run the whole strikethroo workflow. Do not use when the user wants only one stage (create a plan, generate tasks, or…

e0ipso/strikethroo · 90 tokens