@jonandev/longbeard 0.13.0 → 0.15.0

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 (59) hide show
  1. package/AGENTS.md +5 -5
  2. package/CHANGELOG.md +35 -0
  3. package/README.md +3 -4
  4. package/beard.json +6 -17
  5. package/bin/long-beard.js +2 -2
  6. package/package.json +1 -1
  7. package/skills/design/SKILL.md +7 -11
  8. package/skills/design-brief/SKILL.md +5 -35
  9. package/skills/design-check/SKILL.md +5 -7
  10. package/skills/design-check/references/design-rules.md +26 -4
  11. package/skills/design-check/scripts/rules.mjs +143 -9
  12. package/skills/design-content/SKILL.md +3 -8
  13. package/skills/design-direction/SKILL.md +58 -53
  14. package/skills/design-direction/references/design-floor.md +118 -0
  15. package/skills/design-direction/references/graphic.md +5 -6
  16. package/skills/design-direction/references/library.md +7 -7
  17. package/skills/design-direction/references/screen-template.html +7 -164
  18. package/skills/design-direction/references/screen.js +163 -0
  19. package/skills/design-direction/references/subject.md +3 -3
  20. package/skills/design-direction/references/variants.js +43 -0
  21. package/skills/design-direction/scripts/canvas.mjs +12 -9
  22. package/skills/design-direction/scripts/colours.mjs +247 -0
  23. package/skills/design-direction/scripts/moodboard.mjs +1 -1
  24. package/skills/design-direction/scripts/rules.mjs +747 -0
  25. package/skills/design-direction/scripts/sheet.mjs +3 -1
  26. package/skills/design-figma/SKILL.md +4 -6
  27. package/skills/design-identity/SKILL.md +12 -14
  28. package/skills/design-identity/references/design-floor.md +118 -0
  29. package/skills/design-identity/scripts/colours.mjs +35 -1
  30. package/skills/design-identity/scripts/sheet.mjs +3 -1
  31. package/skills/design-moodboard/SKILL.md +11 -11
  32. package/skills/design-moodboard/references/graphic.md +1 -1
  33. package/skills/design-moodboard/references/sources.md +1 -1
  34. package/skills/design-moodboard/scripts/group.mjs +1 -1
  35. package/skills/design-moodboard/scripts/moodboard.mjs +1 -1
  36. package/skills/design-prototype/SKILL.md +51 -49
  37. package/skills/design-prototype/references/design-floor.md +118 -0
  38. package/skills/design-prototype/references/design-md-template.md +4 -2
  39. package/skills/design-prototype/references/graphic.md +6 -5
  40. package/skills/design-prototype/references/variants.js +43 -0
  41. package/skills/design-prototype/scripts/links.mjs +5 -4
  42. package/skills/design-prototype/scripts/rules.mjs +143 -9
  43. package/skills/design-prototype/scripts/sheet.mjs +3 -1
  44. package/skills/design-wordmark/SKILL.md +9 -8
  45. package/skills/design-wordmark/scripts/sheet.mjs +3 -1
  46. package/skills/framework-skills/SKILL.md +3 -5
  47. package/skills/idea/SKILL.md +7 -9
  48. package/skills/design-direction/references/design-rules.md +0 -204
  49. package/skills/design-direction/references/full-build.md +0 -20
  50. package/skills/design-direction/references/grid.md +0 -97
  51. package/skills/design-direction/scripts/layout-diff.mjs +0 -118
  52. package/skills/design-families/SKILL.md +0 -139
  53. package/skills/design-families/scripts/contact-sheet.mjs +0 -259
  54. package/skills/design-families/scripts/families.mjs +0 -607
  55. package/skills/design-families/scripts/measure.mjs +0 -1728
  56. package/skills/design-families/scripts/moodboard.mjs +0 -609
  57. package/skills/design-families/scripts/tag.mjs +0 -289
  58. package/skills/design-prototype/references/design-rules.md +0 -204
  59. package/skills/design-prototype/references/five-second.md +0 -46
@@ -18,6 +18,15 @@
18
18
  // 11 Copy no lorem ipsum, and no text that is only "Title", "Button", "User Name"...
19
19
  // 5 Typography text cut by its container, including an ellipsis. Text cut on purpose
20
20
  // carries data-crop on the element (or one above it) and is skipped
21
+ // 5 Typography text size: nothing under 12px; text a person acts on (links, buttons,
22
+ // labels, fields, navigation) at least 14px; body (running text of 60
23
+ // characters or more) at least 16px. Text marked data-board-size (on it or
24
+ // above it: the board shows it that small and the person kept it) is a
25
+ // warning with its measure, not a block
26
+ // Soft (reported, never blocking):
27
+ // 6 Colour proportion on the first screen, text and pictures left out: the ground
28
+ // (the largest colour) under 50%, or the accent over 20% (--accent "#hex"
29
+ // names it; else the most saturated colour). A board that does otherwise wins
21
30
  // Not checked, on purpose: overlap, collision, alignment, empty space, section height. They are
22
31
  // the look's own moves. Not checked either: contrast (screen-contrast.mjs), states, hierarchy.
23
32
  //
@@ -37,7 +46,8 @@
37
46
  // run. A check that could not run is "not checked", never passed. The first failure on a screen
38
47
  // says what to do; the second says to report it as not checked and go on.
39
48
  // --widths 1440,390, --screen name, --app, --cookie "a=b; c=d", --wait 300 (ms), --timeout 120000
40
- // (ms for the whole run; every browser call also has its own 15 s limit), --rounds 2, --dir, --json
49
+ // (ms for the whole run; every browser call also has its own 15 s limit), --rounds 2, --dir,
50
+ // --accent "#hex" (the accent from DESIGN.md, for the proportion), --json
41
51
  import { spawn } from "node:child_process";
42
52
  import { createHash } from "node:crypto";
