ui-generator

majiayu000 的头像作者 majiayu000

根据自然语言描述生成 UI 组件。当用户请求页面、组件或 UI 元素时使用。触发器:“创建页面”、“添加组件”、“显示表单”、“制作按钮”、“страница”、“компонент”、“форма”。

📖 中文导读:根据自然语言描述生成 UI 组件。当用户请求页面、组件或 UI 元素时使用。触发器:“创建页面”、“添加组件”、“显示表单”、“制作按钮”、“страница”、“компонент”、“форма”。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: ui-generator description: | Generate UI components from natural language descriptions. Use when: user asks for a page, component, or UI element. Triggers: "create page", "add component", "show form", "make button", "страница", "компонент", "форма".

UI Generator

Create beautiful UI from descriptions. Integrates with theme-factory.

Process

  1. Understand request

    • "Login page" → form with email/password
    • "Dashboard" → stats cards, charts, tables
    • "Settings" → form sections, toggles
  2. Apply theme

    • Load current theme from theme-factory
    • Use theme colors and fonts
    • Follow frontend-design principles
  3. Generate code

    • React/Next.js components
    • Tailwind CSS styling
    • Responsive by default
  4. Preview

    • Hot reload in browser
    • User sees result immediately

Component Patterns

Request Components
"login page" Form, inputs, button, link
"dashboard" Stats cards, chart, table
"settings" Sections, toggles, form
"landing page" Hero, features, CTA, footer
"pricing" Tier cards, comparison table
"profile" Avatar, info, edit form

Design Rules

From frontend-design skill:

  • No Inter, Roboto, Arial
  • No purple gradients on white
  • Distinctive, memorable aesthetics
  • Motion and micro-interactions

Usage

User says: "Add a pricing page with 3 tiers"

  1. Generate PricingPage component
  2. Create PricingTier subcomponent
  3. Apply current theme
  4. Add to routes
  5. Show preview: "Here's your pricing page"