gpui

GitHub

提供GPUI框架的全方位开发指导,涵盖组件构建、状态管理、异步任务及测试等核心概念。用于解决GPUI应用开发中的API使用、布局样式、事件处理及最佳实践问题。

.codex/skills/gpui/SKILL.md feigeCode/navop

Trigger Scenarios

需要构建GPUI自定义元素或界面 处理GPUI上下文、实体状态或全局状态 实现GPUI异步后台任务或事件订阅 编写GPUI应用的单元测试

Install

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

Non-standard path

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

Use without installing

npx skills use feigeCode/navop@gpui

指定 Agent (Claude Code)

npx skills add feigeCode/navop --skill gpui -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": "gpui",
    "description": "GPUI framework knowledge covering actions\/keybindings, async\/background tasks, context management (App\/Window\/Context<T>\/AsyncApp), custom elements (low-level Element trait), entity state management, event system, focus handling, global state, layout\/styling (flexbox\/CSS-like), and testing. Use when working with any GPUI framework concept, building GPUI applications, or needing guidance on GPUI-specific APIs and patterns."
}

Navigation

Load the relevant reference file based on the task:

Topic File When to load
Actions & keybindings action.md actions!, bind_keys, on_action, key_context
Async & background tasks async.md cx.spawn, background_spawn, Task, async I/O
Context management context.md App, Window, Context<T>, AsyncApp
Custom elements (low-level) element.md Element trait, request_layout, prepaint, paint
Entity state entity.md Entity<T>, WeakEntity, state management
Events & subscriptions event.md cx.emit, cx.subscribe, cx.observe
Focus & keyboard nav focus-handle.md FocusHandle, track_focus, Tab navigation
Global state global.md Global trait, cx.set_global, app-wide config
Layout & styling layout-style.md div(), h_flex(), v_flex(), flexbox, overflow, positioning
ElementId element-id.md ElementId, .id(), uniqueness rules, stateful elements
Testing test.md #[gpui::test], TestAppContext, VisualTestContext

Extended References

For deep-dive topics, additional reference files are available:

Element trait:

Entity management:

Testing:

Version History

  • 32b868d Current 2026-09-02 22:39

Same Skill Collection

.codex/skills/connection-import-wasm/SKILL.md
.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-performance/SKILL.md
.codex/skills/gpui-style-guide/SKILL.md
.codex/skills/gpui-test/SKILL.md
.codex/skills/ipc-driver-development/SKILL.md
.codex/skills/navop-release-notes/SKILL.md
.codex/skills/navop/SKILL.md
.codex/skills/new-component/SKILL.md
.codex/skills/skills/navop-release-notes/SKILL.md
.codex/skills/skills/new-component/SKILL.md
.codex/skills/skills/skills/navop-release-notes/SKILL.md
.codex/skills/skills/skills/new-component/SKILL.md
.codex/skills/ssh-connection-import/SKILL.md
.codex/skills/gpui-component/SKILL.md

Metadata

Files
0
Version
32b868d
Hash
fadc5bfc
Indexed
2026-09-02 22:39

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-04 02:13
浙ICP备14020137号-1 $Carte des visiteurs$