@jonandev/longbeard 0.11.2 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/AGENTS.md +4 -5
  2. package/CHANGELOG.md +72 -0
  3. package/README.md +64 -43
  4. package/beard.json +124 -28
  5. package/bin/long-beard.js +171 -36
  6. package/package.json +1 -1
  7. package/skills/design/SKILL.md +51 -126
  8. package/skills/design-brief/SKILL.md +146 -0
  9. package/skills/design-brief/references/graphic.md +59 -0
  10. package/skills/design-check/SKILL.md +27 -11
  11. package/skills/design-check/references/design-rules.md +21 -7
  12. package/skills/design-check/scripts/capture.mjs +121 -37
  13. package/skills/design-check/scripts/contrast.mjs +23 -9
  14. package/skills/design-check/scripts/rules.mjs +613 -0
  15. package/skills/design-check/scripts/screen-contrast.mjs +428 -0
  16. package/skills/design-check/scripts/tokens.mjs +346 -0
  17. package/skills/design-content/SKILL.md +118 -0
  18. package/skills/design-content/scripts/contact-sheet.mjs +259 -0
  19. package/skills/design-content/scripts/pictures.mjs +197 -0
  20. package/skills/design-direction/SKILL.md +115 -200
  21. package/skills/design-direction/references/controls.md +58 -0
  22. package/skills/{design → design-direction}/references/design-rules.md +21 -7
  23. package/skills/design-direction/references/five-second.md +47 -0
  24. package/skills/design-direction/references/full-build.md +19 -0
  25. package/skills/design-direction/references/graphic.md +35 -0
  26. package/skills/design-direction/references/grid.md +114 -0
  27. package/skills/design-direction/references/library.md +75 -0
  28. package/skills/design-direction/references/screen-template.html +233 -0
  29. package/skills/design-direction/references/subject.md +33 -0
  30. package/skills/design-direction/scripts/capture.mjs +121 -37
  31. package/skills/design-direction/scripts/contact-sheet.mjs +18 -7
  32. package/skills/design-direction/scripts/fonts.mjs +276 -0
  33. package/skills/design-direction/scripts/layout-diff.mjs +118 -0
  34. package/skills/design-direction/scripts/measure.mjs +1728 -0
  35. package/skills/design-direction/scripts/moodboard.mjs +123 -32
  36. package/skills/design-direction/scripts/picture-cast.mjs +270 -0
  37. package/skills/design-direction/scripts/pictures.mjs +197 -0
  38. package/skills/design-direction/scripts/screen-contrast.mjs +428 -0
  39. package/skills/design-direction/scripts/sheet.mjs +67 -0
  40. package/skills/design-direction/scripts/subject-colours.mjs +410 -0
  41. package/skills/design-families/SKILL.md +138 -0
  42. package/skills/design-families/scripts/contact-sheet.mjs +259 -0
  43. package/skills/design-families/scripts/families.mjs +606 -0
  44. package/skills/design-families/scripts/measure.mjs +1728 -0
  45. package/skills/design-families/scripts/moodboard.mjs +467 -0
  46. package/skills/design-families/scripts/tag.mjs +289 -0
  47. package/skills/design-figma/SKILL.md +69 -0
  48. package/skills/design-figma/references/graphic.md +26 -0
  49. package/skills/design-identity/SKILL.md +134 -0
  50. package/skills/design-identity/references/graphic.md +8 -0
  51. package/skills/design-identity/references/identity-board.html +140 -0
  52. package/skills/{design → design-identity}/scripts/capture.mjs +121 -37
  53. package/skills/design-identity/scripts/colours.mjs +213 -0
  54. package/skills/design-identity/scripts/contrast.mjs +41 -0
  55. package/skills/design-identity/scripts/fonts.mjs +276 -0
  56. package/skills/design-identity/scripts/measure.mjs +1728 -0
  57. package/skills/design-identity/scripts/sheet.mjs +67 -0
  58. package/skills/design-identity/scripts/subject-colours.mjs +410 -0
  59. package/skills/design-moodboard/SKILL.md +184 -0
  60. package/skills/design-moodboard/references/graphic.md +25 -0
  61. package/skills/{design-direction → design-moodboard}/references/sources.md +21 -11
  62. package/skills/design-moodboard/scripts/capture.mjs +893 -0
  63. package/skills/design-moodboard/scripts/contact-sheet.mjs +259 -0
  64. package/skills/design-moodboard/scripts/crops.mjs +256 -0
  65. package/skills/design-moodboard/scripts/dribbble-cards.mjs +418 -0
  66. package/skills/design-moodboard/scripts/families.mjs +606 -0
  67. package/skills/design-moodboard/scripts/group.mjs +221 -0
  68. package/skills/design-moodboard/scripts/measure.mjs +1728 -0
  69. package/skills/design-moodboard/scripts/moodboard.mjs +467 -0
  70. package/skills/{design-direction → design-moodboard}/scripts/picker.mjs +121 -20
  71. package/skills/design-moodboard/scripts/pictures.mjs +197 -0
  72. package/skills/design-moodboard/scripts/tag.mjs +289 -0
  73. package/skills/design-prototype/SKILL.md +149 -0
  74. package/skills/design-prototype/references/design-md-template.md +82 -0
  75. package/skills/design-prototype/references/design-rules.md +203 -0
  76. package/skills/design-prototype/references/five-second.md +47 -0
  77. package/skills/design-prototype/references/graphic.md +27 -0
  78. package/skills/design-prototype/scripts/capture.mjs +893 -0
  79. package/skills/design-prototype/scripts/contrast.mjs +41 -0
  80. package/skills/design-prototype/scripts/links.mjs +308 -0
  81. package/skills/design-prototype/scripts/pictures.mjs +197 -0
  82. package/skills/design-prototype/scripts/rules.mjs +613 -0
  83. package/skills/design-prototype/scripts/screen-contrast.mjs +428 -0
  84. package/skills/design-prototype/scripts/sheet.mjs +67 -0
  85. package/skills/design-prototype/scripts/tokens.mjs +346 -0
  86. package/skills/design-wordmark/SKILL.md +65 -0
  87. package/skills/design-wordmark/scripts/capture.mjs +893 -0
  88. package/skills/design-wordmark/scripts/sheet.mjs +67 -0
  89. package/skills/framework-skills/SKILL.md +71 -0
  90. package/skills/idea/SKILL.md +13 -7
  91. package/skills/idea/references/graphic.md +64 -0
  92. package/skills/design/references/design-md-template.md +0 -58
  93. package/skills/design/scripts/contrast.mjs +0 -27
  94. package/skills/design-direction/scripts/dribbble-cards.mjs +0 -356
@@ -1,153 +1,78 @@
1
1
  ---
2
2
  name: design
3
3
  description: >
4
- Turn a direction into the product's look: prototype the brief's key screens
5
- in plain HTML, let them pick and iterate, then on approval write DESIGN.md
6
- in one go, lay the look out as a bento board in Figma, and build the
7
- screens from it. Colour, type, spacing and
8
- copy are chosen here, on rendered screens. Runs when
9
- design-exploration/<slug>/direction.md exists and there is no approved
10
- DESIGN.md, or for a feature that needs screens. Figma is required.
4
+ The way into the design-* skills. Reads what the project already has and
5
+ says which design skill to run next, and why, in a few lines. It suggests;
6
+ they choose, and any design-* skill can be called directly instead. Runs when
7
+ docs/brief.md exists, the brief is a site, an app or a graphic, and there is no approved DESIGN.md,
8
+ or when they ask what to do next on the look.
11
9
  ---
