Skip to content
Back to skills

Code From Design

ASecurity

Map a design to the repo's components and tokens, with what's missing, states the design omits, and accessibility gaps, for /plan

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsgobashnodegit

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill code-from-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code From Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code From Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-code-from-design/badge)](https://www.skillsdirectory.com/skills/ku5ic-code-from-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-from-design
description: Map a design to the repo's components and tokens, with what's missing, states the design omits, and accessibility gaps, for /plan
argument-hint: "<design URL>"
allowed-tools:
  - Bash(git log *)
  - Bash(kit contrast *)
  - Bash(kit detect-stack)
  - Bash(kit scratch-dir *)
---

# /code-from-design

Read a design through the design tool's connector and map it to what the repo already has: the components and tokens that cover it, what's missing, the states it leaves out, and its accessibility gaps. The report feeds `/plan`. Read-only, writes no code.

Loading this skill isn't enough. Before the step a row names, read its file.

| Before                              | Read                                                             |
| ----------------------------------- | ---------------------------------------------------------------- |
| Step 2, reading the design          | [reference/design-connectors.md](reference/design-connectors.md) |
| Step 4, mapping elements and values | [reference/mapping.md](reference/mapping.md)                     |
| Step 5, states and accessibility    | [reference/states-and-gaps.md](reference/states-and-gaps.md)     |

## Procedure

1. Inputs. No URL, ask. The service comes from the URL's domain and its connector by `skills/kit-rules/reference/tooling.md` section 4. None, ask for an export or a screenshot and work from that, saying so.
2. Read the design per [reference/design-connectors.md](reference/design-connectors.md), the outline first, then the chosen nodes. Raw responses go to the report's sibling folder.
3. Inventory the repo, its components, stories, token sources (the audit-tokens skill's `reference/token-files.md`), and design-to-code mapping files, with the stack's pattern skill loaded.
4. Map each element and value per [reference/mapping.md](reference/mapping.md).
5. States, breakpoints, and accessibility per [reference/states-and-gaps.md](reference/states-and-gaps.md). Contrast from `kit contrast` on resolved values, criteria by the wcag-audit skill.

## Report

Load the report-format skill and use its format, written to the path `kit scratch-dir from-design <design-slug>` prints, with these narrowings:

- The TL;DR's first bullet is the coverage in place of the health word: `<covered> covered, <extend> to extend, <compose> to compose, <new> new, <omitted> states omitted`.
- A Mapping table with the design element, its result, the repo component or token, and the files it would touch.
- A Missing tokens table with the design value and the nearest existing token.
- A Questions for the designer section, one line per omitted state and one line for the unknowns from `reference/states-and-gaps.md`, with no severity. Contrast, target size, label, and icon-name gaps stay findings.
- The last section lists candidate `/plan` steps, one per `extend`, `compose`, or `new` item.

## Reply

The report path and the coverage line.

## Stop

Read-only on the repo and in the design tool. No code, no comments on the design.

Arguments: `$ARGUMENTS`

Files in this skill

  • SKILL.md2.8 KB
  • reference/design-connectors.md1.1 KB
  • reference/mapping.md639 B
  • reference/states-and-gaps.md822 B
  • sources.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.