跳到正文
Skillpedia
界面(UI/UX)280k · #166

design-system

它能做什么

这个工具可以帮你为网站或应用创建设计系统,或者检查现有的设计系统。它会从你的代码中提取视觉规则(颜色、字体、间距)并加以整理,也可以评估现有界面在视觉上是否统一。

适用场景

  • ✓开始新项目,需要确定视觉规则的时候。
  • ✓想检查网站或应用的视觉风格是否统一的时候。
  • ✓重新设计之前,先了解已经做过哪些工作的时候。

技能链接

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/design-system/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/affaan-m/ECC/blob/main/pi/core/skills/design-system/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“帮我为网站生成一套设计系统,要自然的配色和简洁的风格。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会分析你的代码,找出其中使用的颜色、字体和间距,然后把这些信息整理成一套规则(设计令牌,即 design tokens),并生成一个视觉示例供你查看。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Design System — Generate & Audit Visual Systems

When to Use

  • Starting a new project that needs a design system
  • Auditing an existing codebase for visual consistency
  • Before a redesign — understand what you have
  • When the UI looks "off" but you can't pinpoint why
  • Reviewing PRs that touch styling

How It Works

Mode 1: Generate Design System

Analyzes your codebase and generates a cohesive design system:

1. Scan CSS/Tailwind/styled-components for existing patterns
2. Extract: colors, typography, spacing, border-radius, shadows, breakpoints
3. Research 3 competitor sites for inspiration (via browser MCP)
4. Propose a design token set (JSON + CSS custom properties)
5. Generate DESIGN.md with rationale for each decision
6. Create an interactive HTML preview page (self-contained, no deps)

Output: DESIGN.md + design-tokens.json + design-preview.html

Mode 2: Visual Audit

Scores your UI across 10 dimensions (0-10 each):

1. Color consistency — are you using your palette or random hex values?
2. Typography hierarchy — clear h1 > h2 > h3 > body > caption?
3. Spacing rhythm — consistent scale (4px/8px/16px) or arbitrary?
4. Component consistency — do similar elements look similar?
5. Responsive behavior — fluid or broken at breakpoints?
6. Dark mode — complete or half-done?
7. Animation — purposeful or gratuitous?
8. Accessibility — contrast ratios, focus states, touch targets
9. Information density — cluttered or clean?
10. Polish — hover states, transitions, loading states, empty states

Each dimension gets a score, specific examples, and a fix with exact file:line.

Mode 3: AI Slop Detection

Identifies generic AI-generated design patterns:

- Gratuitous gradients on everything
- Purple-to-blue defaults
- "Glass morphism" cards with no purpose
- Rounded corners on things that shouldn't be rounded
- Excessive animations on scroll
- Generic hero with centered text over stock gradient
- Sans-serif font stack with no personality

Examples

Generate for a SaaS app:

/design-system generate --style minimal --palette earth-tones

Audit existing UI:

/design-system audit --url http://localhost:3000 --pages / /pricing /docs

Check for AI slop:

/design-system slop-check
常见问题

什么是“设计令牌”(design tokens)?

它们是设计的基本构件,比如项目中使用的具体颜色、字号和间距等。

“审查视觉一致性”是什么意思?

意思是检查网站或应用的所有视觉元素是否遵循同一套规则,让整体看起来协调、专业。

什么是“AI slop”?

指使用人工智能生成界面时偶尔出现的、千篇一律且缺乏目的的设计模式,比如夸张的渐变色或过度圆角。

详情

作者的原始描述

Generate a design system from an existing codebase or audit one for visual consistency: extract tokens (colors, typography, spacing, shadows) into design-tokens.json and CSS custom properties with DESIGN.md rationale and an interactive HTML preview, score the UI across 10 dimensions, and flag AI-slop patterns. Use when starting a design system, auditing visual consistency before a redesign, or rev

repo: affaan-m/ECC

热度

GitHub 星标
280k
排名
#166
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能