12
10
 
13
11
  # Design
14
12
 
15
- Four things come out, in order: a prototype they approved, `DESIGN.md` (the official look, committed), a bento board of that look in Figma, and the screens in Figma marked **Ready**. Figma is the truth for screens. `DESIGN.md` is the written summary of the rules behind them.
13
+ The design work is a family of small skills. Each does one job, reads what it needs from files, writes one doc, and ends by naming what could come next. None depends on the chat before it, so each can start in a fresh session. This skill only reads the project and suggests.
16
14
 
17
- Read [design-rules.md](references/design-rules.md) before the first prototype. It is the checklist for every screen here and in `design-check`.
15
+ ## Where it ends
18
16
 
19
- ## Gate
17
+ This is a designer's process, a few short steps with their choice at each, and never one prompt to a finished page. It ends in work they can deliver: `DESIGN.md`, and a Figma file of their own (variables, styles, the identity board, components, every key screen with its states) that they keep changing by hand or with their agent. Say so in one line the first time you suggest a step in a project with no design docs. Never again after that.
20
18
 
21
- Look at the repo. Do not ask what is there.
19
+ ## The family
22
20
 
23
- 1. No `docs/brief.md` → `idea` first. Stop.
24
- 2. The brief says no UI → nothing to design. Stop.
25
- 3. No `design-exploration/identity*/direction.md` and no `DESIGN.md` → `design-direction` first. Stop.
26
- 4. `DESIGN.md` exists and an identity `direction.md` is newer than it → a rebrand: **First pass**. On approval its `DESIGN.md` replaces the old one.
27
- 5. `DESIGN.md` exists → **Feature loop**.
28
- 6. Otherwise → **First pass**.
21
+ Each skill says at its top what it **Needs**, what it **Uses if there**, and what it **Writes**. Read those lines, not this table, to see what a skill is missing before you suggest it.
29
22
 
30
- The first pass reads the newest `design-exploration/identity*/direction.md` (`identity/`, `identity-2/`), never a one-piece direction.
23
+ | Skill | Job |
24
+ |---|---|
25
+ | `design-brief` | The questions a designer asks before looking: what the first screen must do, feel and never-feel, yes and no, who to stand apart from, what is fixed |
26
+ | `design-moodboard` | Find references, or read their board and fill its gaps |
27
+ | `design-families` | Optional. Sort a big board or search into looks; they take one or two |
28
+ | `design-direction` | Three or four pictures of the subject, then eight first screens, each one of their references rebuilt with the product's content and changed by a move or two borrowed from the others; nothing that is not on the board. They choose; a light touch-up pass |
29
+ | `design-identity` | The type pairing and colours of the chosen screen, refined on it from close, rendered options; ends in the identity board |
30
+ | `design-prototype` | The key screens and their states in that direction; approved → `DESIGN.md` |
31
+ | `design-figma` | Tokens, the identity board, components and Ready frames |
32
+ | `design-content` | Optional, any time. What each screen says and shows: copy, and the full picture list |
33
+ | `design-wordmark` | Optional, after the identity. A mark made from the chosen type, judged in the chosen screen |
34
+ | `design-check` | Checks a screen against the rules and `DESIGN.md` |
31
35
 
32
- No Figma connection → say Figma is required for UI projects, and stop before the Figma step. The prototype and `DESIGN.md` can still be done.
36
+ ## Where things go
33
37
 
34
- ## First pass
38
+ - **`docs/design/`** is committed and kept up to date: the design docs above. They describe the style ("a condensed grotesk at a fifth of the width, cropped at the right edge"), never a source: no brand, site, studio, designer or person, no link, and no path into `.longbeard/`. A doc that needs a reference to make sense is written again until it does not.
39
+ - **`.longbeard/design/`** is the agents' working folder, gitignored: captured references, Figma crops, pickers, contact sheets, profiles, direction screens, sketches, prototypes. Nobody needs to open it; when there is something to look at, the skill gives the path. It may not survive (a cloud session, a clean checkout): the docs carry the meaning, and a skill that needs a reference again captures it again or says it cannot.
35
40
 
36
- ### 1. Ask first
41
+ On the first write of either, add `.longbeard/design/` to `.gitignore` if it is missing, and say why in one line. A project with an older `design-exploration/` folder keeps it: nothing writes there any more.
37
42
 
38
- The direction settles the idea, not the values. Colour, type and the rest of the look are chosen here, so they get a say before anything is drawn. Read the brief and `direction.md`, then send one message and wait. Always ask, however the run was set up. Only they can say "go".
43
+ ## What to suggest
39
44
 
40
- ```
41
- Before I prototype, a few choices. Skip any with "go" and I'll bring options to react to.
45
+ Look at the repo. Do not ask what is there. Read the design brief's `pace` first: with `quick`, skip what the steps below mark optional, and say so in the suggestion. Then say, in up to four lines, where the project stands and what to run next, with the reason. Name one next step, and the optional ones only when they earn it.
42
46
 
43
- 1. Colour: light, dark or both? Any colours you already have, want, or refuse?
44
- 2. Type: what should it feel like to read? Any faces you love or refuse?
45
- 3. Anything else you already see: shapes, density, imagery, how it moves?
46
- ```
47
+ 1. No `docs/brief.md` → `idea` first. The brief says no UI → there is nothing to design; say so.
48
+ 2. No `docs/design/design-brief.md` → `design-brief`. Every other skill needs it.
49
+ 3. No moodboard (no `design-moodboard.md`, and they have not named a board or a folder) → `design-moodboard`. The direction is built from it, so it is not skipped.
50
+ 4. **The board's size decides families.**
51
+ - Over about 60 references, or a search that came back that big, unsorted → offer `design-families` once: "Your board has 240 references. Sort it into families before choosing?" (Not at `pace: quick`.)
52
+ - About 8 to 60 → no sorting. A board this size is already chosen.
53
+ - Under about 8, or a key screen nothing on the board shows → `design-moodboard` for the gap only. At `pace: quick`, three or more references are enough: go on.
54
+ 5. No `design-direction.md` → `design-direction`.
55
+ 6. No `design-identity.md` → `design-identity`.
56
+ 7. A direction and an identity, and no `DESIGN.md` → `design-prototype`.
57
+ 8. `DESIGN.md` and no Ready frames → `design-figma`.
58
+ 9. `DESIGN.md` exists → a feature: `design-prototype` (feature loop). A rebrand starts again at `design-direction`, and `DESIGN.md` stays until a new one is approved.
47
59
 
