Skip to content
Merged
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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.8.0

Driven by the verdicts "good but replaceable" and "nothing sets this apart". The craft floor was solid; the weak point was that pages were their own skeleton and nothing else. The skill now makes an agent decide what is ownable before it builds, and gives it grounds and artwork that are not the default.

- **A concept step** inside step 3 (the run is still nine steps): the product's native artifact and its moment of value, the first screen described without the category word, and one signature (an artwork or an interaction) with everything else calm, written as three lines. The report and the log carry it.
- **The swap-the-name test** (`scripts/swap.mjs`, and a required one-line answer at the gate). With the product name removed, does the first screen still use the nouns of the product's own subject, and does its artwork name them? It refuses nouns that fit any product. It checks that, and only that: a pass is not a verdict on the picture, which is why the gate also asks for a sentence.
- **First-class grounds.** The soft grainy gradient is now described, everywhere it is taught, as the default of machine-built pages that needs a reason in the concept. `scaffold --ground flat` (one saturated colour: `--palette cobalt`, `mint` or `sand`) and `--ground frame` (a dark rounded panel set into the page) are built, tested and sit beside it in a choose-the-ground table in `directions.md`.
- **A card hero** (`--hero card`): a centred headline, then the product card cropped by the bottom of the first screen, with a thin traced diagram behind it and annotation chips with pointer arrows on it.
- **Duotone prints with no photograph** (`assets/recipes/duotone.mjs`): five computed subjects (column, vase, sphere, drape, strata) as a halftone, an engraving or a dither in two colours, or your own field. `scaffold --art` puts one in the split hero as a stand-in; `dotify.mjs --mode lines` engraves any picture. One subject drawn in testing (hills) read as a flat slab and was dropped.
- **Annotation and headline helpers** (`annotate.mjs`, `headline.mjs`): chips, a connecting-line diagram, a lighter-tint word inside a headline, and big figures with grey decimals.
- **Tracking follows size.** The starter set -0.055em on a 48 px phone headline, while `house-rules.md` said -0.02em from 40 px and `landing-craft.md` said -0.04 to -0.06em. `evals/tracking.mjs` now measures real letter gaps in Chrome, and the guidance is one table by size. Both numbers were right at their own size. Instrument Serif takes no tightening at all. The starter steps its tracking by width, and a test holds it to the measurement at six widths (it fails on the old CSS).
- **Round 6, and what it found.** `evals/mask.mjs` renders a page with the product name masked (and, optionally, the text blurred) for blind judging; briefs 13 (a product with an obvious native artifact) and 14 (a dull one). Two judge agents compared the skilled and baseline pages for three products. The skilled pages won on the mechanical checks (89 against 43 mean) and **lost on distinctiveness in all six judgements**: the three skilled pages shared one frame (pill nav, sand hero, steps, price band), while the baselines carried the product's own material through the whole page. `swap.mjs` passes every page, so it does not catch that. The write-up (`evals/results/2026-11-25-r6.md`) lists the limits and what to change next; none of those changes is in this release.
- **Fixes from the builders' reports.** `shoot.mjs --full` scrolls the page through first, so scroll-revealed sections are in the picture. `swap.mjs` counts a framed box built from HTML as artwork (it first failed two baselines whose picture was HTML). `direction.md` says its concept example is an example, because three of three agents copied its ground. `landing-craft.md` notes that the starter's mobile rules are overridden by a later rule with the same selector.

## 0.7.0

- **The website is rebuilt on the skill's own landing starter** and set in a type system (five working sizes, four display sizes, roles not sizes). It ships the same motion kit, fonts and lit ground it teaches, and passes `signs`, `check` and `craft` at all four widths.
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ node scripts/scaffold.mjs my-app --kind app --theme dark
| **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. |

