Gpui banner
AprilNEA AprilNEA

Gpui

Testing community

Description

# GPUI UI framework best practices for building desktop applications. Use when writing GPUI code, creating UI components, handling state/events, async tasks, animations, lists, forms, testing, or working with Zed-style Rust GUI code. ## 布局常见错误 ### 1. `w_full() + margin` 导致溢出 **错误写法**: ```rust // ❌ 子元素 w_full() + mx_2() = 100% + margin = 溢出 div().w_full().child( ListItem::new("item") .w_full() .mx_2() // 这会导致溢出! ) ``` **正确写法**: ```rust // ✅ 父容器用 padding 代替子元素 margin div()

Installation

Installs to ~/.claude/skills/aprilnea-chatgpui-gpui/SKILL.md

Terminal
mkdir -p ~/.claude/skills/aprilnea-chatgpui-gpui && curl -fsSL https://raw.githubusercontent.com/AprilNEA/ChatGPUI/HEAD/.claude/skills/gpui.md -o ~/.claude/skills/aprilnea-chatgpui-gpui/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository