首页/ AI 技能 / @skilllib/skill-2014279418783412225
Skill站外收录 @skilllib/skill-2014279418783412225

ui-development

基于 Redpanda UI 组件库与 Tailwind CSS 构建符合无障碍标准的用户界面,优先复用注册组件并遵循设计系统规范,通过专用工具获取文档与组件定义,在本地开发中保持样式一致性与技术栈统一性。

0.0 (0) 142 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

# UI Development Build user interfaces with the Redpanda UI Registry. ## Activation Conditions - Building/creating UI components or pages - Keywords: "design system", "ui", "frontend", "registry", "component" - Modifying existing registry components ## Quick Reference | Action | Rule | |--------|------| | Use components | `use-ui-registry.md` | | Add spacing | `style-no-margin-on-registry.md` | | Customize look | `style-use-variants.md` | | Use icons | `icon-system.md` | ## Workflow ### 1. Fetch Documentation ``` FIRST: Use MCP tool mcp__redpanda-ui__search-docs or mcp__redpanda-ui__get_component ``` ### 2. Check Existing Components ```bash ls src/components/redpanda-ui/ ``` ## Critical Rules ### ALWAYS - Use Registry components from `src/components/redpanda-ui/` - Call `mcp__redpanda-ui__get_component` as first action before writing UI code - Install components via CLI ### NEVER - Use `@redpanda-data/ui` (deprecated) - see [no-legacy](../code-standards/rules/no-legacy.md) - Copy/paste registry source (install via CLI) - Install external UI libraries without user request - Use inline `style` prop on registry components - Add margin `className` directly to registry components ### WHEN MODIFYING REGISTRY COMPONENTS If editing files in `src/components/redpanda-ui/`: 1. Document the change in a comment with `// UPSTREAM: <reason>` 2. Keep changes minimal and backwards-compatible 3. Track for eventual contribution to upstream registry ## Rules See `rules/` directory for detailed guidance.

评论 0

还没有评论,来抢沙发。