hyuskui

Skills

Give your AI assistant deep knowledge of hyuskui components, the CLI and GPUI patterns.

Skills give AI assistants such as Claude Code, Cursor and Codex project-aware context about hyuskui. Once installed, your assistant knows how to find, install, compose and theme components in a GPUI app. For example, you can ask it to:

  • Add a settings dialog with a name input and a save button.
  • Show a sheet with filters when I click the toolbar button.
  • Make an area chart of daily visitors with a gradient.
  • Switch the app to the dark theme.

The assistant uses the hyuskui CLI and the patterns below instead of guessing at GPUI APIs or writing components from scratch.

Install

$ npx skills add https://ui.hyuskui.com/skills/hyuskui/SKILL.md

This installs the skill for the assistants you choose. They load it automatically when you work with hyuskui. See skills.sh for more about skills.

What's Included

The skill gives your assistant knowledge of:

Project Context

Checks that gpui is pinned to the tested Zed commit, which components are listed in src/ui/mod.rs, and that theme::init runs at startup, before it writes any UI code.

CLI Commands

When to run cargo hyuskui init, add, list and diff, and to run diff before --overwrite so your edits aren't lost.

Component Patterns

Builders with unique ids. Controlled state, where your view owns open and selected and handles on_open_change. Text inputs as entities. A single Toaster. Overlays that need no portal.

Theming

The theme tokens, styling with cx.theme() instead of hard-coded colors, switching between light and dark, and where to make changes.

Charts

Chart, PieChart, RadarChart and RadialChart, and where to find the 65 examples in the charts gallery.

Component Index

Every component in the registry, with a description. This list is regenerated on every release of this site, so it's never out of date.

How It Works

  1. Project detection. The skill activates in a Rust project that uses GPUI, or that has src/theme.rs and src/ui/mod.rs from hyuskui.
  2. Context check. Before writing code, the assistant reads Cargo.toml and src/ui/mod.rs to see the GPUI version and which components are installed.
  3. Install, don't invent. If a component is missing, the assistant runs cargo hyuskui add rather than writing a substitute.
  4. Full API on demand. For a component's builder methods and working examples, it fetches /r/<name>.json from this site.

Learn More

  • CLI: every command and flag
  • Theming: tokens, and light and dark themes
  • Components: every component with previews and code
  • skills.sh: the open skills directory and CLI