Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问clear审计通过

frontend-design前端设计

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

6,946

周安装

281

GitHub Stars

7,162

下载量

2,181
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:frontend-design(前端设计)
来源仓库:https://github.com/vudovn/antigravity-kit
仓库路径:skills/frontend-design
安装命令:
npx skills add https://github.com/vudovn/antigravity-kit --skill frontend-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vudovn/antigravity-kit --skill frontend-design

简介

用于辅助前端页面、组件、样式和交互逻辑开发。

  • 适合生成或审查 React、Vue、Tailwind、CSS 等代码。
  • 结合项目设计系统和路由方式使用,避免孤立片段。
  • 页面改动后应通过预览和构建检查确认效果。
  • frontend-design 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Frontend Design System

Philosophy: Every pixel has purpose. Restraint is luxury. User psychology drives decisions. Core Principle: THINK, don't memorize. ASK, don't assume.

🎯 Selective Reading Rule (MANDATORY)

Read REQUIRED files always, OPTIONAL only when needed:

FileStatusWhen to Read
ux-psychology.md🔴 REQUIREDAlways read first!
color-system.md⚪ OptionalColor/palette decisions
typography-system.md⚪ OptionalFont selection/pairing
visual-effects.md⚪ OptionalGlassmorphism, shadows, gradients
animation-guide.md⚪ OptionalAnimation needed
motion-graphics.md⚪ OptionalLottie, GSAP, 3D
decision-trees.md⚪ OptionalContext templates
🔴 ux-psychology.md = ALWAYS READ. Others = only if relevant.

🔧 Runtime Scripts