43
53
  import { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
@@ -65,11 +75,12 @@ const reason = flag("reason");
65
75
  const shipWords = flag("ship");
66
76
  const app = has("app");
67
77
  const json = has("json");
78
+ const accentArg = flag("accent");
68
79
  const [url] = args;
69
- const usage = 'usage: node rules.mjs "<file:// or http(s):// url>" [--screen name] [--widths 1440,390] [--app] [--cookie "a=b"] [--wait 300] [--timeout 120000] [--rounds 2] [--dir .longbeard/design] [--json]\n node rules.mjs --screen name --waive <id> --reason "why this finding is false"\n node rules.mjs --screen name --ship "the person\'s words"';
80
+ const usage = 'usage: node rules.mjs "<file:// or http(s):// url>" [--screen name] [--widths 1440,390] [--app] [--cookie "a=b"] [--wait 300] [--timeout 120000] [--rounds 2] [--dir .longbeard/design] [--accent "#hex"] [--json]\n node rules.mjs --screen name --waive <id> --reason "why this finding is false"\n node rules.mjs --screen name --ship "the person\'s words"';
70
81
  const recording = Boolean(waiveId || shipWords);
71
82
  const usageOk = recording ? Boolean(screenArg || url) && args.length <= 1 : url && args.length === 1 && /^(https?|file):/.test(url);
72
- if (!usageOk || widths.some((w) => !(w >= 200 && w <= 3840)) || !(wait >= 0 && wait <= 10000) || !(totalMs >= 5000) || !(limit >= 1) || (waiveId && shipWords) || (reason && !waiveId)) {
83
+ if (!usageOk || widths.some((w) => !(w >= 200 && w <= 3840)) || !(wait >= 0 && wait <= 10000) || !(totalMs >= 5000) || !(limit >= 1) || (waiveId && shipWords) || (reason && !waiveId) || (accentArg && !/^#?[0-9a-f]{6}$/i.test(accentArg))) {
73
84
  console.error(usage);
74
85
  process.exit(2);
75
86
  }
@@ -125,7 +136,7 @@ if (shipWords) {
125
136
  console.error(`rules: ${screen} has not been checked yet. Run it once, so the open findings are on record.`);
126
137
  process.exit(2);
127
138
  }
128
- record.closed = { words: shipWords.trim(), at: today(), open: record.found.filter((f) => !waivers.some((w) => w.screen === screen && w.id === f.id)) };
139
+ record.closed = { words: shipWords.trim(), at: today(), open: record.found.filter((f) => (f.level || "hard") === "hard" && !waivers.some((w) => w.screen === screen && w.id === f.id)) };
129
140
  rounds[screen] = record;
130
141
  writeJson(roundsFile, rounds);
131
142
  console.log(`${screen} closed by the person: "${record.closed.words}". Open findings, to report as open:`);
@@ -430,9 +441,102 @@ function staticChecks(opt) {
430
441
  }
431
442
  });
432
443
 
444
+ // 5: text size. Nothing under 12px; what a person acts on 14px; body 16px.
445
+ run("5 size", () => {
446
+ const act = 'a, button, label, input, select, textarea, summary, legend, nav, [role=button], [role=link], [role=tab], [role=menuitem], [role=option]';
447
+ const done = new Set();
448
+ const size = (el) => parseFloat(getComputedStyle(el).fontSize);
449
+ const judge = (el, text) => {
450
+ if (done.has(el)) return;
451
+ done.add(el);
452
+ const px = size(el);
453
+ const acts = !!el.closest(act);
454
+ const block = el.closest("p, li, dd, blockquote");
455
+ const body = !acts && block && !el.closest("figcaption, small, footer, aside, sup, sub") && (block.innerText || "").trim().length >= 60;
456
+ const [floor, role] = acts ? [14, "text a person acts on"] : body ? [16, "body text"] : [12, "text"];
457
+ if (px >= floor - 0.05) return;
458
+ const board = !!el.closest("[data-board-size]");
459
+ found.push({ rule: "5 Typography", check: "size", level: board ? "warn" : "hard", path: path(el), desc: desc(el), detail: `${Math.round(px * 10) / 10}px ${role}, floor ${floor}px${board ? " (data-board-size: the board's size, kept)" : ""}` });
460
+ };
461
+ const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT);
462
+ for (let n = walker.nextNode(); n; n = walker.nextNode()) {
463
+ const el = n.parentElement;
464
+ if (!el || !n.textContent.trim() || el instanceof SVGElement || /^(SCRIPT|STYLE|NOSCRIPT|TEMPLATE|OPTION)$/.test(el.tagName) || !visible(el)) continue;
465
+ const box = el.getBoundingClientRect();
466
+ if (box.width <= 2 || box.height <= 2) continue; // visually hidden text, read by screen readers
467
+ judge(el);
468
+ }
469
+ for (const el of document.body.querySelectorAll("input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea")) if (visible(el)) judge(el);
470
+ });
471
+
433
472
  return { found, notChecked };
434
473
  }
435
474
 
