AgentSkillsCN

refine-ui

快速启动React/HTML UI组件的优化。当用户想要创建或优化UI组件、设计系统,或交互式界面时使用此功能。

SKILL.md
--- frontmatter
name: refine-ui
description: >
  Quick-start React/HTML UI component refinement. Use when the user wants to
  create or refine UI components, design systems, or interactive interfaces.

Refine UI

Invoke the PMPO artifact refinement loop for UI component artifacts.

Setup

  1. Set artifact_type: ui
  2. Load domain adapter from references/domain/ui.md
  3. Load template from assets/templates/react-components-shadcn-ui-template.tsx
  4. Start the PMPO loop via prompts/meta-controller.md

User Input

The user will provide: $ARGUMENTS

Parse the arguments for:

  • Component type (button, form, card, layout, etc.)
  • Framework preference (React, HTML, Vue, etc.)
  • Design system (shadcn/ui, Material, custom)
  • Accessibility requirements
  • Responsive breakpoints

Default Constraints

  • Use semantic HTML elements
  • Follow WCAG 2.1 AA accessibility guidelines
  • Include responsive styles for mobile, tablet, and desktop
  • Generate TypeScript types if React components
  • Validate component renders without errors