mcpField
G
gpui

gpui

github.com/longbridgeDevelopment18.7k336 installsUpdated today
Repository

About gpui

gpui is a reference skill for GPUI developers, organized to point to documentation relevant to each task. Its topics include UI elements, entity state, events, async work, and testing.

Key features

  1. 01Task-based reference navigation
  2. 02Action and keybinding guidance
  3. 03Element and entity management references
  4. 04Testing references and examples

Use cases

  1. 01Looking up a GPUI-specific API
  2. 02Implementing keyboard actions or async tasks
  3. 03Testing entity state management

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/longbridge/gpui-kit --skill gpui

After installing, type/gpuiin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
action.md
async.md
context.md
element-advanced.md
element-api.md
element-best-practices.md
element-examples.md
element-id.md
element-patterns.md
element.md
entity-advanced.md
entity-api.md
entity-best-practices.md
entity-patterns.md
entity.md
event.md
focus-handle.md
global.md
layout-style.md
test-examples.md
test-reference.md
test.md

Details

From the project README

Navigation

Load the relevant reference file based on the task:

TopicFileWhen to load
Actions & keybindingsaction.mdactions!, bind_keys, on_action, key_context
Async & background tasksasync.mdcx.spawn, background_spawn, Task, async I/O
Context managementcontext.mdApp, Window, Context<T>, AsyncApp
Custom elements (low-level)element.mdElement trait, request_layout, prepaint, paint
Entity stateentity.mdEntity<T>, WeakEntity, state management
Events & subscriptionsevent.mdcx.emit, cx.subscribe, cx.observe
Focus & keyboard navfocus-handle.mdFocusHandle, track_focus, Tab navigation
Global stateglobal.mdGlobal trait, cx.set_global, app-wide config
Layout & stylinglayout-style.mddiv(), h_flex(), v_flex(), flexbox, overflow, positioning
ElementIdelement-id.mdElementId, .id(), uniqueness rules, stateful elements
Testingtest.md#[gpui::test], TestAppContext, VisualTestContext

Extended References

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

Element trait:

Entity management:

Testing:

Comments

Markdown supported