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

design-system-documenter设计系统文档记录员

Agent Skill

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

总安装

1,552

周安装

66

GitHub Stars

98

下载量

544
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/erichowens/some_claude_skills --skill design-system-documenter

简介

用于将原始设计令牌转化为开发者友好的文档,包含用法示例和可访问性说明。

  • 适合提升前端团队对令牌系统的理解和使用意愿,降低上手门槛。
  • 使用时需提供 tokens.json 或 CSS 变量文件,自动生成带注释的参考表格。
  • 文档需回答“何时使用”而非仅“是什么”,辅以 Do/Dont 用例增强实用性。
  • design-system-documenter 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Design System Documenter

Transform raw design tokens into developer-friendly documentation with usage examples, accessibility notes, and implementation guidelines.

Quick Start

Minimal example - document a token file:

Input: Generated tokens.json or CSS variables file
Output: Complete documentation with:
- Token reference tables
- Usage examples in code
- Accessibility annotations
- Do/Don't examples

Key principle: Documentation should answer "when do I use this?" not just "what is this?".

Core Mission

Bridge the gap between generated tokens and developer adoption by creating documentation that:

  1. Explains *when* to use each token (not just what it is)
  2. Shows real code examples for common scenarios
  3. Highlights accessibility considerations
  4. Prevents misuse with anti-pattern examples

When to Use

✅ Use when:

  • Just generated design tokens and need docs
  • Team struggles with "which token do I use?"
  • Onboarding new developers to design system
  • Creating a public design system site

❌ Do NOT use when:

  • Need to generate tokens (use design-system-generator first)
  • Need component code (use component-template-generator)
  • Documenting non-design-system code (use docs-architect)

Documentation Structure

1. Token Reference Tables

For each token category, generate tables with:

TokenValueUsageAccessibility
--color-primary#FF5252CTAs, links, emphasis✅ 4.5:1 on white
--color-border#000000All borders, dividers

2. Usage Guidelines

## Color Tokens

### Primary Colors
Use primary colors for:
- Call-to-action buttons
- Interactive links
- Important highlights

Do NOT use for:
- Body text
- Background fills (too saturated)
- Disabled states

### Code Example

.button-primary { background: var(--color-primary); color: var(--color-text-on-primary); border: var(--border-width) solid var(--color-border); }

3. Visual Examples

Include visual swatches and demonstrations:

## Shadow Tokens

| Name | Preview | CSS Value |
|------|---------|-----------|
| shadow-sm | [2px offset visual] | `2px 2px 0 0 #000` |
| shadow-md | [4px offset visual] | `4px 4px 0 0 #000` |
| shadow-lg | [6px offset visual] | `6px 6px 0 0 #000` |

### Interaction States
- **Default**: `shadow-md`
- **Hover**: `shadow-lg` + translate(-2px, -2px)
- **Active**: `shadow-sm` + translate(2px, 2px)

4. Accessibility Section

## Accessibility

### Color Contrast
| Combination | Ratio | WCAG Level |
|-------------|-------|------------|
| Primary on White | 4.8:1 | ✅ AA |
| Primary on Cream | 4.2:1 | ⚠️ AA Large only |
| Text on Primary | 8.2:1 | ✅ AAA |

### Motion
All animations respect `prefers-reduced-motion`:

@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; } }

5. Do/Don't Examples

## Common Mistakes

### ❌ Don't: Use shadow-lg on small elements
Small elements with large shadows look unbalanced.

### ✅ Do: Scale shadow with element size
- Small buttons: shadow-sm
- Cards: shadow-md
- Modals: shadow-lg

### ❌ Don't: Mix border styles
Inconsistent borders break visual rhythm.

### ✅ Do: Use consistent border tokens
Always use `--border-width` (3px) for neobrutalist consistency.

Output Formats

Markdown (Default)

Complete .md file for docs sites:

  • Docusaurus/VitePress compatible
  • Includes frontmatter for navigation
  • Code blocks with syntax highlighting

MDX (React docs)

Same as Markdown plus:

  • Interactive color swatches
  • Live code examples
  • Token preview components

Storybook

Documentation stories:

  • Token showcase pages
  • Interactive controls
  • Design token addon integration

Documentation Workflow

1. design-system-generator → tokens.json / tokens.css
2. design-system-documenter → tokens-docs.md
3. Review and customize
4. Publish to docs site

Template: Token Documentation Page

---
title: Design Tokens
description: Complete reference for [Project] design tokens
---

# Design Tokens

Generated from [trend-name] design trend.

## Quick Reference

| Category | Tokens | Description |
|----------|--------|-------------|
| Colors | 12 | Primary, neutral, semantic |
| Typography | 8 | Fonts, sizes, weights |
| Spacing | 15 | 0-24 scale |
| Shadows | 5 | Size and state variants |

## Colors

### Primary Palette
[Token table with hex, usage, accessibility]

### Neutral Palette
[Token table]

### Semantic Colors
[Token table for success, warning, error, info]

## Typography

### Font Families
[Token table with font stacks and usage]

### Font Sizes
[Scale table with px/rem values]

## Spacing

### Spacing Scale
[0-24 scale with rem values]

## Shadows

### Shadow Variants
[Visual examples with code]

## Usage Examples

### Button Component
[Complete code example using tokens]

### Card Component
[Complete code example using tokens]

## Accessibility

### Contrast Ratios
[All color combinations with WCAG levels]

### Motion Preferences
[Reduced motion handling]

## Migration Guide

### From Arbitrary Values
[Before/after examples]

See Also

References

  • references/documentation-templates.md - Docusaurus, VitePress, Storybook, README templates
  • references/design-system-references.md - NEW: Real-world design system references

- Enterprise: Elastic UI, Red Hat PatternFly, Morningstar - Accessibility-first: Ariakit, Radix UI - Modern: HeroUI, shadcn/ui, Neobrutalism.dev - Framework-agnostic: Web Awesome, Shoelace - Award-winning sites from Awwwards for inspiration - Framer template categories (2900+ business, 1700+ creative)

Related Skills

  • design-system-generator - Generate tokens first (24 trends, 31 styles)
  • component-template-generator - Create component code from tokens

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.84%
按下载量换算190

Claude

29.3%
按下载量换算159

Cursor

19.45%
按下载量换算106

Gemini CLI

9%
按下载量换算49

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills