Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
JavaScript agent-skillsai-agentsanti-slopclaude-codecodexcursordesign-systemfrontendlanding-pageui-designweb-design
v2.1 (wip): page fixes from the first page round; manifests at 2.1.0; CHANGELOG
Leonxlnxe8ee6d2a056d
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 27430e2..792154f 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -9,7 +9,7 @@{"name": "taste-skill","description": "tasteskill v2: art direction for coding agents, with a library of researched directions, real pictures from open collections and a real-browser inspector. Also image-generation, redesign and style skills.",- "version": "2.0.0",+ "version": "2.1.0","source": "./","author": {"name": "leonxlnx",diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 831614b..d4774e3 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "taste-skill","description": "tasteskill v2: art direction for coding agents, with a library of researched directions, real pictures from open collections and a real-browser inspector. Also image-generation, redesign and style skills.",- "version": "2.0.0",+ "version": "2.1.0","author": {"name": "leonxlnx","email": "[email protected]"diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.jsonindex a72046b..175c622 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "taste-skill",- "version": "2.0.0",+ "version": "2.1.0","description": "tasteskill v2: art direction for coding agents, plus image-to-code, redesign, image-generation and style skills.","author": {"name": "leonxlnx",diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5db16ed..e32a0d9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,38 @@ All notable changes to taste-skill live here. The repo follows SemVer-ish discip---+## 2.1.0 - unreleased++### App screens: dashboards, admin, settings, inboxes++The default skill now builds the screens people work in, not only the pages they read. `SKILL.md` asks first whether the job is a page or an app screen; an app screen takes its own route.++- **`references/app-screens.md`**, a new chapter: the run for an app screen (inventory the data and the jobs, name the screen's one question and its one finding, write the data with assertions, deal a style, build the shell, the data and every state, check, look), the shell, the canvas and title, KPIs, charts, tables and lists, forms and settings, type and colour for light and dark, density, empty, zero, loading and error states, the phone and the tablet, the house rules for app screens and the tells of generated dashboards with what replaces each.+- Distilled from a study of 23 real product screens chosen by the owner (17 products, 17 light and 6 dark), measured from their pixels. The screenshots stay private; the skill carries only the measurements and the rules.+- **`draw.mjs --app`** deals an app style from `library/app.json`: seven styles (achromatic ledger, framed sheet, accent ladder, editorial greeting, pastel consumer, true-black flat, data terminal), each with tokens, type, a colour budget and the one move that makes it recognisable, plus five shells and 21 screen patterns for 13 kinds of product.+- **`inspect.mjs --app`** and **`lint.mjs --app`** (switched on by an app sheet) judge app screens by their own rules: quiet borders, small labels, repeated panels and tables are allowed; heavy shadows, glass, icons in tinted squares, rainbow charts, placeholder data, text under 11px, a sidebar left on the phone, ragged rows, a thin first screen, landing-page titles and figures, a dead strip beside the canvas and colour sprawl are not.+- **`assets/app.css`** (a neutral shell, panels, divided KPI strip, tables, pills, controls, tabs, empty states and the phone fold) and **`assets/charts.js`** (line, bars, ring, bar list, plan against spent, share against target, with annotations, reference lines, forecasts and capped ranges), both set to the study's defaults.+- Tested in three blind rounds of eight, six and five builds judged from screenshots against the reference screens; the warnings at the top of the chapter come from what the judges marked down.++### The frame of a page++Generated pages most often fail before any detail: no clear title, margins that do not match, a section pushed to one side with half the screen empty, long blank stretches, sections with no heading, text against the screen edge.++- `SKILL.md` step 6 gains "The frame", the house rules three new rows, and a finish line before the report.+- `inspect.mjs` measures each of them: `no-title`, `name-only-title`, `off-centre` (FAIL, and a WARN from 16px of drift), `lopsided`, `empty-middle`, `blank-gap`, `untitled-section`, `edge-text`, `ragged-edges`, `small-title`, `many-h1`. The thresholds come from the study below: strong pages hold their margins within a few pixels, about one text section in a hundred leaves half the width empty, 82% of text sections open with a heading.+- `critique.md`: a five-second pass, a frame pass and new caps. `layout.md`: empty space rewritten and a new section on the frame.++### A study of the latest 100 Awwwards Sites of the Day++Captured on 18 October 2026 at 1440 and 390, with what moved and the CSS that loaded measured in the page, and read by a panel of one model reader per site (91 usable). Learning only: nothing a site owns is reproduced.++- **Pictures and footage:** `imagery.md` §12, where pictures go (picture share per screen, nineteen placements ranked with their geometry and phone versions, footage, crops, text over pictures) and stricter video rules (a poster on every clip, one moving picture per screen, contrast checked across the whole loop).+- **Motion:** `motion.md` gains what strong pages do with motion (the curves and durations that actually ran, staggers, scroll triggers, the cost of preloaders), new tokens (`--ease-expo`, `--ease-exit`, `--t-open`, staggers), scroll behaviours ranked, ten new recipes (lines that rise, an opening window, a held picture with passing captions, a sideways gallery, a receding hero, an index anchored to its row, a 1.2-second load sequence, view transitions between pages, an ink fill, rolling figures), the gimmicks to avoid and rules. Seven new signature moves in `library/motions.json`.+- **Library:** 10 hero and 13 section compositions, 21 new studied sites and media and motion notes on 70 more (`draw.mjs --site <id>`).+- **New checks:** `late-title` (the title is not readable 1.2s after load), `reduced-hidden` (content that stays hidden under reduced motion), `no-poster`.++---+## 2.0.0 - 2026-10-13### Repodiff --git a/skills/taste-skill/SKILL.md b/skills/taste-skill/SKILL.mdindex 8dbc230..84b5a4b 100644--- a/skills/taste-skill/SKILL.md+++ b/skills/taste-skill/SKILL.md@@ -177,8 +177,10 @@ Write the whole page as a copy deck (plain text) before markup, following `refer- **Every headline fits in two lines or fewer at every width.** Do the arithmetic in copy.md §2 beforecommitting to a sentence: about 32 characters is safe everywhere at a confident size. The studiedgallery heroes have a median of 5 words and 32 characters.-- One supporting sentence. One primary action, named for what it does, as a real button on the first- screen.+- One supporting sentence, directly under the headline (32–48px below it) and shown with it, never+ docked at the foot of the first screen or held back by an animation. When the headline is a name or+ a figure of speech, this sentence says plainly what the thing is. One primary action, named for what+ it does, as a real button on the first screen.- **The first screen answers the visitor's first question in large type.** For an event: what it is,when and where (the dates belong in the headline or at the second size, never only in small text).For a product: what it is and what it costs or does. For a person: who and what they do. Every@@ -228,6 +230,13 @@ not finished. Order of work:sea house), never as a stand-in for the subject;6. type and colour alone.+ When the project has footage or a real picture of its own process or product, the first screen+ shows it, large (about 40% of the screen or more). Never write a sentence on the page about where+ the pictures come from or what they are not ("none of these shows our bar"): a caption says what+ the picture is, and the credit line sits small in the footer. A portfolio whose work is invented+ for the brief draws each piece as a finished still of that work (its title card with its own type,+ an end frame, a poster), with real detail, never as a pictogram of the client's product.+**The floor, which the inspector checks:** at least four real pictures on the page, usually six totwelve (photographs, archival images, maps, engravings, footage, raster artwork; for software, itscropped interface fragments count too). SVG drawings do not count toward the floor: draw what nodiff --git a/skills/taste-skill/references/layout.md b/skills/taste-skill/references/layout.mdindex 29b411a..dae26af 100644--- a/skills/taste-skill/references/layout.md+++ b/skills/taste-skill/references/layout.md@@ -165,6 +165,14 @@ are from the study of 97 Sites of the Day (October 2026).the other. Never leave the other half to plain ground.- The middle counts too: a card at the left edge and a lone button at the right with the middle thirdempty is the same hole.+- The first screen counts too. When the sentence and the button take the left third above a name+ docked at the foot, the upper right holds something (the picture or film, one fact, the action) or+ the name grows up to meet them; in testing, 60% of a first screen left as plain ground under the+ navigation read as a hole, and the inspector now warns when one empty block takes 28% of the first+ screen or more.+- A display line fitted to the width is fitted by measurement (a small script that sets its size from+ the content box, or SVG text with `textLength`), never by a size guessed for one face: a name that+ starts on the margin and runs a few pixels off the other edge reads as a mistake.- A centred composition has one axis, equal flanks and one thing on it, not a stack of heading,paragraph and two buttons.diff --git a/skills/taste-skill/scripts/lib/probe.mjs b/skills/taste-skill/scripts/lib/probe.mjsindex af33628..3aa8d7a 100644--- a/skills/taste-skill/scripts/lib/probe.mjs+++ b/skills/taste-skill/scripts/lib/probe.mjs@@ -648,6 +648,20 @@ export function layout() {// fixed headers and corner labels count here: that is where text most often creeps to the edgeconst edge = 16;const edgeText = boxes.filter((b) => b.kind === 'text' && b.chars >= 3 && b.size < 40 && b.l >= -1 && b.r <= W + 1 && (b.l < edge || b.r > W - edge) && !b.el.closest('[class*="marquee" i],[class*="ticker" i],marquee,[data-ui],table')).slice(0, 8).map((b) => ({ text: b.text, side: b.l < edge ? 'left' : 'right', px: Math.round(b.l < edge ? b.l : W - b.r) }));+ // display type that runs off one edge by a sliver while it starts inside the margin: a fit error, not a bleed+ const slivers = boxes.filter((b) => b.kind === 'text' && b.size >= 40 && b.chars >= 3 && ((b.l >= 8 && b.r > W + 1 && b.r - W < b.size * 0.25) || (b.r <= W - 8 && b.l < -1 && -b.l < b.size * 0.25))).slice(0, 4).map((b) => ({ text: b.text.slice(0, 30), px: Math.round(b.r > W ? b.r - W : -b.l), side: b.r > W ? 'right' : 'left' }));+ // the largest empty rectangle on the first screen (below a 90px band for the navigation), on a 24 x 15 grid+ let voidShare = 0, voidBox = null;+ if (W >= 1000) {+ const C = 24, Rn = 15, cw = W / C, ch = H / Rn, occ2 = Array.from({ length: Rn }, () => new Array(C).fill(0));+ for (const b of boxes) { if (b.t - SY > H || b.b - SY < 0) continue; const c0 = Math.max(0, Math.floor(b.l / cw)), c1 = Math.min(C - 1, Math.floor((b.r - 1) / cw)), r0 = Math.max(0, Math.floor((b.t - SY) / ch)), r1 = Math.min(Rn - 1, Math.floor((b.b - SY - 1) / ch)); for (let r = r0; r <= r1; r++) for (let c = c0; c <= c1; c++) occ2[r][c] = 1; }+ const top = Math.ceil(90 / ch), hgt = new Array(C).fill(0);+ for (let r = top; r < Rn; r++) {+ for (let c = 0; c < C; c++) hgt[c] = occ2[r][c] ? 0 : hgt[c] + 1;+ for (let c = 0; c < C; c++) { let mn = Infinity; for (let k = c; k < C && hgt[k]; k++) { mn = Math.min(mn, hgt[k]); const a = mn * (k - c + 1); if (a > voidShare) { voidShare = a; voidBox = { x: Math.round(c * cw), y: Math.round((r - mn + 1) * ch), w: Math.round((k - c + 1) * cw), h: Math.round(mn * ch) }; } } }+ }+ voidShare = Math.round((voidShare / (C * Rn)) * 100) / 100;+ }// a fixed picture layer that covers the screen (a canvas scene, a film) hides what the DOM cannot seeconst stage = boxes.some((b) => b.layer === 'fixed' && b.kind === 'media' && (b.r - b.l) * (b.b - b.t) >= W * H * 0.9);// the first screen: is the title a bare name, with nothing at reading size saying what this is?@@ -658,7 +672,7 @@ export function layout() {const lefts = flow.filter((b) => b.kind === 'text' && b.size >= 14 && !/center|right|end/.test(b.align) && b.l >= 0 && (b.el.closest('h1, h2, h3') || (b.chars >= 60 && b.el.closest('p, blockquote'))) && !b.el.closest('nav, footer, [data-ui], table, li, figcaption')).map((b) => b.l).sort((a, b) => a - b);const edges = []; for (const x of lefts) { const e = edges.find((g) => Math.abs(g.x - x) <= 10); if (e) e.n++; else edges.push({ x: Math.round(x), n: 1 }); }edges.sort((a, b) => b.n - a.n);- return { viewport: { w: W, h: H }, pageH, margins: { left: L == null ? null : Math.round(L), right: R == null ? null : Math.round(R) }, sections, gaps, h1s, edgeText, edges: edges.slice(0, 12), leftBlocks: lefts.length, bodySize, stage, explains };+ return { viewport: { w: W, h: H }, pageH, margins: { left: L == null ? null : Math.round(L), right: R == null ? null : Math.round(R) }, sections, gaps, h1s, edgeText, edges: edges.slice(0, 12), leftBlocks: lefts.length, bodySize, stage, explains, slivers, voidShare, voidBox };}// app() measures what an app screen (dashboard, admin, settings, inbox) gets right or wrong: the shell,diff --git a/skills/taste-skill/scripts/lib/rules.mjs b/skills/taste-skill/scripts/lib/rules.mjsindex 0dd6861..f463457 100644--- a/skills/taste-skill/scripts/lib/rules.mjs+++ b/skills/taste-skill/scripts/lib/rules.mjs@@ -179,6 +179,10 @@ export function judgeLayout(L, { width = L.viewport.w, allow = [] } = {}) {const untitled = L.sections.filter((s) => !s.hero && !s.footer && !s.continues && !s.heading && s.words >= 30 && s.height >= 200);if (untitled.length >= 2) add('FAIL', 'untitled-section', `${untitled.length} sections carry text but no heading: ` + untitled.slice(0, 4).map((s) => `${s.sel} at ${s.top}px (${s.words} words)`).join('; '), 'Give each section a short heading that names what it holds (the menu, the rooms, how it works, the price), in the heading face at the section size.');else if (untitled.length) add('WARN', 'untitled-section', `A section carries text but no heading: ${untitled[0].sel} at ${untitled[0].top}px.`, 'Name it with a short heading unless it is the continuation of the section above.');+ // the first screen: a large empty rectangle that nothing closes reads as "random empty space"+ if (!mobile && L.voidShare >= 0.28 && !L.stage) add('WARN', 'hero-void', `${Math.round(L.voidShare * 100)}% of the first screen is one empty block (${L.voidBox.w}×${L.voidBox.h}px at ${L.voidBox.x},${L.voidBox.y}).`, 'Place the void on purpose or fill it: move the picture, the film or one fact into it, grow the headline to meet it, or shrink the screen to its content. A void reads as placed only when something closes it on the far side and it is the screen\'s one rest.');+ // display type that starts inside the margin but runs off the opposite edge by a sliver: a fit error+ if (L.slivers && L.slivers.length) add('WARN', 'one-sided-bleed', `${L.slivers.length} display line(s) start inside the margin but run off the ${L.slivers[0].side} edge by a few pixels: ` + L.slivers.map((t) => `"${t.text}" (${t.px}px)`).join('; '), 'Fit the line to the content box by measurement (a small fit script, or SVG text with textLength), or bleed it on purpose by a clear amount from the margin. A name sliced by a few pixels on one side reads as a mistake.');// text pressed against the screen edgeconst tight = L.edgeText.filter((t) => t.px < (mobile ? 12 : 16)), near = mobile ? L.edgeText.filter((t) => t.px >= 12) : [];if (near.length && !tight.length) add('WARN', 'edge-text', `${near.length} text block(s) sit 12–15px from the phone's edge: ` + near.slice(0, 3).map((t) => `"${t.text.slice(0, 30)}" (${t.px}px)`).join('; '), 'The page margin is 16–20px on a phone; the header and the corner labels sit on it too.');@@ -229,4 +233,4 @@ export function judgeApp(A, m, { width = A.viewport.w, allow = [] } = {}) {return out;}-export const RULE_IDS = ['headline-lines', 'statement-length', 'focal-point', 'hero-words', 'mixed-font-headline', 'eyebrow', 'mono', 'numbering', 'micro-label', 'emoji', 'gradient', 'gradient-text', 'shadow', 'text-shadow', 'button-fx', 'hairline', 'outlined-box', 'dashed', 'glass', 'icon-cards', 'card-rows', 'pill-nav', 'palette-claude', 'palette-terracotta', 'palette-cream', 'palette-purple', 'default-link', 'contrast', 'font-count', 'font-fallback', 'size-count', 'body-size', 'measure', 'small-text', 'all-centred', 'ui-wrapper', 'overflow', 'broken-image', 'no-hero', 'first-action', 'grey-body', 'blend-text', 'covered-text', 'clipped-text', 'pinned-over-picture', 'empty-screens', 'long-pin', 'side-scroll', 'few-pictures', 'no-real-pictures', 'no-footage', 'still-page', 'off-centre', 'lopsided', 'blank-gap', 'no-title', 'small-title', 'many-h1', 'name-only-title', 'empty-middle', 'untitled-section', 'edge-text', 'ragged-edges', 'sidebar-phone', 'unused-canvas', 'heavy-shadow', 'heavy-borders', 'radius-mix', 'icon-chips', 'numeric-align', 'tabular', 'rainbow-chart', 'placeholder-data', 'tiny-text', 'colour-sprawl', 'ragged-row', 'below-fold', 'app-title-size', 'kpi-size', 'icon-tiles', 'late-title', 'reduced-hidden', 'no-poster'];+export const RULE_IDS = ['headline-lines', 'statement-length', 'focal-point', 'hero-words', 'mixed-font-headline', 'eyebrow', 'mono', 'numbering', 'micro-label', 'emoji', 'gradient', 'gradient-text', 'shadow', 'text-shadow', 'button-fx', 'hairline', 'outlined-box', 'dashed', 'glass', 'icon-cards', 'card-rows', 'pill-nav', 'palette-claude', 'palette-terracotta', 'palette-cream', 'palette-purple', 'default-link', 'contrast', 'font-count', 'font-fallback', 'size-count', 'body-size', 'measure', 'small-text', 'all-centred', 'ui-wrapper', 'overflow', 'broken-image', 'no-hero', 'first-action', 'grey-body', 'blend-text', 'covered-text', 'clipped-text', 'pinned-over-picture', 'empty-screens', 'long-pin', 'side-scroll', 'few-pictures', 'no-real-pictures', 'no-footage', 'still-page', 'off-centre', 'lopsided', 'blank-gap', 'no-title', 'small-title', 'many-h1', 'name-only-title', 'empty-middle', 'untitled-section', 'edge-text', 'ragged-edges', 'sidebar-phone', 'unused-canvas', 'heavy-shadow', 'heavy-borders', 'radius-mix', 'icon-chips', 'numeric-align', 'tabular', 'rainbow-chart', 'placeholder-data', 'tiny-text', 'colour-sprawl', 'ragged-row', 'below-fold', 'app-title-size', 'kpi-size', 'icon-tiles', 'late-title', 'reduced-hidden', 'no-poster', 'hero-void', 'one-sided-bleed'];