mcpbeat Sign in

Antfu Design Agent Skill

antfu-style design conventions, broadened. UnoCSS-first, class-based semantic tokens with dual light/dark for tooling and devtools UIs, plus design-read, anti-slop, and micro-interaction polish for landing pages and product surfaces. Use when building or refactoring any interface with UnoCSS.

14k tokens
context cost
the whole folder, loaded on every use
15
files
instructions only
0
copies elsewhere
how many repositories repackaged it
5703
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/antfu/skills --skill antfu-design

The instruction itself

6 sections, as written by the author

Use this when building interfaces with UnoCSS in any framework (React, Vue, Svelte, Solid, or plain HTML), from dense devtools panels to landing pages. Read core-design-read first to set the direction, then apply the token system plus the polish and anti-slop rules.

Core Rules

  • Use semantic shortcuts (bg-base, border-base, color-active, btn-action) instead of raw utility chains in markup.
  • Design light and dark mode together. Core tokens must work in both themes.
  • Name z-index layers (z-top-nav, z-panel-content, z-drawer-content). Do not use raw z values in templates.
  • Generate class-based utilities only (class="..."). Avoid Attributify syntax in generated code.
  • Keep icon/status class strings literal so UnoCSS can statically extract them (// @unocss-include when needed).
  • Use font-mono + tabular-nums for technical values (paths, SHAs, counters, timestamps, percentages).
  • For long paths and IDs, truncate visually but keep the full value in title.
  • Read the brief and set the three dials before choosing a look (core-design-read).
  • Borders for dense or structural surfaces, layered shadows for elevated ones (features-micro-interactions).
  • Zero em-dash and en-dash characters in any user-facing text (best-practices-anti-slop).

Starter shortcuts

A minimal semantic core. See core-starter-kit for the full uno.config.ts and base styles.

shortcuts: [
  {
    'color-base': 'color-neutral-800 dark:color-neutral-200',
    'bg-base': 'bg-white dark:bg-#111',
    'bg-secondary': 'bg-#eee dark:bg-#222',
    'border-base': 'border-#8882',

    'bg-active': 'bg-#8881',
    'color-active': 'color-primary-600 dark:color-primary-300',
    'border-active': 'border-primary-600/25 dark:border-primary-400/25',

    'btn-action': 'inline-flex items-center gap-2 rounded border border-base px2 py1 op75 hover:op100 hover:bg-active disabled:pointer-events-none disabled:op30!',
    'op-fade': 'op65 dark:op55',
    'op-mute': 'op30 dark:op25',

    'z-top-nav': 'z-60',
    'z-panel-content': 'z-70',
    'z-drawer-content': 'z-100',
  },
]

Core References

| Topic | Description | Reference |

|-------|-------------|-----------|

| Core Principles | Semantic tokens, dark mode parity, z-index naming, class-first output | core-principles |

| Starter Kit | Copy-paste UnoCSS starter config and base light/dark styles | core-starter-kit |

| Tokens and Combos | Token families, reusable class combinations, mobile-safe shell tokens | core-tokens-and-combinations |

| Design Read and Dials | Read the brief, declare a design read, set variance/motion/density dials | core-design-read |

Best Practices

| Topic | Description | Reference |

|-------|-------------|-----------|

| Strict Rules and Pre-Flight | Do/don't checklist and the consolidated pre-flight | best-practices-strict-rules |

| Class over Attributify | Why generated code uses class utilities, with conversions | best-practices-class-utilities-over-attributify |

| Anti-Slop Hygiene | The dash ban and the AI-tell forbidden patterns | best-practices-anti-slop |

| Bias Correction | Typography, color, layout, and materiality defaults to override | best-practices-bias-correction |

Features

| Topic | Description | Reference |

|-------|-------------|-----------|

| Data Presentation | Paths, icons, time, date, numbers, badges, buttons | features-data-presentation |

| Micro-Interactions | Radius, alignment, shadows, animation, numbers, outlines, hit areas | features-micro-interactions |

| Floating Vue Overrides | Shared Floating Vue setup and popper styling | features-floating-vue-overrides |

Advanced

| Topic | Description | Reference |

|-------|-------------|-----------|

| Pattern Vocabulary | Named UI patterns to recognize and reach for | advanced-pattern-vocabulary |

| Redesign Protocol | Detect mode, audit first, preserve IA and SEO | advanced-redesign-protocol |

<!--

Source references:

  • https://github.com/antfu/node-modules-inspector
  • https://github.com/vitejs/devtools/tree/main/packages/rolldown
  • https://github.com/eslint/config-inspector
  • https://github.com/antfu/vite-plugin-inspect
  • https://github.com/antfu/agent-container
  • https://github.com/Leonxlnx/taste-skill
  • https://github.com/jakubkrehel/make-interfaces-feel-better

-->

Other skills for the same job

different authors, same section of the catalogue
Sales Motion Design
by tech-leads-club

When the user wants to choose between PLG and sales-led, design a sales motion, optimize time-to-first-value, or build a value-before-purchase experience. Also use when the user mentions 'PLG,' 'product-led growth,' 'sales-led,' 'sales motion,' 'free trial,' 'freemium,' 'self-serve,' 'demo-first,' 'time-to-first-value,' 'TTFV,' or 'agent-led sales.' This skill covers sales motion selection, value delivery design, and go-to-market motion architecture. Do NOT use for technical implementation, code review, or software architecture.

6k tokens
Migrate Group Versioning
by Azure

**WORKFLOW SKILL** — Migrate an Azure resource group from legacy to hybrid versioning mode in ASO. USE FOR: moving a group (e.g., appconfiguration, cache, network) from VersionMigrationModeLegacy to VersionMigrationModeHybrid in the code generator, updating samples, renaming CRUD tests, and re-recording sample tests. DO NOT USE FOR: adding new resources (use new-resource.instructions.md), general debugging, or code review.

3k tokens
Tres Settings Management
by anthropics
vendor

Manage Organization Settings and Platform Settings via the TRES MCP GraphQL API. Use when users ask about org settings, platform settings, configuration, feature flags, enable/disable platforms, balance diff, commit strategy, cost basis, ERP, pricing, sync boundaries, or any setting read/write operation. Trigger phrases include "get settings", "show settings", "update settings", "change settings", "enable platform", "disable platform", "balance diff", "commit strategy", "cost basis strategy", "set min sync date", "configure", "turn on", "turn off".

3k tokens
Public Relations
by lingxling

When the user wants help with public relations, earned media, press coverage, journalist outreach, or media strategy (not pull requests). Also use when the user mentions 'PR,' 'public relations,' 'press,' 'press release,' 'press coverage,' 'media outreach,' 'pitch a journalist,' 'get...

11k tokens
Unslop Commit
by lingxling

Rewrites commit messages so they sound like a careful human engineer wrote them. Strips AI/marketing slop ("comprehensive solution", "robust implementation", "leverage", "enhance", "seamlessly", "This commit..."). Keeps Conventional Commits format. Subject ≤72 chars (aim ≤50),...

1k tokens
Suede Workflow Skills
by JasonColapietro

Umbrella workflow for 68 public skills: Full Send, copy, design, code review, SEO, launch packaging, MCP QA, iOS and Android app shipping, and creator workflows. Loads the full public skill pack.

8k tokens
Labeling Changes
by bitwarden

Conventional commit type keywords for PR titles and commit messages. Use when determining the change type for commits or PRs. Triggered by "what type", "label", "change type", "conventional commit", "t: label".

257 tokens
Ux Heuristics
by christophacham

Evaluate and improve interface usability using heuristic analysis. Use when the user mentions "usability audit", "UX review", "users are confused", "heuristic evaluation", "form usability", or "navigation problems". Covers Nielsen''s 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.

21k tokens

How to use it

Copy the folder

Take antfu/antfu-design from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.