48
- Propose from the direction, so they react rather than start from nothing: for each question, offer two or three concrete options that fit it.
60
+ A graphic (the brief's surface) takes the same steps and ends at its exported Figma frame, so never offer Architecture; its other pieces are `design-prototype`.
49
61
 
50
- ### 2. Prototype the key screens
62
+ **Offered once, never pushed** (and not at `pace: quick`):
63
+ - `design-content`, when they ask about copy or imagery, or the key screens need more pictures than the three or four `design-direction` found.
64
+ - `design-wordmark`, once the identity is chosen and the name is only set in the display face. Offered once; a no stands. No mark is a fine answer: the name in the right face is often the brand, and not every screen needs to show it.
51
65
 
52
- Read the brief's key screens (2–4) and `direction.md`. Prototype only those, with their main states. Other screens are composed later in Figma from the components.
66
+ Example:
53
67
 
54
- Open the shots `direction.md` lists under References, the anchor or leads first, and keep them open while you prototype. Text carries a direction's structure. The pictures carry its finish: the type's character, the spacing's rhythm, the texture. Take the move, never the design: they rank below design-rules, and nothing in the prototype is lifted from one reference whole.
68
+ > You have a brief, a design brief and a moodboard of 34 references. Next: **design-direction**, eight first screens built from them. Your board is small enough to skip sorting.
55
69
 
56
- A reference that moves is felt again, not remembered. A still and a caption cannot carry timing. Before prototyping the part it inspires, play its recorded frames, and open its live link again: record it with `capture.mjs <url> --out design-exploration/<slug>/refs/<name>-replay --frames 12`, with `--scroll` or `--click` for what moves on scroll or on a click. Note what moves, in what order, how fast, and how it eases. Then build that kind of motion into the variants in CSS, with the same feel and none of its content, and say in chat which reference it came from. A link that no longer loads: work from the frames, and say so.
70
+ Then stop. They type the skill, or say yes and you load it.
57
71
 
58
- Load Matt's `prototype`, UI branch, and tell it:
59
-
60
- - **No app.** Sub-shape B, in `design-exploration/<slug>/prototype/`: one `index.html` per key screen, plain HTML and CSS, no build step, no router, no NODE_ENV gate. It runs by opening the file.
61
- - **2–3 variants per screen** behind `?variant=`, structurally different as its rules say. Build their answers in. Where they left a choice open, variants differ on it: this is where colour and type get chosen.
62
- - **Hide the switcher when the URL has `capture`** (`?variant=B&capture`), so screenshots show only the design.
63
- - **Real content, not polish skipped.** Real copy in the voice from `direction.md`, real or properly chosen imagery (local files in `prototype/img/`), the longest real names. No lorem, no grey boxes.
64
- - **No throwaway branch.** The folder is gitignored. The winner goes into `DESIGN.md`, not into git.
65
-
66
- The default state is not enough. Each key screen also gets the empty, loading and error states a person can reach, as frames in the same file (`?variant=B&state=empty`). A product with more than one theme shows each one, so they approve every theme, not only the first.
67
-
68
- ### 3. Self-check, then show
69
-
70
- Screenshot each variant at desktop and mobile:
71
-
72
- ```
73
- node <skill>/scripts/capture.mjs "file://$PWD/design-exploration/<slug>/prototype/today.html?variant=B&capture" --out <scratch>/today-b.png
74
- node <skill>/scripts/capture.mjs "file://$PWD/design-exploration/<slug>/prototype/today.html?variant=B&capture" --out <scratch>/today-b-mobile.png --width 390
75
- ```
76
-
77
- Shoot every state of every variant, in every theme, not only the default. Check them against the rules: Idea first, then hard, then soft. That includes the hard rules about controls: every input has a visible label, focus and pressed exist, and what looks tappable has a stated result. A hard finding after approval reopens an approved screen. Fix what fails before they see it. Then give the paths and the `?variant=` keys, name the colours and faces each variant uses, and ask which leads, what to take from the others, and whether the colour and type are right. Expect "the header from B with the list from C": that is the design. Iterate on the prototype until they say it is right.
78
-
79
- A pattern can bring a feature the brief does not have. Name it when you show it. If they keep it, that is a product change: `idea`, Change, before `DESIGN.md`.
80
-
81
- An `ownable` from `direction.md` is unconfirmed until they have seen it rendered. Confirm it or replace it here.
82
-
83
- A gap no reference covers (a screen, a control) → `design-direction` one-piece mode with its own slug, then back here.
84
-
85
- ### 4. Approve: write `DESIGN.md` in one go
86
-
87
- Only on their yes to a rendered prototype. Write the whole file from [design-md-template.md](references/design-md-template.md): idea, voice, colour, type, spacing, components, decisions. Write it once, from what was approved. Do not draft it during iteration.
88
-
89
- - **Contrast first.** Every text and background pair, and every control colour against its ground, goes through `scripts/contrast.mjs` before it is written: 4.5:1 for body text, 3:1 for large text and non-text marks. A failing pair is fixed in the prototype, shown again, then written. Never write a failing pair.
90
- ```
91
- node <skill>/scripts/contrast.mjs "#1b1b1f on #fafaf7" "#c2410c on #fafaf7:mark"
92
- ```
93
- - **Themes.** A product with more than one theme lists each colour token once, with a value per theme, and every pair passes the contrast check in each theme.
94
- - **Ideas, not sources.** References live only in `design-exploration/` on this machine, and only for this step. Nothing that outlives it names one: not `DESIGN.md`, not Figma (layers, descriptions, comments), not code or its comments, not a commit, PR, spec or ticket. No product, site, studio, designer or link from the exploration, and no `design-exploration/` path. Turn each into the idea: "a quiet reading page", not whose. Which reference a move came from is said in chat only.
95
- - **Write down what makes it this design.** Whatever someone would need to rebuild it without the prototype open goes under Components, with values, not adjectives.
96
- - **Tokens are code names.** Name each colour, type and spacing token as it will be named in code (`color/ink`, `space/md`). Figma variables use the same names, with code syntax `var(--color-ink)`.
97
- - **Soft rules overridden on purpose** go under Decisions with the reason. Hard rules cannot be overridden.
98
-
99
- ### 5. Figma
100
-
101
- Load `figma-use`, `figma-generate-library` and `figma-generate-design`, and follow them. This skill adds only what they do not decide.
102
-
103
- - **One file per product.** A new one if the project has none (`figma-create-new-file`). Put its URL in `DESIGN.md`.
104
- - **Our tokens, not a kit.** Variables and styles come from `DESIGN.md`. New files may come with community kits attached (Material, Apple, Simple Design System). Their discovery steps tell you to reuse them. Do not: search the file only (no `includeLibraryKeys`), and build what is missing from `DESIGN.md`.
105
- - **Build, do not capture.** Compose screens from the tokens and components. Do not run `generate_figma_design` on the prototype. It is a throwaway with a switcher. For pictures, create the image frames, then `upload_assets` the prototype's own files with those `nodeIds`.
106
- - **Themes are modes.** One colour collection with a mode per theme. Each screen is built once and switches with the mode, never a colour set or a frame per theme. If Figma refuses the modes, stop and ask. Never fall back to separate sets.
107
- - **Pages:** Cover (the board), Foundations, Components; one `Screens — <flow>` page per flow from the brief; `Explorations` for anything kept for later, by date.
108
- - **Order:** tokens and styles from `DESIGN.md` → the board → only the components the key screens need → the key screens → their states. The library grows with features. It is not built ahead.
109
- - **States:** every screen has a frame for each of empty, loading and error that a person can reach, next to the default. A state nobody can reach gets no frame: add the screen, the state and the reason under Decisions in `DESIGN.md`.
110
- - **Names:** `<screen> — <state>`. When a screen's layout differs by device, `<screen> · <device> — <state>`. The state can describe itself. Theme is never in the name.
111
- - **Components have their states too:** focus and pressed for every control, before a screen uses it.
112
- - **One text style per weight used.** Changing a font on styled text detaches it. A weight `DESIGN.md` does not list is a new style, and a new row there.
113
- - **Trust the file, not the picture.** Take a screenshot only after the edit has returned, and read text back from the nodes. A cloned variant loses its text property links: wire them again. Swapping an instance can keep old overrides: replace it with a fresh one.
114
- - **Be faithful to the approved prototype.** It is what they said yes to, and Figma is that design, not a new reading of it. Tokens carry the values, not the whole design, so work with the approved variant open and match it. If something cannot be built the same way, say so and ask. Never simplify it silently.
115
- - **Check each screen** with `design-check` frame mode before showing it, passing the prototype shot. Fix its hard findings.
116
- - **Ready:** when they approve a frame, add `— Ready` to its name. Tickets link Ready frames, and build is checked against them.
117
-
118
- ### The board
119
-
120
- Before any component, lay the whole look out on one frame, `Board`, on the Cover page: a bento of tiles in different sizes that shows the identity at a glance, the way a studio presents a brand. It is where they see colour, type, imagery and voice working together, and where a weak look shows before a screen is built on it.
121
-
122
- - **What it holds**, each its own tile: the product's name set in the display face; the type, each text style named and shown in use; the colours, each token as a swatch with its name, and every theme; two or three of the prototype's real pictures, cropped hard; one line in the voice, set large; a crop of an approved key screen in a device frame; the `ownable`; and, if the brief has one, a number or fact about the product set very large. Add a tile for anything else that makes this look this look (a mark, a shape, an illustration). Leave out a tile that would be empty.
123
- - **Composed, not listed.** One tile leads and is the largest; the rest vary in size and in which colour they sit on. Tiles share one gap and one radius from `DESIGN.md`. Text sits on its tile's colour at the contrast `DESIGN.md` checked.
124
- - **Real, and bound.** Every fill, text and radius is bound to a variable or style: the board is the tokens in use, and changes when they change. Copy comes from the brief and the prototype, pictures from `prototype/img/`. No placeholder, no reference's name or picture.
125
- - **Their yes.** Screenshot it, read the text back from the nodes, and show it. Ask whether this is the product. A no is a change to `DESIGN.md` and the prototype first, then the board again. It is not marked Ready: it is not a screen, and nothing is built from it but the feeling.
126
-
127
- If a Figma decision changes a rule (a new token, a component variant, a spacing step), update `DESIGN.md` in the same turn and say what changed.
128
-
129
- ### 6. Clean up
130
-
131
- Offer to delete `design-exploration/<slug>/`. `DESIGN.md` and Figma now carry the result. On no, leave it. It is gitignored either way.
132
-
133
- Then offer the next stage: architecture. They start it by typing `/grill-with-docs`. When it runs, seed `GLOSSARY.md` from the brief and the copy in the Figma screens, and ask before renaming a term the screens show.
134
-
135
- ## Feature loop
136
-
137
- A feature with screens, once `DESIGN.md` exists.
138
-
139
- - **Only existing parts?** Compose the screens in Figma from the library, with their states, and skip the prototype and `design-direction`.
140
- - **New parts?** Prototype only the new parts, on the real screens around them, in `design-exploration/<feature>/prototype/`, then as above.
141
- - New page `Screens — <feature>`. Reuse components. New ones are added to Components.
142
- - `DESIGN.md` gets entries (a token, a component, a decision with date and reason). It is never rewritten in a feature.
143
- - **Identity changes need their own yes.** A new colour role, a typeface, a change to the idea or the voice: ask for each one separately, after showing it rendered. Two such changes are approved one at a time, never bundled. An approved one goes on the board too.
144
- - A rebrand is not a feature: that is `design-direction` again, then a first pass.
145
- - **A screen with no Ready frame.** A project that joined with its screens already in Figma has frames nobody marked. When a feature touches one, run `design-check` frame mode on it, add what it lacks, and mark it Ready on their yes. A screen with a copy per theme becomes one frame on modes. Only the screens the feature touches, never the whole file.
72
+ **A `DESIGN.md` they bring** has no token tables of ours (rows like `color/ink`), and may carry its tokens at the top in the published DESIGN.md format. Until `design-prototype` writes ours, steps 7 to 9 treat it as no `DESIGN.md`: say so once, and offer it as the identity's starting point, every value in it their choice, kept unless they change it.
146
73
 
147
74
  ## Do not
148
75
 
149
- - Write `DESIGN.md` before they approve a rendered prototype, or rewrite it during a feature. Only a rebrand's first pass replaces it.
150
- - Name a reference, its link, its author or a `design-exploration/` path in anything that outlives the exploration: `DESIGN.md`, Figma, code, comments, commits, PRs, specs, tickets.
151
- - Use a community kit's components or variables in Figma.
152
- - Build the whole component library before the screens need it.
153
- - Mark a frame Ready that lacks a state a person can reach, or that has open hard findings.
76
+ - Run a skill for them without their yes, or run two at once.
77
+ - Suggest `design-families` for a board they already curated to a few dozen.
78
+ - Write any doc yourself. Each belongs to its skill.
@@ -0,0 +1,146 @@
1
+ ---
2
+ name: design-brief
3
+ description: >
4
+ The questions a designer asks a client before looking for anything: what the
5
+ first screen must make someone think and do, the personality, how it should
6
+ feel and never feel, who it must stand apart from, and what is already fixed.
7
+ One message of questions with suggested answers from the product brief, one
8
+ read-back, and the answers written to docs/design/design-brief.md. Runs after
9
+ docs/brief.md exists and the brief is a site, an app or a graphic, before any other design-* skill,
10
+ or when the feel of the product changes.
11
+ ---
12
+
13
+ # Design brief
14
+
15
+ **Needs:** `docs/brief.md`
16
+ **Writes:** `docs/design/design-brief.md`
17
+
18
+ One doc comes out, `docs/design/design-brief.md`, committed. Every other design skill reads it, so nobody is asked the same question twice. It records what they want the look to do, in words. It chooses no look: no layout, colour, typeface or style name.
19
+
20
+ ## Gate
21
+
22
+ 1. No `docs/brief.md` → `idea` first. Stop.
23
+ 2. The brief says no UI → nothing to design. Stop.
24
+ 3. A design brief exists → this is a change. Read it, ask only about what changes, and add a line under **Changes** with the date and why.
25
+
26
+ A graphic (the brief's surface): read [graphic.md](references/graphic.md) first.
27
+
28
+ ## The round: one message, then wait
29
+
30
+ Read `docs/brief.md` first. It gives the subject, the people, the surface, the key screens, the position and the identity nouns. Never ask for those again. Ask only what the product brief cannot answer.
31
+
32
+ Every question carries a suggested answer in brackets, drawn from the brief, so "yes" settles it. A suggestion is the agent's best reading of the brief, never a look.
33
+
34
+ ```
35
+ Before any design, a few questions. Each has my suggestion in brackets: "yes" takes it, "go" takes all of them.
36
+
37
+ 1. First screen, in five seconds: what should someone think, and what should they do? And is it mostly seen on a phone or a desktop? [<from the brief's remembered-for, first flow and surface>]
38
+ 2. Three words it should be, and one word it must never be. [<three and one, from the brief's people and position>]
39
+ 3. Personality, 1 to 5. Lean on each one you can; a 3 says nothing:
40
+ quiet 1 · · · 5 loud
41
+ type-led 1 · · · 5 picture-led
42
+ plain 1 · · · 5 rich
43
+ warm 1 · · · 5 cool
44
+ serious 1 · · · 5 playful
45
+ classic 1 · · · 5 new
46
+ airy 1 · · · 5 dense
47
+ [<a suggestion for each, leaning off 3 wherever the brief gives a reason>]
48
+ 4. How should it feel, and never feel? Anything you tried before and didn't like, and why?
49
+ 5. Sites, apps, brands, books or places you love for this? (They steer the moodboard; their names stay out of the docs.)
50
+ 6. Who should it stand apart from? And how far from what that kind of product usually looks like: 1 familiar to its users · · · 5 nothing like the category? [<the alternatives the brief names, and a number>]
51
+ 7. What is fixed? A new brand, or a refresh (and what stays)? Colours, typefaces or a logo you own or refuse; light, dark or both; your own pictures, or none yet; languages; accessibility, AA or AAA. [<what the brief or the repo shows; AA unless the people need more>]
52
+ 8. Motion: pick what fits, or "none" (state changes only):
53
+ how much, one: quiet (fades only) · present (moves that guide the eye) · leading (motion is part of the identity)
54
+ driven by, any: scroll (reveals, pinned sections) · cursor (things that follow or react) · time (on load, on change)
55
+ character, with where it applies: physics (inertia, springs, weight) · smooth (eased, calm) · snappy (fast, crisp); e.g. physics on scroll, snappy on buttons
56
+ moments, any: page transitions · type that splits and assembles · pictures that move on scroll
57
+ A site whose motion you love? Paste the link, if any.
58
+ [<a pick for each, or none, from the personality scales>]
59
+ 9. Do you have a moodboard already? A Figma link, a folder, screenshots or links.
60
+ 10. How much design does this need? Full: the look is part of what the product is. Quick: an internal tool or a first version, done well but fast, with fewer stops. [<quick for an internal or admin tool, full otherwise>]
61
+
62
+ Anyone else who has to say yes?
63
+ ```
64
+
65
+ Never search, open references or propose a look in this turn.
66
+
67
+ ## Read back, once
68
+
69
+ Two lines, then their yes or a correction. The second is the voice: how the product talks, drafted from the brief and their words, with one sample line in it. They have not been asked about the voice, so this is where they correct it; every headline and every piece of copy is written in it.
70
+
71
+ > Leads with <takeaway>, first seen on <phone | desktop>; <pace>; <three words>, never <word>; loud 2, picture-led 4, cool 2, playful 1, new 4, dense 2; never <…>; apart from <kind of product>, 4 of 5 from the category; fixed: <…>, AA; motion present, driven by scroll, smooth character; a moodboard in Figma.
72
+ > Voice: <how it talks>, e.g. "<one sample line>". Right?
73
+
74
+ Give each number as the scale's right end (loud 2 is fairly quiet), so the read-back says what the doc will. A correction is one more line, not a second round. Several 3s left after the read-back: ask once which way they lean on those, in the same line. Answers that contradict the product brief are `grilling`, not this skill.
75
+
76
+ ## Write `docs/design/design-brief.md`
77
+
78
+ ```markdown
79
+ # Design brief: <product>
80
+
81
+ - takeaway: <what someone thinks in five seconds, and the one thing they do>
82
+ - first seen on: <phone | desktop>
83
+ - pace: <full | quick>
84
+ - words: <three words it is> · never <one word>
85
+ - personality: loud <n> · picture-led <n> · rich <n> · cool <n> · playful <n> · new <n> · dense <n> (each 1 to 5, 5 the named end: loud 2 is fairly quiet; one left out was not answered)
86
+ - feel: <their words>
87
+ - never: <their words, and what they tried and did not like, as looks, not names>
88
+ - apart from: <the kind of product it must not be mistaken for, described> · distance <n> (1 familiar to its users, 5 nothing like the category)
89
+ - fixed: <new brand, or a refresh and what stays; owned or refused colours and faces as values; light/dark/both; pictures: theirs or none yet; languages>
90
+ - accessibility: <AA or AAA>
91
+ - motion: <none | quiet, present or leading> · driven by <scroll, cursor, time: any of them> · character <physics, smooth or snappy, each with where it applies> · moments <page transitions, split type, pictures that move on scroll> · loves: <what moves in the site they pasted, and why, in their words> (how much, or none, is always there; a pick they left out is left out of the rest of the line)
92
+ - voice: <how it talks, as confirmed in the read-back, and one sample line>
93
+ - decides: <who else says yes, or "only them">
94
+
95
+ ## Changes
96
+ - <date>: <what changed and why>
97
+ ```
98
+
99
+ **Motion is theirs.** The suggestion follows the personality scales, never the agent's opinion of good motion. Nothing is searched for here: a pasted link goes to `brief-loves.md` with what they like in its motion and why, and a request to "show me some" is noted there too, for `design-moodboard`.
100
+
101
+ **Names stay out.** The sites and brands they love, and the competitors they named, go to `.longbeard/design/brief-loves.md` for `design-moodboard` to search from. Before that first write, add `.longbeard/design/` to `.gitignore` if it is missing, and say why in one line: the names must never be committed. The committed doc describes what those things do ("long editorial pages, one picture at a time"), never who. Owned colours and faces are theirs, so their values are written.
102
+
103
+ ## Who reads what
104
+
105
+ So nobody asks again, and so each answer changes something:
106
+
107
+ | Line | Read by |
108
+ |---|---|
109
+ | takeaway | `design-direction` (what the screens carry, headlines, the five-second check), `design-prototype` (the five-second check), `design-content` |
110
+ | first seen on | `design-direction` (the size the screens are built at) |
111
+ | pace | `design` and every design skill: quick drops the optional stops |
112
+ | words, personality, feel, never | `design-moodboard` (queries and picks), `design-families` (the sliders), `design-direction` (the against-the-brief column), `design-identity` (options and their notes) |
113
+ | apart from, distance | `design-moodboard` (what to search and keep out), `design-direction` (the eye's check), `design-check` (could it be mistaken for one) |
114
+ | fixed | the direction's library (`theirs` entries, dropped grounds), `design-identity` |
115
+ | accessibility | every contrast check (`contrast.mjs --level`, `screen-contrast.mjs --min`), `DESIGN.md`, `design-check` |
116
+ | motion | `design-prototype` (builds those picks and nothing beyond them), `DESIGN.md` (its Motion section), `design-check` (checks against them), `design-moodboard` (the pasted link, and examples only if asked) |
117
+ | dense | `design-prototype`, `DESIGN.md` |
118
+ | voice | headlines, copy, the identity board, `DESIGN.md` |
119
+ | decides | every approval: the direction, the identity board, `DESIGN.md` |
120
+
121
+ ## Quick
122
+
123
+ `pace: quick` asks the same questions (they take a minute, and everything after reads them) and changes what follows:
124
+
125
+ - `design-moodboard`: their references as they are (three or more), or one search shown as one contact sheet of about 30, from which they name six to ten; no picker rounds, no gap search, no families.
126
+ - `design-direction`: subject pictures, one round of eight, one vary if they ask; touch-up and five-second check as usual.
127
+ - `design-identity`: the chosen screen's type and colours become the identity as built, contrast-checked; no options, straight to the board.
128
+ - `design-prototype`: as usual. Never quick on states, contrast, or the flows.
129
+ - `design-content` and `design-wordmark` are not offered.
130
+
131
+ They can switch to full at any step; the design brief records it under **Changes**.
132
+
133
+ ## Then
134
+
135
+ Say the next step in one line, from what they answered:
136
+
137
+ - A moodboard given → `design-moodboard` to read it.
138
+ - None → `design-moodboard` to find references.
139
+
140
+ ## Do not
141
+
142
+ - Ask what the product brief already says. Ask a second round.
143
+ - Write the voice without showing it in the read-back.
144
+ - Put a layout, colour, typeface or style name in a suggested answer.
145
+ - Write a site, brand, person or link into the committed doc.
146
+ - Suggest motion from your own sense of what looks good, or fill a pick they left out.
@@ -0,0 +1,59 @@
1
+ # Design brief for a graphic
2
+
3
+ Read when the product brief's surface is a graphic. Everything in `SKILL.md` holds except what is said here. A piece counts as a screen wherever the skill says screen.
4
+
5
+ The kind, the format, the people and the facts are in `docs/brief.md`. Never ask them again. A question the brief or an earlier answer settles is not asked: it goes in the read-back as an assumption they can correct.
6
+
7
+ ## The round
8
+
9
+ One message, as in the skill, with a suggested answer on each. These replace its numbered list.
10
+
11
+ ```
12
+ Before any design, a few questions. Each has my suggestion in brackets: "yes" takes it, "go" takes all of them.
13
+
14
+ 1. What must it say at a glance, and from how far away is it read? [<from the brief's what it is for and seen by>]
15
+ 2. Three words it should be, and one word it must never be. [<from the brief>]
16
+ 3. Personality, 1 to 5. Lean on each one you can; a 3 says nothing:
17
+ quiet 1 · · · 5 loud
18
+ type-led 1 · · · 5 picture-led
19
+ plain 1 · · · 5 rich
20
+ warm 1 · · · 5 cool
21
+ serious 1 · · · 5 playful
22
+ classic 1 · · · 5 new
23
+ how much it holds: 1 one line · · · 5 every detail
24
+ [<a suggestion for each>]
25
+ 4. How should it feel, and never feel? Anything you tried before and didn't like, and why?
26
+ 5. Posters, covers, books, brands or places you love for this? (They steer the moodboard; their names stay out of the docs.)
27
+ 6. Who should it stand apart from? And how far from what pieces of its kind usually look like: 1 familiar · · · 5 nothing like it? [<the kind it is, and a number>]
28
+ 7. What is fixed? One colour or full colour. Colours, typefaces or a logo you own or refuse. Your own pictures, or none yet. [<what the brief or the repo shows>]
29
+ 8. A moodboard already? A Figma link, a folder, screenshots or links.
30
+ 9. One piece, or a set (a poster, a story, a square)? Are the facts in the brief complete? [<what the brief says>]
31
+
32
+ Anyone else who has to say yes?
33
+ ```
34
+
35
+ - **Print or screen is in the brief's format.** It is not asked again: the read-back states it as an assumption they can correct.
36
+ - **Question 6 is left out for a personal piece** (a birthday card): it has no category.
37
+ - **Never asked:** motion (a graphic has none, so `motion: none`), light or dark, languages, the accessibility level (written as AA unless they say otherwise), and full or quick (a single piece is `pace: quick`; a set is asked once, with question 9).
38
+ - **The other sizes of a set** are `design-prototype`'s. They are named here and built there.
39
+
40
+ ## Read back, once
41
+
42
+ Two lines, as in the skill. The first says what it must say at a glance and from how far, the format from the brief in a few words, the pace, the words, the personality, never, apart from (or none), fixed, and the facts' state.
43
+
44
+ > Says <what> at a glance, read from <distance>; <format>; <pace>; <three words>, never <word>; loud 2, picture-led 4, …, holds 2; apart from <kind>, 4 of 5 from it; fixed: <…>; facts: <complete | missing …>.
45
+
46
+ ## Write the doc
47
+
48
+ The template holds, with these changes:
49
+
50
+ - **No `first seen on` line.** The format is in `docs/brief.md`, which `design-direction` reads for the size. Write `read from: <how far, and where>` in its place.
51
+ - **`takeaway`:** what someone thinks and does at a glance. The one thing to do may be to remember a date, scan a code or go to a place.
52
+ - **`dense`:** 1 is one line, 5 is every detail. The key stays `dense`.
53
+ - **`motion: none`.**
54
+ - **`accessibility`:** AA unless they said otherwise.
55
+ - **`fixed`:** adds print or screen (from the brief's format) and one colour or full colour.
56
+ - **`apart from`:** `none: a personal piece`, with no distance, when there is no category.
57
+ - **Adds `pieces:`** one piece, or the list for a set, and **`facts:`** complete, or what is missing.
58
+
59
+ `pace: quick` for a single piece drops the same stops it drops anywhere. It never drops the contrast check or the facts.
@@ -3,8 +3,9 @@ name: design-check
3
3
  description: >
4
4
  Check a screen against the design rules and DESIGN.md, and report findings
5
5
  (rule, hard or soft, where, fix). Frame mode checks a Figma frame, called
6
- by design after each screen. Build mode checks a built UI spec against its
7
- Ready frames, run after implement-spec, with evidence for the PR. Hard
6
+ by design-figma after each screen. Build mode checks a built UI spec against its
7
+ Ready frames, run after implement-spec, with evidence for the PR. Docs mode
8
+ checks the committed design docs name no reference. Hard
8
9
  findings block; soft findings are reported. It reports and never redesigns.
9
10
  ---
10
11
 
@@ -29,30 +30,30 @@ One line per finding, hard first:
29
30
  - A soft rule that `DESIGN.md` overrides with a reason is not a finding. Without a reason, it is.
30
31
  - No findings: say "passes" and list which rules were checked.
31
32
 
32
- **Hard blocks; soft is reported.** The caller gets one fresh pass to fix the hard findings, then one re-check. Hard findings that remain are listed as open. They never pass silently.
33
+ **Hard blocks; soft is reported.** The caller gets one fresh pass to fix the hard findings, then one re-check. Hard findings that remain are listed as open. They never pass silently. Fix after every run, then run again: two runs with no fix between are one round, and so is a first run of another state of the same screen. The rules script keeps the count (`rounds.json` in `.longbeard/design/`, per screen): when it says "rounds used up", stop fixing and report what is open. A finding that is false is waived with a reason (`--waive <id> --reason "…"`, in `waivers.json`), one at a time. It is still listed as waived, never hidden, and a hard rule is never waived, only a wrong finding. When the person says to ship it as it is, record their words (`--ship "…"`) and report what is open.
33
34
 
34
35
  ## Order
35
36
 
36
- 1. **Idea** (rule 0): cover the logo. Is it still this product?
37
- 2. **Hard** checks, every section, then the site or app list from the brief's surface.
37
+ 1. **Idea** (rule 0): cover the logo. Is it still this product? And, with `docs/design/design-brief.md` open: could it be mistaken for the kind of product its `apart from` names (a soft finding at distance 3, hard at 4–5, none at 1–2, where fitting in was the ask), and does it look like its `never`, or its never word (soft)?
38
+ 2. **Hard** checks, every section, then the site, app or graphics list from the brief's surface.
38
39
  3. **Soft** checks, then the tells (rule 14).
39
40
 
40
- Read `DESIGN.md` first: its tokens, components and decisions are what "follows the file" means.
41
+ Read `DESIGN.md` first: its tokens, components and decisions are what "follows the file" means. Its Accessibility line (or else the design brief's `accessibility`) sets the contrast level for every contrast check: AA is 4.5:1 and 3:1 large; AAA is 7:1 and 4.5:1 large (`scripts/contrast.mjs --level AAA`). A pair `DESIGN.md` marks `WARN liked, kept` (a colour the person liked, kept under the level on purpose) is reported as a warning with its ratio, never a block. For text on a rendered page, `scripts/screen-contrast.mjs "file://$PWD/<page>.html" --level AAA` reads every text where it sits, down the whole page up to `--max-height`. Its last line says how far it looked and how many texts it "did not read" (a colour it could not resolve, or a fill that is a picture clipped to the letters): neither is a pass, so check those by eye. Exit 1 is a contrast failure, 3 is a run that did not finish. Its Motion line, `design-direction.md`'s `motion:` and `finish:` lines, and the design brief's `motion` picks behind them, are checked too: motion beyond the picks (a trigger, a feel or a moment not picked, or more than the pick for how much), a pick or a line not built, a finish not on the page, or any motion without a reduced-motion fallback, is a soft finding.
41
42
 
42
43
  ## Frame mode
43
44
 
44
- Called by `design` after it composes or changes a Figma screen. Input: the file key, the node IDs of the screen and its state frames, and the approved prototype shot of that screen when there is one.
45
+ Called by `design-figma` after it composes or changes a Figma screen. Input: the file key, the node IDs of the screen and its state frames, and the approved prototype shot of that screen when there is one.
45
46
 
46
47
  1. Load `figma-use` for any `use_figma` call. Screenshot each frame (`get_screenshot`, `maxDimension` 1440 so text is readable). Read structure with `get_metadata` when spacing or alignment needs numbers.
47
48
  2. Find the states: the frames next to the default, whatever they are called. Decide from what each frame shows whether it is the screen's empty, loading or error state, not from its name. A reachable state with no frame is a rule 8 hard finding. So is a "not needed" under Decisions in `DESIGN.md` when a person can reach that state after all.
48
49
  3. Check tokens where the screenshot cannot tell: in one read-only `use_figma` call, list fills, gaps and text styles that are not bound to a variable or style. An unbound value is a rule 7 soft finding when a token exists for it. With more than one theme, an unbound colour is a rule 6 hard finding, because it will not change with the theme.
49
50
  4. Check the themes, when `DESIGN.md` lists more than one. Themes built as separate colour sets or as a frame per theme, instead of modes on one collection, are a rule 6 hard finding. For each mode, set it on a temporary copy of the frame, screenshot the copy, delete it, and run the rules on that shot. If the shot does not change with the mode, report that theme as "not checked", never as passed.
50
51
  5. Compare with the prototype shot, side by side. The frame must be faithful to what they approved. Anything lost or changed without their yes is a hard finding, under rule 0. Pixels do not count. No shot: say "not compared".
51
- 6. Return the findings. `design` fixes the hard ones, runs this once more, then shows the screen. A frame with open hard findings is never marked Ready.
52
+ 6. Return the findings. `design-figma` fixes the hard ones, runs this once more, then shows the screen. A frame with open hard findings is never marked Ready.
52
53
 
53
54
  ## Build mode
54
55
 
55
- After `implement-spec` builds a UI spec. Input: the running app's URL for each screen, and the Ready frames the tickets link. A screen with no Ready frame has nothing to compare with: report it as "not checked" and send it to `design`.
56
+ After `implement-spec` builds a UI spec. This mode belongs to the Build stage: when the router has none (a design-only install), say that it needs the build stage and offer frame mode or docs mode. Input: the running app's URL for each screen, and the Ready frames the tickets link. A screen with no Ready frame has nothing to compare with: report it as "not checked" and send it to `design-figma`.
56
57
 
57
58
  1. **Render** each screen at phone and desktop:
58
59
  ```
@@ -66,11 +67,26 @@ After `implement-spec` builds a UI spec. Input: the running app's URL for each s
66
67
  - tokens: colours, type and spacing are `DESIGN.md`'s values (`scripts/contrast.mjs` for any pair that looks off)
67
68
  - copy: the frame's words, not placeholders or new ones
68
69
  - states: each frame state exists and says the same thing
70
+ - stand-ins: nothing under Still to supply in `DESIGN.md` reaches the build as it stands (its picture, or its assumed price, hour, number or name). One that does is a hard finding under rule 0, with the screen and the item; it clears when they supply the real one or take the item off the list.
69
71
  A difference from the frame is a finding, hard when it breaks a hard rule or changes structure or copy. The rules' glue line holds: a mismatch with the frame is a bug.
70
- 4. **Check the rules** on the build shots, in the order above.
71
- 5. **Fix pass.** Hard findings get one fresh fix pass (a new agent or a clean context, with the findings as its brief), then one re-check.
72
+ 4. **Check the rules** on the build shots, in the order above. Run the rules script on each screen and state at both widths, with `--app` when the surface is an app (the list's touch sizes), and `--cookie` as in step 1:
73
+ ```
74
+ node <skill>/scripts/rules.mjs <url> --screen <screen>
75
+ ```
76
+ It measures sideways scroll, target size, visible labels, a visible focus, placeholder copy and clipped text, and its rows go into the findings as they are. Its "not checked" lines stay "not checked". What only an eye can judge (idea, hierarchy, grouping, the tells) is still yours. Frame mode cannot use it: a Figma frame is not a page.
77
+ 5. **Fix pass.** Hard findings get one fresh fix pass (a new agent or a clean context, with the findings as its brief), then one re-check. The script's round count is the limit. A run that could not open the page says what to do once, and the second time the screen is reported as "not checked" and the build goes on.
72
78
  6. **PR evidence.** Matt's `pr` writes the body. Put the shots in its Before/After: the Ready frame beside the build at each width. Then the findings table, with what remains open after the re-check.
73
79
 
80
+ ## Docs mode
81
+
82
+ On request, or when a design-* skill has written a doc. The design docs are committed and kept for good, so they stay clean.
83
+
84
+ - Read `DESIGN.md` and every file in `docs/design/`.
85
+ - **Hard:** a name of a site, brand, studio, designer or person taken from the references; a link to one; the site the stand-in pictures came from (their credits stay in `.longbeard/design/pictures/credits.tsv`, except a credit a licence requires, which appears in the product itself); a path into `.longbeard/` or `design-exploration/`, comments in a copied template included. The fix is the idea in plain words ("a quiet reading page", not whose).
86
+ - **Hard:** `design-identity.md`'s colours or faces differ from its `json identity` block, or `DESIGN.md`'s tokens differ from an identity that was not changed on purpose (a change is under Decisions with its date).
87
+ - **Hard:** `DESIGN.md`'s token block (the front matter) differs from its tables, or is missing: `node <skill>/scripts/tokens.mjs DESIGN.md --check` exits 1 and lists each key. The tables are the source, so the fix is to run it again without `--check`; a table that cannot be read (exit 2, with "no token table found" aside) is a finding too. A `DESIGN.md` with no token tables at all is one they brought, and has no tables to disagree with. The published format's own linter is not run here.
88
+ - The product's own name, the faces and colours it uses, and anything the brief or design brief records as theirs are not findings.
89
+
74
90
  ## Do not
75
91
 
76
92
  - Redesign, or suggest a colour, face or component `DESIGN.md` does not have.
@@ -1,6 +1,6 @@
1
1
  # Design rules
2
2
 
3
- How a screen is checked. Read by `design` before it prototypes and by `design-check` on every frame and build.
3
+ How a screen is checked. Read by `design-direction` and `design-prototype` before they prototype and by `design-check` on every frame and build.
4
4
 
5
5
  These rules decide execution, never the look. The direction and `DESIGN.md` decide the look. A rule that seems to ask for a colour, a typeface or a style is misread. It asks only that whatever was chosen is used with intent.
6
6
 
@@ -8,10 +8,10 @@ These rules decide execution, never the look. The direction and `DESIGN.md` deci
8
8
 
9
9
  - Check from a screenshot. Every check below can be passed or failed by looking at a rendered screen at its real size. When a check needs a state you cannot see (focus, error, empty), it needs that state's frame, and a missing frame fails rule 8.
10
10
  - Go in order: **Idea** first, then every **hard** check, then **soft**.
11
- - **Hard** is the floor: structure, contrast, targets, focus and states. A hard failure blocks the screen. `DESIGN.md` cannot waive it.
11
+ - **Hard** is the floor: structure, contrast, targets, focus and states. A hard failure blocks the screen. `DESIGN.md` cannot waive it, with one exception: a colour the person liked by name and kept under the contrast level, marked `WARN liked, kept` in `DESIGN.md`, is reported as a warning, not a block.
12
12
  - **Soft** is a default. `DESIGN.md` may override a soft check on purpose, with a written reason. A soft finding with no reason in `DESIGN.md` is reported, not blocked.
13
13
  - A finding is four things: the rule (number and check), hard or soft, where on the screen, and the fix.
14
- - The shared core applies to everything. Then add the site list or the app list, whichever the brief's surface says.
14
+ - The shared core applies to everything, except where the Graphics list says it does not. Then add the site, app or graphics list, whichever the brief's surface says.
15
15
 
16
16
  ## 0. Idea
17
17
 
@@ -70,7 +70,7 @@ These rules decide execution, never the look. The direction and `DESIGN.md` deci
70
70
 
71
71
  **Principle:** colour carries meaning, and the meaning stays the same everywhere.
72
72
 
73
- - [hard] Body text has a contrast ratio of at least 4.5:1 against its background. Large text (24px, or 18.66px bold, and up) and the visible parts of controls and icons have at least 3:1.
73
+ - [hard] Body text has a contrast ratio of at least 4.5:1 against its background. Large text (24px, or 18.66px bold, and up) and the visible parts of controls and icons have at least 3:1. When `DESIGN.md` or the design brief sets the level to AAA: 7:1 for body text and 4.5:1 for large text.
74
74
  - [hard] Colour is never the only signal. An error, a selected item or a required field also changes shape, weight, an icon or text.
75
75
  - [soft] Every colour on the screen is a token in `DESIGN.md`. Pick three at random: each maps to a named token.
76
76
  - [hard] A product with more than one theme has one set of colour tokens, with a value for each theme, and passes every check here in each theme. A colour that stays the same when the theme changes, and should not, fails.
@@ -117,13 +117,18 @@ These rules decide execution, never the look. The direction and `DESIGN.md` deci
117
117
 
118
118
  ## 11. Copy
119
119
 
120
- **Principle:** words do the job of the screen in the product's own voice.
120
+ **Principle:** words do the job of the screen in the product's own voice, made from facts it has.
121
+
122
+ **Dated 2026-11-21. Reviewed each release.**
121
123
 
122
124
  - [hard] No placeholder copy: no lorem ipsum, no "Title", no "Button", no "User Name".
123
125
  - [soft] Buttons say what happens: "Send invoice", not "Submit", "OK", "Get started" or "Learn more".
124
126
  - [soft] Headings are short. A heading that runs over two lines at its size is a sentence that belongs in the body.
125
127
  - [soft] The voice matches `DESIGN.md`. Read three strings aloud: they sound like one product.
126
- - [soft] No genre filler: unlock, supercharge, seamless, elevate, effortless, all-in-one, and "not just X, it's Y".
128
+ - [soft] No genre filler: unlock, supercharge, seamless, elevate, effortless, all-in-one, and "not just X, it's Y". Sincerity is shown, not claimed ("honest", "simply").
129
+ - [soft] A rhetorical device (a heading in two fragments, "X, not Y", a row of three figures) appears once on a screen, where it lands hardest.
130
+ - [soft] No detail is invented. Every number, name and quote traces to the brief, or is marked as assumed (see the prototype's stand-in marks). A section with nothing true to say is shorter or gone.
131
+ - [soft] Voice test: would this voice suit a product in another trade? If yes, it is not this product's yet.
127
132
 
128
133
  ## 12. Imagery
129
134
 
@@ -147,7 +152,7 @@ These rules decide execution, never the look. The direction and `DESIGN.md` deci
147
152
 
148
153
  **Dated 2026-11-03. Reviewed each release.** Add new tells, retire ones that stopped being defaults.
149
154
 
150
- A tell is a device that makes a screen look produced by default rather than designed for this product. Most began as good ideas. They are tells because they arrive without a reason. Every check here is **soft**: present, and `DESIGN.md` gives no reason for it. This list never says what to use instead. That comes from the direction.
155
+ A tell is a device that makes a screen look produced by default rather than designed for this product. Most began as good ideas. They are tells because they arrive without a reason. Every check here is **soft**: present, and `DESIGN.md` gives no reason for it. This list never says what to use instead. That comes from the direction. A device that came with a look they chose on rendered screens is there on purpose: `DESIGN.md` says under Decisions what it does for this product.
151
156
 
152
157
  - [soft] Purple-to-blue gradients on backgrounds, buttons, glows or headline text.
153
158
  - [soft] Translucent blurred panels used on two or more surfaces.
@@ -184,6 +189,15 @@ Add these when the brief's surface is an app: the tool a person comes back to.
184
189
  - [soft] Navigation keeps the same place and shape on every screen of the flow.
185
190
  - [soft] Frequent actions are one step away. Rare and destructive ones may be further.
186
191
 
192
+ ## Graphics
193
+
194
+ Add these when the brief's surface is a graphic: a poster, a card, a social post, a piece to look at. A piece counts as a screen.
195
+
196
+ - **Applies:** rules 0 to 3, 5, 6, 11, 12 and 14. Rule 4 holds for the margin and the gaps between groups. Rule 7 holds across the pieces of a set.
197
+ - **Does not apply:** rule 8 (states), rule 9 (affordance), the targets, focus and label checks of rule 10, and rule 13 (responsive). A missing state frame is not a finding.
198
+ - [hard] Readable at its distance. Scale the shot to how the piece is seen (a poster read across a street, about 400 px on its long side; a feed post at phone width). The headline and every fact the brief gives still read.
199
+ - [hard] Nothing important in the trim. On a print piece, no word, fact or logo sits in the trim or the safe margin. A picture or a crop that runs off the edge on purpose is not a finding.
200
+
187
201
  ## Sources
188
202
 
189
203
  Ideas drawn from, in our own words: Gestalt principles of grouping; WCAG 2.2 (contrast 1.4.3 and 1.4.11, focus visible 2.4.7, target size 2.5.8, labels 3.3.2); Refactoring UI practice (Adam Wathan and Steve Schoger); Apple Human Interface Guidelines and Material Design basics (touch targets, navigation, states); and the tells registry of taste-skill by Leonxlnx (MIT).