gpui-macros

Community

GPUI procedural macros for actions and components

Authoronehr
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies the creation of GPUI applications by providing powerful procedural macros for defining actions, creating reusable UI components, and writing tests, reducing boilerplate code and improving developer productivity.

Core Features & Use Cases

  • Action Definition: Define simple unit actions with actions!() and complex, data-carrying actions with #[derive(Action)].
  • Component Creation: Easily create renderable components using #[derive(IntoElement)] and #[derive(Render)].
  • Testing Utilities: Leverage #[gpui::test] for a streamlined testing experience with TestAppContext.
  • Use Case: When building a new feature in a GPUI application, use #[derive(Action)] to define user interactions and #[derive(IntoElement)] to create custom UI elements for those interactions.

Quick Start

Use the gpui-macros skill to define a new action named 'SaveFile' for the 'editor' namespace.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: gpui-macros
Download link: https://github.com/onehr/gpui-skills/archive/main.zip#gpui-macros

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.