Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Przegląd i audyt

proof-design

/proof-design

Zakłada lub sprawdza system projektowy projektu: tworzy go tam, gdzie go brak, podłącza istniejący do harnessu i zgłasza rozbieżności między tokenami a kodem, sam rozpoznając właściwy wariant.

Licencja
MIT
Ostatnia zmiana repozytorium
15.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 15.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Zakłada lub sprawdza system projektowy projektu: tworzy go tam, gdzie go brak, podłącza istniejący do harnessu i zgłasza rozbieżności między tokenami a kodem, sam rozpoznając właściwy wariant.

Oryginalny opis (EN)

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

Jak działa

  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
Sekcje z nagłówków SKILL.md, w oryginale · 193 linii, 1 658 słów
Podgląd SKILL.md
---
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.

Wersje

RepozytoriumWynikLicencja
Ta strona · jsamitt/proof-claude-plugin100MIT
jeremylongshore/tons-of-skills-marketplace90MIT

Migawka bazy z 13.11.2026 · wersja paczki 49726444d66f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95design-from-sites
    Tworzy system projektowy oparty na stronach referencyjnych, z tokenami do prześledzenia, akceptacją wizualną i poprawkami przed kodem.
  • 90design-systems:implement
    Stosuje plik DESIGN.md do istniejących arkuszy stylów, wykrywając framework CSS i aktualizując pliki stylów tokenami.
  • 100design-system
    Utrzymuje UI projektu zgodne z systemem DESIGN.md: przy budowie lub przeglądzie komponentów, CSS, kolorów i typografii sam odtwarza DESIGN.md z istniejącego UI i prowadzi nowe UI zgodnie z tokenami.
  • 86create-design-system
    Tworzy system projektowy lub UI kit na prośbę użytkownika.
  • 82design-system
    Generuje, wyciąga i sprawdza tokeny projektowe: zapisuje DESIGN.md, eksportuje zmienne CSS lub motyw Tailwind.
  • 10003-foundations
    Zakłada system projektowy i tokeny z zera lub z kodu oraz przenosi zmiany tokenów do nowych wersji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.