Execute these for audits (don't read, just run):

ScriptPurposeUsage
scripts/ux_audit.pyUX Psychology & Accessibility Auditpython scripts/ux_audit.py <project_path>

⚠️ CRITICAL: ASK BEFORE ASSUMING (MANDATORY)

STOP! If the user's request is open-ended, DO NOT default to your favorites.

When User Prompt is Vague, ASK:

Color not specified? Ask:

"What color palette do you prefer? (blue/green/orange/neutral/other?)"

Style not specified? Ask:

"What style are you going for? (minimal/bold/retro/futuristic/organic?)"

Layout not specified? Ask:

"Do you have a layout preference? (single column/grid/asymmetric/full-width?)"

⛔ DEFAULT TENDENCIES TO AVOID (ANTI-SAFE HARBOR):

AI Default TendencyWhy It's BadThink Instead
Bento Grids (Modern Cliché)Used in every AI designWhy does this content NEED a grid?
Hero Split (Left/Right)Predictable & BoringHow about Massive Typography or Vertical Narrative?
Mesh/Aurora GradientsThe "new" lazy backgroundWhat's a radical color pairing?
GlassmorphismAI's idea of "premium"How about solid, high-contrast flat?
Deep Cyan / Fintech BlueSafe harbor from purple banWhy not Red, Black, or Neon Green?
"Orchestrate / Empower"AI-generated copywritingHow would a human say this?
Dark background + neon glowOverused, "AI look"What does the BRAND actually need?
Rounded everythingGeneric/SafeWhere can I use sharp, brutalist edges?
🔴 "Every 'safe' structure you choose brings you one step closer to a generic template. TAKE RISKS."

1. Constraint Analysis (ALWAYS FIRST)

Before any design work, ANSWER THESE or ASK USER:

ConstraintQuestionWhy It Matters
TimelineHow much time?Determines complexity
ContentReady or placeholder?Affects layout flexibility
BrandExisting guidelines?May dictate colors/fonts
TechWhat stack?Affects capabilities
AudienceWho exactly?Drives all visual decisions

Audience → Design Approach

AudienceThink About
Gen ZBold, fast, mobile-first, authentic
MillennialsClean, minimal, value-driven
Gen XFamiliar, trustworthy, clear
BoomersReadable, high contrast, simple
B2BProfessional, data-focused, trust
LuxuryRestrained elegance, whitespace

2. UX Psychology Principles

Core Laws (Internalize These)

LawPrincipleApplication
Hick's LawMore choices = slower decisionsLimit options, use progressive disclosure
Fitts' LawBigger + closer = easier to clickSize CTAs appropriately
Miller's Law~7 items in working memoryChunk content into groups
Von RestorffDifferent = memorableMake CTAs visually distinct
Serial PositionFirst/last remembered mostKey info at start/end

Emotional Design Levels

VISCERAL (instant)  → First impression: colors, imagery, overall feel
BEHAVIORAL (use)    → Using it: speed, feedback, efficiency
REFLECTIVE (memory) → After: "I like what this says about me"

Trust Building

  • Security indicators on sensitive actions
  • Social proof where relevant
  • Clear contact/support access
  • Consistent, professional design
  • Transparent policies

3. Layout Principles

Golden Ratio (φ = 1.618)

Use for proportional harmony:
├── Content : Sidebar = roughly 62% : 38%
├── Each heading size = previous × 1.618 (for dramatic scale)
├── Spacing can follow: sm → md → lg (each × 1.618)

8-Point Grid Concept

All spacing and sizing in multiples of 8:
├── Tight: 4px (half-step for micro)
├── Small: 8px
├── Medium: 16px
├── Large: 24px, 32px
├── XL: 48px, 64px, 80px
└── Adjust based on content density

Key Sizing Principles

ElementConsideration
Touch targetsMinimum comfortable tap size
ButtonsHeight based on importance hierarchy
InputsMatch button height for alignment
CardsConsistent padding, breathable
Reading width45-75 characters optimal

4. Color Principles

60-30-10 Rule

60% → Primary/Background (calm, neutral base)
30% → Secondary (supporting areas)
10% → Accent (CTAs, highlights, attention)

Color Psychology (For Decision Making)

If You Need...Consider HuesAvoid
Trust, calmBlue familyAggressive reds
Growth, natureGreen familyIndustrial grays
Energy, urgencyOrange, redPassive blues
Luxury, creativityDeep Teal, Gold, EmeraldCheap-feeling brights
Clean, minimalNeutralsOverwhelming color

Selection Process

  1. What's the industry? (narrows options)
  2. What's the emotion? (picks primary)
  3. Light or dark mode? (sets foundation)
  4. ASK USER if not specified

For detailed color theory: color-system.md


5. Typography Principles

Scale Selection

Content TypeScale RatioFeel
Dense UI1.125-1.2Compact, efficient
General web1.25Balanced (most common)
Editorial1.333Readable, spacious
Hero/display1.5-1.618Dramatic impact

Pairing Concept

Contrast + Harmony:
├── DIFFERENT enough for hierarchy
├── SIMILAR enough for cohesion
└── Usually: display + neutral, or serif + sans

Readability Rules

  • Line length: 45-75 characters optimal
  • Line height: 1.4-1.6 for body text
  • Contrast: Check WCAG requirements
  • Size: 16px+ for body on web

For detailed typography: typography-system.md


6. Visual Effects Principles

Glassmorphism (When Appropriate)

Key properties:
├── Semi-transparent background
├── Backdrop blur
├── Subtle border for definition
└── ⚠️ **WARNING:** Standard blue/white glassmorphism is a modern cliché. Use it radically or not at all.

Shadow Hierarchy

Elevation concept:
├── Higher elements = larger shadows
├── Y-offset > X-offset (light from above)
├── Multiple layers = more realistic
└── Dark mode: may need glow instead

Gradient Usage

Harmonious gradients:
├── Adjacent colors on wheel (analogous)
├── OR same hue, different lightness
├── Avoid harsh complementary pairs
├── 🚫 **NO Mesh/Aurora Gradients** (floating blobs)
└── VARY from project to project radically

For complete effects guide: visual-effects.md


7. Animation Principles

Timing Concept

Duration based on:
├── Distance (further = longer)
├── Size (larger = slower)
├── Importance (critical = clear)
└── Context (urgent = fast, luxury = slow)

Easing Selection

ActionEasingWhy
EnteringEase-outDecelerate, settle in
LeavingEase-inAccelerate, exit
EmphasisEase-in-outSmooth, deliberate
PlayfulBounceFun, energetic

Performance

  • Animate only transform and opacity
  • Respect reduced-motion preference
  • Test on low-end devices

For animation patterns: animation-guide.md, for advanced: motion-graphics.md


8. "Wow Factor" Checklist

Premium Indicators

  • Generous whitespace (luxury = breathing room)
  • Subtle depth and dimension
  • Smooth, purposeful animations
  • Attention to detail (alignment, consistency)
  • Cohesive visual rhythm
  • Custom elements (not all defaults)

Trust Builders

  • Security cues where appropriate
  • Social proof / testimonials
  • Clear value proposition
  • Professional imagery
  • Consistent design language

Emotional Triggers

  • Hero that evokes intended emotion
  • Human elements (faces, stories)
  • Progress/achievement indicators
  • Moments of delight

9. Anti-Patterns (What NOT to Do)

❌ Lazy Design Indicators

  • Default system fonts without consideration
  • Stock imagery that doesn't match
  • Inconsistent spacing
  • Too many competing colors
  • Walls of text without hierarchy
  • Inaccessible contrast

❌ AI Tendency Patterns (AVOID!)

  • Same colors every project
  • Dark + neon as default
  • Purple/violet everything (PURPLE BAN ✅)
  • Bento grids for simple landing pages
  • Mesh Gradients & Glow Effects
  • Same layout structure / Vercel clone
  • Not asking user preferences

❌ Dark Patterns (Unethical)

  • Hidden costs
  • Fake urgency
  • Forced actions
  • Deceptive UI
  • Confirmshaming

10. Decision Process Summary

For EVERY design task:

1. CONSTRAINTS
   └── What's the timeline, brand, tech, audience?
   └── If unclear → ASK

2. CONTENT
   └── What content exists?
   └── What's the hierarchy?

3. STYLE DIRECTION
   └── What's appropriate for context?
   └── If unclear → ASK (don't default!)

4. EXECUTION
   └── Apply principles above
   └── Check against anti-patterns

5. REVIEW
   └── "Does this serve the user?"
   └── "Is this different from my defaults?"
   └── "Would I be proud of this?"

Reference Files

For deeper guidance on specific areas:


Related Skills

SkillWhen to Use
frontend-design (this)Before coding - Learn design principles (color, typography, UX psychology)
web-design-guidelinesAfter coding - Audit for accessibility, performance, and best practices

Post-Design Workflow

After implementing your design, run the audit:

1. DESIGN   → Read frontend-design principles ← YOU ARE HERE
2. CODE     → Implement the design
3. AUDIT    → Run web-design-guidelines review
4. FIX      → Address findings from audit
Next Step: After coding, use web-design-guidelines skill to audit your implementation for accessibility, focus states, animations, and performance issues.

Remember: Design is THINKING, not copying. Every project deserves fresh consideration based on its unique context and users. Avoid the Modern SaaS Safe Harbor!

5. Next.js 16+ Modern Form Patterns

[!IMPORTANT] For Next.js 16+ projects, use the native next/form component instead of standard HTML <form> for all GET-based search/filter operations.

The <Form> Component Advantage

  • Automatic Client Navigation: Performs client-side transitions on submit.
  • Progressive Enhancement: Works even without JavaScript.
  • URL Sync: Automatically encodes input values into search params.

Implementation Example (Search Bar)

import Form from 'next/form'

export default function SearchBar() {
  return (
    <Form action="/search" className="flex gap-2">
      <input
        name="q"
        placeholder="Search products..."
        className="border p-2"
      />
      <button type="submit">Search</button>
    </Form>
  )
}

When to use <Form> vs. standard <form>:

  • Use next/form for: Search, Filtering, Sorting, Pagination (GET requests).
  • Use standard <form> for: Mutations, Login, Data Entry (POST requests via Server Actions).

适合场景

01

前端页面设计

02

生成更有辨识度的 UI

03

避免模板化 AI 页面

04

需要统一视觉方向时

能力概览

能力 1

建立明确视觉方向

能力 2

约束排版、色彩、动效和空间布局

能力 3

提醒避免通用模板化设计

能力 4

要求生成可运行的前端实现

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.78%
按下载量换算628

Antigravity

22.74%
按下载量换算496

Gemini CLI

18.57%
按下载量换算405

OpenCode

15.08%
按下载量换算329

Cursor

8.9%
按下载量换算194

Codex

3.7%
按下载量换算81

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills