ui-component-generator

ui-component-generator is a skill for Claude Code, Codex from CavinHuang/claude-skills-hub. It costs 0 tokens per session (791 once invoked), scanned A, original, MIT.

A tool for generating UI component code for React, Vue, Angular, Svelte, or plain JavaScript. It can describe component structure, styling, interactions, accessibility, responsive behavior, examples, and tests.

In plain words
What is it for?
Use it to create form, navigation, layout, feedback, data-display, and interactive components, including parts of a reusable design system.
Why use it?
It reduces the time spent turning design requirements into framework code and related styles. The requested component behavior and visual rules are captured in one specification.

Skill for Claude CodeCodex

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

Good fit Use it to create form, navigation, layout, feedback, data-display, and interactive components, including parts of a reusable design system.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cavinhuang/claude-skills-hub/ui-component-generator
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 CavinHuang/claude-skills-hub --skill ui-component-generator
Clone the repo
git clone --depth 1 https://github.com/CavinHuang/claude-skills-hub

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 ui-component-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/cavinhuang/claude-skills-hub/ui-component-generator/github.svg)](https://agentmods.dev/skills/cavinhuang/claude-skills-hub/ui-component-generator)
Your own site
<a href="https://agentmods.dev/skills/cavinhuang/claude-skills-hub/ui-component-generator"><img src="https://agentmods.dev/badge/skills/cavinhuang/claude-skills-hub/ui-component-generator/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-component-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/cavinhuang/claude-skills-hub/ui-component-generator"><img src="https://agentmods.dev/badge/skills/cavinhuang/claude-skills-hub/ui-component-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 791 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.00000 $0.00791
Opus 5 $0.00000 $0.00396
Sonnet 5 $0.00000 $0.00158
Haiku 4.5 $0.00000 $0.00079

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

Security

Grade A, and why

ui-component-generator 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 11d 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.

skills/ui-component-generator/SKILL.md · 124 lines

What it actually says

UI 组件生成器

描述

专业的 UI 组件自动生成工具,可以根据设计需求快速生成 React、Vue、Angular 等现代前端框架的组件代码。

类别

设计

标签

UI组件, 前端开发, React, Vue, Angular, 设计系统

使用场景

  • 快速创建基础 UI 组件
  • 生成复杂交互组件
  • 创建设计系统组件
  • 生成响应式布局
  • 创建主题化组件

前置要求

  • Claude Desktop 版本 1.0+
  • 了解前端开发基础
  • 熟悉至少一种前端框架

使用方法

基础用法

请帮我生成一个 [框架类型] 的 [组件类型] 组件,具有以下特性:
- [特性1]
- [特性2]
- [样式要求]

高级用法

我需要创建一个专业的 [组件类型] 组件,请生成:

组件要求:
- 框架:[React/Vue/Angular]
- 类型:[函数组件/类组件]
- 样式:[CSS Modules/Styled Components/Tailwind CSS]
- 功能:[详细功能描述]

设计规范:
- 主题色:[颜色配置]
- 字体:[字体配置]
- 间距:[间距系统]
- 动画:[动画要求]

交互需求:
- [交互1]
- [交互2]
- [交互3]

可访问性:
- 需要支持键盘导航
- 包含 ARIA 标签
- 支持屏幕阅读器

响应式要求:
- 桌面端:[桌面端布局]
- 平板端:[平板端布局]
- 移动端:[移动端布局]

请提供:
1. 完整的组件代码
2. 样式文件
3. 使用示例
4. 测试代码

配置选项

支持的框架

  • React (函数组件 & 类组件)
  • Vue 3 (Composition API)
  • Angular (Components & Services)
  • Svelte
  • Vanilla JavaScript

样式解决方案

  • CSS Modules
  • Styled Components
  • Emotion
  • Tailwind CSS
  • SCSS/SASS
  • CSS-in-JS

组件类型

  • 表单组件 (Input, Select, Checkbox 等)
  • 导航组件 (Menu, Breadcrumb, Tabs 等)
  • 布局组件 (Grid, Card, Panel 等)
  • 反馈组件 (Modal, Toast, Loading 等)
  • 数据展示组件 (Table, Chart, List 等)
  • 交互组件 (Slider, Carousel, Tree 等)

输出格式

生成的组件包含:

  1. 组件主文件 (.jsx/.vue/.ts)
  2. 样式文件 (.css/.scss/.module.css)
  3. 类型定义文件 (.d.ts)
  4. 使用示例文件
  5. 测试文件
  6. Storybook 故事 (可选)

限制和注意事项

  • 生成的组件需要根据项目的设计系统进行调整
  • 复杂的业务逻辑可能需要额外的状态管理
  • 建议结合项目的组件库使用
  • 某些特殊效果可能需要额外的依赖

版本历史

  • v1.0.0: 初始版本,支持基础组件生成
  • v1.1.0: 添加更多框架支持
  • v1.2.0: 增强样式和动画支持
  • v1.3.0: 添加可访问性支持

许可证

MIT License

贡献者

Claude Skills Hub Team

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. 11d ago First seen · 124 lines · 0 tokens per session scan A dd632db7848a

Subscribe to this mod's changes

ui-component-generator is a skill published in the GitHub repository CavinHuang/claude-skills-hub (7 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 791 tokens. 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

json-render-ui

Generate guardrailed UI from natural language. Emits constrained JSON that a Preact runtime renders. Use when the request is for a dashboard with metrics, charts, or tables; an admin panel; a data visualization interface; or a form-based application.

oaustegard/claude-skills · 54 tokens

figma-to-elementor

Use when the user says 'figma to elementor', 'build this figma design in elementor', or hands over a Figma frame to rebuild in WordPress. Maps the Figma node tree to Elementor widgets and containers and writes clean Elementor JSON into a draft duplicate, so nothing live is touched.

respira-press/agent-skills-wordpress · 68 tokens

figma-to-bricks

Use when the user says 'figma to bricks', 'build this figma design in bricks', or hands over a Figma frame to rebuild on a Bricks Builder site. Maps the Figma node tree to native Bricks elements with BEM global classes, imports the frame's palette into the Bricks design system, and writes to a draft, so nothing live…

respira-press/agent-skills-wordpress · 83 tokens

figma-to-divi

Use when the user says 'figma to divi', 'build this figma design in divi', or hands over a Figma frame to rebuild in WordPress on a Divi site. Maps the Figma node tree to native Divi sections, rows, columns and modules (Divi 5 blocks or Divi 4 shortcodes, auto-detected) and writes to a draft, so nothing live is…

respira-press/agent-skills-wordpress · 93 tokens

figma-to-gutenberg

Use when the user says 'figma to gutenberg', 'figma to blocks', or hands over a Figma frame to rebuild on a WordPress site that uses the block editor. Maps the Figma node tree to core Gutenberg blocks, registers the frame's palette in Global Styles, and writes to a draft, so nothing live is touched.

respira-press/agent-skills-wordpress · 77 tokens

html-to-bricks

Use when the user says 'convert this html to bricks' or 'paste html into bricks', or has a Webflow, Framer, CodePen, or old static export to bring into a Bricks site. Converts raw HTML and CSS into native Bricks elements, mapping colors, type, and spacing to design tokens, plus ACSS classes when installed.

respira-press/agent-skills-wordpress · 77 tokens