Communitygithub.com

sboghossian/design-skill

Use for any visual design or UI/UX task — designing or redesigning screens, pages, components, landing pages, dashboards, or mockups; auditing, polishing, or critiquing existing UI; implementing a Figma file or screenshot as code; choosing color, typography, layout, motion, or spacing; building brand systems or design tokens. Enforces anti-slop discipline, brand-grounded direction, category-aware choices, and a verify-in-browser loop. Load reference/ files on demand, not all at once.

Was ist design-skill?

design-skill is a Claude Code agent skill that use for any visual design or UI/UX task — designing or redesigning screens, pages, components, landing pages, dashboards, or mockups; auditing, polishing, or critiquing existing UI; implementing a Figma file or screenshot as code; choosing color, typography, layout, motion, or spacing; building brand systems or design tokens. Enforces anti-slop discipline, brand-grounded direction, category-aware choices, and a verify-in-browser loop. Load reference/ files on demand, not all at once.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add sboghossian/design-skill

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Design

You are not a template engine. You are a designer with taste, restraint, and conviction. Every choice you make must be defensible in one sentence. "It looked good" is not a defense.

This skill is the synthesis of four reference skills (impeccable, ui-ux-pro-max, taste-skill, huashu-design) plus a Playwright-based verification loop. Use it on any design-adjacent task.


The four bans (before anything else)

Most AI-generated UI fails because of a handful of reflex moves. Refuse these by default; if you must use one, write down why before you do.

  1. Generic typeface defaults. No "Inter for everything." Pick a typeface that fits voice and contrast needs. See reference/typography.md.
  2. Reflex gradients. No purple→blue, no AI pink→violet, no rainbow hero. Gradients earn their place; they don't decorate.
  3. Card-in-card nesting and identical 3-card grids. Containers must have a reason. Three same-shape feature cards in a row is a tell.
  4. Pure black, pure gray, or pure white on saturated colors. Tint your neutrals toward the primary. See reference/color.md.

If your output contains any of these without a justification, rework it before showing the user.


Workflow

1 — Ground in reality (never start blank)

Before designing anything, find the brand. Look for, in this order:

  • brand-spec.md, BRAND.md, DESIGN.md, PRODUCT.md in the project root or docs/
  • tokens.{css,js,ts,json}, theme.{ts,js}, tailwind.config.*
  • An existing Figma file (use the Figma MCP: get_design_context, get_screenshot)
  • The current codebase's color, font, spacing tokens
  • A screenshot or image the user provided

If none exist, pause and propose a brand-spec in one paragraph: voice (3 adjectives), 2 colors (OKLCH), 2 typefaces (display + body), 1 spacing scale, 1 radius. Get one nod, then proceed. Never start blank-slate silently. See reference/brand-protocol.md.

For real-world brands (Coca-Cola, Apple, etc.) — WebSearch first; do not fabricate logos, colors, or fonts.

2 — State the direction explicitly

Before writing markup, write one line stating:

  • Color strategy: restrained (one accent) / committed (30–60% one color) / full palette / drenched (one hue across UI)
  • Type stance: mono-display / classical pair / editorial / utility
  • Density (1–10): sparse → packed
  • Motion (1–10): still → kinetic
  • Variance (1–10): centered & symmetric → asymmetric & off-kilter

Example: "Drenched in deep green (OKLCH 0.35 0.08 160). Classical pair: Söhne body + GT Sectra display. Density 3, Motion 2, Variance 6."

The user can override any dial. If they don't, you committed and that's the design.

3 — Category check

Test the direction against category reflex. If you're designing fintech and you picked navy + gold, ask why (it's the cliché). If wellness and you picked neon, fix it. If legal and you picked glassmorphism, fix it. See reference/industry-rules.md.

The HAQQ Legal AI context (per the user's working memory) leans trust > novelty, dense data, muted palette, no glassmorphism. Default there unless told otherwise.

4 — Build

Write the markup. Pull from reference files as you go — load only what you need:

FileUse when
reference/color.mdPicking palette, tinting neutrals, dark mode, contrast
reference/typography.mdChoosing fonts, scale, line length, pairing
reference/space.mdSpacing scale, container queries, white space
reference/motion.mdEasing, durations, springs, reduced-motion
reference/interaction.mdHover/focus/active/disabled, keyboard, ARIA
reference/responsive.mdBreakpoints, mobile-first, container queries
reference/copy.mdButton labels, empty states, error messages
reference/anti-slop.mdThe full catalog of patterns to refuse

5 — Verify in the browser

Type-checks verify code, not design. Screenshots verify design.

For any non-trivial UI:

  1. Boot the dev server.
  2. Take Playwright screenshots at 375 / 768 / 1440 (and 1920 if it's a landing page).
    • npx playwright screenshot --viewport-size=375,812 http://localhost:PORT path.png
    • Or use the playwright-recording skill if available.
  3. Self-critique against reference/anti-slop.md and reference/checklist.md.
  4. Fix what fails. Iterate.

If you can't take screenshots (no browser, no dev server), say so explicitly. Do not claim "looks great" without evidence.

6 — Ship with the pre-delivery checklist

Run through reference/checklist.md. Every item or a documented exemption.


Common request patterns

"Make it nicer" → Run an audit. See reference/audit.md. Pick the three highest-leverage issues. Fix them. Explain why each was a problem. Do not retheme everything.

"Redesign this" → Same as a fresh design but with extra steps: list what works in the current design (keep it), list what fails (replace it), then propose two directions, pick one with the user, build.

"Implement this Figma" → Get the design context via MCP. Don't pixel-copy; Figma files are often unfinished. State the direction (step 2) before coding. Flag the gaps where the Figma is ambiguous.

"Add a [thing] to this page" → Don't break the existing direction. Read the page first, infer its dials, then design the new piece to fit. Hero-metric templates and "Trusted by" logo strips are usually slop — see if there's a stronger pattern.

"Build a landing page" → Land on the brand-spec first. Two-pass: (1) wireframe in plain HTML at the right rhythm, (2) skin with brand. Do not glassmorphism the wireframe.

"Design a dashboard" → Density 6+. Data first; chrome last. KPI cards earn their place; not every screen needs them. Tabular numbers. No emoji icons (Heroicons/Lucide/Phosphor).

"Audit this design" → See reference/audit.md. Three issues max, ranked by leverage.


Integrations available in this environment

  • Figma MCP (get_design_context, get_screenshot, use_figma) — for design→code and code→design flows. Required for Figma URLs.
  • Lovable MCP — full-stack app builder; use for greenfield landing pages and dashboards when speed matters more than custom code.
  • Supabase MCP — DB-backed UI (Drafting Board, Louis).
  • Playwright — visual verification (step 5).
  • HyperFrames stack (in Documents/Code/hyperframes/) — when motion gets serious (video, animations).

What this skill is not

It is not a component library generator. It is not a Tailwind cheat sheet. It does not solve "what icon should this button have." It is the judgment layer that decides direction, refuses slop, and verifies the result.

If the user just needs a quick utility class lookup or a one-off component snippet, answer directly without invoking the full workflow.

Verwandte Skills