Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

atomic-design原子设计

Agent Skill

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

总安装

240

周安装

10

GitHub Stars

公开资料未说明

下载量

80
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/code-sherpas/agent-skills --skill atomic-design

简介

用于辅助界面设计、视觉规范和组件层级优化。

  • 基于原子设计原则组织页面结构与 UI 方案。
  • 强调复用优先,避免重复造轮子。atomic-design 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 使用时需结合品牌规范与设计系统,避免堆砌装饰元素。
  • 涉及真实页面改动时应通过预览检查响应式表现。

SKILL.md

Build Web Components

Reuse-First Rule

Treat raw DOM or HTML elements, or equivalent low-level primitives, as implementation details of reusable building blocks instead of the default way to assemble feature UI.

Follow this order every time:

  1. Reuse an existing generic component.
  2. Generalize an existing non-generic component and reuse it.
  3. Write new code only after exhausting 1 and 2.
  4. Extract smaller reusable pieces from the new code immediately.

Aim for feature components to be composed mostly of project components, design-system primitives, and framework-native composition mechanisms. Keep direct low-level nodes isolated inside reusable primitives whenever practical.

Workflow

  1. Detect the stack and local component model.

- Identify the framework, styling approach, and design-system packages already in use. - Read nearby components before editing. - Load references/reuse-checklist.md for search heuristics, stack mappings, and extraction signals.

  1. Search for reusable generic components first.

- Search by behavior, structure, and visual role, not only by name. - Inspect shared component folders, design-system packages, feature libraries, and existing UI kits. - Prefer existing slots, variants, composition props, render props, and style tokens over copy-paste. - Avoid adding a new UI library unless the task explicitly requires it.

  1. Search for a component that can be generalized if no generic component fits.

- Look for the same layout skeleton or interaction model with feature-specific copy, icons, data, or styling. - Extract hard-coded content into props, slots, children, variants, or configuration. - Preserve current behavior for existing callers unless the task explicitly allows a breaking cleanup. - Reuse the generalized version instead of duplicating the original markup.

  1. Write new code only after exhausting reuse and generalization.

- Start with the smallest reusable boundary that can solve the task. - Introduce new primitives in the design-system or shared layer when the abstraction is broadly useful. - Keep raw platform nodes inside those primitives instead of spreading them across higher-level feature components.

  1. Extract reusable subcomponents immediately after writing new code.

- Extract repeated or clearly named markup clusters in the same task. - Prefer local feature-shared components first. Promote to global shared components only after the abstraction proves useful beyond one feature area.

  1. Keep the final component tree high-level.

- Make feature components read like product intent, not like DOM assembly. - Treat many direct low-level elements in a feature component as a smell and refactor further unless the structure is truly unique or semantically required.

Generalize Safely

Generalize only when the abstraction has a stable shape.

  • Extract variable content, actions, media, adornments, and state into props or slots.
  • Rename components to domain-neutral names when they should escape their original feature.
  • Prefer backward-compatible migration paths such as wrappers, aliases, or default props.
  • Avoid speculative abstractions that do not have a clear second use case.

Keep Raw Elements Contained

Treat this as the default quality bar instead of a literal hard limit:

  • Keep near-zero raw HTML elements or equivalent low-level primitives in feature, page, and section components.
  • Allow raw elements inside shared primitives because someone must encapsulate the platform.
  • Use raw elements directly only for semantics that must stay explicit, framework constraints, tiny leaf wrappers, or brand-new primitives being extracted in the same task.
  • Cluster any unavoidable low-level markup in a small number of reusable files.

Report the Outcome

When finishing the task:

  • State which existing components were reused.
  • State which components were generalized and how.
  • State which new reusable pieces were extracted if new code was required.
  • State which raw low-level elements remain and why they could not be abstracted further.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.87%
按下载量换算29

Claude

31.72%
按下载量换算25

Cursor

20.21%
按下载量换算16

Gemini CLI

9.87%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills