Agent SkillsfeigeCode/navop › new-component

new-component

GitHub

指导创建GPUI组件,需遵循现有代码模式与Shadcn UI风格。根据复杂度选择无状态或有状态实现,保持API一致性,并生成文档及Story用例。

.codex/skills/new-component/SKILL.md feigeCode/navop

Trigger Scenarios

构建新组件 编写UI元素 创建组件实现

Install

npx skills add feigeCode/navop --skill new-component -g -y
More Options

Non-standard path

npx skills add https://github.com/feigeCode/navop/tree/dev/.codex/skills/new-component -g -y

Use without installing

npx skills use feigeCode/navop@new-component

指定 Agent (Claude Code)

npx skills add feigeCode/navop --skill new-component -a claude-code -g -y

安装 repo 全部 skill

npx skills add feigeCode/navop --all -g -y

预览 repo 内 skill

npx skills add feigeCode/navop --list

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:

  1. Follow existing patterns: Base implementation on components in crates/ui/src (examples: Button, Select)
  2. Style consistency: Follow existing component styles and Shadcn UI patterns
  3. Component type decision:
    • Use stateless elements for simple components (like Button)
    • Use stateful elements for complex components with data (like Select and SelectState)
  4. API consistency: Maintain the same API style as other elements
  5. Documentation: Create component documentation
  6. 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

Same Skill Collection

.codex/skills/gpui-action/SKILL.md
.codex/skills/gpui-async/SKILL.md
.codex/skills/gpui-context/SKILL.md
.codex/skills/gpui-element/SKILL.md
.codex/skills/gpui-entity/SKILL.md
.codex/skills/gpui-event/SKILL.md
.codex/skills/gpui-focus-handle/SKILL.md
.codex/skills/gpui-global/SKILL.md
.codex/skills/gpui-layout-and-style/SKILL.md
.codex/skills/gpui-style-guide/SKILL.md
.codex/skills/gpui-test/SKILL.md
.codex/skills/navop-release-notes/SKILL.md

Metadata

Files
0
Version
ba0720c
Hash
43e34f5f
Indexed
2026-07-19 08:48

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-20 15:27
浙ICP备14020137号-1 $Carte des visiteurs$