All skills
lassejlv avatar

/build-gpui-apps

@52f4cfd
by Lasselassejlv/skills50 stars
1

Build, scaffold, refactor, debug, review, and validate native Rust desktop applications with GPUI. Recommend GPUI Kit and ask before adopting it; use gpui_kit imports after agreement, or preserve the chosen upstream GPUI stack. Includes the merged GPUI Kit component and design skills, full application/Base/Component/Shell documentation, coding and design guides, state, actions, async, input, accessibility, motion, themes, native integration, packaging, auto updates, testing, and production delivery. Use paper-to-gpui when the primary task is faithfully translating a selected Paper.design frame into an existing view.

Use this Skill: https://skilld.dev/gh/lassejlv/skills/build-gpui-apps

This session only. Nothing lands on disk.

assetsreference-appREADME.md

≈749 tokens on demand. Your agent reads this file only when SKILL.md points to it.

GPUI reference app

This is the retained direct upstream GPUI fixture, not a GPUI Kit starter. For the recommended Kit path, follow the framework choice policy and Getting Started. Its pinned dependencies and compile results do not validate Kit examples.

This is the compile-checked companion to the build-gpui-apps skill. It pins Zed/GPUI commit 7733b9922665f103abda7c6a3fde6b9dfdc8eba9 and Rust 1.97 so the higher-level examples have one executable API baseline.

It demonstrates:

  • gpui_platform::application() startup;
  • root Entity and Context state ownership;
  • typed actions, scoped key bindings, and application menus;
  • an owned self-subscription and semantic entity event;
  • cancellable async work with a stale-generation guard;
  • stable IDs, roles, labels, tab stops, and focus-visible controls;
  • a virtualized uniform_list;
  • a semantic opaque material and explicit accessibility fallbacks;
  • reduced-motion-aware spring orchestration;
  • multiple windows and last-window close policy;
  • pure Rust and #[gpui::test] tests.

It deliberately does not claim to be:

  • a component framework;
  • a production text editor or full IME implementation;
  • native Liquid Glass or backdrop blur;
  • proof of Windows/Linux runtime behavior from a macOS build;
  • a visually accepted product screen.

Read ../../references/input-windows.md before implementing custom editable text, clipboard, drag/drop, dynamic menus, close prompts, or restoration.

Validate

From the skill directory:

scripts/validate_reference_app.sh

The script runs formatting, exact-lockfile compilation, all tests, and Clippy with warnings denied. macOS requires Xcode's Metal toolchain. Linux needs the native libraries required by the selected Wayland/X11 GPUI features.

To open the sample window in a desktop session:

cargo +1.97.1 run --manifest-path assets/reference-app/Cargo.toml --locked

Launching remains a separate verification step; CI compilation and tests do not prove window appearance, focus, accessibility output, or input behavior.

Known pinned dependency notice

Rust 1.97.1 reports a future-incompatibility lint in indirect macOS dependency block 0.1.6 (static of uninhabited type). The fixture itself remains clean under Clippy with warnings denied. Keep the notice visible and re-evaluate it when refreshing GPUI; do not hide it or add an unreviewed dependency patch just to silence the report.

Refresh the pin

Do not casually float this dependency. When refreshing it:

  1. Record the new Zed commit and matching toolchain.
  2. Update every gpui and gpui_platform revision together.
  3. Regenerate and review Cargo.lock.
  4. Recheck source-backed API claims in the skill references.
  5. Run the validation script and launch on each supported platform available.
  6. Update references/sources.md with the new research snapshot.

Source: SKILL.md on GitHub

No alertstoday3 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    The skill is a comprehensive development toolkit for building native Rust desktop applications with the GPUI framework. It provides a reference application, extensive documentation, and maintenance scripts. No malicious patterns were identified. The skill has a low-risk profile typical of developer tools that process and execute external codebases.

  • Sockettoday

    No alerts

  • Snyktoday

    Risk: LOW · No issues

Signed by skilld at 52f4cfd. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 days ago

README badge

README badge for lassejlv/skills/build-gpui-apps