Agent Skills
› feigeCode/navop
› new-component
new-component
GitHub用于创建 GPUI 组件的指南,指导遵循现有模式、保持样式与 API 一致性,并根据复杂度选择无状态或有状态实现,同时包含文档和 Story 编写要求。
Trigger Scenarios
构建新的 UI 组件
编写前端界面元素
创建组件实现代码
Install
npx skills add feigeCode/navop --skill new-component -g -y
SKILL.md
Frontmatter
{
"name": "new-component",
"description": "Create new GPUI components. Use when building components, writing UI elements, or creating new component implementations."
}
Instructions
When creating new GPUI components:
- Follow existing patterns: Base implementation on components in
crates/ui/src(examples:Button,Select) - Style consistency: Follow existing component styles and Shadcn UI patterns
- Component type decision:
- Use stateless elements for simple components (like
Button) - Use stateful elements for complex components with data (like
SelectandSelectState)
- Use stateless elements for simple components (like
- API consistency: Maintain the same API style as other elements
- Documentation: Create component documentation
- Stories: Write component stories in the story folder
Component Types
- Stateless: Pure presentation components without internal state
- Stateful: Components that manage their own state and data
Version History
- e768f09 Current 2026-07-19 08:48


