Yest UI Blueprint
Research-first, style-agnostic UI/UX direction skill that creates a tailored per-app design blueprint (DESIGN.md + tokens.css) and enforces modern web standards so coding agents stop shipping generic AI slop or outdated CSS/JS patterns.
Core Philosophy
AI slop is a no-decisions problem, and stale frontend code is a training-cutoff problem. When an agent receives vague adjectives ("clean", "modern", "premium") without locked art direction, domain research, or current web platform checks, it regresses to statistical defaults (purple glow gradients, three identical feature cards, unstyled system defaults, happy-path-only screens, and heavy JS polyfills for features browsers now handle natively).
This skill contains no hardcoded visual theme. Every app earns its own blueprint through structured discovery, live or domain-grounded research when no archetype fits, Baseline web standards, and real verification.
Step 1: Inspect the Codebase & Route by Mode
Before asking questions or writing UI code, inspect the project directory for an existing DESIGN.md, CSS custom properties (:root / @theme), component primitives, and target framework.
Route the request to the right workflow mode:
| Mode | When to Use | Discovery Behavior |
|---|---|---|
new-app | Brand-new app, site, or greenfield prototype with no UI or blueprint yet | Run full flow (Steps 2–7) to lock DESIGN.md + tokens.css first |
adopt | Existing app/codebase that has UI code already, but NO DESIGN.md yet | Review the existing app first (inspect pages, CSS/tokens, fonts, colors, states, anti-slop & Baseline gaps), summarize findings, and ask the user to pick Codify As-Is, Codify & Polish, or Redesign before modifying UI code |
redesign | User explicitly asks to overhaul an existing interface or replace its visual identity | Audit existing pain points, then run Steps 2–7 |
extend | Adding a new screen, flow, or component to a repo that already has DESIGN.md or established tokens | Skip full onboarding. Read and preserve existing tokens; apply Steps 5–7 |
polish | Improving spacing, typography, responsiveness, states, or visual craft without changing brand identity | Preserve existing brand palette/fonts; apply Steps 5–7 |
audit | Read-only design, accessibility, anti-slop, or modern-web review | Make no file edits; report prioritized findings with concrete fixes |
How adopt Mode Works (Existing App Without DESIGN.md)
Most real-world repositories already have working pages and styles, yet lack a formal DESIGN.md. Never ignore existing code or silently overwrite its visual identity:
- Inspect existing UI & styles: Read the layout shell, global CSS/Tailwind config, typography imports, color variables/hardcoded hexes, primary screens, and component patterns.
- Audit against craft & modern web baselines: Check what works well today vs. concrete gaps (inconsistent colors/spacing, missing
loading/empty/error/disabledstates, contrast or mobile390pxissues, anti-slop clichés, or outdated CSS/JS patterns). - Present a concise App UI Review + 3 clear paths and wait for the user to choose:
- Path A — Codify As-Is: Keep the current look and extract it into
DESIGN.md+tokens.css, fixing only broken contrast or duplicate token drift. - Path B — Codify & Polish: Preserve the core brand feel, lock
DESIGN.md+tokens.css, and upgrade craft (anti-slop cleanup, all 6 UI states, responsive390px–1440pxpolish, and Baseline HTML/CSS). - Path C — Redesign: Keep the functional scope, run Step 2 (archetype/research) + Step 3 (5-question discovery), and generate a fresh
DESIGN.md+tokens.css.
- Path A — Codify As-Is: Keep the current look and extract it into
If the user already supplied a complete, explicit design brief (brand hex codes, fonts, layout, references), skip redundant questions, confirm any missing defaults (such as dark mode or browser policy), and proceed to Step 4.
Step 2: Archetype Lookup & Research-First Gate
Classify the product into its surface and business trade, then check the bundled archetypes in references/archetypes/:
saas-dashboard.md— B2B/B2C web apps, admin panels, analytics, developer toolsmarketing-landing.md— Product launches, startup homepages, conversion landing pagesecommerce-store.md— D2C storefronts, catalogs, configurators, checkout flowseditorial-portfolio.md— Personal portfolios, design studios, magazines, documentation hubsmobile-utility.md— Mobile-first web apps, trackers, calculators, personal toolslocal-service-place.md— Cafes, restaurants, clinics, hotels, studios, local businesses
Read only the single archetype file that matches the project.
When No Built-In Archetype Fits (Research-First Fallback)
If the app belongs to a niche not covered above, blends multiple categories, or the user says "I don't know, suggest something", research before designing:
- Research current real-world benchmarks: If web search or documentation access is available, inspect 2–4 well-regarded live products or current UI/UX conventions in that exact domain (navigation patterns, density expectations, trust signals, dominant media format, and modern CSS capabilities). Only claim live web research when you actually searched or fetched external sources in the current session; if working offline, explicitly label benchmark insights as offline domain analysis grounded in bundled baselines.
- Check modern web standards: Read
references/modern-web-standards.mdto verify current Baseline HTML/CSS/JS patterns (and consultmodern-web-guidanceif installed in the user's environment). - Summarize findings concisely: Share 3–5 bullet insights covering what users in this domain expect, what visual clichés to avoid, and which media type fits best (e.g., real photography vs. live HTML UI fragments).
- Propose 2–3 distinct, named directions with clear trade-offs (mood, color direction, typography system, density, and motion level) so the user can choose instead of guessing from scratch.
Step 3: Ask-First Discovery (5 Diagnostic Questions)
For new-app and redesign modes without a locked brief, pause before generating layout code and ask a concise, structured set of 5 questions (bundled with your 2–3 recommended directions when helpful).
Write questions like a human designer talking to a client: Match the user's language, keep each option short and plain, and describe what an option looks and feels like instead of dumping dense CSS jargon or em-dash-heavy labels (e.g., say "Warm paper background with deep green buttons" instead of "Quiet Ledger — Adaptive Dual-Mode (Anti-Digital Warmth): warm linen canvas, tonal stone surfaces..."). Keep technical CSS tokens and Taste Dial numbers internal to DESIGN.md unless the user wants to tune them directly.
- Product Surface, Stack & Primary Action: What are we building, who uses it, what stack/styling setup is used, and what is the single main user action?
- Rough Feel (Plain Words First): Ask whether they want it calm and structured or bold and editorial, airy or compact, and quiet or animated. Save exact numeric dials until after the first preview (unless they already know exact numbers).
- Color Mood & Light/Dark: Light only, dark only, or adaptive light + dark? Translate 2–3 fitting options from
references/color-directions.mdinto plain visual descriptions (e.g., "warm paper with dark green buttons") instead of internal style jargon, or ask for brand hex codes. - Typography & Licensing: Do they own brand fonts, or prefer a clean free option (modern sans, editorial serif + sans, or fast OS native fonts for offline/zero-latency apps)? Keep exact font/CSS specs from
references/typography.mdinsideDESIGN.md. - References, Constraints & Browser Policy: Any 1–2 sites they like or want to avoid, plus browser target (default: Baseline Widely Available, with progressive fallbacks for newer CSS).
Wait for the user's confirmation before generating the blueprint or writing UI code.
Step 4: Lock Blueprint, Preview One Screen & Calibrate
Once the user confirms, generate two files adapted to the project's stack (vanilla CSS, Tailwind @theme, or CSS Modules):
DESIGN.mdfromtemplates/DESIGN.md.template— locked brief, Taste Dials,last_verifieddate, browser policy, 60-30-10 tokens, typography, layout/media rules, 6 UI states, anti-slop guardrails, and short research log.tokens.css(or stack equivalent) fromtemplates/tokens.css.template— contrast-checked tokens andprefers-reduced-motion. If the user chose Light Only or Dark Only, delete unused theme blocks cleanly (color-scheme: lightordark); for offline/zero-latency apps, use native system font stacks with zero external font requests.
Preview-First Checkpoint & 6 Post-Preview Taste Dials
For new-app and redesign builds with multiple screens, never rewrite the whole app in one blind pass:
- Preview 1 flagship screen first: Render one primary screen (for greenfield/static builds, a standalone preview HTML or main route; for existing multi-page apps, restyle the primary screen first without touching secondary routes).
- Calibrate 6 Taste Dials after preview: Read
references/taste-dials.mdand invite plain-language tweaks (or include a small removable live slider drawer on standalone previews) across: Layout Asymmetry, Data Density, Motion, Border Crispness, Corner Geometry, and Typographic Personality (1–10). - Lock, clean up & roll out: Save final values into
DESIGN.mdandtokens.css, delete any temporary preview file or slider drawer, then roll out across remaining screens.
Step 5: Build with Craft & Modern Web Guardrails
When implementing screens or components, load only the reference files needed for the current task:
- Typography rules: Read
references/typography.md - Color & contrast rules: Read
references/color-directions.md - Layout, components, 6 UI states & motion: Read
references/component-specs.md - Modern HTML/CSS/JS Baseline standards: Read
references/modern-web-standards.md
Enforce these universal craft rules on every implementation:
- 60-30-10 Color Ratio: 60% canvas/background, 30% structural surfaces/cards, 10% accent reserved for primary CTAs and key status signals. Avoid harsh
#000000on#FFFFFFunless intentionally editorial. - Typographic Discipline: Default to 1 cohesive font family (or 1 intentional display/body pair), strong display-to-body hierarchy (~4:1 on marketing heroes, clear step scale on dashboards), regular/medium display weights (
400–500) with tight negative tracking (-1.4%to-2.5%), and optional monospace accents for metadata, dates, and numbers. - Sector-Appropriate Media: Use real photography (uncaptioned, credits grouped into one expandable footer row if needed) for physical places, hospitality, and local services—with zero WebGL/3D. For software/SaaS, use real HTML UI fragments, clean diagrams, and real SVG icons instead of fake generic illustrations.
- Complete 6 UI States: Implement and verify
default,loading,empty,error,success, anddisabled/recoverystates on every interactive flow—never ship happy-path-only screens. - Modern Baseline Web First: Prefer native
<dialog>, Popover API, Container Queries,:has(),light-dark(), responsiveAVIF/WebP, and CSS transitions over heavy JS polyfills. Respectprefers-reduced-motionand protect Core Web Vitals (especially INP and CLS). - Human, Plain UI Copy: Write headlines, button labels, empty states, error messages, and discovery questions in plain everyday words (avoid em dashes, stiff AI phrasing, "Not just X, but Y" slogans, and dramatic closers). If
yest-humanizer(billy-a/yest-skill-humanizer) is installed, pair with it for natural English or Bahasa Indonesia UI copy.
Step 6: Pre-Flight Anti-Slop Lint & Verification Gate
Before delivering finished UI code, run both checks:
- Anti-Slop Blacklist Audit: Cross-check generated markup, styles, and copy against
references/anti-slop-blacklist.md. Strip any purple-pink AI glow gradients, identical three-column icon-title-text card rows, decorative001 ·eyebrows, single accented headline words, lorem ipsum, marketing fluff, fake street/VAT numbers (use.examplecontacts), captions under photos, or unauthorized WebGL. - Multi-Viewport Visual & Accessibility Check: If browser tooling is available, inspect the rendered UI at
1440px,1024px,768px, and390pxviewports, plus dark mode andprefers-reduced-motion. Verify:- Zero horizontal overflow or clipped text (especially tables, currency, dates, and primary CTAs)
- Balanced outer margins and visible above-the-fold hero on desktop and mobile
- Keyboard tab order, visible focus rings, and readable contrast across light and dark modes
- All 6 interactive states render cleanly
If browser inspection is not available in the current environment, never claim a visual pass—explicitly disclose which visual checks could not run.
Step 7: Honest Handoff Disclosure
Close every blueprint or UI delivery with a brief ### UI Blueprint Summary section covering:
- Mode & Archetype: Which mode ran (
new-app,adopt,redesign,extend,polish,audit) and whether a bundled archetype or live research shaped the direction. - Blueprint & References Used: Paths created/updated (
DESIGN.md,tokens.css) and which reference guides or live benchmarks informed key decisions. - Companion Skills Used: Name any companion skill actually read and applied in this session (such as
yest-humanizerormodern-web-guidance), or writenone. - Verification Status: What passed (anti-slop lint, preview sign-off, responsive/state checks, contrast/modern-web compliance) and any visual checks skipped due to tooling limits.
See examples.md for realistic end-to-end walkthroughs across new apps, researched niches, and existing codebases.