Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.10.0

Driven by round 7 and a second opinion from a stronger model: the skill's own taste rules banned or penalised the moves that made the baseline pages memorable. **Not yet evaluated:** nothing here shows the pages are now more distinctive.

- **Pages that persuade may shout.** On `data-mode="persuade"` or `experience`, heavy weights and tracked capitals are no longer tells or drift flags; italic, full stops, strong colour and long headlines are allowed when the concept chooses them. Working screens keep every rule.
- **A seven-line concept:** adds one headline move only this product's headline could make, and a voice (face, weight, case, loudness). "Keep the rest calm" is gone.
- **Three display voices** under the Open Font Licence: Bricolage Grotesque, Newsreader (with italic) and Big Shoulders Display, beside Geist. `scaffold --kind base` now requires `--voice` and `--weight`, and writes letter spacing measured for that face and weight.
- **The base lost its house furniture:** no button arrow, no monospace captions, no dimmed second headline line.
- **Gate guidance:** the checks find faults in a chosen design; do not design toward the score.

## 0.9.0

Driven by round 6, where skilled pages lost on distinctiveness because they shared one frame.
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Review this screen against our brand guide.
| --- | --- | --- |
| 1 | **Read** | Finds your design rules, watches the screens run and measures the drift. |
| 2 | **Decide the mode** | Persuade, Operate, Read, Experience or Terminal: what the person is doing here. |
| 3 | **Fix the direction** | A five-line concept (what the product makes, what the page shows without its category word, one signature, a layout taken from that artifact, one material that runs through), then five lines on how it should feel and what it must never look like. |
| 3 | **Fix the direction** | A seven-line concept (what the product makes, what the page shows without its category word, one signature, a layout taken from that artifact, one material that runs through, one headline move, and a voice: face, weight, case and loudness), then five lines on how it should feel and what it must never look like. |
| 4 | **Branch** | Repairs an existing screen layer by layer, or builds a new one around one star. |
| 5 | **Build** | One section at a time, from your own components, with every state designed. |
| 6 | **Gate** | Runs your lint, types and tests, then measures contrast, target size and tells. |
Expand All @@ -124,14 +124,14 @@ Review this screen against our brand guide.
A blank file loses the craft, and a finished template loses the identity. So a new landing page starts from a base with tested type, controls and motion and no layout, and the agent builds the layout from the product’s own artifact. There are also two complete starters for when the standard shape is what you want. All of them pass the skill’s craft checks.

```bash
node scripts/scaffold.mjs my-page --kind base --theme light
node scripts/scaffold.mjs my-page --kind base --theme light --voice serif --weight 600
node scripts/scaffold.mjs my-standard-page --theme light --palette ember --shape contour
node scripts/scaffold.mjs my-app --kind app --theme dark
```

| Starter | What you get |
| --- | --- |
| **Base** (`--kind base`) | Type with tracking set by size, buttons and links with hover and press, focus styles, colour, the motion kit and fonts. `page.css` is empty: the frame is yours. |
| **Base** (`--kind base`) | Buttons and links with hover and press, focus styles, colour, the motion kit and fonts. You choose the headline face and weight (`--voice sans`, `grotesk`, `serif` or `condensed`, with `--weight`), and the letter spacing measured for them is written in. `page.css` is empty: the frame is yours. |
| **Landing page** | A lit grainient ground, a floating nav, a product frame, an uneven bento, steps, one big number, a closing call and a footer. The motion kit is wired in: ordered entrance, scroll reveals, count-up, and a hover and press state on every control. |
| **App screen** (`--kind app`) | A sidebar that becomes a menu on a phone, a page header with one primary action, four key numbers, one chart, a table whose status is a word and a dot, and an empty state that says what to do. |

