component-guide

component-guide is a skill for Claude Code, Codex from CallMeMing/claude-skills-ming. It costs 93 tokens per session (4,153 once invoked), scanned A, original, MIT.

A component-management assistant that decides whether to reuse an existing interface component, extend it, or create a new one.

In plain words
What is it for?
Use it when building React components to search for reusable code, explain the reuse-or-create decision, and generate components that follow the project's conventions.
Why use it?
It helps prevent duplicate components and keeps new interface code aligned with the project's design rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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/callmeming/claude-skills-ming/component-guide
Any agent
npx skills add CallMeMing/claude-skills-ming --skill component-guide
Clone the repo
git clone --depth 1 https://github.com/CallMeMing/claude-skills-ming

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 component-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/callmeming/claude-skills-ming/component-guide.svg)](https://agentmods.dev/skills/callmeming/claude-skills-ming/component-guide)
Your own site
<a href="https://agentmods.dev/skills/callmeming/claude-skills-ming/component-guide"><img src="https://agentmods.dev/badge/skills/callmeming/claude-skills-ming/component-guide.svg" alt="Measured on agentmods" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,153 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.1 $0.00093 $0.04153
Opus 5 $0.00046 $0.02076
Sonnet 5 $0.00019 $0.00831
Haiku 4.5 $0.00009 $0.00415

Measured 5d ago against content hash 71018c280f2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

component-guide 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 5d 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.

component-guide/SKILL.md · 358 lines

How it starts

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

🌐 Language Policy (i18n)

Language Detection: Detect the language of the user's input.

Response Consistency: Always respond in the same language as the user's input (e.g., if the user asks in English, output the report and suggestions in English; if in Chinese, use Chinese).

Core Logic: The internal rules and design specs (like spacing, colors) remain the same regardless of the language.

For English Users: When recommending component reuse vs. creation, explain clearly why one approach is preferred:

  • Reuse existing: Explain how the existing component already meets their needs, or how it can be extended with minimal changes
  • Create new: Explain what unique functionality requires a new component, and how it will integrate with existing ones

组件使用手册技能

技能概述

智能组件管理助手,根据用户指令自动判断是否创建新组件、复用现有组件,或在需要时询问用户创建决策。

核心功能

  1. 组件智能识别 - 分析用户需求,识别所需组件类型
  2. 现有组件检查 - 检查代码库中是否有可复用的组件
  3. 创建决策逻辑 - 根据用户指令决定是否创建新组件
  4. 组件规范生成 - 按照设计系统规范创建组件

设计系统上下文

基于以下设计系统规范:

技术栈

  • React + TypeScript + Tailwind CSS v4 + Radix UI
  • Tailwind v4 无配置特性:本项目采用 Tailwind v4,所有自定义 Token 均通过 CSS 变量在 globals.css 中定义。生成组件时,直接使用 bg-primarytext-te-mdz-toast 等变量别名,严禁生成任何需配置在 tailwind.config.js 中的类名
  • 设计系统:基于 CSS 变量的自定义设计令牌系统
  • 组件库:使用 Radix UI 作为基础组件,配合自定义样式

品牌个性

  • 专业、可信赖、现代、创新、简洁、高效、友好、易用

视觉规范

  • 色彩系统:遵循主色调(亮色模式蓝色/暗色模式紫罗兰色)和辅助色(灰色)
  • 字体:PingFang SC字体,支持中英文显示
  • 布局:响应式设计,移动端优先
  • 主题:支持亮色/暗色模式

决策流程

1. 需求分析阶段

用户指令 → 提取关键词 → 识别组件类型 → 检查现有组件

2. 组件匹配逻辑

  • 完全匹配: 组件名称/功能与需求完全一致 → 直接复用
  • 部分匹配: 功能相似但需要调整 → 询问是否修改现有组件
  • 无匹配: 全新功能需求 → 进入创建决策流程

3. 创建决策规则

IF 用户明确说"创建新组件" THEN
  创建新组件
ELSE IF 用户说"使用组件"或"添加组件" THEN
  检查现有组件 → 存在则复用,不存在则创建
ELSE IF 用户描述功能但未指定组件 THEN
  检查现有组件 → 存在则复用,不存在则询问用户
ELSE
  默认复用现有组件或询问用户

4. 询问模板

当需要用户决策时,使用以下模板:

检测到您需要 [组件功能描述] 功能。

现有组件检查:
- ✅ [现有组件1] - 功能相似度: 80%
- ❌ [现有组件2] - 功能不匹配

选项:
1. 复用现有组件 [组件名称] 并进行调整
2. 创建新的专用组件 [建议组件名称]
3. 使用组合组件方案 [组件A + 组件B]

您希望选择哪种方案?

Read the full file on GitHub · 358 lines

Files

What ships with it

1 file 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. 5d ago First seen · 358 lines · 93 tokens per session scan A 71018c280f2c

Subscribe to this mod's changes

component-guide is a skill published in the GitHub repository CallMeMing/claude-skills-ming (1 stars, last pushed 4mo ago), licensed MIT. It adds 93 tokens to every session and 4,153 once invoked, about $0.0005 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

globalize-now-cli-use

Manage Globalize translation resources using the CLI. Use this skill when the user asks to create a translation project, add or remove languages, connect a GitHub or GitLab repository, manage glossaries or style guides, invite team members, manage API keys, or perform any Globalize platform operation. Also use when…

globalize-now/globalize-skills · 110 tokens

globalize-now-project-setup

Create a Globalize translation project, connect a GitHub or GitLab repository, and set catalog file patterns. Use this skill when the user asks to create a Globalize project, connect their repo to Globalize, or wire their translation catalogs to the Globalize platform. Assumes the Globalize CLI is already installed…

globalize-now/globalize-skills · 107 tokens

css-i18n

Audit and convert CSS to use logical properties for RTL/bidirectional layout support. Use when the user asks to "make CSS RTL-safe", "use logical properties", "replace left/right with start/end", "audit CSS for i18n", "CSS internationalization", "fix CSS for RTL", "convert to logical properties", or when setting up…

globalize-now/globalize-skills · 123 tokens

globalize-now-account-setup

Install the Globalize CLI, authenticate, and verify your organization. Use this skill when the user asks to set up Globalize, install the Globalize CLI, sign in or authenticate with Globalize, or connect their Globalize account. Also use when the user mentions @globalize-now/cli-client or globalise-now-cli and needs…

globalize-now/globalize-skills · 127 tokens

thai-government-form

Use this skill for any task involving Thai government letters, official correspondence, formal petitions, authorization letters, leave requests, or ราชการ forms. Trigger whenever the user asks to: write หนังสือราชการ, draft a คำร้อง, write an authorization (หนังสือมอบอำนาจ), submit a leave form (ใบลา), petition a…

Boom-Vitt/claude-thai-skills · 155 tokens

thai-resume

Use this skill for any task involving Thai-language or bilingual (TH/EN) resumes and CVs. Trigger whenever the user asks to: write a Thai resume, draft a CV in Thai, build a bilingual Thai-English resume, format an application for a Thai employer, choose between พ.ศ. and ค.ศ. dates in a CV, or tailor a resume for…

Boom-Vitt/claude-thai-skills · 146 tokens