Skip to content
Skills Library
Design & UX · Review & audit

proof-design

/proof-design

Use when setting up or checking a project's design system — not part of every issue. Establishes a design system where a project has none, wire an existing one into the harness so the other skills obey it, or report drift between the tokens and the code — detects which of the three applies rather than being told

Licence
MIT
Last repository change
15.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 15.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when setting up or checking a project's design system — not part of every issue. Establishes a design system where a project has none, wire an existing one into the harness so the other skills obey it, or report drift between the tokens and the code — detects which of the three applies rather than being told

Original author description

Use when setting up or checking a project's design system — not part of every issue. Establishes a design system where a project has none, wire an existing one into the harness so the other skills obey it, or report drift between the tokens and the code — detects which of the three applies rather than being told

How it works

  1. The three states — detect, do not ask
  2. 1. Establish (state: none)
  3. 2. Wire (states: none, unwired)
  4. 3. Report coverage and drift (every state)
  5. Platform shapes
  6. Rules
  7. Hand back
Original SKILL.md headings · 193 lines, 1,658 words
SKILL.md preview
---
name: proof-design
description: Use when setting up or checking a project's design system — not part of every issue. Establishes a design system where a project has none, wire an existing one into the harness so the other skills obey it, or report drift between the tokens and the code — detects which of the three applies rather than being told
model: sonnet
---

# Design

Makes a project's design system **real**: extracted if it does not exist, wired so the
harness can see it, and checked against the code that is supposed to use it.

```
/proof-design            # detect the state and act
/proof-design --drift    # skip straight to the drift report
```

Read `_partials/config.md` and `_partials/voice.md` first.

## The three states — detect, do not ask

Never ask the user which mode applies. Work it out, say which you found and why, then
proceed. Getting this wrong in the other direction is expensive: running an extraction
on a project that already has tokens writes a second, competing set, and two token files
is worse than none.

| State | How to tell | What to do |
|---|---|---|
| **None** | No token module; style values sit inline across the code | Extract → wire → report coverage |
| **Unwired** | Tokens exist; `design.tokens` is null or does not resolve | Wire → report coverage |
| **Wired** | `design.tokens` resolves and the app imports it | Report drift |

A project can be partly wired — tokens exist, the config points at them, but half the
code still hardcodes values. That is the **wired** state with poor coverage, not the
unwired one. Report the number; do not re-extract.

## 1. Establish (state: none)

### Inventory first, decide second

Sweep the code for every style value actually in use, with counts and locations:
colors, font families and weights, font sizes, spacing, radii, and anything else the
platform styles with. Count **occurrences**, not just distinct values — a colour used
40 times and one used once need different treatment, and the counts are what turn this
from opinion into arithmetic.

### Cluster the near-duplicates

This is the part that earns the skill. Values that differ imperceptibly are almost never
deliberate — they accumulate. Group them and propose one survivor per cluster, with the
most-used value as the default choice.

Be honest about the distinction between **a cluster and a distinction**: two greys three
points apart are a cluster; a warning amber and a brand gold that look similar may be
carrying different meanings. When you cannot tell from the code, say so and ask, rather
than collapsing a meaning the user cares about.

### Name by role, never by appearance

`--amber-500` tells you nothing about when to use it; `warning` does. A token named for
its colour has to be renamed the moment the colour changes, which defeats the point.
Where one value serves several roles, that is usually a sign it should be several tokens
sharing a value today.

### Present before writing — always

Show the proposed set: each token, its value, what it replaces, and the occurrence count
it covers. Show the clusters and which value won. Show anything you could not classify —
the leftovers are informative, and quietly dropping them hides the mess rather than
fixing it.

**Write nothing until the user approves.** Then write the token module in the form the
platform actually consumes (see below), and say plainly that no code has been migrated
yet — writing the file changes nothing on screen.

## 2. Wire (states: none, unwired)

A design system the harness cannot find is invisible: mockups stay generic, builds stay
unaware, and the design reviewer has nothing to cite. Wiring is what turns a file into a
constraint.

Set the `design` block in `.claude/harness.json`:

| Key | Meaning |
|---|---|
| `tokens` | Path to the token module the app imports |
| `reference` | URL of the browsable design system, if one exists. A **Claude Design System** link is the most useful kind: `/proof-spec` can then design small changes on a Claude Design canvas with the project's real tokens (and components, for web projects). See *A Claude Design System for the project* below |
| `platform` | What consumes the tokens — decides the file's form and the rules that apply |
| `rules` | House rules in plain prose, one per line — the things that break silently here |

Then **verify, do not assume**:

- Every path in the block resolves. A pointer to a moved file is worse than no pointer:
  it fails silently and every skill downstream proceeds as if it read something.
- The token module is actually **imported by application code**, not merely present. A
  token file nobody imports is decoration.
- The `reference` URL, if set, is reachable.

Report each check. A wiring step that reports success without verifying is the failure
this section exists to prevent.

### A Claude Design System for the project

If the user designs in Claude Design, or wants `/proof-spec` to design small changes
itself, offer to build a **Claude Design System** from the token module and set
`reference` to it. Designs attached to it use the project's exact values instead of a look
Claude invents. The token module stays the source of truth; the system is a copy, and
goes stale if it is edited on its own.

**The route that works everywhere: the Artifact tool's Design System type.** No extra
skill is needed. `/design-sync` exists in some setups, but it is for syncing a component
library into an existing system; don't send the user looking for it.

