Skip to content

About

Frontend design SKILL.md for Claude Code, Cursor & Codex: stops AI slop UI with modular routing, CSS lint, and zero-dep Chrome CDP visual checks.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

atelier-ui

An adaptive frontend design skill (SKILL.md) and zero-dependency Chrome CDP verifier for AI coding agents.

Probes your repository once, resolves open constraints in a single turn, loads only the playbook your project type needs, and checks real browser pixels before handing back.

CI Smoke Tests License: MIT Node.js Zero Dependencies Verified Proofs


atelier-ui verified builds across Brand Sites, SaaS Consoles, and 3D WebGL Shaders

Why agents still ship generic UI

Most frontend skill files stuff brand landing advice, dashboard ergonomics, and WebGL guidance into one giant prompt—and silently assume third-party CLIs are already installed. Tell an AI agent to fix a Next.js table with that setup and it may start inventing sourdough-style hero typography or failing on missing global packages.

atelier-ui separates discovery, styling direction, and verification into focused modules for Antigravity, Claude Code, Codex CLI, and Cursor across static HTML, React, Next.js, Tailwind CSS, shadcn/ui, Astro, Vue, Svelte, and Three.js / WebGL.


Live Proof & Rendered Output

Explore the live interactive 3-mode showcase at yashh1323.github.io/atelier-ui-showcase (Nordhavn Timber, DriftGate Console, and Meridian 04 WebGL2).

Every screenshot below was rendered by atelier-ui workflows, linted with lint-ui.mjs, and captured in headless Google Chrome at 1440×900 (desktop) and 390×844 (mobile) via check-ui.mjs. Full JSON telemetry and smoke test logs live in docs/PROOFS.md.

Surface & Module Desktop (1440×900) Mobile (390×844) Measured QA Gate
Nordhavn Timber
02-brand-site.md
Persuade · product · editorial-stone
Nordhavn Timber Works desktop render Nordhavn Timber Works mobile render Lint + CDP: PASS
0 fails, 0 warns, 3 routes verified, 5/5 webfonts loaded, 0 AA contrast errors
DriftGate Console
03-app-ui.md
Operate · 6 UI states · tabular-nums
DriftGate Console desktop render DriftGate Console mobile render Lint + CDP: PASS
0 fails, 0 warns, scrollWidth 390, 6/6 webfonts loaded, 0 console errors
Meridian 04 Astrolabe
04-3d-visual.md
3D · WebGL2 GLSL · S01–S03
Meridian 04 Astrolabe WebGL2 desktop render Meridian 04 Astrolabe WebGL2 mobile render Lint + CDP: PASS
0 fails, 0 warns, WebGL2 rendered, 3 camera shots, 0 AA contrast errors

Install

Install or update across detected agent directories using the built-in zero-dependency CLI (bin/atelier-ui.mjs):

npx github:yashh1323/atelier-ui install
npx github:yashh1323/atelier-ui doctor

Or install directly using the skills CLI:

npx skills add yashh1323/atelier-ui

Or clone into your agent's skill directory:

Agent / Tool Global Skill Path Workspace-Local Path
Antigravity ~/.gemini/config/skills/atelier-ui .agents/skills/atelier-ui
Claude Code ~/.claude/skills/atelier-ui .claude/skills/atelier-ui
Codex CLI ~/.codex/skills/atelier-ui .codex/skills/atelier-ui
Cursor ~/.cursor/skills/atelier-ui .cursor/skills/atelier-ui

On Windows, link a local clone globally without Administrator privileges using a directory junction:

New-Item -ItemType Directory -Force "$env:USERPROFILE\.gemini\config\skills" | Out-Null
New-Item -ItemType Junction -Path "$env:USERPROFILE\.gemini\config\skills\atelier-ui" -Target "C:\path\to\atelier-ui"

Requirements

When impeccable or agent-browser are present on your PATH, detect-env.mjs detects them and 05-qa-gate.md delegates to them first. When neither is installed, the built-in Node scripts run out of the box with zero npm install steps.


