Skip to content

Anti-AI-slop design skill for Claude Code, Cursor, and Codex.

CSS

A full redesign of an app: the bare verb is defined, a mono outlier is material, a shell may link a font

Yousseff6905ece0e6d
diff --git a/skills/hallmark/references/design-md.md b/skills/hallmark/references/design-md.md
index b776af5..66434a4 100644
--- a/skills/hallmark/references/design-md.md
+++ b/skills/hallmark/references/design-md.md
@@ -6,7 +6,7 @@ Loaded when the user asks to lock the current build's system into a portable fil
*lock the system*, *lock the design system*, *give me a design.md*, *export this as a design.md*, *extract the tokens*, *make this portable*, *I want to use this in another project*. Anything else, including more iteration on the same brief, skips this file.
-- **Page builds only.** A single component is too small to be a system.
+- **Page builds and redesigns of more than one page.** A single component is too small to be a system.
- **Never overwrite.** If `design.md` or `DESIGN.md` exists at the root, refresh its `## Exports` and say so in one line: *design.md found; Exports refreshed, system unchanged.*
## Format
diff --git a/skills/hallmark/references/flow.md b/skills/hallmark/references/flow.md
index 9c81268..2aa7ff3 100644
--- a/skills/hallmark/references/flow.md
+++ b/skills/hallmark/references/flow.md
@@ -54,10 +54,10 @@ What takes their place:
- **Colour is restrained.** The accent marks the primary action, the current selection and state, nothing else; a second neutral carries sidebars, toolbars and panels.
- **The shell is the project's own.** A new one is a top bar; a sidebar is earned by more than about seven destinations, never reached for by reflex, and it collapses to a menu under 60rem. Standard patterns (tabs, breadcrumbs, a command palette) beat invented ones, and a modal is the last answer, after inline editing and disclosure.
- **Density is the design.** Controls 32 to 40px with a 44px hit target, one container recipe, tables before cards (a table may run wider than any prose measure), and `craft.md` § 9 for controls, inputs, tables and stat rows.
-- **Every region that loads data has four states:** loading (a skeleton in the shape of what is coming), empty (what belongs here and the one action that fills it), error (what broke and what to do) and full, per `interaction-and-states.md`. A build that draws only the full state has drawn a quarter of the screen.
+- **Every region that loads data has four states:** loading (a skeleton in the shape of what is coming), empty (what belongs here and the one action that fills it), error (what broke and what to do) and full, per `interaction-and-states.md`. A build that draws only the full state has drawn a quarter of the screen; a redesign draws the states the app has logic for and lists the rest for the owner.
- **State lives in the URL** (filters, tabs, pagination), and a destructive action is undone or confirmed.
- **Motion is state, never decoration:** `--dur-micro` and `--dur-short`, nothing orchestrated.
-- **Figures are the product's own.** A stat is a figure and its label in tabular numerals; no icon tile, no gradient, no trend arrow nobody measured (46a).
+- **Figures are the product's own.** A stat is a figure and its label in tabular numerals; no icon tile, no gradient, no trend arrow nobody measured (46a); on a redesign a figure the screen already shows stays and goes to the owner (`redesign.md`).
- **The signature** is still owed: the one object this tool is known by (the ledger, the timeline, the queue), not a greeting above four stat cards.
The load shrinks with the scope: no shape or archetype file, and of `craft.md` not § 4, § 7 or § 8. The Picks block drops Shape, Hero and Sections and names the screen instead: `Screen · transactions table with an inline filter row · states: loading, empty, error`. The stamp says `shape: app screen`, which sloplint and the edit-time hook read as the app scope, and the log entry carries `scope: app`.
diff --git a/skills/hallmark/references/redesign.md b/skills/hallmark/references/redesign.md
index 16d7edd..bd75adf 100644
--- a/skills/hallmark/references/redesign.md
+++ b/skills/hallmark/references/redesign.md
@@ -17,7 +17,7 @@ How far the run goes. The user's words pick it, on an app as on a page; where th
| Depth | Stays | Changes | Picked by |
| --- | --- | --- | --- |
| **polish** | the system and the layout | only what a gate names: the tells, contrast, states, motion, tokens | *polish*, *clean up*, *fix the design*; *keep our look*; a `design.md` |
-| **restyle** | the layout | the system: colour, type, radius, shadow, motion, the controls | *restyle*, *reskin*, *a new look*; the bare verb on an app screen, or on a page with a brand |
+| **restyle** | the layout | the system: colour, type, radius, shadow, motion, the controls | *restyle*, *reskin*, *a new look*; the bare verb (*redesign* with no reason or depth beside it) on an app screen, or on a page with a brand |
| **full** | the content and the wiring | the system and the composition: shape, hero, section objects, chrome | *redesign it fully*, *looks generic*, *looks generated*; the bare verb on a marketing page with no brand |
**Full depth on an app screen** recomposes each screen inside the shell it has: what leads, and how the figures, tables and forms are arranged (`flow.md` § App screens). Routes, destinations and each component's logic stay; there is no hero stage and no hero review.
@@ -72,7 +72,7 @@ Then the build rows the depth reaches: Theme at restyle and full (dealt, `brand`
2. The project's own checks, where it has them: the type check, the build, the tests. A redesign that breaks one is not finished.
3. The finish review also takes the `before` screenshots and answers what the old page did better (`review-finish.md`). A polish hands it only the full pages at 1440, before and after, and takes at most five findings. A finding that is a plain defect (a misalignment, a broken glyph, a label that lies) is fixed at any depth; one that asks for a new composition joins the layout findings; one that asks for content the page never had goes to the owner in the handoff.
4. The log entry carries `mode: redesign`, `depth` and `scope` (page, site or app), plus the build's fields at full depth.
-5. The handoff, ahead of the material ask:
+5. The handoff, ahead of the material ask; the Layout and Next rows exist only where the layout stayed:
```
Redesign · restyle · 3 pages
diff --git a/skills/hallmark/scripts/sloplint.mjs b/skills/hallmark/scripts/sloplint.mjs
index 9700ff3..3fd1c94 100644
--- a/skills/hallmark/scripts/sloplint.mjs
+++ b/skills/hallmark/scripts/sloplint.mjs
@@ -856,7 +856,7 @@ const GUARDS = {
'38ii': (ctx) => /font-synthesis\s*:\s*none/i.test(ctx.allCss) || 'font-synthesis: none is not declared',
'38iii': (ctx) => accentedWordInHero(ctx),
'42': (ctx) => (/(^|[·*])\s*nav:\s*\S/im.test(ctx.stampText) && /(^|[·*])\s*footer:\s*\S/im.test(ctx.stampText)) || 'the stamp has no nav: and footer: fields naming the chrome',
- '64': (ctx) => monoIsMaterial(ctx) || 'neither --font-display nor --font-body is a monospace face',
+ '64': (ctx) => monoIsMaterial(ctx) || 'none of --font-display, --font-body or --font-outlier is a monospace face',
'65': (ctx) => /by request|pinned|user named/i.test(ctx.stampText) || 'the stamp does not say the theme was asked for by name',
'44': (ctx) => /(^|[·*])\s*hero:\s*\S/im.test(ctx.stampText) || 'the stamp names no hero: posture',
};
@@ -1767,7 +1767,7 @@ function check34(ctx) {
if (it.info.oxHidden) hiddenUtil.push(it);
}
for (const it of hiddenUtil) report(34, 'FAIL', it.doc.file, it.line, `${it.info.oxHidden} on <${it.name}> (breaks sticky)`, 'overflow-x-clip on both html and body, never hidden');
- const shell = (d) => d.kind === 'html' && !d.styles.length && /<script\b[^>]*type\s*=\s*["']module["'][^>]*\bsrc\s*=\s*["'][^"']+\.(?:tsx?|jsx?|mjs|vue|svelte)["']/i.test(d.raw || d.src) && !/<link\b[^>]*rel\s*=\s*["']stylesheet/i.test(d.raw || d.src);
+ const shell = (d) => d.kind === 'html' && !d.styles.length && /<script\b[^>]*type\s*=\s*["']module["'][^>]*\bsrc\s*=\s*["'][^"']+\.(?:tsx?|jsx?|mjs|vue|svelte)["']/i.test(d.raw || d.src) && ![...(d.raw || d.src).matchAll(/<link\b[^>]*>/gi)].some((m) => /rel\s*=\s*["']stylesheet/i.test(m[0]) && !/href\s*=\s*["']https?:/i.test(m[0]));
const pageish = ctx.docs.some((d) => (d.kind === 'html' && !shell(d)) || (d.kind !== 'html' && d.tags.some((t) => !t.close && (t.name === 'html' || t.name === 'body'))));
const file = ctx.cssFiles[0]?.file || ctx.docs[0]?.file;
const both = clipped.has('html') && clipped.has('body');
@@ -2381,7 +2381,7 @@ function checkCopyTell(ctx) {
function monoIsMaterial(ctx) {
const mono = (v) => v && /mono|code|courier|silkscreen|jetbrains|plex mono|geist mono|commit|fira code|space mono|dm mono|roboto mono|source code|ibm plex mono|press start|vt323|share tech/i.test(firstFamily(resolveVars(v, ctx.tokens)));
- return mono(ctx.tokens['--font-display']) || mono(ctx.tokens['--font-body']);
+ return mono(ctx.tokens['--font-display']) || mono(ctx.tokens['--font-body']) || mono(ctx.tokens['--font-outlier']);
}
const HIDE_OK = /tooltip|popover|menu|dropdown|modal|dialog|toast|overlay|backdrop|sheet|drawer|panel|:hover|:focus|:checked|:target|\[open|\[aria-(?:expanded|selected|current|pressed)|::before|::after|\.is-|\[hidden|\[aria-hidden|sr-only|visually-hidden|skip|placeholder|::marker|\[data-slot/i;