Skip to content

Agent skills

Give your coding agent the context to build native desktop apps with gpyui. The skills include the Python API for all 77 controls, composition and State conventions, native window controls and Classic themes, asyncio/lifecycle guidance, runnable applications and desktop design rules. They are inspired by GPUI Kit's skills, with guidance adapted to gpyui's actual binding capabilities.

Install

From your application project, use the skills CLI:

npx skills add gtrefalt/gpyui --skill gpyui --skill gpyui-design-guides

Choose your coding agent and installation scope. This installs agent instructions; it does not install the Python library. Use uv add gpyui on macOS/Windows, or uv add /path/to/wheel.whl for a Linux wheel from GitHub Releases. See installation for details and pip install alternatives.

For manual Codex installation, copy both complete directories into your application's .agents/skills/:

git clone --depth 1 https://github.com/gtrefalt/gpyui.git /tmp/gpyui-skills
mkdir -p .agents/skills
cp -R /tmp/gpyui-skills/skills/gpyui .agents/skills/
cp -R /tmp/gpyui-skills/skills/gpyui-design-guides .agents/skills/

Other agents may use different installation directories. Include references/ and scripts/, not just SKILL.md. No upstream checkout is needed to read the bundled guidance.

What's included

Skill Contents
gpyui Setup, runtime ownership, component-family contracts and complete examples, layout, State/value types, callbacks, batching, async I/O and cancellation, styles and binding limits
gpyui-design-guides Task hierarchy, forms and panes, restrained light appearance, semantic colors, loading/error/destructive states, data views and native interaction review

The technical skill includes a profile form that saves JSON asynchronously, a bounded simulated streaming dashboard, and a prebuilt confirmation dialog. Copy a bundled script into your uv application and launch it with uv run python profile.py, uv run python dashboard.py, or uv run python dialog.py. The native settings recipe uses real Form/Field, conditional inputs and a shared async save/retry command. Copy settings.py and run uv run python settings.py. It writes local settings.json and deliberately fails the first valid save. The profile recipe writes profile.json in the working directory.

Ask your agent

Use the gpyui and gpyui-design-guides skills to build a light native settings app. Bind the fields to State, save asynchronously, show validation and errors, and verify actual editing and button activation on a desktop.

The references describe gpyui 0.6.1, including Image, expanded window controls, exact macOS Classic themes, keyed tables, richer inputs, MultiSelect, CommandPalette and the Kit 0.7.1 / GPUI 0.3.8 backend. Agents should verify their installed version before using these additions. They cover native themes, Form/Field validation, async submission/retry, runtime switching, and the current one-window limit. Rust Kit documentation is useful background but does not imply a Python API exists. The component references are generated from the same source contracts and specimens as this site's catalog, and CI checks runnable snippets and recipe logic without compiling the native extension.

The bundled coverage reference is generated from coverage and remaining APIs, including the pinned upstream baseline, supported contracts, missing bindings and roadmap. Agents can read it after installing the skill without a repository checkout.

See the skill installation and maintenance guide for the full package structure.