Token导航 LogoToken导航TokenDH.com
待分类权限需确认github未标认证来源可访问许可证需确认审计通过

generic-design-system通用设计系统

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

1,529

周安装

65

GitHub Stars

48

下载量

536
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/travisjneuman/.claude --skill generic-design-system

简介

用于辅助界面设计和视觉规范优化。

  • 适合整理页面结构和生成 UI 方案。
  • 使用时需结合品牌和设计系统。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 涉及页面改动应通过截图检查视觉效果。
  • generic-design-system 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
generic-design-system
description
Complete design system reference for any project - colors, typography, spacing, components, animations. Adapts to project theme and tech stack. Use when implementing UI, choosing colors, creating animations, or ensuring brand consistency. For new design systems, use ui-research skill first.

Generic Design System

Design system reference adapting to any project's visual language.

Research First for New Systems

When creating a NEW design system (not following an existing one):

Skill(ui-research)  # Research modern patterns first

References:

When to Use This Skill

Use for:

  • Implementing UI components
  • Choosing colors or typography
  • Creating animations or transitions
  • Ensuring visual consistency
  • Setting up design tokens
  • Reviewing design system compliance

Don't use when:

  • UX flow design → use generic-ux-designer
  • Feature architecture → use generic-feature-developer
  • Code quality review → use generic-code-reviewer

Design System Architecture

When to Build vs Reference

SituationAction
Existing design systemFollow it strictly
No design systemUse this skill to establish foundations
Partial systemIdentify gaps, extend consistently

Token Organization

LayerExamplePurpose
Primitive--color-blue-500Raw values
Semantic--color-primaryMeaning
Component--button-backgroundContext

Decision: Use semantic tokens in code, primitive tokens as foundation only.

Consistency Decision Tree

  1. Component exists? → Use existing pattern
  2. Similar exists? → Adapt existing (don't create competing pattern)
  3. New category? → Propose to user, document reasoning

Color System

Every project should define:

  • Primary, Secondary, Accent
  • Background, Foreground, Muted
  • Destructive, Success, Warning

Contrast Requirements

Use CaseMinimum
Body text4.5:1 (AA)
Large text3:1 (AA)
UI components3:1 (AA)

Typography

Font Stack

--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-mono: "SF Mono", Monaco, "Courier New", monospace;

Type Scale

NameSizeUse
sm14pxSecondary text
base16pxBody text
lg18pxLead paragraphs
xl20pxSection headers
2xl24pxPage headers

Spacing System

Base unit: 4px or 8px

Token4px BaseUse
14pxTight spacing
28pxDefault gap
416pxCard padding
624pxPage margins

Animation

GPU-Accelerated Only

DO animate: transform, opacity AVOID: width, height, top, left, margin, padding

Duration

TokenDurationUse
fast100msMicro-interactions
DEFAULT200msMost transitions
slow300msComplex animations

Timing

--ease-default: cubic-bezier(0.4, 0, 0.2, 1);
--ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

Components

Component States

StateVisual TreatmentExample
DefaultBase stylingNormal button
HoverSubtle feedbackLighter/darker bg
ActivePressed stateScaled down slightly
FocusVisible outline2px ring, offset
DisabledReduced opacity50% opacity, no pointer
LoadingSpinner/skeletonButton with spinner
ErrorDestructive colorRed border/text

Touch Targets

  • Minimum: 44x44px (WCAG 2.1 AAA)
  • Spacing: 8px between adjacent targets
  • Mobile: Consider 48x48px for primary actions

Buttons

VariantUseMin Size
PrimaryMain actions44x44px
SecondaryAlternative actions44x44px
GhostSubtle actions44x44px
DestructiveDelete actions44x44px

Form Inputs

  • Clear focus states (2px visible ring)
  • Error states with messages
  • Label always visible
  • Required indicator

Modals

  • Focus trapped inside
  • Escape to close
  • Dark overlay (50-70% opacity)

Responsive Breakpoints

TokenMin Width
sm640px
md768px
lg1024px
xl1280px

Dark Mode

:root {
  --background: #ffffff;
  --foreground: #000000;
}
[data-theme="dark"] {
  --background: #000000;
  --foreground: #ffffff;
}

See Also

  • Design Patterns - Atomic Design, tokens, component docs
  • Code Review Standards - Accessibility checks
  • generic-ux-designer - For UX flow and research decisions
  • Project CLAUDE.md - Project-specific design constraints

READ references when:

  • Setting up new design system → DESIGN_PATTERNS.md (full structure)
  • Complex component patterns → DESIGN_PATTERNS.md (Atomic Design section)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

38.7%
按下载量换算207

Claude

29.9%
按下载量换算160

Cursor

19.44%
按下载量换算104

Gemini CLI

8.46%
按下载量换算45

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills