← 返回 Skills 市场
ivangdavila

Design System

作者 Iván · GitHub ↗ · v1.0.0
linuxdarwinwin32 ✓ 安全检测通过
853
总下载
0
收藏
12
当前安装
1
版本数
在 OpenClaw 中安装
/install design-system
功能描述
Build design systems with tokens, components, and documentation that scale across teams and products.
使用说明 (SKILL.md)

Setup

On first use, read setup.md for integration guidelines. All preferences are stored in ~/design-system/memory.md.

When to Use

User needs to create, maintain, or extend a design system. Agent handles token architecture, component patterns, documentation structure, and cross-platform consistency.

Architecture

Memory lives in ~/design-system/. See memory-template.md for structure.

~/design-system/
├── memory.md         # Status + context + decisions
└── tokens/           # Token definitions if exported

Quick Reference

Topic File
Setup process setup.md
Memory template memory-template.md

Core Rules

1. Tokens First, Components Second

Design tokens are the foundation. Before building any component:

  • Define color tokens (semantic, not raw hex)
  • Define spacing scale (consistent multiplier)
  • Define typography scale (modular)

Components consume tokens. Never hardcode values.

2. Semantic Over Literal Naming

Bad Good
blue-500 primary
14px text-sm
8px space-2

Semantic names survive rebrand. Literal names break everything.

3. Three-Tier Token Architecture

Primitive → Semantic → Component
   ↓           ↓          ↓
 gray-900   text-primary  button-text
  • Primitive: Raw values (colors, sizes)
  • Semantic: Meaning-based (primary, danger, muted)
  • Component: Specific use (button-bg, card-border)

4. Document Decisions, Not Just Specs

Every token and component needs:

  • What: The value or pattern
  • When: Usage context
  • Why: The decision behind it
  • When NOT: Anti-patterns to avoid

5. Platform-Agnostic Source of Truth

Design tokens should export to:

  • CSS custom properties
  • Tailwind config
  • iOS/Android native
  • Figma variables

One source, many outputs. Use Style Dictionary or similar.

6. Component API Consistency

All components follow the same patterns:

  • Same prop naming (variant, size, disabled)
  • Same size scale (sm, md, lg)
  • Same variant names (primary, secondary, ghost)

Predictability beats cleverness.

7. Versioning and Migration

Breaking changes need:

  • Version bump (semver)
  • Migration guide
  • Deprecation warnings before removal
  • Codemods when possible

Common Traps

  • Premature abstraction → Build 3 instances before extracting a pattern
  • Token explosion → 50 grays is not a system, it is chaos
  • Skipping documentation → Undocumented patterns get reimplemented wrong
  • Designing for edge cases first → Cover 80% well before 100% poorly
  • No dark mode strategy → Retrofit is 10x harder than planning upfront
  • Inconsistent spacing → Use a scale (4px base), not arbitrary values
  • Component prop sprawl → More than 10 props means split the component

Security & Privacy

Data that stays local:

  • Design decisions in ~/design-system/
  • Token definitions and component specs

This skill does NOT:

  • Access files outside ~/design-system/
  • Make network requests
  • Store sensitive data

Related Skills

Install with clawhub install \x3Cslug> if user confirms:

  • css — Styling fundamentals
  • tailwindcss — Utility-first CSS
  • frontend — Frontend development
  • ui — User interface patterns
  • design — Design principles

Feedback

  • If useful: clawhub star design-system
  • Stay updated: clawhub sync
安全使用建议
This skill appears coherent and low-risk: it only uses local files and includes templates for storing design-system memory at ~/design-system/memory.md. Before installing or using it, consider: 1) inspect the contents of ~/design-system/ if you want to confirm what the agent wrote; 2) do not paste secrets or credentials into the memory files (they are persistent); 3) the skill claims it won’t make network requests, but the platform hosting the agent may allow network access — if you need to enforce no-network behavior, verify platform/network policies; 4) if you don’t want any persistent files, avoid enabling the skill or delete ~/design-system/ after use. If the skill later requests environment variables, executables, or external URLs, treat that as a red flag and re-evaluate.
功能分析
Type: OpenClaw Skill Name: design-system Version: 1.0.0 The skill bundle is benign. All files (SKILL.md, memory-template.md, setup.md) consistently describe an AI agent's role in assisting with design system creation, focusing on local memory management within `~/design-system/` and user interaction. Crucially, SKILL.md explicitly states under 'Security & Privacy' that the skill 'does NOT: Access files outside ~/design-system/, Make network requests, Store sensitive data', which acts as a clear instruction to the agent against malicious behaviors and aligns with a benign purpose. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, prompt injection attempts to subvert the agent, or obfuscation.
能力评估
Purpose & Capability
Name/description (design system tokens, components, docs) align with the instructions and included templates. No unrelated binaries, env vars, or services are requested.
Instruction Scope
SKILL.md and setup.md limit behavior to asking the user questions, advising on patterns, and reading/writing files in ~/design-system/. The skill explicitly states it will not access files outside that directory or make network requests.
Install Mechanism
No install spec and no code files — instruction-only means nothing is downloaded or written by an installer. Lowest-risk install posture.
Credentials
No environment variables, credentials, or config paths are requested. All required state is local and file-based (~/design-system/). Proportional to the claimed functionality.
Persistence & Privilege
The skill persists a memory file under the user's home (~ /design-system/memory.md). This is reasonable for a design-system assistant, but it is persistent data stored on disk — users should be aware of what is written and avoid saving secrets there.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install design-system
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /design-system 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug design-system
版本 1.0.0
许可证
累计安装 12
当前安装数 12
历史版本数 1
常见问题

Design System 是什么?

Build design systems with tokens, components, and documentation that scale across teams and products. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 853 次。

如何安装 Design System?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install design-system」即可一键安装,无需额外配置。

Design System 是免费的吗?

是的,Design System 完全免费(开源免费),可自由下载、安装和使用。

Design System 支持哪些平台?

Design System 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Design System?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。

💬 留言讨论