Seven grounds are built in (`--shape pools`, `horizon`, `bowl`, `blob`, `sweep`, `rays` or `contour`). Add `--hero split` to put the headline beside the one object only your product has, or `--minimal` for a short brief with few facts. Every placeholder is marked `data-todo`, and `signs.mjs` reports any left, so unfinished copy cannot ship.
Seven lit grounds are built in (`--shape pools`, `horizon`, `bowl`, `blob`, `sweep`, `rays` or `contour`). The soft grainy gradient is also what most machine-built pages reach for now, so there are first-class alternatives: `--ground flat` (one saturated colour, `--palette cobalt`, `mint` or `sand`) and `--ground frame` (a dark rounded panel set into the page). `--hero split` puts the headline beside the one object only your product has, and `--art column` (or `vase`, `sphere`, `drape`, `strata`) fills it with a duotone print as a stand-in. `--hero card` centres the headline and crops the product card at the fold, with a traced diagram behind it and annotation chips on it. `--minimal` is for a short brief with few facts.

```bash
node scripts/scaffold.mjs my-page --ground flat --palette cobalt --hero card
``` Every placeholder is marked `data-todo`, and `signs.mjs` reports any left, so unfinished copy cannot ship.

## The tools

Expand All @@ -146,10 +150,10 @@ Plain Node scripts with no dependencies. The agent runs them for you, and you ca
| `scripts/signs.mjs <url or file>` | Finds tells in the rendered page: hue gradients, glows, emoji, hype words, unverified claims, looping animation and more. | `--allow` licenses a device your committed direction uses on purpose |
| `scripts/check.mjs <url or file>` | Reads WCAG contrast from the rendered pixels, so gradients, images and pseudo-element backgrounds are judged too. Also checks touch targets, small text, missing names, focus styles, layout shift and document basics. | `--widths` |
| `scripts/craft.mjs <url or file>` | Hovers every control with a real pointer and diffs the result, so a control that ignores the pointer is caught, not missed. Also flags layout-property transitions and motion that ignores the reduced-motion setting. | `--shots` writes a rest and hover crop per control |
| `scripts/scaffold.mjs <folder>` | Starts a landing page or an app screen from a tested starter. | `--kind`, `--theme`, `--palette`, `--shape`, `--hero`, `--minimal` |
| `scripts/scaffold.mjs <folder>` | Starts a landing page or an app screen from a tested starter. | `--kind`, `--theme`, `--palette`, `--shape`, `--ground`, `--hero`, `--art`, `--minimal` |
| `scripts/inline.mjs <folder>` | Folds a finished page, with its styles, script and fonts, into one file you can send. | `--out page.html` |
| `scripts/lib-add.mjs add <source> <item>` | Pulls real source from Bencho, BoardUI, Aceternity or any shadcn registry. Files only, with the licence notice. | `--dry-run`, `--out` |
| `scripts/dotify.mjs <image or svg>` | Turns a picture or drawn SVG into dithered, halftone, hex-dot or ASCII art for a hero object. | `--invert` |
| `scripts/dotify.mjs <image or svg>` | Turns a picture or drawn SVG into dithered, halftone, hex-dot, engraved-line or ASCII art for a hero object. | `--mode`, `--invert`, `--fill`, `--bg` |
| `scripts/swap.mjs <url or file>` | The swap-the-name test. With the product name removed, does the first screen still use the nouns of the product's own subject, and does its artwork name them? It catches a page where only the skeleton is the product's own. It cannot judge the picture. | `--nouns`, `--name`, `--typographic` |
| `scripts/score.mjs <url or file>` | Runs every check and prints one score out of 100, with what cost points. | |
| `scripts/term-shot.mjs -- <command>` | Runs a terminal program at a set width in a real pseudo-terminal and captures its text and an image. | |
Expand Down Expand Up @@ -180,9 +184,9 @@ 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/recipes/ tested generators and kits: grounds, contours, stones, vessels, dither, halftone, HUD callouts, isometric art
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 and the write-up of every test round
evals/ briefs, scoring, a tracking measurement and the write-up of every test round
examples/ real before and after runs
```

Expand All @@ -192,7 +196,9 @@ Each brief was built twice by the same model, once with no skill and once with i

Across the first three rounds the skill won 9 of 12 comparisons, with a mean mechanical score of 96 against 62. On a later plain brief that never mentioned how it would be judged, the motion and hover score was 75 with the skill and 31 without.

The limits are real: one reviewer, a round that was not blind, and both sides on the same model. The skill lost two comparisons in the first round, because it made clean pages where the other side drew something memorable. The guide and recipes for that one rich moment came from those losses. [Read all five rounds.](evals/results)
In round 6 the comparison was blind, with the product name masked and two judge agents, and it went the other way on distinctiveness: the skilled pages scored 89 against 43 on the mechanical checks, but the judges found the baseline pages more ownable and more memorable in all six comparisons, because the three skilled pages shared one frame. The write-up says what that means and what to change.

The limits are real: one reviewer in the early rounds, a round that was not blind, and both sides on the same model. The skill lost two comparisons in the first round, because it made clean pages where the other side drew something memorable. The guide and recipes for that one rich moment came from those losses. [Read all six rounds.](evals/results)

## Questions

Expand Down
6 changes: 3 additions & 3 deletions SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ One fixed run for every request. Do the steps in order. Each step names the file
| 8 | **Report** | Short, plain, honest about what is left | [references/report.md](references/report.md) |
| 9 | **Log** | Project lessons into the project; skill lessons proposed, never self-applied | [references/lessons.md](references/lessons.md) |

Also load, as the work needs them: the surface file for the mode ([web-app](references/surfaces/web-app.md), [landing](references/surfaces/landing.md), [reading](references/surfaces/reading.md), [showpiece](references/surfaces/showpiece.md), [terminal](references/surfaces/terminal.md), [iOS](references/surfaces/native-ios.md), [Android](references/surfaces/native-android.md)); [house-rules.md](references/house-rules.md) for default numbers; [anti-slop.md](references/anti-slop.md) for the tells to remove; [libraries.md](references/libraries.md) before adding any outside component, kit or library; [principles.md](references/principles.md) for the reason under every rule, when a case is not covered; [visual-craft.md](references/visual-craft.md) for the one rich moment on a new screen; [landing-craft.md](references/landing-craft.md) for why the best landing pages work and which kit piece builds each decision; [directions.md](references/directions.md) for committed looks and the hero object pipeline; [devices.md](references/devices.md) for the structural moves that make a page memorable, each with the reason it works; [materials.md](references/materials.md) for surface, light and grain; [hover.md](references/hover.md) for hover and press states.
Also load, as the work needs them: the surface file for the mode ([web-app](references/surfaces/web-app.md), [landing](references/surfaces/landing.md), [reading](references/surfaces/reading.md), [showpiece](references/surfaces/showpiece.md), [terminal](references/surfaces/terminal.md), [iOS](references/surfaces/native-ios.md), [Android](references/surfaces/native-android.md)); [house-rules.md](references/house-rules.md) for default numbers; [anti-slop.md](references/anti-slop.md) for the tells to remove; [libraries.md](references/libraries.md) before adding any outside component, kit or library; [principles.md](references/principles.md) for the reason under every rule, when a case is not covered; [visual-craft.md](references/visual-craft.md) for the one rich moment on a new screen; [landing-craft.md](references/landing-craft.md) for why the best landing pages work and which kit piece builds each decision; [directions.md](references/directions.md) for committed looks, choosing the ground (lit, flat, frame, duotone) and the hero object pipeline; [devices.md](references/devices.md) for the structural moves that make a page memorable, each with the reason it works; [materials.md](references/materials.md) for surface, light and grain; [hover.md](references/hover.md) for hover and press states.

## Rules that always hold

Expand All @@ -61,10 +61,10 @@ 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> --theme dark --palette midnight` | Starts a landing page from a complete, tested starter: lit grainient ground, floating nav, product frame, bento, steps, closing call, footer, with the motion kit and open fonts wired in. Replace every `data-todo`; `signs.mjs` reports any left. `--minimal` drops the optional sections for a short brief. `--kind app` starts an app screen instead: sidebar, header, key numbers, chart, table and empty state, tested the same way. `inline.mjs <folder> --out page.html` folds the result into one file |
| `scripts/scaffold.mjs <folder> --theme dark --palette midnight` | Starts a landing page from a complete, tested starter: lit grainient ground, floating nav, product frame, bento, steps, closing call, footer, with the motion kit and open fonts wired in. Replace every `data-todo`; `signs.mjs` reports any left. `--minimal` drops the optional sections for a short brief. The lit gradient is the default of machine-built pages, so choose the ground on purpose: `--ground flat --palette cobalt|mint|sand` or `--ground frame` are first-class; `--hero card` crops the product card at the fold with a traced diagram and annotation chips; `--art column|vase|sphere|drape|strata` puts a duotone print in the split hero (a stand-in for the product's own artifact). `--kind app` starts an app screen instead: sidebar, header, key numbers, chart, table and empty state, tested the same way. `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 or ASCII art for a hero object |
| `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 |
| `scripts/swap.mjs <url or file> --nouns "clause,redline" --name Marrow` | The swap-the-name test: with the product name removed, does the first screen still use the product's own nouns, and does its artwork name the artifact? Refuses nouns that fit any product. Catches a page where only the skeleton is owned |
| `scripts/score.mjs <url or file>` | Runs every check and prints one score out of 100 |
| `scripts/term-shot.mjs -- <command>` | Runs a terminal command at a given width and captures text and image (needs Python 3) |
Expand Down
9 changes: 4 additions & 5 deletions assets/recipes/annotate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// import { chip, heroDiagram, annotationCss } from './annotate.mjs';
// chip({ label: 'Clause 4.2 deviates', x: 8, y: 30, pointer: 'br' }) // HTML, positioned in % of its parent
// heroDiagram({ width: 1200, height: 520, card: { x: 230, y: 250, w: 740 }, seed: 2 }) // an SVG string
// heroDiagram({ width: 1200, height: 520, card: { x: 200, y: 250, w: 800 }, seed: 2 }) // an SVG string
//
// Rules that keep it honest (references/directions.md, "Annotations"): a chip points at something real in the
// picture, says one thing in plain words, and never claims a number the product cannot back. Three chips at most.
Expand Down Expand Up @@ -69,18 +69,17 @@ export function elbow([x1, y1], [x2, y2], { first = 'h', radius = 14 } = {}) {
return roundedPolyline([[x1, y1], [x2, y1], [x2, y2]], radius);
}

// A diagram that sits behind a card: nodes at the left, right and top, each joined to the card by a thin traced line.
// A diagram that sits behind a card: nodes at the left and right, each joined to the card by a thin traced line.
// Seeded, so the same page always gets the same diagram. `card` is { x, y, w }: where the card's top edge is.
// Every label is a placeholder (data-todo): replace each with the name of one of the product's own parts.
export function heroDiagram({ width = 1200, height = 520, card = { x: 230, y: 250, w: 740 }, seed = 1, stroke = 'var(--line-strong)', text = 'var(--ink-3)', labels } = {}) {
export function heroDiagram({ width = 1200, height = 520, card = { x: 200, y: 250, w: 800 }, seed = 1, stroke = 'var(--line-strong)', text = 'var(--ink-3)', labels } = {}) {
const rand = rng(seed);
const names = labels ?? ['Part one', 'Part two', 'Part three', 'Part four', 'Part five'];
const names = labels ?? ['Part one', 'Part two', 'Part three', 'Part four'];
const slots = [
{ side: 'l', x: 36, y: 70 + rand() * 50, join: [card.x + card.w * 0.12, card.y], first: 'h' },
{ side: 'l', x: 36, y: 200 + rand() * 40, join: [card.x, card.y + 56 + rand() * 30], first: 'hvh' },
{ side: 'r', x: width - 36, y: 56 + rand() * 50, join: [card.x + card.w * 0.88, card.y], first: 'h' },
{ side: 'r', x: width - 36, y: 190 + rand() * 50, join: [card.x + card.w, card.y + 56 + rand() * 30], first: 'hvh' },
{ side: 'l', x: card.x + card.w * 0.46, y: 30 + rand() * 20, join: [card.x + card.w * 0.5, card.y], first: 'v' },
];
const paths = [];
const nodes = [];
Expand Down
Loading
Loading