Agent skill

Create Component

by AntonHu in AntonHu/ai-coding-project

指导在前端项目中按团队规范创建和拆分 React 组件,包括目录结构、文件命名、样式与主题变量使用。当前端需要新增或重构组件时使用本技能。

No licenceAuto-check passed

Install Create Component

skills CLI
$ npx skills add AntonHu/ai-coding-project --skill create-component -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AntonHu/ai-coding-project create-component --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AntonHu/ai-coding-project.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/create-component .claude/skills/create-component && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-component
GitHub stars
109
Token cost
~692 tokens
SKILL.md length
97 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
None found

At a glance

指导在前端项目中按团队规范创建和拆分 React 组件,包括目录结构、文件命名、样式与主题变量使用。当前端需要新增或重构组件时使用本技能。

  • SKILL.md covers 使用场景, 组件放在哪里?, 标准目录结构 and 步骤 1:创建组件骨架, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Create Component is an agent skill from AntonHu/ai-coding-project. 指导在前端项目中按团队规范创建和拆分 React 组件,包括目录结构、文件命名、样式与主题变量使用。当前端需要新增或重构组件时使用本技能。

Its SKILL.md is about 690 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with React and Ant Design. The repository describes itself as: AI Coding 落地架构的参考项目,支持所有主流支持 Skills 的 Agent/AI Coding IDE。

Example prompts

  • “/create-component”

What it can do on your machine

Read from SKILL.md and the folder at commit a928b23. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and scss).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Create Component loads about 692 tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 97 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~692

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 97 words (~692 tokens).

name
create-component

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/create-component of AntonHu/ai-coding-project.

Open the folder on GitHubat commit a928b23

Compare with similar skills

Create Component next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create Component compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Component this skillAntonHu/ai-coding-project109—~692Automated safety check: PassNone
LobeHub Interactive Prototypelobehub/lobehub83k—~1.6kAutomated safety check: PassCustom licence
Building With Lobe UIlobehub/lobe-ui2.2k—~2kAutomated safety check: PassMIT
Feature SyncNG-ZORRO/ng-zorro-antd9.2k—~840Automated safety check: PassMIT
South Admin CRUD Generatorsouthliu/south-admin-react580—~1.7kAutomated safety check: PassMIT
Local Testinglobehub/lobe-ui2.2k—~2.1kAutomated safety check: PassMIT

Similar skills

  • Builds single-file interactive HTML prototypes rendered with the real LobeHub UI components and written as production-style React, so they can later be split into files.

    83k GitHub stars~1.6k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Building With Lobe UI

    lobehub/lobe-ui

    Build UI with the LobeHub design ecosystem — @lobehub/ui (plus its base-ui, chat, mobile, awesome, brand, mdx, i18n namespaces), @lobehub/icons, @lobehub/charts, @lobehub/fluent-emoji and…

    2.2k GitHub stars~2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Feature Sync

    NG-ZORRO/ng-zorro-antd

    Sync an Ant Design React component or feature into NG-ZORRO.

    9.2k GitHub stars~840 tokensUpdated 7 days ago
    Frontend & DesignAuto-check passed
  • South Admin CRUD Generator

    southliu/south-admin-react

    Generates a full CRUD page - page component, data model and API client - from the south-admin-react project's own VS Code snippet templates.

    580 GitHub stars~1.7k tokensUpdated 17 days ago
    Frontend & DesignAuto-check passed
  • Local Testing

    lobehub/lobe-ui

    Local browser verification for the lobe-ui component library and documentation site.

    2.2k GitHub stars~2.1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Admin Template Project Initializer

    southliu/south-admin-react

    Removes the south-admin-react template's demo pages, components and menu entries, after a dry-run preview and your confirmation, and cleans up the matching imports.

    580 GitHub stars~519 tokensUpdated 17 days ago
    Frontend & DesignAuto-check passed

More from AntonHu/ai-coding-project

