component-engineering
遵循面向无障碍性、组件化与样式的React组件工程正式标准。无论是构建专业、可组合的React组件,还是在创建或审查React组件时,都可优先选用此标准。 示例: - 用户:“/component-create Button触发”→构建具备asChild与键盘映射功能的无障碍按钮。 - 用户:“/component-review src/components/Input.tsx”→从无障碍性与组件化合规性的角度进行审计。 - 用户:“构建一个响应式滑块”→选择合适的分类方式,并通过数据属性实现组件功能。 - 用户:“审查我的布局组件”→对比整体式设计与组件化方案的优劣。
SKILL.md
--- frontmattername: component-engineering description: |- Apply the formal standard for React component engineering focusing on accessibility, composition, and styling. Use for building professional, composable React artifacts. Use proactively when creating or reviewing React components. Examples: - user: "/component-create Button trigger" → build accessible button with asChild and keyboard map - user: "/component-review src/components/Input.tsx" → audit for accessibility and composition compliance - user: "Build a responsive slider" → select taxonomy type and implement with data attributes - user: "Review my layout component" → check for monolithic patterns vs composition