Expand Down Expand Up @@ -187,6 +187,7 @@ references/
assets/motion/ the motion kit: entrance, reveal, count-up, magnetic, tilt, spotlight, marquee, draw, sweep buttons
assets/starters/ the landing and app starters, tested in a browser
assets/fonts/ Geist, Geist Mono and Instrument Serif under the Open Font Licence
assets/voices/ Bricolage Grotesque, Newsreader and Big Shoulders Display, same licence
assets/recipes/ tested generators and kits: grounds, flat colour tones, duotone prints, annotation chips and diagrams, headline helpers, contours, stones, vessels, dither, halftone, HUD callouts, isometric art
scripts/ the measuring and building tools above
evals/ briefs, scoring, a tracking measurement and the write-up of every test round
Expand Down
12 changes: 6 additions & 6 deletions SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ One fixed run for every request. Do the steps in order. Each step names the file
| --- | --- | --- | --- |
| 1 | **Read** | Find the project's design rules, establish what is real, see the screens running, measure the drift | [references/read.md](references/read.md) |
| 2 | **Decide the mode** | Persuade, Operate, Read, Experience or Terminal: what the person is doing here | [references/modes.md](references/modes.md) |
| 3 | **Fix the direction** | The concept in five lines (native artifact, the page without its category word, one signature and why this ground, the layout taken from the artifact, one material that runs through), then five lines: product, character, world, moments, signature. From the project's rules if it has them | [references/direction.md](references/direction.md), [devices.md](references/devices.md) |
| 4 | **Branch** | Existing screen: repair layer by layer. New screen: build around one star. **A new landing page starts from `scripts/scaffold.mjs --kind base`**: tested type and controls, your own layout | [fix.md](references/fix.md) or [build-new.md](references/build-new.md) |
| 3 | **Fix the direction** | The concept in seven lines (native artifact, the page without its category word, one signature and why this ground, the layout taken from the artifact, one material that runs through, one headline move, the voice: face, weight, case and loudness), then five lines: product, character, world, moments, signature. From the project's rules if it has them | [references/direction.md](references/direction.md), [devices.md](references/devices.md) |
| 4 | **Branch** | Existing screen: repair layer by layer. New screen: build around one star. **A new landing page starts from `scripts/scaffold.mjs --kind base --voice … --weight …`**: tested type and controls, your own layout | [fix.md](references/fix.md) or [build-new.md](references/build-new.md) |
| 5 | **Build** | One section at a time, from the project's own parts, with every state | [build.md](references/build.md), [components.md](references/components.md), [motion.md](references/motion.md), [hover.md](references/hover.md), [materials.md](references/materials.md) |
| 6 | **Gate** | The project's checks, then measured design checks | [references/gate.md](references/gate.md) |
| 7 | **Look** | Render at four widths, hover every control, fix what shows, up to three rounds | [look.md](references/look.md), [feels-cheap.md](references/feels-cheap.md), [hover.md](references/hover.md) |
Expand All @@ -42,13 +42,13 @@ Also load, as the work needs them: the surface file for the mode ([web-app](refe
2. **What exists is evidence, not approval.** Sloppy styling already in the code is never a rule.
3. **Decide, do not interrogate.** A vague request gets a one-line reading and a start. Ask only when a missing fact blocks the work. Never ask about colours, fonts or vibe. If nobody can answer (a one-shot or non-interactive run), state your assumptions in the report and proceed; never stall.
4. **Keep the product.** Features, content and section order stay. Do not rename it, invent features, claims, data or customers.
5. **Never replace decoration with decoration.** Removing a tell leaves space; fill it with scale, real content, or nothing.
6. **Remove the tells** in `anti-slop.md` as part of the work. Say so only if it mattered.
5. **On a working screen, never replace decoration with decoration.** Removing a tell leaves space; fill it with scale, real content, or nothing.
6. **Remove the tells** in `anti-slop.md` as part of the work. Say so only if it mattered. A page that persuades may shout: heavy or condensed headlines, tracked capitals, italic, a full stop, more than one strong colour are choices there (`anti-slop.md`, first section).
7. **Reuse first.** The project's components, tokens and icon set, then a library it already uses. Add a new piece only when nothing fits, and name it. A new dependency is the person's decision: ask, and check the licence (`libraries.md`).
8. **Look before you show.** Render the real screen at 320, 390, 1440 and 2560 px (terminal: 60 and 120 columns). Do not claim a width looks fine if you did not render it.
9. **Measure, do not guess.** Run the scripts. The report's numbers come from them.
10. **Be honest.** If a check fails, say so with the output. If a step was skipped, say that. If something is left over, list it.
11. **Own the frame, not only the artwork.** A good picture inside the usual layout is still a template. Write the concept (`direction.md`) before the first scaffold, take the layout from the shape of the artifact, carry one material through the page, keep the rest calm, and pass the swap and frame checks at the gate.
11. **Own the frame, not only the artwork.** A good picture inside the usual layout is still a template. Write the concept (`direction.md`) before the first scaffold, take the layout from the shape of the artifact, carry one material through the page, give the headline a move of its own, and pass the swap and frame checks at the gate.
12. **Every control answers.** Each interactive element gets a designed hover and a press state, and a page gets one entrance. Look at the hover state, not only the resting one.

## Tools
Expand All @@ -61,7 +61,7 @@ Plain Node 22+ scripts in `scripts/`, no installs, using the Chrome on the machi
| `scripts/drift.mjs <url or file> --save before.json` | Counts font sizes, weights, radii, colours, spacing in use; later `--against before.json` |
| `scripts/signs.mjs <url or file> [--allow "Tell"]` | Finds machine-made tells in the rendered page; `--allow` licenses devices a committed direction uses on purpose |
| `scripts/check.mjs <url or file>` | Contrast, touch-target size, small text, missing names |
| `scripts/scaffold.mjs <folder> --kind base` | Starts a page with the craft and no layout: type with tracking by size, controls, focus, colour, motion kit and open fonts; you write `page.css` from the concept. `--theme`, `--accent`, or `--palette` (a lit palette, or the flat tones `cobalt`, `mint`, `sand`). `--kind landing` (the default of the script) is the whole standard page, for a brief that asks for the standard shape or cannot spare the time; its frame is shared by every page started from it (flags in `landing-craft.md`). `--kind app` starts an app screen: sidebar, header, key numbers, chart, table and empty state. `inline.mjs <folder> --out page.html` folds the result into one file |
| `scripts/scaffold.mjs <folder> --kind base --voice serif --weight 600` | Starts a page with the craft and no layout: controls, focus, colour, motion kit and open fonts, with the headline face and weight you choose (`sans`, `grotesk`, `serif`, `condensed`; both required) and tracking measured for them; you write `page.css` from the concept. `--theme`, `--accent`, or `--palette` (a lit palette, or the flat tones `cobalt`, `mint`, `sand`). `--kind landing` (the default of the script) is the whole standard page, for a brief that asks for the standard shape or cannot spare the time; its frame is shared by every page started from it (flags in `landing-craft.md`). `--kind app` starts an app screen: sidebar, header, key numbers, chart, table and empty state. `inline.mjs <folder> --out page.html` folds the result into one file |
| `scripts/lib-add.mjs add bencho <item>` | Pulls real source from Bencho, BoardUI, Aceternity or any shadcn registry (files only, with a licence notice and the packages to install). See `libraries.md` |
| `scripts/craft.mjs <url or file> [--shots dir]` | Hovers every control with a real pointer and diffs both the computed style and the pixels, so a control that ignores the pointer, or answers it invisibly, is caught; also flags transitions on layout properties and motion that ignores the reduced-motion setting |
| `scripts/dotify.mjs <image or svg> --mode hex` | Turns any picture or drawn SVG into dithered, halftone, hex-dot, engraved-line or ASCII art for a hero object; `--fill` and `--bg` make it a two-colour duotone |
Expand Down
26 changes: 12 additions & 14 deletions assets/starters/base/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@ a { color: inherit; }
/* ---------- Shape: one radius decision for the whole page. 999px, 0.75rem or 0, and mean it. ---------- */
:root { --shape: 999px; --gutter: clamp(1rem, 4vw, 3rem); }

/* ---------- Type: roles, with tracking that follows size (evals/tracking.mjs) ---------- */
.display { margin: 0; font: 400 clamp(2.75rem, 6vw, 6rem)/0.98 var(--sans); letter-spacing: -0.03em; text-wrap: balance; }
@media (min-width: 62rem) { .display { letter-spacing: -0.04em; } }
@media (min-width: 80rem) { .display { letter-spacing: -0.05em; } }
@media (min-width: 96rem) { .display { letter-spacing: -0.055em; } }
.h2 { margin: 0; max-width: 22ch; font: 400 clamp(2rem, 4vw, 3.5rem)/1.08 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
@media (min-width: 80rem) { .h2 { letter-spacing: -0.03em; } }
.h3 { margin: 0; font: 500 1.25rem/1.25 var(--sans); text-wrap: balance; }
.lede { max-width: 34rem; margin: 0; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.note { margin: 0; font: 400 0.8125rem/1.4 var(--mono); color: var(--ink-3); }
.dim { color: var(--ink-3); }
/* ---------- Type: the face and weight come from theme.css, with tracking measured for them ---------- */
/* Margins carry no specificity, so the stacking rule below and your page.css both win. */
:where(.display, .h2, .h3, .lede, .note, .actions) { margin: 0; }
.display { font: var(--display-weight) clamp(2.75rem, 6vw, 6rem)/0.98 var(--display); letter-spacing: var(--track-1); text-wrap: balance; }
@media (min-width: 62rem) { .display { letter-spacing: var(--track-2); } }
@media (min-width: 80rem) { .display { letter-spacing: var(--track-3); } }
.h2 { max-width: 22ch; font: var(--display-weight) clamp(2rem, 4vw, 3.5rem)/1.08 var(--display); letter-spacing: var(--track-h2); text-wrap: balance; }
.h3 { font: 600 1.25rem/1.25 var(--sans); text-wrap: balance; }
.lede { max-width: 34rem; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.note { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.dec { color: var(--ink-3); }
p { max-width: 65ch; text-wrap: pretty; }

/* ---------- Controls ---------- */
Expand All @@ -36,13 +34,13 @@ p { max-width: 65ch; text-wrap: pretty; }
.m-btn.large { min-height: 3.25rem; padding: 0 1.5rem; font-size: 1rem; }
.m-link { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; }
.m-link:hover, .m-link:focus-visible { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- The few blocks every page needs, left plain ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem var(--gutter); }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; font: 500 1.0625rem/1 var(--sans); text-decoration: none; transition: color 180ms var(--m-ease); }
.brand:hover, .brand:focus-visible { color: var(--accent); }
:where(.first, .last) { padding: clamp(3rem, 8vw, 7rem) var(--gutter); }
:where(.first, .last) > * + * { margin-top: 1.5rem; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--gutter); font: 400 0.8125rem/1.4 var(--mono); color: var(--ink-3); border-top: 1px solid var(--line); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--gutter); font-size: 0.8125rem; color: var(--ink-3); border-top: 1px solid var(--line); }
@media (max-width: 40rem) { .actions .m-btn { flex: 1 1 100%; justify-content: center; } }
10 changes: 6 additions & 4 deletions assets/starters/base/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" data-theme="dark">
<html lang="en" data-theme="dark" data-mode="persuade">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand All @@ -17,6 +17,8 @@

<!-- This starter has no layout on purpose. The craft is done (type, buttons, focus, motion, fonts, colour); the frame
is yours, and it comes from the concept (references/direction.md):
Headline: one move only this product's headline could make. Build it into the h1.
Voice: the face and weight are set in theme.css; case, size and how loud the ground is are yours.
Layout: follow the shape of the native artifact. Where it runs, the page runs.
Material: one thing the artifact is made of, drawn in the page itself, marked data-device="name" on the first
screen and in at least two more sections.
Expand All @@ -32,18 +34,18 @@
<section class="first" id="top" aria-labelledby="title">
<h1 class="display" id="title" data-todo>
<span class="m-line"><span style="--d:0">What it does,</span></span>
<span class="m-line dim"><span style="--d:90">for whom.</span></span>
<span class="m-line"><span style="--d:90">for whom.</span></span>
</h1>
<p class="lede" data-enter style="--d:260" data-todo>One or two plain sentences: what the product is, who it is for, and the result they get.</p>
<p class="actions" data-enter style="--d:340"><a class="m-btn large" href="#start" data-todo>Primary action <span class="m-arrow" aria-hidden="true"></span></a></p>
<p class="actions" data-enter style="--d:340"><a class="m-btn large" href="#start" data-todo>Primary action</a></p>
<!-- The native artifact, drawn from the product and labelled as an example if it is one:
<figure data-artwork data-device="name" aria-label="Example: ..."> ... </figure> -->
</section>

<section class="last" id="start" aria-labelledby="start-title">
<h2 class="h2" id="start-title" data-todo>One clear next step.</h2>
<p data-todo>One sentence that makes the next step feel small.</p>
<p class="actions"><a class="m-btn large" href="#top" data-todo>Primary action <span class="m-arrow" aria-hidden="true"></span></a></p>
<p class="actions"><a class="m-btn large" href="#top" data-todo>Primary action</a></p>
</section>
</main>

Expand Down
Loading
Loading