All 8 skills in this repo
  • Create API

    AntonHu/ai-coding-project

    指导在前端项目中按团队规范创建和维护 HTTP 接口,包括类型定义、请求封装、命名约定与错误处理。当前端需要新增或调整 API 时使用本技能。

    109 GitHub stars~757 tokensUpdated 7 mo ago
    Auto-check passed
  • Create Route

    AntonHu/ai-coding-project

    指导在前端项目中按团队规范创建和维护路由,包括目录结构、Page 与 Loader 职责划分及懒加载用法。当前端需要新增或重构页面路由时使用本技能。

    109 GitHub stars~742 tokensUpdated 7 mo ago
    Auto-check passed
  • Create Store

    AntonHu/ai-coding-project

    指导在前端项目中按团队规范使用 Zustand 创建和维护全局状态 store,包括目录结构、命名与持久化策略。当前端需要新增或重构状态管理时使用本技能。

    109 GitHub stars~502 tokensUpdated 7 mo ago
    Auto-check passed
  • Theme Variables

    AntonHu/ai-coding-project

    指导在前端项目中正确使用 Ant Design 与自定义主题 CSS 变量,避免硬编码颜色并保证暗色/浅色主题切换一致性。当前端编写或修改样式时使用本技能。

    109 GitHub stars~292 tokensUpdated 7 mo ago
    Auto-check passed
  • Create Proposal

    AntonHu/ai-coding-project

    通用创建提案技能。根据需求是否有设计稿或 UI 描述、是否有接口、是页面还是功能组件等可选条件,决定设计稿分析、接口与数据层、以及实现后的 UI 还原验收等步骤。适用于各类需求提案,不限于纯 UI 页面。

    109 GitHub stars~861 tokensUpdated 7 mo ago
    Auto-check passed
  • Design Analysis

    AntonHu/ai-coding-project

    通用设计稿分析技能。只要需要「分析设计稿、梳理前端 UI 开发任务」,就使用本技能。产出 UI 分析清单,供开发与验收参照。

    109 GitHub stars~521 tokensUpdated 7 mo ago
    Auto-check passed

Works with

Questions about Create Component

What does Create Component do?

指导在前端项目中按团队规范创建和拆分 React 组件,包括目录结构、文件命名、样式与主题变量使用。当前端需要新增或重构组件时使用本技能。. Create Component is an agent skill from AntonHu/ai-coding-project.

How do I install Create Component in Claude Code?

Run `npx skills add AntonHu/ai-coding-project --skill create-component -a claude-code`. Or copy the skill folder (.agents/skills/create-component in AntonHu/ai-coding-project) into .claude/skills/create-component in your project. Claude Code loads it when a task matches its description.

How do I install Create Component in Codex?

Run `npx skills add AntonHu/ai-coding-project --skill create-component -a codex`. Or copy the skill folder (.agents/skills/create-component in AntonHu/ai-coding-project) into .agents/skills/create-component in your project. Codex loads it when a task matches its description.

Can I use Create Component in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AntonHu/ai-coding-project --skill create-component -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-component, .gemini/skills/create-component, .github/skills/create-component and .opencode/skills/create-component in your project.

What does Create Component need to run?

SKILL.md names no scripts, command-line tools or credentials: Create Component is instructions for the agent only.

Does Create Component access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Create Component safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Create Component use?

No licence was found for Create Component or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Create Component use?

About 692 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create Component?

Skills that share tags, products or a category with Create Component: LobeHub Interactive Prototype (lobehub/lobehub, 83k stars), Building With Lobe UI (lobehub/lobe-ui, 2.2k stars), Feature Sync (NG-ZORRO/ng-zorro-antd, 9.2k stars) and South Admin CRUD Generator (southliu/south-admin-react, 580 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create Component?

AntonHu (a GitHub user) maintains it in AntonHu/ai-coding-project, which has 109 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on February 10, 2026.

Source: AntonHu/ai-coding-project on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.