1. Find the type with `quickstart` (intent `other`) or `list` (`scope: "types"`), create one
   system from it with only a `title`, then **read its references** (`from-code.md`,
   `format.md`, `cover.md`) before writing anything. The type's own instructions govern the
   file shapes; follow them.
2. **Tokens from the module, exactly.** Every family is a list of `{name, value, usage}`;
   names are unique across families. A hosted font (Google) needs no font files, only
   `type.families`, but say that previews may render slightly differently from the app's
   bundled font.
3. **Usage notes come from the code, not from intent.** For every colour, grep where the
   screens actually use it and write the note from that. Notes written from a token's
   intended role are wrong surprisingly often, and designers trust them.
4. **Measure contrast for every pairing a note recommends**, not only the ones it warns
   about, and put the ratios in the notes. The "safe" pairing is the one most likely to be
   wrong. Flag a failing pair in the source rather than hiding it.
5. **Report how much of the code each scale covers** (type sizes, radii, spacing) before
   calling it complete. Scales picked from the most common values can miss a step that is
   just as common.
6. **README = a brand book:** audience and tone, visual foundations, the rules that break
   silently (`design.rules`), and a *Not synced* section saying what was left out.
7. **Platform limit:** a system's component previews are **web**. For React Native, Flutter
   or native apps, include tokens and rules only, and say so under *Not synced*.
   Components would be hand-made look-alikes.
8. **Validate locally before publishing.** The generated `tokens.css` only exists once the
   page is opened, so it can't be read back to check. Check `tokens.json` against the
   format's rules (name pattern, no duplicates, allowed colour syntax) yourself.
9. Publish the files, index last, then add a line to the project docs: *refresh the system
   whenever the token module changes*.

## 3. Report coverage and drift (every state)

The number that matters is not how many tokens exist. It is **how much of the code uses
them**:

```
Tokens defined:        14
Raw values in code:    34 distinct, 80 occurrences
Covered by a token:    12 occurrences  (15%)
Unmigrated:            68 occurrences across 11 files
```

Adopting a design system is not finished when the file exists — it is finished when the
code uses it, and that gap is where most attempts quietly die. Report the real figure
even when it is embarrassing, and never describe a freshly written token file as done.

For a wired project, also report **drift**: values in the code that no token covers.
Drift is how a design system becomes a lie — the file says twelve colours, the app ships
thirty. Group drift by file so it can be cleared a screen at a time, and list the worst
offenders first.

Offer migration as a **separate, explicit step** the user chooses — never fold it into
this run. Migrating swaps values across many files and belongs in its own reviewable
change, ideally as a regular issue through `/proof-spec`.

## Platform shapes

The token file must be in the form the platform consumes, or it is a document rather
than a system. Read `design.platform`; if it is not set, infer it from the project and
record what you inferred.

- **Web / CSS** — custom properties on `:root`. Components read `var(--token)`.
- **React Native / Expo** — a **JavaScript or TypeScript module** exporting plain
  objects. CSS custom properties do not exist here, so a `.css` file is a reference
  document at best; `StyleSheet` needs values it can import.
- **Tailwind** — the theme block in the Tailwind config; everything else derives.
- **Native (Swift/Kotlin)** — the platform's own resource or constant files.

If a project has a design reference in one form (a published design system, a CSS file)
and ships in another, say so plainly: those values are **hand-copied**, and hand copies
drift. Name which one is authoritative and make the other derive from it.

## Rules

`design.rules` holds what breaks silently in this project — the things no general
ruleset knows. Write each as a concrete condition and consequence, not a principle:

- *"Wrap hardcoded pixel values in the scaling helper so layouts survive small phones and tablets"*
- *"Never put emoji inside a `<Text>` styled with a custom font — the glyph silently
  fails to render"*

These are what the design reviewer cites. A rule too vague to cite is not a rule.

## Hand back

The state you found, what changed, the coverage figure, and the honest next step — which
is usually migration, and usually its own issue.

Versions

RepositoryScoreLicence
This page · jsamitt/proof-claude-plugin100MIT
jeremylongshore/tons-of-skills-marketplace90MIT

Database snapshot: 13.11.2026 · package version 49726444d66f (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95design-from-sites
    Use when a user wants a design system grounded in reference pages, traceable design tokens, visual approval and focused revisions before building HTML and CSS.
  • 90design-systems:implement
    Apply a DESIGN.md design system to the project's existing CSS/style files. Triggers on: "implement the design system", "apply design system", "set up design tokens", "apply DESIGN.md", or /design-systems:implement. Reads DESIGN.md, detects the project's CSS framework, and…
  • 100design-system
    Keep a project's UI/UX on its DESIGN.md design system. Use when building, editing, or reviewing any UI — components, CSS, styling, colors, typography, layout, themes. Auto-interrogates existing UI into a DESIGN.md and guides new UI to stay on-token.
  • 86create-design-system
    Skill to use if user asks you to create a design system or UI kit
  • 82design-system
    Generate, extract or audit the project's design tokens: writes or lints .desk/DESIGN.md and exports CSS custom properties or a Tailwind theme. Use when a project needs its tokens made, pulled out of existing code, or checked for drift.
  • 10003-foundations
    Lay a project's design foundations, its system and tokens, from nothing or from its code, or carry a token change to its new versions. Use when the user wants to set up, extract, or change the design system or its tokens. Not for the brand, components, screens, or journeys.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.