Web component design

From sunflowermm/XRK-AGT · View interactive version

Web component design is an AI agent skill from the GitHub repository sunflowermm/XRK-AGT. 当需要构建 Web 组件体系(React/Vue/Svelte 组件模式与 API 设计)时使用。

How to use this skill

Skill file

权威入口

适用场景

非适用场景

执行步骤

  1. 确定组件职责边界与组合关系。
  2. 设计 props/slots/events 等对外接口。
  3. 统一样式策略与主题扩展方式。
  4. 补齐可访问性属性与键盘交互。
  5. 输出使用示例与反例,约束误用场景。

常见陷阱

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.