03-组件规范

03-组件规范 is a skill for 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 Codex

Written for Codex: agents/openai.yaml present. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it when creating shared interface components, standardizing components across projects, or packaging external data sources as MCP servers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xcodethink/open-claude-code-skills/03
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 xcodethink/open-claude-code-skills --skill 03
Clone the repo
git clone --depth 1 https://github.com/xcodethink/open-claude-code-skills

Made for: 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/github.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/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 03-组件规范

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.00208 $0.00597
Opus 5.5 $0.00083 $0.00239
Sonnet 5.5 $0.00042 $0.00119
Haiku 4.5 $0.00021 $0.00060

Measured 1mo ago against content hash c9d0c6d2bf97, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 2mo ago), licensed MIT. It adds 208 tokens to every session and 597 once invoked, about $0.0008 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-31.

Related

Other skills, from other repositories

frontend-design

Generates distinctive, production-grade frontend interfaces and artifacts (React, Vue, HTML/CSS). Prioritizes bold aesthetics, unique typography, and motion to avoid generic designs. Use when building websites, landing pages, dashboards, posters, or when the user requests to style, beautify, or create visually…

irahardianto/awesome-agv · 67 tokens

ui-web

Web UI - glassmorphism, Tailwind, dark mode, accessibility.

alinaqi/maggy · 17 tokens

frontend-ui-ux-system

A company-level guide for designing web interfaces and user experiences. It covers visual styles, design tokens (named values for colors, spacing, and typography), layout, interaction, accessibility, motion, and review checks.

hashgraph-online/awesome-codex-plugins · 60 tokens

accessibility

Use when making a web UI conform to WCAG 2.2 Level AA — axe-core or Lighthouse a11y violations, keyboard operability, focus management, ARIA roles/names/live regions, contrast, tap-target size. NOT palette or visual intent (that is design), NOT test-runner setup (that is testing-web), NOT LCP/page-speed (that is…

ericrisco/rsc-harness · 86 tokens

gsap

Expert guidelines for building high-performance animations with GSAP (GreenSock Animation Platform).

Mindrally/skills · 19 tokens

ring:validating-ux-completeness

Validating that UX specifications are complete before technical design: a read-only checklist over wireframes, states, responsive behavior, accessibility, and component-library alignment, emitting a DESIGN VALIDATED / NEEDS REVISION verdict to design-validation.md. Standalone utility — run after a product-designer…

LerianStudio/ring · 113 tokens