03-组件规范

03-组件规范 is a skill for Claude Code, Codex from xcodethink/open-claude-code-skills. It costs 208 tokens per session (597 once invoked), scanned A, original, MIT.

A set of rules and reference materials for building reusable user-interface components such as buttons, forms, charts, dialogs, tabs, and status labels. It covers web, mobile, mini-program, and external-facing interfaces, with a separate standard for admin panels.

In plain words
What is it for?
Use it when creating shared interface components, standardizing components across projects, or packaging external data sources as MCP servers.
Why use it?
It helps similar components behave and look consistently across projects and platforms, while directing admin-panel work to its dedicated guidelines.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/xcodethink/open-claude-code-skills/03
Any agent
npx skills add xcodethink/open-claude-code-skills --skill 03
Clone the repo
git clone --depth 1 https://github.com/xcodethink/open-claude-code-skills

Made for: Claude Code, Codex.

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 03-组件规范

README.md
[![agentmods](https://agentmods.dev/badge/skills/xcodethink/open-claude-code-skills/03.svg)](https://agentmods.dev/skills/xcodethink/open-claude-code-skills/03)
Your own site
<a href="https://agentmods.dev/skills/xcodethink/open-claude-code-skills/03"><img src="https://agentmods.dev/badge/skills/xcodethink/open-claude-code-skills/03.svg" alt="Measured on agentmods" height="20"></a>
Per session 208 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 597 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00208 $0.00597
Opus 5 $0.00104 $0.00298
Sonnet 5 $0.00042 $0.00119
Haiku 4.5 $0.00021 $0.00060

Measured 4d ago against content hash c9d0c6d2bf97, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

03-组件规范 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 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (web/admin-template/lib/adminApi.ts, web/admin-template/lib/adminLabels.ts, web/admin-template/lib/lazyWithRetry.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/03-组件规范/SKILL.md · 46 lines

What it actually says

组件规范

创建组件时,读取对应平台目录下的文档:

🔴 管理后台开发 → 转到 11-管理后台标准

管理后台已独立为专属技能文件夹 ~/.claude/skills/11-管理后台标准/

开发管理后台时,直接读取 11-管理后台标准/SKILL.md,那里包含:

  • 完整模板代码(可直接复制的骨架、UI 组件、通用 Tab)
  • 所有规范文档(架构/后端/数据库/API层/国际化)
  • UI 组件规范(数据表格/统计卡片/图表/弹窗/状态标签/表单/侧边栏)
  • 新项目 CLAUDE.md 模板(跨机器可移植)
  • 验收清单

Web 端组件 (web/)

管理后台相关文档仍保留在 web/ 目录作为备份,但开发时应优先使用 11-管理后台标准/

非管理后台组件

  • Safari兼容规范.md — Flex 布局踩坑、CJK 文本、viewport 高度

移动端 (移动端/)

  • 待沉淀

小程序 (小程序/)

  • 待沉淀

MCP 数据源组件

  • MCP数据源封装规范.md — 将外部 API 封装为 MCP Server 的标准模式(目录结构、Tool 定义、限流/缓存/重试、Elicitation、跨项目复用策略)

如果某个组件还没有规范文档,开发完成后建议沉淀: "把这个组件的实现沉淀到组件规范里"

Files

What ships with it

44 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 46 lines · 208 tokens per session scan A c9d0c6d2bf97

Subscribe to this mod's changes

03-组件规范 is a skill published in the GitHub repository xcodethink/open-claude-code-skills (2 stars, last pushed 29d ago), licensed MIT. It adds 208 tokens to every session and 597 once invoked, about $0.0010 per session on Opus 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-31.

Related

Other skills, from other repositories

frontend-design

Designs, builds, or refactors user-facing web or application interfaces with deliberate visual direction, typography, color and spacing tokens, content hierarchy, responsive behavior, accessible interaction states, and real rendered-surface verification. Use for pages, components, dashboards, landing pages, design…

thiientv/godmode · 83 tokens

design

Use for UI, UX, visual hierarchy, frontend-design judgment, references, redesigns, and design critique when the user's Emulo taste should guide the task. Do not use for unrelated execution or marketing/social writing alone.

ohad6k/emulo · 46 tokens

design-system

Dotbot CRT/retro-futuristic design system: tokens, components, patterns, and anti-patterns for the control panel UI.

andresharpe/dotbot · 30 tokens

using-design-system

Ensures consistent use of X-components design system instead of Material3 when working on feature UI code. Automatically activates for Composable functions in feature modules or when user mentions UI/screens/components.

ThisIsSadeghi/KMPilot · 37 tokens

factory-design

Design-system discipline distilled across builds. Semantic token vocabulary (name intent, not palette position), CSS variables bridged into Tailwind, dark/light as a variable swap, single- vs two-layer token systems, component primitives as token consumers, when to promote a repeated utility cluster into a primitive…

nonlinear-xyz/factory-kit · 100 tokens

design-conventions

Scan the current TS/React project's existing UI layer and write .claude/design-conventions.md — a project-specific visual design convention file that rules/typescript.md loads before UI work. Use when starting UI work in an existing project, when design conventions have drifted, or when --refresh is passed to merge in…

addit-digital/addit-harness · 70 tokens