Skip to content
Back to skills

Nextcore Design

ASecurity

Design-first discipline and UI measurement for AI agents. Use when building or redesigning a page or component, when changing a screen that already exists (clone the live baseline, draw only the delta), when migrating drawings from another design tool, when the user shares a reference image or says the UI looks generic / like a template / flat / AI-made, and when auditing or measuring UI: images blurry or reported as upscaled, wrong skeleton or loading flash, slow TBT, contrast reading ~1.00,...

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 25, 2026
ai-agentstypescriptgonodeawsapiperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 25, 2026

npx -y skills add kennetvn/nextcore-skills --skill nextcore-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nextcore Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nextcore Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kennetvn-nextcore-design/badge)](https://www.skillsdirectory.com/skills/kennetvn-nextcore-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nextcore-design
description: "Design-first discipline and UI measurement for AI agents. Use when building or redesigning a page or component, when changing a screen that already exists (clone the live baseline, draw only the delta), when migrating drawings from another design tool, when the user shares a reference image or says the UI looks generic / like a template / flat / AI-made, and when auditing or measuring UI: images blurry or reported as upscaled, wrong skeleton or loading flash, slow TBT, contrast reading ~1.00, dark mode not applying, dead space at wide viewports. Sequence: size the task, product discovery, draw the screen before code (locked tokens, every state, phone/tablet/desktop, real data), separate critic, build 1:1, audit with scripts in a real browser, validate the user can finish the job."
---

# nextcore-design — draw first, code second

> Building a layout from zero in code and patching it turn by turn (colour, spacing, breakpoints…) is the
> slowest way to reach a good UI. Draw it first, agree on the drawing, then copy the drawing into code.
>
> **Sequence:** size → discover (problem, job, success criteria, flow) → define (spec) → architect (information
> hierarchy) → design (drawing) → critique (separate agent) → implement 1:1 → audit (scripts) → visual review →
> **validate** (can the user finish the job? how will the business goal be measured?) → iterate only on measured gaps.
> Build the right screen before building the screen right. You are a designer who can code, not a coder who decorates.

## §1 When drawing first is mandatory

| Draw first | No drawing needed |
|---|---|
| A NEW page or component | Changing one string or one token |
| Re-laying out an existing page | Fixing a measured bug (overflow, tap target) |
| The user shares a reference image / link | Changing content inside an existing layout |
| The user says "looks like a template / bland / flat" | Adding one row to an existing table |

## §2 Read the brief BEFORE drawing — stops "a different style every time" and LLM defaults

0. **Size, then discover.** Write `Size:` (`nextcore-workflow` → `references/task-sizing.md`). MEDIUM and larger
   answer the problem (with a number), the job to be done, success criteria for user / business / system, an audit of
   the current experience (reuse · extend · replace · preserve) and a user flow with every branch — error, recovery,
   cancel, permission, expired, offline — before any artboard: `references/product-discovery.md`.
   **Spec** (`templates/spec.md`): goal, user, primary action, the 9 information-hierarchy questions, field
   map, states, responsive structure. Label every claim **FACT / ASSUMPTION / HYPOTHESIS / DECISION** — never invent
   research. Inventory the existing product first; reuse it and name its inconsistencies instead of starting a
   second design system. Every non-content element gets a one-phrase **"why"** (hierarchy, status, scanning…) or is
   removed. Details: `references/design-thinking.md`.

1. **One reading line** at the top of the artboard (also for redesigns):
   `Reading as: <screen kind> for <who uses it>, <feel>, layout type <named skeleton>.`
2. **Three dials, 1–10**, written right below: `variance` (symmetric ↔ experimental) · `motion`
   (static ↔ animated) · `density` (airy ↔ packed). Suggested defaults: dashboard/CRM `3/2/8` ·
   public marketing page `6/4/4`. Two drawings of the same product area must use the same dials —
   mismatched dials are the #1 source of "every redesign looks like a different product".
3. **New screens add 5 form questions** (skip for redesigns): role of the screen (entry / transition /
   data) · viewing distance (phone in hand / laptop) · temperature (calm / urgent / authoritative) ·
   capacity (what is understood in a 5-second glance) · **one motif taken from the content itself**
   that no other area of the product has.
4. **Two passes.** Write the plan (skeleton + dials + answers) → **self-review: does this plan look like
   the default layout any model would produce for a similar brief?** If yes, revise the plan, then draw.
5. **Vague brief or no reference ⇒ draw 3 directions that differ in LAYOUT** (not 3 recolours), let the
   human pick, and record why. Clear brief ⇒ one direction.

## §3 One master canvas, sources in the repo, a card on every drawing

- **The repo is the original.** One folder per drawing next to the code (`design/<slug>/` with the artboards,
  the canvas index and a `card.json`). The canvas on claude.ai is only a projection: any account or machine can
  rebuild it from the repo, and switching accounts never loses a drawing.
- **One master canvas for the whole product**, one *page* per product area (CRM, onboarding, settings…). A new
  feature is a new folder + a page section, never a new canvas or artifact. Reuse the area's frame artboards
  (sidebar, list column, light/dark) instead of redrawing them. Name artboards with a feature prefix.
- **Every drawing carries a design card** — what a reviewer needs before saying yes: feature, live route(s),
  why this design, built yet, plus measured devices / states / colour DNA / type DNA
  (`scripts/design-card.mjs`). Orange card = fix it before asking for approval.
- Draw in an **Artifact canvas**, not a claude.ai/design project — agents cannot read those back. Several Claude
  accounts or parallel agents on one canvas: `references/canvas-workflow.md`.

## §3b Existing screen? Clone the live baseline, draw only the delta

Measured on one app: 132 drawing folders, 3 matched the running app; one area had 14 loose drawings and none was
"the app today"; one proposed a notification bell for an app without notifications. Drawing from blank re-draws —
and silently changes — the parts nobody meant to change.

- **One baseline per product**, tagged with the version it shows, built from screenshots of the running app with real
  data. **UI work = clone the latest baseline screen, draw the delta**, mark the changed region.
- **Drift check first:** live screenshot vs baseline, dynamic regions masked; ≥ 3% of pixels different ⇒ update the
  baseline before cloning. Run the meter A↔A on one build first (unmasked it reported 4/57 false drifts; masked +
  double capture 0/43).
- **Update the baseline only from what shipped**, never from a drawing.
- **Drawing from scratch is gated:** a truly new screen (searches return 0) · the owner asked for a redesign
  (verbatim quote, from the owner) · the live screen is measurably bad (≥ 30% text fails AA, ≥ 30% targets < 24 px,
  overflow at ≥ 2 widths). Opinions do not open the gate.
- In a client's repo: their live app, their tokens — never yours.
- Any tool works (a Figma branch is a clone of the baseline). Details + traps: `references/baseline-and-delta.md`.
  Moving drawings out of an old tool (inventory, dry run, idempotent, score through the app's own viewer, dark render
  checked): `references/migrating-drawings.md`.

## §4 Every screen = at least 5 artboards

| Artboard | Must contain |
|---|---|
| **Empty** | icon + a specific instruction + a primary action (never a blank screen) |
| **Loading** | an **in-flow** skeleton shaped like the real content (no full-screen spinner, no `position:fixed; inset:0` overlay) |
| **Data** | **real-looking** sample data — real local names, organic numbers (1,247 not 1,000), varied dates |
| **Error** | inline field error under the field + a toast for the action; plain sentence, no exclamation mark |
| **Success** | confirmation toast or a state change |

Also consider **partial · permission denied · offline · long / unexpected content**, and the **interactive**
states that matter (hover, focus-visible, pressed, disabled, loading) — on touch there is no hover, so every
hover-only affordance needs a visible alternative. Draw them or rule them out in the spec with a reason.

**Device matrix — three widths, not one.** Draw 1280–1440 (desktop), **768 (tablet)** and 390 (phone) whenever the
layout changes shape, not just shrinks. Tablet is the one everybody skips: measured on 56 production drawings,
only 5 had a tablet artboard — and tablet is where two-column layouts break.

## §5 Lock the tokens INSIDE the drawing

The drawing uses no free colours. Use exactly the project's variables so coding is just copying:

```
body text           var(--ds-ink) / --ds-ink-soft / --ds-ink-muted
brand-coloured text var(--ds-primary-ink)        ← not the brand BACKGROUND colour
primary button      bg var(--ds-primary) + text var(--ds-primary-fg)
text on -soft fills var(--ds-<tone>-ink)         (info / success / warning / danger)
spacing             var(--ds-space-N)            (one scale, no magic px)
```

Read exact values from the token source file, **not from a table in some doc** — tables drift (a real
case: a spacing table documented every value at 2× the truth). Before drawing, run
`scripts/token-audit.mjs <tokens.css>`: it checks WCAG contrast of every text/background pair **in every theme**
and flags near-white / near-black tokens that have no dark-mode value (they vanish in dark mode).

Fonts are part of the brand DNA too: only the product's families. Measured on 56 production drawings, 20 used a
font the product does not ship (an agent "picking something nicer").

Backgrounds should not be one flat colour; glass needs something behind it (glass on a flat background is
invisible glass). Text over an image needs a scrim **measured at the text position**.

## §6 Self-check for "AI slop" before sharing the link

`scripts/slop-check.mjs` catches the ✓ items mechanically. Full list: `references/slop-tells.md`.

- ✓ hex / `rgb()` outside the token file · ✓ emoji used as icons · ✓ `transition: all`
- ✓ `word-break: break-all` (breaks emails, phone numbers, order codes in half)
- ✓ fake data: "John Doe", "Lorem ipsum", round 1,000 / 50,000, dates on the 1st of January
- ✓ purple–blue gradient not in the tokens · ✓ italic headings / a second font injected for emphasis
  (emphasise with **weight or colour of the SAME font**)
- ✓ `grid-template-columns: 1fr` (= `minmax(auto,1fr)` ⇒ horizontal page scroll; write `minmax(0,1fr)`)
- ✓ pixel patches: odd spacing (7px, 11px) or off-scale negative margins — fix the layout, not the pixels
- more than 3 corner radii on one screen · ≥6 identical cards when the content is not uniform
- tracked-out ALL-CAPS eyebrow on every section · centred hero when the reading line did not ask for it
- three identical "feature" columns · 01/02/03 numbering when the content has no order

## §6b Critique, separately — then the squint tests

- **A different agent critiques the drawing** before any code (`agents/design-critic.md`): it sees only the
  artefacts, cites artboard + element for each point, and answers `ship` or `revise`. Pipeline and stop rule:
  `references/agent-pipeline.md`.
- **Squint tests** on `scripts/design-review.mjs` (25% / 50% / grayscale / no-decoration views): the 5-second test
  (where am I, what is this for, what matters most, what next), the distance test, the black-and-white test.
  If hierarchy disappears without colour or decoration, fix type, spacing, grouping and position — not colour.

## §7 Hand-off to code

Hand over with the drawing: DOM tree + class names (BEM `block__element--modifier`), TypeScript props,
the list of tokens used (names, not values), and anti-truncation notes for identifiers.

While coding: **follow the drawing's layout and proportions 100%**; do not re-layout mid-build. If the
drawing is wrong, fix the drawing first (D1 → D2), then the code.

## §8 Acceptance — drawing vs running page

- **Versions:** never overwrite D1; duplicate to D2. Commits say which version they implement.
- **Before/after:** screenshot production BEFORE the change and AFTER the deploy completes, same width,
  same theme, same URL. Any metric that got worse rejects the change.
- **Match table:** compare code to drawing with `getComputedStyle` (token names, absolute font sizes,
  spacing ±2px, all 5 states). Every mismatch is fixed in code or becomes D(n+1).
- **Real data:** map every field to its API/DB source before drawing; draw with edge-case data from
  production (longest name, empty optional field, huge number).
- **Priority order when auditing:** accessibility (contrast, keyboard, aria) → tap targets ≥44px →
  performance (images, CLS) → layout per breakpoint → type & colour → motion → forms → navigation →
  charts. A failure higher up blocks checking lower items.
- **Before asking for approval:** `scripts/design-card.mjs <drawings> --tokens … --fonts … --app … --strict`
  must pass (phone + tablet + desktop, 4 states, ≥85% colours on token, brand fonts only, routes exist).
- **Validate, not only verify** (MEDIUM+): walk the primary job on the real page from the real entry point, phone first,
  through every flow branch; count steps and decisions; for the business goal write the expected mechanism and the
  measurement (event, baseline, date) — never a claimed uplift. `templates/validation-report.md`,
  `references/validation.md`. A screen that matches its drawing can still be one the user cannot finish.
- Open the real page at 390 / 768 / 1440 and **look at the screenshot**; also read
  `references/measurement-traps.md` — most "it passed" reports come from a wrong measurement. Symptom router:
  blurry or missing images → §Images (20–23) · wrong skeleton, flash, slow TBT → §Loading (24–28) · contrast ~1.00,
  dark mode "not working", all-green audit that still looks wrong → §More meter traps (29–31).

## §9 Kill-list

- ❌ Writing TSX/CSS before there is a drawing (except §1 right column)
- ❌ Drawing an existing screen from a blank artboard; cloning a baseline nobody checked for drift
- ❌ Scoring a migration through a renderer nicer than the one users open; skipping the dark render
- ❌ Drawing only the data state and skipping the other 4
- ❌ Hex colours or Tailwind colour utilities in the drawing
- ❌ Placeholder data; one avatar reused for many people
- ❌ Cliché copy ("Elevate", "Seamless", "Unlock"), Title Case everywhere, exclamation marks in errors
- ❌ Re-laying out while coding without updating the drawing
- ❌ Saying "done" without same-condition before/after screenshots
- ❌ Drawing a field that has no data source
- ❌ Asking for approval while the design card is orange; drawing without a tablet artboard
- ❌ Critiquing your own drawing and calling it reviewed; claiming "users prefer…" without evidence
- ❌ Drawing a MEDIUM+ screen before the problem, the job and the flow branches are written
- ❌ Calling a built MEDIUM+ feature done without a validation report; claiming conversion went up without data
- ❌ Fixing a layout with pixel nudges (`margin-top:-7px; translateY(3px)`); calling a design "perfect"

## §10 Tools (zero dependencies, Node ≥18)

| Script | Answers | Typical use |
|---|---|---|
| `scripts/slop-check.mjs <src>` | does the code carry "AI slop" tells or pixel patches? (11 rules) | pre-commit / CI on UI source |
| `scripts/token-audit.mjs <tokens.css> [--src <dir>]` | do my tokens pass contrast in every theme? any token missing a dark value? any `var()` that resolves to nothing? | when tokens change; CI |
| `scripts/design-card.mjs <drawings> --tokens … --fonts … [--app …]` | is each drawing complete and on-brand? | before asking for approval |
| `scripts/design-review.mjs <drawings> [--shot review.png]` | does the hierarchy survive distance, grayscale and no decoration? | critic + visual review |
| `scripts/spec-check.mjs <drawings>` | is discovery written for the task's size, every flow branch covered, every assumption checkable, a validation report present once built? | before drawing; before calling it done |

Agents: `agents/design-critic.md` · `agents/design-auditor.md`. Templates: `templates/spec.md` · `templates/card.json` ·
`templates/validation-report.md` · `templates/decision-record.md` ·
`templates/report.md` (end every meaningful design task with it: decisions, structure, states, responsive,
accessibility, what was measured, **remaining risks**).

Files in this skill

  • SKILL.md15.9 KB
  • agents/design-auditor.md1.6 KB
  • agents/design-critic.md2.8 KB
  • references/agent-pipeline.md3.7 KB
  • references/baseline-and-delta.md5.9 KB
  • references/canvas-workflow.md6.9 KB
  • references/design-thinking.md5.5 KB
  • references/measurement-traps.md8 KB
  • references/migrating-drawings.md4.5 KB
  • references/product-discovery.md3.6 KB
  • references/slop-tells.md2.1 KB
  • references/validation.md3.1 KB
  • scripts/design-card.mjs10.8 KB
  • scripts/design-review.mjs9.3 KB
  • scripts/slop-check.mjs10.1 KB
  • scripts/spec-check.mjs9.5 KB
  • scripts/token-audit.mjs15.4 KB
  • templates/card.json254 B
  • templates/decision-record.md695 B
  • templates/report.md1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.