Ask your agent
What it does
This skill designs and builds polished interfaces for landing pages, dashboards, apps, and component libraries. It sets a clear visual direction, uses real product UI, handles accessibility and responsive states, and checks the rendered result instead of stopping at code.
SKILL.md
---
name: anti-slop-frontend-pro
description: Full-power studio design engineering skill that eliminates AI slop and ships Linear/Figma/Stripe-grade interfaces. Synthesizes all 10 top community design skills—surface modes, business-type art direction, curated design tokens, concentric geometry, Emil-grade spring & choreography physics, Stageshow product UI framing, Vercel Web Interface Guidelines, React/Tailwind production engineering, and a live headless-browser visual finish gate. Use whenever building, redesigning, auditing, animating, or polishing any landing page, SaaS dashboard, web app, portfolio, or component library.
metadata:
version: 2.0.0
---
# Anti-Slop Frontend Pro (v2.0 — Full Design Engineering Spec)
Operate as a principal design engineer at an independent studio. Reject templated defaults, match ambition to the exact product, engineer every pixel and transition with discipline, and verify the rendered output in a real browser before shipping.
---
## 1. Surface Modes, Verbs & Business-Type Routing
The brief always outranks personal taste. Before writing code, classify the **Surface Mode** and **Business Type**:
### Surface Modes (Scale Ambition to the Surface)
- **Persuade** *(landing pages, launches, product marketing)*: bold POV, editorial hierarchy, one unmistakable visual signature on Screen 1.
- **Operate** *(SaaS apps, dashboards, dev tools, settings)*: precision, restraint, high information clarity, familiar interaction conventions, zero gratuitous chrome.
- **Read** *(docs, editorial, changelogs, essays)*: typographic mastery, `60–70ch` measure, generous line-height, quiet UI.
- **Experience** *(flagship showcases, creative portfolios, interactive demos)*: choreographed motion, expressive layout, unforgettable signature interaction.
### Optional Refinement Verbs
When the user invokes a specific verb, scope the pass strictly to it:
- **`shape`** (new architecture/layout from scratch) · **`audit`** (accessibility, contrast, responsive, perf) · **`polish`** (concentric radii, alignment, shadows, microcopy) · **`distill`** (cut complexity & clutter) · **`bolder`** (amplify a timid design) · **`quieter`** (tone down visual noise) · **`animate`** (physics, curves, choreography) · **`harden`** (empty, loading, error, edge states).
### Business-Type Art Direction Matrix
| Business Type | Visual World | Surface & Contrast | Hero Lead | Radius | Effects / Shaders |
|---|---|---|---|---|---|
| **Software / SaaS / AI / Dev Tool** | Precision instrument (Linear / Stripe / Figma bar) | Crisp off-white (`#FAFAFA`) OR deep obsidian (`#09090B`) + 1 sharp accent | Live interactive product UI frame (real DOM, not a static box) | Sharp (`6–8px`) | Allowed (restrained, 1 focal effect max) |
| **Gaming / Interactive Media** | Atmospheric key-art stage | Deep dark ground + high-contrast display type | Full-bleed world visual + launch line | Sharp (`2–6px`) | Allowed (1 scene/shader max) |
| **Hardware / Tech Device** | Industrial studio lookbook (Teenage Engineering / Braun bar) | Neutral matte stone/chalk OR dark studio | Full-scale product showcase + spec precision | Crisp (`4–6px`) | Subtle hardware lighting only |
| **Physical Product / Brand** | Editorial catalog / tactile print | Warm stone, bone, or ink + 1 brand band | Full-bleed product composition + sculptural type | Subtle (`0–4px`) | **Banned** (no neon, grain, or shaders) |
| **Local Place / Cafe / Studio / Hotel** | Architectural brochure | Flat architectural surfaces, natural contrast | Editorial hero + immediate visit/menu/booking action | Square (`0–2px`) | **Banned** (no tech effects or dark neon) |
| **Consumer App / Creative Tool** | Confident, tactile, human | Clean light ground + 1 vibrant accent | Interactive mini-demo or bold typographic hook | Soft (`10–14px`) | Tactile micro-motion only |
---
## 2. Mandatory Two-Pass Design Contract & Mirror Test
Before writing code, commit to a concise **Design Contract** (either in a `DESIGN.md` or as a top-of-CSS comment block):
1. **Subject & Primary Action:** What is sold, who uses it, and the single primary transaction/CTA.
2. **Surface Mode + Business Type:** Locked from Section 1.
3. **Color Tokens (60-30-10):** 60% dominant surface, 30% secondary surface/ink structure, 10% single accent (`--bg`, `--surface`, `--surface-2`, `--ink`, `--muted`, `--accent`, `--border`). Maximum ONE accent color.
4. **Typography Pair:** 1 expressive display font + 1 crisp body font (loaded via Google Fonts `<link>` or `next/font`). Never default to Inter, Roboto, or Arial as primary fonts.
- *Editorial / Brand:* `Instrument Serif` + `Plus Jakarta Sans` · `Fraunces` + `Manrope` · `Newsreader` + `DM Sans`
- *Technical / SaaS / Dev:* `Space Grotesk` + `IBM Plex Sans` + `JetBrains Mono` · `Bricolage Grotesque` + `Geist` / `Plus Jakarta Sans`
- *Expressive / Studio:* `Syne` + `DM Sans` · `Outfit` + `Work Sans`
5. **The Signature (Screen 1):** Name the ONE unmistakable real element a visitor remembers (e.g., an interactive live diff viewer, a tactile pricing calculator, a sculptural full-bleed typographic opener).
6. **The Mirror Test:** Ask: *"Would a neighboring prompt in the same category produce this exact layout and palette?"* If yes, change one major structural decision (hero posture, nav pattern, surface polarity, or section rhythm) before writing code.
---
## 3. Page Invariants, Fluid Type & Spatial Rhythm
### Non-Negotiable Page Invariants
- **One primary button style** across the entire page.
- **One container width** (`1200px` or `1280px`) with strictly equal left and right content edges.
- **One section per screen:** The hero owns the opening viewport (`100svh` or balanced `min-height`) cleanly—never let Section 2's heading peek awkwardly into the bottom of the first screen.
- **Left-alignment bias:** Never have more centered heading groups than left-aligned ones.
- **8px Spacing Grid:** All padding, gaps, and margins come from `4, 8, 12, 16, 24, 32, 48, 64, 88, 112, 128px`. Give major landing-page sections `88–128px` vertical breathing room.
### Fluid Typography & Numeric Precision
```css
:root {
--text-display: clamp(2.75rem, 5.5vw, 4.75rem); /* line-height: 1.03; letter-spacing: -0.035em */
--text-h2: clamp(1.85rem, 3.2vw, 2.85rem); /* line-height: 1.12; letter-spacing: -0.025em */
--text-h3: clamp(1.25rem, 1.8vw, 1.5rem); /* line-height: 1.25; letter-spacing: -0.015em */
--text-body: 1rem; /* minimum 16px; line-height: 1.6; max-width: 65ch */
--text-sm: 0.875rem;
--text-xs: 0.75rem;
}
```
- Headlines use **one weight and one color** (never highlight a single random word in italic or accent color).
- Apply `font-variant-numeric: tabular-nums;` to **every** price, metric, timer, counter, table column, and live status value so numbers never jitter.
- Never use monospace for ordinary UI labels unless the product's material is genuinely code/terminal.
---
## 4. Micro-Craft, Concentric Geometry & Realistic Product Framing
### Concentric Border Radius (Exact Math)
Never nest identical radii. Always compute:
```
innerRadius = max(0, outerRadius - padding)
```
Example: an outer card with `border-radius: 16px` and `padding: 8px` MUST give its inner image/panel `border-radius: 8px` (not `16px` or `12px`).
### Optical Alignment & Hit Areas
- Optically nudge play triangles (`translateX(1px)`), icons next to text, and tight badges so they look centered to the human eye—not just mathematically centered in a bounding box.
- When centering currency amounts (`$49`), don't let the currency symbol visually push the digits off-center.
- Every interactive control must have a **`>= 44×44px` hit target** (expand compact icon buttons with padding or an invisible `::after` pseudo-element).
### Depth Discipline (Pick ONE System)
Choose **either** crisp `1px` structural hairlines (`1px solid var(--border)`) **or** tight, light-consistent multi-layer shadows:
```css
--shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -8px rgba(0, 0, 0, 0.08);
```
Never stack thick decorative borders (`2px+`) with giant blurred shadows (`0 25px 50px`).
### Stageshow Product UI Framing (For Software & Interactive Demos)
- **Real UI, zero gray bars:** Never draw abstract gray skeleton bars to represent a product. Build real, domain-accurate interactive HTML/CSS UI (e.g., a live code diff with working Accept/Reject buttons, an interactive filterable table, a real command palette).
- **Stage dominance & edge bleed:** Product windows or app frames should fill **at least two-thirds** of their stage container and bleed cleanly off an edge when appropriate—never float a tiny boxed mockup with awkward empty air on all four sides.
- **No fake logos:** Never use sparkle emojis (`✨`), generic purple swirls, or a single letter inside a colored square as a brand mark. Craft a clean geometric SVG wordmark or minimal mark.
---
## 5. Emil-Grade Motion Physics & Choreography
### Core Motion Rules
- **GPU-only properties:** Animate ONLY `transform` and `opacity` (and `clip-path` sparingly). NEVER animate `width`, `height`, `top`, `left`, `margin`, or `padding`.
- **Intentional Easing Curves (No Linear UI Motion):**
- Default ease-out-quart: `cubic-bezier(0.165, 0.84, 0.44, 1)`
- Crisp ease-out-quint (drawers/modals): `cubic-bezier(0.23, 1, 0.32, 1)`
- Spring physics (Framer Motion / Motion): `{ type: "spring", stiffness: 420, damping: 32, mass: 0.8 }` for snappy controls; higher damping (`36–40`) for sheets so they settle without mushy bounce.
- **Unified Timing Family:** Keep related elements in the same timing family so the component feels like a single physical object:
- Button press / active feedback: `100–140ms`, `transform: scale(0.975)` on `:active`.
- Linked card & media hover: card lifts `2px` (`translateY(-2px)`), image zooms `1.025` inside `overflow: hidden`.
- Floating popovers, menus, and small drawers: `180–220ms` (never sluggish `500ms` transitions).
- **Choreographed Entrance (One Moment, Not Everywhere):**
- Use ONE orchestrated hero load entrance via CSS `--index` custom property (`animation-delay: calc(var(--index) * 60ms)`) with `animation-fill-mode: both` so delayed items never flash their final state first.
- Keep state morphs clean: if two rich states swap inside a resizing container, exit the old content cleanly before entering the new content (`mode="wait"`).
- **Know What NOT to Animate:**
- Never animate keyboard shortcuts or instant command actions.
- Never attach repetitive fade-and-slide-up scroll animations to every section on the page.
- Never put hover delays on every tooltip inside a grouped toolbar.
- **Reduced Motion Ships Day One:**
```css
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
```
---
## 6. 2026 AI-Slop Kill List (Zero Tolerance)
Unless the brief explicitly asks for it, reject every single one of these tells:
- Purple/indigo gradients on white, floating neon mesh blobs, or uniform soft grey shadows (`rgba(0,0,0,0.1)`) on every card
- The SaaS-card kit: chopping every section into identical 3-column rounded cards with icon-in-a-circle badges
- Defaulting to pill-shaped buttons (`border-radius: 9999px`) everywhere
- Template chrome: tracked-out ALL-CAPS eyebrows above every heading, fake `01 / 02 / 03` numbering on non-sequential content, `A · B · C` middot meta strings everywhere, or `→` appended to every button/link
- Empty grey image placeholders, broken stock URLs, or unstyled scrollbars
- Filler AI copy (*"Elevate your workflow"*, *"Seamless experience"*, *"Supercharge your..."*, *"Trusted by 10,000+ teams"*) and generic CTAs (*"Get Started"*, *"Submit"*, *"Learn More"*). Write plain, domain-accurate, active-voice copy (*"Run breaking-change check"*, *"Order tasting box"*).
---
## 7. Production Engineering, React/Tailwind & Accessibility
- **Semantic HTML First:** Use native `<button type="button">`, `<a href>`, `<nav>`, `<main>`, `<section>`, `<dialog>`—never `<div onclick>` or `<span class="link">`.
- **WCAG 2.1 AA (Hard Floor):**
- Body text contrast `>= 4.5:1`; large text (`18pt+` / `14pt bold`), UI controls, and `:focus-visible` outlines `>= 3:1`.
- Never write `outline: none` without a high-contrast `:focus-visible` replacement.
- Every form input has an explicit `<label>`, `aria-describedby` for inline errors, single-column layout, and validation on blur (never disable submit buttons prematurely before interaction).
- Never use color alone to convey status—pair red/green with icons or text labels.
- **React / Tailwind Best Practices (when building in a framework):**
- Use a `cn()` (`clsx` + `tailwind-merge`) helper and explicit variant maps—NEVER interpolate dynamic Tailwind class names like `` `bg-${color}-500` ``.
- Prefer compound component composition (`<Tabs><TabsList>...</TabsList></Tabs>`) over prop soup.
- Ship realistic loading skeletons (not bare spinners), helpful action-oriented empty states, and clear error recovery messages.
- **Standalone HTML Builds:** When asked for a standalone page or demo, output one complete, self-contained HTML file with Google Fonts, `:root` tokens, responsive breakpoints, and working interactive vanilla JS.
---
## 8. Live Browser Visual Verification & Finish Gate
Whenever your environment provides a terminal, browser tool, or Playwright/Chromium (such as Antigravity, Claude Code, Cursor, or Codex), **never ship blind**:
1. Start the dev server (or serve the built static HTML over `http://127.0.0.1`).
2. Render and inspect screenshots across **4 viewports**: `1440×900` (desktop), `1024×768` (laptop), `768×1024` (tablet), and `390×844` (mobile).
3. Check for:
- Zero horizontal overflow (`document.documentElement.scrollWidth <= window.innerWidth`)
- Zero broken images, empty visual frames, clipped controls, or console errors
- Clean first-screen hero framing (no Section 2 heading peeking in)
- Concentric nested radii, crisp contrast, and working interactive states (toggles, tabs, modals, focus rings)
4. Batch all visual fixes in one pass and re-verify.
5. **Final Restraint Pass:** Remove one decorative element that does not earn its space. *(If running in a chat-only environment without a browser, execute this exact 5-point audit manually against the generated code before responding.)*
---
*Synthesized from the design engineering principles of: Anti UI Slop (uizze.com), Impeccable (pbakaus/impeccable), Taste Skill (Leonxlnx/taste-skill), Emil Design Engineering (emilkowalski/skills), Vercel Web Design Guidelines (vercel-labs/agent-skills), Frontend Design (anthropics/skills), Hallmark (Nutlope/hallmark), Make Interfaces Feel Better (jakubkrehel/make-interfaces-feel-better), UI UX Pro Max (nextlevelbuilder/ui-ux-pro-max-skill), and Stageshow (benjitaylor/skills).*1 file
- SKILL.md14.8 KB