Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

frontend-design前端设计

Agent Skill

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

总安装

1,529

周安装

65

GitHub Stars

64

下载量

536
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/factory-ai/factory-plugins --skill frontend-design

简介

frontend-design 提供界面美学与可用性并重的设计实践指南,非框架特定方案。

  • 从 tone 设定出发决定色彩、字体与动效风格,保持品牌一致性优先。
  • 建议先产出情绪板与线框图再进入编码阶段,避免反复返工浪费资源。
  • 响应式设计应覆盖主流断点,并使用真实设备测试触摸与缩放体验流畅度。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Frontend design

Practical tactics for designing and building frontend interfaces. This is about making things look good and work well, not about frameworks or tooling.

Start with the creative vision

Before touching code, understand what you're trying to achieve emotionally and aesthetically.

Tone

What feeling should this interface convey? Professional and trustworthy? Playful and fun? Calm and minimal? Energetic and bold?

The tone affects every decision: colors, typography, spacing, imagery, micro-interactions.

If there's an existing design language, follow it first. Match the existing tone before introducing new elements. Consistency matters more than novelty.

Aesthetics

Look at references. What interfaces do you admire that have a similar purpose? What makes them work?

Collect screenshots, note what you like about each. Is it the generous whitespace? The bold typography? The subtle shadows? The color palette?

Don't copy directly, but understand the principles behind what you're drawn to.

Then add constraints

Constraints make design easier, not harder. They eliminate decision fatigue.

Spacing scale

Pick a base unit (4px or 8px) and stick to multiples of it.

4, 8, 12, 16, 24, 32, 48, 64, 96, 128

Every margin, padding, and gap should come from this scale. No magic numbers like 13px or 47px.

Type scale

Pick a ratio (1.25 or 1.333 are common) and generate your sizes:

12, 14, 16, 20, 24, 32, 40, 48

Each size has a purpose: body text, subheadings, headings, display text.

Color palette

Start minimal:

  • One primary color (your brand or accent)
  • Neutrals: white, black, and 3-4 grays
  • One semantic color for errors (red)
  • One for success (green)

You can always add more later. Starting with fewer colors forces you to use them intentionally.

Layout grid

Use a 12-column grid with consistent gutters. Most layouts can be built with 12 columns.

Design in the browser

Designing directly in code (HTML/CSS) has advantages:

  • You see real rendering, real responsiveness
  • Faster iteration than design tools for some changes
  • No handoff problems
  • Version control

Start with mobile, then scale up. It's easier to add space than to remove it.

Common patterns

Cards

Cards group related content. Keep them simple:

  • Consistent padding (16px or 24px)
  • Subtle border or shadow to separate from background
  • Clear hierarchy: image, title, description, action

Forms

  • Labels above inputs, not beside
  • One column for most forms
  • Clear error states (red border, error message below)
  • Generous touch targets (44px minimum height on mobile)

Navigation

  • Keep primary nav minimal (5-7 items max)
  • Current page should be obvious
  • Mobile: hamburger menu or bottom nav
  • Breadcrumbs for deep hierarchies

Empty states

Don't leave empty areas blank. Show:

  • What would normally be here
  • How to add content
  • An illustration if appropriate

Loading states

  • Skeleton screens over spinners when possible
  • Show progress for long operations
  • Don't block the whole UI if only part is loading

Avoiding AI-slop aesthetics

Generated designs often look generic. To avoid this:

Be specific about what you want. "A modern dashboard" gives you something forgettable. "A dashboard with a dark theme, data visualizations using a blue-to-purple gradient, compact information density, inspired by trading terminals" gives you something distinctive.

Add constraints. Limit your color palette. Commit to a specific type scale. Use a consistent spacing system. Constraints create cohesion.

Look at real references. Find interfaces you admire. Understand why they work. Borrow principles, not pixels.

Edit ruthlessly. Generated designs often have too much going on. Remove decorative elements that don't serve a purpose. Simplify until it feels too simple, then add back one thing.

Test with real content. Lorem ipsum hides problems. Use realistic text lengths, real images, actual data.

Responsive design

Design for mobile first, then add complexity for larger screens.

Breakpoints (common):

  • Mobile: up to 640px
  • Tablet: 641px to 1024px
  • Desktop: 1025px and up

What changes between breakpoints:

  • Number of columns
  • Font sizes (slightly larger on desktop)
  • Navigation pattern
  • Amount of content visible

What stays the same:

  • Color palette
  • Typography hierarchy
  • Brand elements
  • Core functionality

Accessibility basics

  • Color contrast: 4.5:1 minimum for text
  • Focus states: visible focus rings for keyboard navigation
  • Alt text: describe images meaningfully
  • Semantic HTML: use headings, lists, buttons correctly
  • Touch targets: 44x44px minimum

These aren't nice-to-haves. They're requirements for usable interfaces.

Quick checklist

Before shipping:

  • Consistent spacing from the scale
  • Typography hierarchy is clear
  • Colors meet contrast requirements
  • Works on mobile
  • Focus states are visible
  • Loading and error states exist
  • Empty states are handled
  • Real content has been tested

适合场景

01

前端页面设计

02

生成更有辨识度的 UI

03

避免模板化 AI 页面

04

需要统一视觉方向时

能力概览

能力 1

建立明确视觉方向

能力 2

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

能力 3

提醒避免通用模板化设计

能力 4

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

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

平台分布

Codex

36.1%
按下载量换算193

Claude

26.05%
按下载量换算140

Cursor

19.34%
按下载量换算104

Gemini CLI

8.58%
按下载量换算46

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills