agentleFS
ku5icku5ic/claude-kit/skills/code-from-design/SKILL.md

code-from-design

Skill2 starsChanged 14 days agoMITView on GitHub

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

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    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 …

    line 15
  2. Distinctive:

    Read the design per reference/design-connectors.md, the outline first, then the chosen nodes.

    line 28
  3. Distinctive:

    Read-only on the repo and in the design tool.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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.

BeforeRead
Step 2, reading the designreference/design-connectors.md
Step 4, mapping elements and valuesreference/mapping.md
Step 5, states and accessibilityreference/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, 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.
  5. States, breakpoints, and accessibility per 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, <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.
  • The last section lists candidate /plan steps, one per extend 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.