跳到正文
cccskills
免费在 GitHub 公开

mk:frontend-design

Use when designing UI components, reviewing visual design, building design systems, or checking accessibility. Auto-activates on frontend design tasks and UI reviews.

中文简介正在准备中。当前显示原文说明。

集成工具Figma
查看安装方法

包含的文件(3)

  • SKILL.md8.1 KB
  • references/anti-slop-directives.md2.1 KB
  • references/design-rules.md3.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Frontend Design

Production-grade UI/UX design with anti-AI-slop enforcement. Covers aesthetics, accessibility, typography, color, motion, responsive, and design tokens.

When to Use

Auto-activate on: Design tasks, UI component styling, "make it look good", "improve the design", "fix the UI", "design review", design system work, CSS/styling changes

Explicit: /mk:frontend-design [concern]

Do NOT invoke for: Vue patterns (use mk:vue), TypeScript (use mk:typescript), backend code, API integration

Workflow Integration

Operates in Phase 3 (Build GREEN) and Phase 4 (Review) for design quality checks. Output supports the developer agent (Phase 3) or reviewer agent (Phase 4).

Process

  1. Analyze — detect task type (new component, redesign, review, responsive fix), load relevant design rules from references/design-rules.md
  2. Implement — apply typography, color, spacing, motion per rules. Run anti-slop check (see checklist below). Ensure WCAG 2.1 AA accessibility.
  3. Verify — run pre-delivery checklist before presenting to user

Anti-AI-Slop Checklist (MANDATORY before delivery)

Every design output MUST pass these checks:

CategoryAnti-Pattern (NEVER)Do Instead
TypographySystem font stack only, single weight2-3 weights, intentional font pairing (use mk:ui-design-system/assets/typography.csv)
TypographyAll text same size/weightClear hierarchy: display → heading → body → caption
TypographyUnexamined default font choiceChoose a typeface that matches project mood and legibility needs
ColorUnchecked extreme contrastVerify readable contrast and deliberate palette balance
ColorRainbow of unrelated colors1 primary + 1 accent + neutrals (use mk:ui-design-system/assets/colors.csv)
ColorDecorative treatment that obscures hierarchyUse color and gradients only when they reinforce the content hierarchy
LayoutCentered everything, card grid with equal spacingAsymmetric layouts, intentional whitespace variation
LayoutDefault padding/margin everywhereDesign tokens: consistent spacing scale (4px base)
Layout3-column equal card gridVary card sizes, use bento grid, or 2-column with feature highlight
Content"Lorem ipsum" in final deliveryReal or realistic content
Content"John Doe", "jane@example.com" placeholdersDiverse, realistic names and data
EffectsGratuitous shadows, gradients, blurSubtle shadows (0 1px 3px), purposeful gradients
EffectsParallax on every sectionReserve motion for hero or key CTA; respect prefers-reduced-motion
ComponentsDefault browser inputs/buttonsStyled components with clear states (hover, focus, disabled)
ComponentsUnstyled select/checkbox/radioCustom-styled form controls with accessibility preserved
IconsEmoji as functional iconsSVG icons from consistent library (Lucide, Heroicons, Phosphor)
ImagesStock photo hero bannersCustom illustrations, product screenshots, or abstract art
PerformanceUnoptimized images, layout shiftNext-gen formats (WebP/AVIF), explicit dimensions, skeleton loaders
Dark ModeJust invert colorsSeparate dark palette with reduced brightness, maintain contrast ratios

Design Principles (always apply)

  1. Typography first — choose typeface before colors or layout
  2. Whitespace is design — generous spacing signals quality
  3. Color with purpose — every color must have a semantic role
  4. Motion earns attention — animate only to communicate state change
  5. Accessibility is default — 4.5:1 contrast, keyboard nav, screen readers

Output Format

## Design: {component or page}

**Type:** {new design | redesign | review | responsive fix}
**Framework:** {Vue | React | vanilla CSS}

### Design Decisions
{numbered list of design choices with reasoning}

### Anti-Slop Check
{✓/✗ per category from checklist}

### Accessibility
- Contrast ratio: {value} (min 4.5:1)
- Keyboard navigable: {yes/no}
- Screen reader labels: {present/missing}

### Files Modified
{list of CSS/component files}

References

ReferenceWhen to loadContent
design-rules.mdSteps 2-3Typography, color, spacing, motion, responsive rules
anti-slop-directives.mdDuring UI implementation7 generic patterns to avoid + positive alternatives + identity test

Failure Handling

FailureRecovery
No design system in projectApply sensible defaults (neutral palette, system fonts with fallbacks)
Contrast ratio below 4.5:1Adjust colors — never ship inaccessible UI
Anti-slop check failsFix failing items before delivery

Gotchas

  • Tailwind dynamic class names are purged in production — classes constructed via string interpolation (\text-${size}-bold`) are not detected by Tailwind's content scanner and are stripped from the production CSS bundle; use complete class strings in source or add them to the safelistintailwind.config.js`.
  • shadcn/ui component tokens drift from the project's CSS variables — shadcn generates components that reference --primary, --card, --muted etc. from its own token set; if the project's design system uses different variable names (e.g. --brand-primary), components render with the wrong colors silently; audit globals.css token names against shadcn's expected token list after every shadcn add command.
  • Figma color token names don't map 1:1 to CSS custom properties — a Figma token named Colors/Brand/Primary exports as colors-brand-primary in Style Dictionary but shadcn and Tailwind expect --primary; manually map or configure the transformer, never assume the export name matches the CSS var name.
  • Dark mode token gaps produce transparent or invisible elements — adding a dark: variant class without defining the corresponding CSS variable in the .dark scope makes the element transparent (variable resolves to empty); always verify every token used in light mode has an explicit dark-mode override in the theme.
  • Default Tailwind breakpoints differ from common design system breakpoints — Tailwind's md: 768px clashes with some design systems that use md: 960px; responsive layouts built from Figma specs at 960px will reflow at the wrong breakpoint; override breakpoints in tailwind.config.js to match the design system before implementing responsive styles.
  • SVG icon libraries ship multiple bundle formats and wrong import causes missing icons — importing lucide-react icons in a Vue project (instead of lucide-vue-next) compiles without error but icons render as empty elements because the React component returns JSX that Vue ignores; always verify the framework-specific package is used.

Handoff

On completion → reviewer agent for Phase 4 design dimension check.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use this skill to generate well-branded interfaces and assets for MeowKit (AI Agent Toolkit for Claude Code), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

mk-advise

免费

Turn a raw idea into ONE honest recommendation: interview one question at a time until confirmed, then give a verdict with trade-offs and a checklist. Not for options or debate.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Browser automation CLI for agents: navigate, click/fill, screenshot, extract data, test apps, Electron/Slack, cloud browsers. NOT for the user's real Chrome profile/cookies (mk:chrome-profile).

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Detects the right agent and complexity tier at Phase 0 orient; runs first in every workflow. NOT for runtime agent routing inside a single skill.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Angular v20+ patterns: components, signals, services, forms, routing, HTTP, testing, SSR. Auto-activates on .ts files in Angular projects (angular.json detected).

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Design and review durable REST, GraphQL, RPC, or event API contracts: shape, compatibility, pagination, error semantics. Discovers existing consumers first. Not implementation, schema, or release.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

查看 ngocsangyem 的全部技能

报告此技能的问题