Architecture & Routing

SKILL.md acts as the lightweight router—only the module matching the current project enters agent context:

detect-env.mjs ──▶ 01-intake.md (.atelier/BRIEF.md)
                         │
        ┌────────────────┼────────────────┐
        ▼                ▼                ▼
 02-brand-site.md   03-app-ui.md    04-3d-visual.md
 (+ themes.json)    (existing UI)   (WebGL / GLSL)
        │                │                │
        └────────────────┼────────────────┘
                         ▼
         05-qa-gate.md (lint-ui ──▶ check-ui CDP ──▶ Tier 3 Critic)
File Responsibility
scripts/detect-env.mjs Scans package.json, lockfiles, components.json, PRODUCT.md/DESIGN.md, and local CLI/browser binaries once.
modules/01-intake.md Resolves surface mode (Persuade, Experience, Operate, Read, 3D), stack, direction, and QA depth in one message, saving .atelier/BRIEF.md.
modules/02-brand-site.md + library/themes.json Classifies business kind (software, gaming, tech, product, service, place), rotates away from recent picks via .atelier/history.json, and checks the nav + hero in Chrome before building lower sections.
modules/03-app-ui.md Preserves existing design tokens (Tailwind, shadcn/ui, Next.js, Astro, Vue, Svelte), adds surgical steering (bolder, quieter, distill, typeset, layout, harden), and enforces interactive UI states.
modules/04-3d-visual.md Establishes camera presets (.atelier/SHOTS.md), deterministic ?shot=...&frame=... stepping alongside live animation, software-WebGL handling, and bounded round logs (.atelier/ROUNDS.md).
modules/05-qa-gate.md Runs Tier 1 slop lint, Tier 2 desktop + mobile browser verification (1440×900 & 390×844), and optional zero-context screenshot critique.

What Scripts Verify (and What They Don't)

  • Static UI Linter (lint-ui.mjs): Scans .html, .css, .jsx, .tsx, .vue, .svelte, and .astro files for layout traps and AI slop (100vw, w-screen, transition: all, missing :focus-visible, placeholder text, eyebrow kickers directly preceding <h1>, middot metadata runs, missing prefers-reduced-motion, default indigo/purple gradients). On existing component kits such as shadcn/ui, pass only your authored directories so untouched primitives are ignored.
  • Headless Browser QA (check-ui.mjs): Drives Chrome DevTools Protocol (CDP) across static folders (including multi-page --routes, multi-angle --shots, side-by-side --sheet contact sheets, and --ref comparisons) or live http://localhost dev servers. Fails on navigation/4xx/5xx same-origin request errors, blank viewports, horizontal overflow, broken images, zero-box SVGs/canvases (emptyMedia), fixed/sticky header-over-h1 overlap, dead # links, WCAG AA contrast failures (including oklch() / CSS Color 4), < 12px visible text, uncaught runtime exceptions, and console.error calls.
  • Visual & Structural Judgment: Card-in-card nesting, minmax(0, 1fr) image grid discipline, whitespace balance, and typographic hierarchy cannot be proved by regex or DOM telemetry alone—those are checked directly by inspecting the captured 1440×900 and 390×844 screenshots or --sheet contact sheets (or via a fresh-context Tier 3 critic subagent).

Smoke Tests

node --test tests/smoke.mjs

Runs 11 test groups covering SKILL.md references, word budgets & link integrity, library/themes.json WCAG AA contrast and schema validity, bin/atelier-ui.mjs cross-platform installation & doctor, detect-env.mjs framework detection, lint-ui.mjs JSX/multi-ID/comment rules, resolveSafeFile traversal blocking, and live Chrome CDP --routes/--shots/--sheet + HTTP verification. Full test output is archived in docs/PROOFS.md.


License

MIT

About

Frontend design SKILL.md for Claude Code, Cursor & Codex: stops AI slop UI with modular routing, CSS lint, and zero-dep Chrome CDP visual checks.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages