ui-designer/component-specification

ui-designer/component-specification is a skill for Claude Code from echoVic/boss-skill. It costs 29 tokens per session (3,188 once invoked), scanned A, original, MIT.

A specification for reusable interface components such as buttons, inputs, and cards. It defines their variations, sizes, and states, including hover, focus, disabled, loading, and error states.

In plain words
What is it for?
It is for documenting the behavior and appearance of reusable UI components, including their visual variants, dimensions, interactions, accessibility, and responsive behavior.
Why use it?
It prevents the same type of component from being designed differently in different places. It also makes keyboard use, screen readers, and different screen sizes part of the specification.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: agent in frontmatter.

Part of the boss plugin — 28 skills, 7 commands, 9 agents, 8 hooks shipped together

Good fit It is for documenting the behavior and appearance of reusable UI components, including their visual variants, dimensions, interactions, accessibility, and responsive behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/echovic/boss-skill/component-specification
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add echoVic/boss-skill --skill component-specification
Clone the repo
git clone --depth 1 https://github.com/echoVic/boss-skill

Made for: Claude Code.

Or install boss, the plugin that ships this one along with the rest of its 28 skills, 7 commands, 9 agents, 8 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-designer/component-specification

README.md
[![agentmods](https://agentmods.dev/badge/skills/echovic/boss-skill/component-specification/github.svg)](https://agentmods.dev/skills/echovic/boss-skill/component-specification)
Your own site
<a href="https://agentmods.dev/skills/echovic/boss-skill/component-specification"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/component-specification/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-designer/component-specification

Your own site · 80×15
<a href="https://agentmods.dev/skills/echovic/boss-skill/component-specification"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/component-specification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,188 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.03188
Opus 5.5 $0.00012 $0.01275
Sonnet 5.5 $0.00006 $0.00638
Haiku 4.5 $0.00003 $0.00319

Measured 24d ago against content hash 0eceb5533283, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ui-designer/component-specification scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill/skills/ui-designer/component-specification/SKILL.md · 381 lines

How it starts

The opening of the file, as written. The whole thing — 381 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UI组件规范

适用场景

基于设计系统,定义可复用的UI组件规范,确保组件在不同场景下的一致性和完整性。

组件设计原则

  1. 完整性:考虑所有状态(默认、悬停、按下、聚焦、禁用、加载、错误)
  2. 一致性:同类组件使用相同的设计语言
  3. 可访问性:支持键盘导航、屏幕阅读器
  4. 响应式:适配不同屏幕尺寸

基础组件规范

1. 按钮 (Button)

变体
变体 用途 视觉特征
Primary 主要操作(每个区域最多1个) 实心,品牌色背景,白色文字
Secondary 次要操作 描边,透明背景,品牌色文字
Ghost 低优先级操作 无边框,透明背景,灰色文字
Danger 危险操作(删除、清空) 实心,红色背景,白色文字
Link 文本链接 无背景,品牌色文字,下划线
尺寸
尺寸 高度 内边距 字号 圆角 最小宽度
sm 32px 12px 16px 14px 6px 64px
md 40px 12px 20px 16px 8px 80px
lg 48px 16px 24px 16px 8px 96px
状态
状态 Primary 背景 Primary 文字 边框 其他
默认 Primary White - -
悬停 Primary-hover White - cursor: pointer
按下 Primary-active White - transform: scale(0.98)
聚焦 Primary White 2px Primary 外发光 outline
禁用 Gray-200 Gray-400 - cursor: not-allowed, opacity: 0.6
加载 Primary - - 显示 spinner,文字隐藏
图标按钮
属性 值
尺寸 32px / 40px / 48px(正方形)
图标大小 16px / 20px / 24px
圆角 radius-md 或 radius-full(圆形)
代码示例
// 主按钮
<Button variant="primary" size="md">确认</Button>

// 次要按钮
<Button variant="secondary" size="md">取消</Button>

// 危险按钮
<Button variant="danger" size="md">删除</Button>

// 禁用状态
<Button variant="primary" size="md" disabled>确认</Button>

// 加载状态
<Button variant="primary" size="md" loading>提交中</Button>

// 带图标
<Button variant="primary" size="md" icon={<IconCheck />}>保存</Button>

// 图标按钮
<IconButton variant="ghost" size="md" icon={<IconClose />} />

2. 输入框 (Input)

尺寸
尺寸 高度 内边距 字号 圆角
sm 32px 8px 12px 14px 6px
md 40px 10px 14px 16px 8px
lg 48px 12px 16px 16px 8px
状态
状态 边框颜色 背景色 其他
默认 Gray-300 White -
悬停 Gray-400 White -
聚焦 Primary White 2px Primary 外发光
错误 Error White 显示错误提示
禁用 Gray-200 Gray-50 cursor: not-allowed
只读 Gray-200 Gray-50 -

Read the full file on GitHub · 381 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago Changed · +2 lines 0eceb5533283
  2. 1mo ago First seen · 379 lines · 29 tokens per session scan A 4b9e6bc3e11b

Subscribe to this mod's changes

ui-designer/component-specification is a skill published in the GitHub repository echoVic/boss-skill (543 stars, last pushed 6d ago), licensed MIT. It adds 29 tokens to every session and 3,188 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

color-expert

Use when working with color naming, color theory, color spaces, color definitions, or any task involving color knowledge - palettes, ramps, gradients, conversions, accessibility, perceptual matching, pigment mixing, print-vs-screen color, CSS color syntax, or historical color terminology. Use this skill whenever the…

meodai/skill.color-expert · 92 tokens

create-chatgpt-mockup

Render pixel-accurate ChatGPT mobile (iOS) screen mockups in light mode from a thread JSON. Supports user text bubbles, user image attachments, assistant markdown prose, citation chips, the OpenAI spiral logo, the Apps-SDK GPT chip in the composer, and three header styles (model-tag, plain title, "Get Plus"). Fixed…

gooseworks-ai/goose-skills · 90 tokens

create-workflow-diagram

Create FigJam/Miro-style workflow diagrams as high-quality PNG images from plain-text workflow descriptions. Renders beautiful HTML diagrams with connected nodes, arrows, and labels, then screenshots them for sharing.

gooseworks-ai/goose-skills · 45 tokens

web-artifacts-builder

Suite of tools for creating elaborate, multi-component Prismer HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

Prismer-AI/PrismerCloud · 63 tokens

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

calesthio/OpenMontage · 58 tokens

logo-generator

Deprecated compatibility entry for Logo construction. This component is now maintained in Bricks; install and use component-builder to build a new Logo.

kostja94/marketing-skills · 30 tokens