475
+ // Colour proportion of the first screen, from a shot with the text hidden. Pictures are left out.
476
+ // Returns { shares: [{ hex, share, chroma }], ground, accent } in shares of the pixels counted.
477
+ async function colourProportion(opt) {
478
+ const out = [];
479
+ for (const el of document.body.querySelectorAll("*")) {
480
+ const s = getComputedStyle(el);
481
+ if (el.matches("img, video, canvas, picture, iframe, svg image, object, embed") || /url\(/.test(s.backgroundImage)) {
482
+ const r = el.getBoundingClientRect();
483
+ if (r.width >= 1 && r.height >= 1) out.push(r);
484
+ }
485
+ }
486
+ const img = new Image();
487
+ img.src = `data:image/png;base64,${opt.png}`;
488
+ await img.decode();
489
+ const c = document.createElement("canvas");
490
+ c.width = img.naturalWidth;
491
+ c.height = img.naturalHeight;
492
+ const g = c.getContext("2d", { willReadFrequently: true });
493
+ g.drawImage(img, 0, 0);
494
+ const px = g.getImageData(0, 0, c.width, c.height).data;
495
+ const lin = (v) => ((v /= 255) <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4);
496
+ const lab = (r, gr, b) => {
497
+ const [R, G, B] = [lin(r), lin(gr), lin(b)];
498
+ const l = Math.cbrt(0.4122214708 * R + 0.5363325363 * G + 0.0514459929 * B), m = Math.cbrt(0.2119034982 * R + 0.6806995451 * G + 0.1073969566 * B), s2 = Math.cbrt(0.0883024619 * R + 0.2817188376 * G + 0.6299787005 * B);
499
+ return [0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s2, 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s2, 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s2];
500
+ };
501
+ const buckets = new Map();
502
+ let total = 0;
503
+ const step = 2;
504
+ for (let y = 0; y < c.height; y += step)
505
+ for (let x = 0; x < c.width; x += step) {
506
+ if (out.some((r) => x >= r.left && x < r.right && y >= r.top && y < r.bottom)) continue;
507
+ const i = (y * c.width + x) * 4;
508
+ const key = ((px[i] >> 3) << 10) | ((px[i + 1] >> 3) << 5) | (px[i + 2] >> 3);
509
+ const b = buckets.get(key) || { n: 0, r: px[i], g: px[i + 1], b: px[i + 2] };
510
+ b.n++;
511
+ buckets.set(key, b);
512
+ total++;
513
+ }
514
+ if (!total) return { shares: [], ground: null, accent: null };
515
+ // Near colours are one colour: a bucket joins the biggest cluster within a small distance.
516
+ const clusters = [];
517
+ for (const b of [...buckets.values()].sort((a, z) => z.n - a.n)) {
518
+ const L = lab(b.r, b.g, b.b);
519
+ const near = clusters.find((k) => Math.hypot(k.lab[0] - L[0], k.lab[1] - L[1], k.lab[2] - L[2]) < 0.06);
520
+ if (near) near.n += b.n;
521
+ else clusters.push({ n: b.n, lab: L, rgb: [b.r, b.g, b.b] });
522
+ }
523
+ const hex = (rgb) => `#${rgb.map((v) => v.toString(16).padStart(2, "0")).join("")}`;
524
+ const shares = clusters.sort((a, z) => z.n - a.n).map((k) => ({ hex: hex(k.rgb), share: k.n / total, chroma: Math.hypot(k.lab[1], k.lab[2]), lab: k.lab }));
525
+ const ground = shares[0];
526
+ let accent = null;
527
+ if (opt.accent) {
528
+ const h = opt.accent.replace("#", "");
529
+ const A = lab(parseInt(h.slice(0, 2), 16), parseInt(h.slice(2, 4), 16), parseInt(h.slice(4, 6), 16));
530
+ const near = shares.filter((k) => Math.hypot(k.lab[0] - A[0], k.lab[1] - A[1], k.lab[2] - A[2]) < 0.06);
531
+ accent = { hex: `#${h.toLowerCase()}`, share: near.reduce((a, k) => a + k.share, 0), named: true };
532
+ } else {
533
+ // Unnamed, the accent is the most saturated colour other than the ground.
534
+ const pick = shares.slice(1).filter((k) => k.chroma >= 0.1 && k.share >= 0.005).sort((a, z) => z.chroma - a.chroma)[0];
535
+ if (pick) accent = { hex: pick.hex, share: pick.share, named: false };
536
+ }
537
+ return { shares: shares.slice(0, 4).map(({ hex: h, share }) => ({ hex: h, share })), ground: { hex: ground.hex, share: ground.share }, accent };
538
+ }
539
+
436
540
  // The focus check. Called once to take the baseline, then after each Tab.
437
541
  function focusBaseline() {
438
542
  const sig = (el) => {
@@ -494,10 +598,13 @@ const FIX = {
494
598
  focus: "Give it a visible :focus-visible style with 3:1 contrast against what is around it (an outline or ring). Never outline: none alone.",
495
599
  placeholder: "Write the real copy, in the product's voice.",
496
600
  clipped: "Let the box grow or the text wrap, so no word is cut. If the cut is the look, mark that element data-crop.",
601
+ size: "Scale the step up, keeping the reference's proportions between sizes. If the board shows it this small and the person kept it, mark it data-board-size.",
602
+ proportion: "Let the ground dominate, the primary support and the accent stay small (about 60/30/10). If the board clearly does otherwise, keep it and say so in a note.",
497
603
  };
498
604
  const RULE_OF = { focus: "10 Accessibility" };
499
605
  const found = new Map();
500
606
  const notChecked = [];
607
+ const proportions = [];
501
608
  const checkedAt = new Map();
502
609
  const evaluate = async (expression, call) => {
503
610
  const r = await call("Runtime.evaluate", { expression, returnByValue: true, awaitPromise: true });
@@ -521,7 +628,7 @@ try {
521
628
  }
522
629
  const record1 = (item, w, check) => {
523
630
  const key = `${item.rule || RULE_OF[check] || ""}|${check}|${item.path}`;
524
- if (!found.has(key)) found.set(key, { rule: item.rule || RULE_OF[check], check, path: item.path, desc: item.desc, detail: item.detail || "", widths: [] });
631
+ if (!found.has(key)) found.set(key, { rule: item.rule || RULE_OF[check], check, level: item.level || "hard", path: item.path, desc: item.desc, detail: item.detail || "", widths: [] });
525
632
  const f = found.get(key);
526
633
  if (!f.widths.includes(w)) f.widths.push(w);
527
634
  };
@@ -554,6 +661,25 @@ try {
554
661
  } catch (e) {
555
662
  notChecked.push({ check: "10 focus", width: w, why: String(e.message).slice(0, 80) });
556
663
  }
664
+ // Colour proportion, last: it hides the text. The first screen only, as a person meets it.
665
+ try {
666
+ await evaluate(`(() => {
667
+ window.scrollTo(0, 0);
668
+ if (document.activeElement) document.activeElement.blur();
669
+ const s = document.createElement("style");
670
+ s.textContent = "* { color: transparent !important; text-shadow: none !important; -webkit-text-fill-color: transparent !important; text-decoration-color: transparent !important; caret-color: transparent !important; outline: none !important; }";
671
+ document.head.appendChild(s);
672
+ return new Promise((done) => requestAnimationFrame(() => requestAnimationFrame(() => done(true))));
673
+ })()`, call);
674
+ const shot = await call("Page.captureScreenshot", { format: "png" });
675
+ const p = await evaluate(`(${colourProportion})(${JSON.stringify({ png: shot.result.data, accent: accentArg })})`, call);
676
+ proportions.push({ width: w, ...p });
677
+ const pct = (x) => `${Math.round(x * 100)}%`;
678
+ if (p.ground && p.ground.share < 0.5) record1({ rule: "6 Colour", level: "soft", path: "ground", desc: "first screen", detail: `the ground (${p.ground.hex}) covers ${pct(p.ground.share)}; it should dominate (about 60%)` }, w, "proportion");
679
+ if (p.accent && p.accent.share > 0.2) record1({ rule: "6 Colour", level: "soft", path: "accent", desc: "first screen", detail: `the accent (${p.accent.hex}${p.accent.named ? "" : ", read as the most saturated colour"}) covers ${pct(p.accent.share)}; it should stay small (about 10%)` }, w, "proportion");
680
+ } catch (e) {
681
+ notChecked.push({ check: "6 proportion", width: w, why: String(e.message).slice(0, 80) });
682
+ }
557
683
  checkedAt.set(w, true);
558
684
  }
559
685
  ws.close();
@@ -567,7 +693,9 @@ finished = true;
567
693
  const id = (f) => createHash("sha1").update(`${f.rule}|${f.check}|${f.path}`).digest("hex").slice(0, 6);
568
694
  const rows = [...found.values()].map((f) => ({ ...f, id: id(f), where: `${f.desc}: ${f.detail} (at ${f.widths.sort((a, b) => b - a).join(", ")})` }));
569
695
  const waived = rows.filter((f) => waivers.some((w) => w.screen === screen && w.id === f.id));
570
- const open = rows.filter((f) => !waived.includes(f));
696
+ // Hard findings block. Warnings (the board's own small text) and soft ones are reported only.
697
+ const open = rows.filter((f) => !waived.includes(f) && f.level === "hard");
698
+ const reported = rows.filter((f) => !waived.includes(f) && f.level !== "hard");
571
699
 
572
700
  // A run on a changed page is a round; the same page again is the same round. Each url of a screen
573
701
  // (a state: ?menu=open) keeps its own fingerprint, so the first look at another state is part of
@@ -580,15 +708,15 @@ const changed = seen && fps[key] !== fingerprint;
580
708
  const round = !used ? 1 : changed && used < limit ? used + 1 : used;
581
709
  const beyond = changed && used >= limit;
582
710
  const closed = changed ? null : record.closed || null;
583
- rounds[screen] = { round, fps: { ...fps, [key]: fingerprint }, at: today(), failed: 0, found: rows.map((f) => ({ id: f.id, rule: f.rule, where: f.where })), ...(closed ? { closed } : {}) };
711
+ rounds[screen] = { round, fps: { ...fps, [key]: fingerprint }, at: today(), failed: 0, found: rows.map((f) => ({ id: f.id, rule: f.rule, level: f.level, where: f.where })), ...(closed ? { closed } : {}) };
584
712
  writeJson(roundsFile, rounds);
585
713
 
586
714
  const widthNote = widths.join(" and ");
587
- const checks = [["13 sideways", "13 sideways scroll (phone width)"], ["10 targets", `10 targets (${app ? "44 on phone, 24 otherwise" : "24"})`], ["10 labels", "10 visible labels"], ["10 focus", "10 focus shown (not its contrast)"], ["11 copy", "11 placeholder copy"], ["5 clipped", "5 clipped text (data-crop skipped)"]];
715
+ const checks = [["13 sideways", "13 sideways scroll (phone width)"], ["10 targets", `10 targets (${app ? "44 on phone, 24 otherwise" : "24"})`], ["10 labels", "10 visible labels"], ["10 focus", "10 focus shown (not its contrast)"], ["11 copy", "11 placeholder copy"], ["5 clipped", "5 clipped text (data-crop skipped)"], ["5 size", "5 text size (12 / 14 / 16)"], ["6 proportion", "6 colour proportion (soft)"]];
588
716
  if (!widths.some((w) => w <= 480)) notChecked.push({ check: "13 sideways", width: widths.join(","), why: "no phone width (480 or less) in --widths" });
589
717
  const done = checks.filter(([key]) => !notChecked.some((n) => n.check === key)).map(([, label]) => label);
590
718
  if (json) {
591
- console.log(JSON.stringify({ screen, round, limit, roundsUsedUp: round >= limit && open.length > 0, closed, open, waived, notChecked, checked: done }, null, 1));
719
+ console.log(JSON.stringify({ screen, round, limit, roundsUsedUp: round >= limit && open.length > 0, closed, open, reported, waived, proportions, notChecked, checked: done }, null, 1));
592
720
  } else {
593
721
  console.log(`rules: ${screen} at ${widthNote}, round ${round} of ${limit}${beyond ? " (this page changed after the last round: not counted)" : changed || !used ? "" : seen ? " (the page has not changed since the last run)" : " (another state of this screen: same round)"}`);
594
722
  if (closed) console.log(`closed by the person on ${closed.at}: "${closed.words}". Do not fix more. Report what is open.`);
@@ -602,6 +730,12 @@ if (json) {
602
730
  }
603
731
  for (const [check, n] of Object.entries(shown)) if (n > 10) console.log(`(${n - 10} more ${check} findings with the same fix, not listed: fix these, run again, or use --json for all)`);
604
732
  } else console.log(`passes: ${done.join("; ")}`);
733
+ if (reported.length) {
734
+ console.log("reported, not blocking:\n| Rule | Hard/soft | Where | Fix |\n|---|---|---|---|");
735
+ for (const f of reported.slice(0, 20)) console.log(`| ${f.rule} | ${f.level} | ${f.where.replace(/\|/g, "/")} [${f.id}] | ${FIX[f.check]} |`);
736
+ if (reported.length > 20) console.log(`(${reported.length - 20} more, not listed: --json has all)`);
737
+ }
738
+ for (const p of proportions) if (p.ground) console.log(`colour proportion at ${p.width}: ground ${p.ground.hex} ${Math.round(p.ground.share * 100)}%${p.shares.slice(1).map((k) => `, ${k.hex} ${Math.round(k.share * 100)}%`).join("")}${p.accent ? `; accent ${p.accent.hex} ${Math.round(p.accent.share * 100)}%` : ""}`);
605
739
  if (waived.length) {
606
740
  console.log(`waived (${waived.length}), listed so the person sees them:`);
607
741
  for (const f of waived) console.log(`- ${f.rule}: ${f.where} [${f.id}]: ${waivers.find((w) => w.screen === screen && w.id === f.id).reason}`);
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  // Lay screenshots out as one numbered sheet, so a round of first screens can
3
3
  // be seen and picked from together. It writes an HTML page; capture.mjs turns
4
- // that into the picture to show. No dependencies.
4
+ // that into the picture to show. The page is marked as a sheet, so links.mjs never
5
+ // counts it as a page of the prototype. No dependencies.
5
6
  //
6
7
  // node sheet.mjs .longbeard/design/direction/grid/sheet.html .longbeard/design/direction/grid/1.png .longbeard/design/direction/grid/2.png …
7
8
  // node sheet.mjs .longbeard/design/direction/grid/vary.html --cols 5 .longbeard/design/direction/grid/v*.png
@@ -49,6 +50,7 @@ writeFileSync(
49
50
  out,
50
51
  `<!doctype html>
51
52
  <meta charset="utf-8">
53
+ <meta name="generator" content="longbeard sheet">
52
54
  <title>Sheet</title>
53
55
  <style>
54
56
  body { margin: 0; padding: 24px; background: #6f6f6f; font: 600 22px/1 system-ui, sans-serif; }
@@ -1,12 +1,9 @@
1
1
  ---
2
2
  name: design-wordmark
3
3
  description: >
4
- Optional, after the identity. A wordmark made from the identity's own faces and devices:
5
- four to six marks rendered in the navigation and at hero size on the
6
- identity's grounds, picked and pushed once. Adds the mark to
7
- docs/design/design-identity.md and the identity board. Runs once the
8
- identity is chosen, when they want a mark beyond the name set in the
9
- display face.
4
+ Optional. A wordmark from the identity's faces and devices, judged in the
5
+ chosen screen. Runs once the identity is chosen and they want a mark
6
+ beyond the name set in type.
10
7
  ---
11
8
 
12
9
  # Design wordmark
@@ -28,9 +25,13 @@ Comes out: the chosen mark as SVG in `docs/design/wordmark.svg`, a section in `d
28
25
 
29
26
  Read the identity, the brief's name and identity nouns, and the design brief's personality.
30
27
 
28
+ ## 0. Marks they like
29
+
30
+ Ask once which marks they like and why: the cards on their board that show a mark, to pick from, or, when there are none, a search for marks (`design-moodboard`'s one piece). "None, just the name" is a fine answer. A liked mark lends only the kind of device (a cut, a ligature, a case, a rule); its letterforms and shapes never.
31
+
31
32
  ## 1. Marks, one sheet
32
33
 
33
- Four to six marks, each a small HTML page in `.longbeard/design/wordmark/`, made only from the identity's faces and colours and devices that belong to them: a cut, a ligature, a case, a rule, a shape, the accent. One of them is the name set plainly in the display face, so not making a mark is a choice too. Never a stock icon, a generic symbol, or anything from a reference.
34
+ Four to six marks, each a small HTML page in `.longbeard/design/wordmark/`, made only from the identity's faces and colours and devices that belong to them: a cut, a ligature, a case, a rule, a shape, the accent. One of them is the name set plainly in the display face, so not making a mark is a choice too. Never a stock icon, a generic symbol, or a reference's letterforms or shapes; a kind of device they liked in step 0 is fine.
34
35
 
35
36
  Each is shown where the name actually sits in the chosen screen (`.longbeard/design/direction/prototype/first.html`), at that size and on that ground, and once large on its own. Where the chosen screen does not show the name at all, that stays so: the mark is for the places that do (the navigation, the tab, the favicon). Capture them and set them on one sheet:
36
37
 
@@ -39,7 +40,7 @@ node <skill>/scripts/capture.mjs "file://$PWD/.longbeard/design/wordmark/1.html"
39
40
  node <skill>/scripts/sheet.mjs .longbeard/design/wordmark/sheet.html .longbeard/design/wordmark/1.png … --cols 3
40
41
  ```
41
42
 
42
- Each with one line of what it does ("the A's crossbar is the accent bar"). Numbered, never ranked.
43
+ Each with one line of what it does ("the A's crossbar is the accent bar"), and a fact when it breaks one of the direction's principles. Numbered, never ranked.
43
44
 
44
45
  > Which mark? Or one to push further ("2, but tighter").
45
46
 
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  // Lay screenshots out as one numbered sheet, so a round of first screens can
3
3
  // be seen and picked from together. It writes an HTML page; capture.mjs turns
4
- // that into the picture to show. No dependencies.
4
+ // that into the picture to show. The page is marked as a sheet, so links.mjs never
5
+ // counts it as a page of the prototype. No dependencies.
5
6
  //
6
7
  // node sheet.mjs .longbeard/design/direction/grid/sheet.html .longbeard/design/direction/grid/1.png .longbeard/design/direction/grid/2.png …
7
8
  // node sheet.mjs .longbeard/design/direction/grid/vary.html --cols 5 .longbeard/design/direction/grid/v*.png
@@ -49,6 +50,7 @@ writeFileSync(
49
50
  out,
50
51
  `<!doctype html>
51
52
  <meta charset="utf-8">
53
+ <meta name="generator" content="longbeard sheet">
52
54
  <title>Sheet</title>
53
55
  <style>
54
56
  body { margin: 0; padding: 24px; background: #6f6f6f; font: 600 22px/1 system-ui, sans-serif; }
@@ -1,11 +1,9 @@
1
1
  ---
2
2
  name: framework-skills
3
3
  description: >
4
- Find and propose agent skills for the frameworks and languages the project
5
- uses: the framework's own published skills first, else the most installed,
6
- read before proposing, installed on yes with longbeard add. Runs at
7
- Architecture once the stack is decided, and again when the repo gains a new
8
- stack (a pubspec.yaml, a new framework in package.json, a Cargo.toml).
4
+ Finds and proposes published agent skills for the project's frameworks and
5
+ languages, installs on yes. Runs at Architecture once the stack is
6
+ decided, and when the repo gains a new stack.
9
7
  ---
10
8
 
11
9
  # Framework skills
@@ -1,12 +1,10 @@
1
1
  ---
2
2
  name: idea
3
3
  description: >
4
- Turn an idea, or an existing repo, into docs/brief.md: one page that says
5
- what the product is, for whom, its core flows and key screens, and whether
6
- it has a UI. Grills in rounds until every section is settled, then writes
7
- the brief and offers the next stage. Runs first in a new project, when a
8
- repo has no brief, or when the product itself changes. A feature for a
9
- product that has a brief goes to to-spec, not here.
4
+ Turn an idea, or an existing repo, into docs/brief.md: what the product
5
+ is, for whom, its core flows, key screens and surface. Runs first, when a
6
+ repo has no brief, or when the product itself changes; a feature goes to
7
+ to-spec.
10
8
  ---
11
9
 
12
10
  # Idea
@@ -19,7 +17,7 @@ The brief says what and for whom, never how. No framework, database, host or lib
19
17
 
20
18
  Look at the repo. Do not ask what is there.
21
19
 
22
- 1. `docs/brief.md` exists and they bring a feature → not this skill. Grill the feature: they type `/grill-with-docs` when it brings new terms, otherwise load `grilling`. Then they type `/to-spec`. The brief stays as it is.
20
+ 1. `docs/brief.md` exists and they bring a feature → not this skill. Grill the feature: they type `/grill-with-docs` when it brings new terms, otherwise load `grilling`. Then they type `/to-spec` and `/to-tickets` in the same session: `to-spec` asks nothing and writes from the conversation. The brief stays as it is.
23
21
  2. `docs/brief.md` exists and the product itself changes (new people, new surface, a flow dropped) → **Change**.
24
22
  3. No brief, and the repo has code or a README → **Existing project**.
25
23
  4. Otherwise → **New idea**.
@@ -103,8 +101,8 @@ Read the brief. Grill only what changes and what hangs off it: a new surface reo
103
101
  Offer the next stage in one line, from the stages the router lists. A stage whose file already exists is done, so go past it:
104
102
 
105
103
  - Site, app or graphic, no `DESIGN.md` → `design`, which suggests the first design skill (`design-brief`).
106
- - No UI, or `DESIGN.md` exists → Design is skipped. Next is Architecture: they type `/grill-with-docs`.
107
- - `GLOSSARY.md` exists too → next is Plan: they type `/to-spec` for the first flow or feature.
104
+ - No UI, or `DESIGN.md` exists → Design is skipped. Next is Architecture: they type `/grill-with-docs`. Its design tree is the stack (language, framework, data, hosting) and the words the brief and any Figma screens already use. It ends with the stack as an ADR in `docs/adr/`.
105
+ - A stack ADR exists too → next is Plan: grill the first flow with `grilling`, then they type `/to-spec` and `/to-tickets` in the same session.
108
106
 
109
107
  With no Architecture stage in the router (a design-only install), the next stage is `design` for a site or app. Otherwise the brief is the result.
110
108
 
@@ -1,204 +0,0 @@
1
- # Design rules
2
-
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
-
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
-
7
- ## How to use this
8
-
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
- - 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, 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
- - **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
- - 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, except where the Graphics list says it does not. Then add the site, app or graphics list, whichever the brief's surface says.
15
-
16
- ## 0. Idea
17
-
18
- **Principle:** the screen says one thing about this product that a screen from another product would not.
19
-
20
- - [soft] Cover the logo and the name. Is it still recognisably this product, from its content, imagery, voice or structure? A screen that could belong to any product in the category fails.
21
- - [soft] You can say what the screen is for in one sentence, and the most visible element serves that sentence.
22
- - [soft] The ownable idea in `DESIGN.md` (or the direction, before `DESIGN.md` exists) shows up somewhere you can point to.
23
-
24
- ## 1. Hierarchy
25
-
26
- **Principle:** the eye lands first on what matters most, then moves in the order the task needs.
27
-
28
- - [hard] Exactly one element is the most prominent on the screen. Squint or blur the shot: one thing still stands out.
29
- - [hard] The primary action is easier to find than any secondary action. If two actions look equally important, only one of them should be.
30
- - [soft] Prominence comes from at most two of size, weight, colour and position at once. Using all four on one element is shouting.
31
- - [soft] Secondary text (meta, captions, help) is visibly quieter than body text, by lighter colour or smaller size, not both pushed to the limit.
32
-
33
- ## 2. Grouping
34
-
35
- **Principle:** things that belong together look together, and things that do not are kept apart.
36
-
37
- - [hard] The space between related items is clearly smaller than the space between groups. A label sits closer to its field than to the field above.
38
- - [soft] Each group is separated by one device: space, a tone step, a box, or a line. Two at once (a boxed card with a divider inside a tinted panel) is noise.
39
- - [soft] A reader can count the groups on the screen at a glance, and the count matches the sections the brief describes.
40
-
41
- ## 3. Alignment and grid
42
-
43
- **Principle:** every element sits on a line shared with something else.
44
-
45
- - [hard] Left edges of text blocks in one column line up. No block is nudged a few pixels off its neighbours.
46
- - [soft] The screen has a small number of alignment lines (often a column grid). Draw them on the shot: an element that touches none of them needs a reason.
47
- - [soft] Centred alignment is used for a single moment (an empty state, a hero line), not as the default for whole sections of left-reading content.
48
- - [soft] Numbers in a column align on the right or on the decimal, so they compare.
49
-
50
- ## 4. Spacing rhythm
51
-
52
- **Principle:** space comes from a short scale, and bigger gaps mean bigger separations.
53
-
54
- - [soft] Every gap on the screen comes from the spacing scale in `DESIGN.md`. Measure five gaps at random: all are on the scale.
55
- - [soft] There are at most three or four distinct gap sizes in one view, and each has a job (inside a component, between items, between groups, between sections).
56
- - [soft] Nothing touches the edge of its container. Text inside a box has padding at least as large as the gap between its lines.
57
- - [soft] Dense views stay dense on purpose: a table or list keeps tight rows rather than inheriting marketing-page spacing.
58
-
59
- ## 5. Typography
60
-
61
- **Principle:** a few sizes, far apart, set for reading.
62
-
63
- - [soft] The view uses at most five font sizes, and adjacent sizes are clearly different (roughly a 1.2× step or more), not 15, 16 and 17.
64
- - [soft] Body text runs about 45 to 80 characters per line on desktop. Count one line.
65
- - [soft] Body line height is visibly looser than heading line height. Headings of two lines do not drift apart.
66
- - [soft] Weight does the work before size. A label is not set larger to be noticed when bold would do.
67
- - [hard] No text is clipped, overlapped, or cut mid-word by its container, in any language the product ships.
68
-
69
- ## 6. Colour
70
-
71
- **Principle:** colour carries meaning, and the meaning stays the same everywhere.
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. 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
- - [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
- - [soft] Every colour on the screen is a token in `DESIGN.md`. Pick three at random: each maps to a named token.
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.
77
- - [soft] The accent colour marks action or state, and is not also used for decoration on the same screen.
78
- - [soft] Status colours (error, warning, success) are used for status only.
79
-
80
- ## 7. Consistency
81
-
82
- **Principle:** the same thing looks and behaves the same everywhere.
83
-
84
- - [hard] One action has one look. Two primary buttons on different screens are the same component, same size and same label case.
85
- - [soft] Components come from the Figma library or the codebase's components. A one-off that looks like a library component, but is slightly different, fails.
86
- - [soft] Icons share a style: one stroke weight or one fill style, one corner treatment, one optical size.
87
- - [soft] The same word means the same thing. "Delete" and "Remove" are not both used for one action.
88
-
89
- ## 8. States
90
-
91
- **Principle:** every screen is shown in every state a person will meet.
92
-
93
- - [hard] The 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 is recorded as not needed, with the reason. A reachable state with no frame is a failure, not a later task.
94
- - [hard] Empty says what goes here and gives the one action that fills it. Error says what went wrong in plain words and how to recover.
95
- - [hard] Interactive components show hover (pointer surfaces), focus, pressed, disabled, and selected where they apply. Each state is visibly different from default.
96
- - [soft] Loading keeps the layout's shape (skeleton or reserved space), so content does not jump when it arrives.
97
- - [soft] Long content is shown: the longest real name, a big number, a two-line title. Short sample text hides overflow.
98
-
99
- ## 9. Affordance and feedback
100
-
101
- **Principle:** what can be acted on looks like it, and every action visibly answers.
102
-
103
- - [hard] Every interactive element looks interactive without hovering. Text links are distinct from body text by more than colour alone, unless their position makes them obvious (a nav bar).
104
- - [hard] Nothing that looks interactive is not. A card that looks clickable is clickable, or loses the look.
105
- - [soft] Each action has a visible result frame: a saved state, a toast, the item appearing in the list, a progress indicator for anything over a second.
106
- - [soft] Destructive actions look different from safe ones and are never the default or most prominent option.
107
-
108
- ## 10. Accessibility
109
-
110
- **Principle:** the screen works for people who see, move and read differently.
111
-
112
- - [hard] The focused state of every interactive element shows a visible indicator with at least 3:1 contrast against what is around it. Check it in the focus frame.
113
- - [hard] Targets are at least 24×24 CSS pixels, or have that much space around them (WCAG 2.2 AA). The app list raises this for touch.
114
- - [hard] Every input has a visible label. A placeholder alone is not a label.
115
- - [hard] Text is real text, not text in an image, except in logos.
116
- - [soft] The screen still reads at 200% text size: nothing important is cut off in the zoomed frame.
117
-
118
- ## 11. Copy
119
-
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.**
123
-
124
- - [hard] No placeholder copy: no lorem ipsum, no "Title", no "Button", no "User Name".
125
- - [soft] Buttons say what happens: "Send invoice", not "Submit", "OK", "Get started" or "Learn more".
126
- - [soft] Headings are short. A heading that runs over two lines at its size is a sentence that belongs in the body.
127
- - [soft] The voice matches `DESIGN.md`. Read three strings aloud: they sound like one product.
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.
132
-
133
- ## 12. Imagery
134
-
135
- **Principle:** pictures show the real thing, or there are none.
136
-
137
- - [soft] Images show this product's subject, people or interface. A stock scene that fits any product in the category fails.
138
- - [soft] Where a picture belongs, there is a picture, not a grey box, a gradient or a text block pretending.
139
- - [soft] Images share one treatment: one crop logic, one colour handling, one corner shape.
140
- - [hard] Text over an image meets the contrast floor in rule 6 across the whole text area, not only on the darkest part.
141
-
142
- ## 13. Responsive
143
-
144
- **Principle:** each size is designed, not squeezed.
145
-
146
- - [hard] At mobile width (360–390px) nothing scrolls sideways, nothing is clipped, and nothing overlaps.
147
- - [hard] The primary action is reachable at every size without hunting: visible, or one obvious step away.
148
- - [soft] The layout changes structure between sizes where it should: columns stack, tables become lists or scroll inside their own box, navigation collapses into one control.
149
- - [soft] Type and spacing scale down a step on mobile, not to illegible sizes. Body text stays at least 16px.
150
-
151
- ## 14. Tells
152
-
153
- **Dated 2026-11-25. Reviewed each release.** Add new tells, retire ones that stopped being defaults.
154
-
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.
156
-
157
- - [soft] Purple-to-blue gradients on backgrounds, buttons, glows or headline text.
158
- - [soft] Translucent blurred panels used on two or more surfaces.
159
- - [soft] The same soft grey shadow under every card.
160
- - [soft] A row of three identical feature cards, each an icon in a rounded square, a heading and two lines.
161
- - [soft] Emoji used as icons or bullets.
162
- - [soft] A tiny tracked uppercase label above every heading, or a pill badge ("New", "Beta") above the hero line.
163
- - [soft] One word of a headline singled out in another face, colour or underline.
164
- - [soft] A cream ground with a terracotta or rust accent, used as a shortcut to "warm".
165
- - [soft] Decorative monospace labels, index numbering (01 / 02 / 03) as ornament, hairline rules boxing everything, or design-tool marks (crosshairs, crop marks) as decoration.
166
- - [soft] A fake dashboard made of grey bars and donut charts where a real interface fragment should be.
167
- - [soft] Invented social proof: logos, quotes, star rows or user counts the product does not have.
168
- - [soft] Every section in the same layout, or the stock order hero, logos, features, testimonial, pricing, call to action, when the argument needs another.
169
- - [soft] One medium corner radius on everything, chosen by default rather than on purpose.
170
- - [soft] A face that is the platform's or the framework's default (Inter, Roboto, the system UI stack) with no reference behind it.
171
-
172
- Removing tells is not the goal. A screen with none and no idea fails rule 0.
173
-
174
- ## Sites
175
-
176
- Add these when the brief's surface is a site: the page a person lands on to understand or choose.
177
-
178
- - [hard] The first screen at mobile and desktop says what this is and who it is for, without scrolling.
179
- - [soft] Sections follow the order of the argument the brief makes, and each section is composed differently from the one before.
180
- - [soft] There is one primary call to action, repeated at most at the end, with the same label.
181
- - [soft] Proof is real (product shots, named customers the product has, numbers it can stand behind) or absent.
182
-
183
- ## Apps
184
-
185
- Add these when the brief's surface is an app: the tool a person comes back to.
186
-
187
- - [hard] Touch targets on touch platforms are at least 44×44 pt (Apple) or 48×48 dp (Material), whichever platform it ships on. The web floor in rule 10 still applies.
188
- - [hard] The person always knows where they are: the current place in navigation is marked, and the screen title matches the nav item.
189
- - [soft] Density fits repeated use. Lists and tables show enough rows to work, not marketing-sized cards.
190
- - [soft] Navigation keeps the same place and shape on every screen of the flow.
191
- - [soft] Frequent actions are one step away. Rare and destructive ones may be further.
192
-
193
- ## Graphics
194
-
195
- 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.
196
-
197
- - **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.
198
- - **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.
199
- - [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.
200
- - [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.
201
-
202
- ## Sources
203
-
204
- 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).
@@ -1,20 +0,0 @@
1
- # The full build
2
-
3
- Read by `design-direction` once they settle on one screen: the jobs that take a quick screen to a full one. It runs once in the step, on that screen only. The principles, the moves and the round's checks are in [grid.md](grid.md).
4
-
5
- One agent that builds and judges defends its own choices, so the critic is a fresh agent with only what it needs. That is two agents in all: one critic, one fixer.
6
-
7
- **1. Critique (one fresh agent, pictures only).** It gets: the base reference (cropped to its screen), the screen, `layout-diff.mjs`'s `side.png` and `overlay.png` for it (`--mirror` when the layout turned) and the lines its `diff.json` marks off, the translation's capture, 3× crops of every small device, rule, tight gap and edge beside the same crops of the source (made for it: it runs no scripts), each move's source picture, the moves in words, what they wrote to leave out, and the contrast report. No rules, no brief, no session; only what the product is, in one line. It answers:
8
- - **Where is this screen less finished than its reference?** Every spot, small ones included (a gap, an edge, a size, a weight, a colour, a picture, text that cannot be read), each with the place in the reference that shows how it should be. The reference is the standard: what it does on purpose is never a fault.
9
- - **What changed from the translation that no move names?**
10
- - **In one line, what made the reference work, and does the screen keep it?**
11
- - **Anything on the screen that no reference has, or that they wrote to leave out?**
12
- - **What on this screen exists only because of this product?** Not its words or pictures but a thing: its ownable, a mark, a number, a form. An empty answer is a fault, listed like any other: a screen as right for another trade has borrowed and added nothing.
13
-
14
- It lists; it never redesigns.
15
-
16
- **2. Fix (one fresh agent), once.** It gets the critic's list, the screen's file and the same pictures, and changes only the spots listed, each toward what the reference does, with what the screen and its references already have; an empty answer to the last question is fixed with the ownable or a thing from the subject's card. The fix is a new version (`<n>-a.html`); the quick version stays theirs to take. Then capture, `layout-diff.mjs` and contrast again, and look at the two side by side yourself: a change that breaks something they liked is undone. No second critic.
17
-
18
- A spot left is a known fault, said beside the screen, never hidden. A stand-in picture is never a spot: it is listed under what they still supply. When every spot the critic lists is small (within the 15% principle 2 keeps, shows only in a 3× crop and never at the screen's own size, and breaks nothing the reference does on purpose), skip the fix; an empty answer to the product question is never small.
19
-
20
- Then the round's checks ([grid.md](grid.md)) on the new version: contrast and faults.