robius-event-action

Centralize event and action routing in Makepad apps with Rust patterns.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/RoooyHe/betula --skill robius-event-action
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: robius-event-action
Source: https://github.com/RoooyHe/betula/tree/main/.claude/skills/robius-event-action
Command: npx skills add https://github.com/RoooyHe/betula --skill robius-event-action

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured approach to event and action handling in Makepad apps, reducing boilerplate and errors by centralizing patterns for widget actions, MatchEvent, and app-level routing.

Core Features & Use Cases

  • Centralized action routing across widgets and App-level handling
  • Pattern-based enums for actions (e.g., MessageAction, AppStateAction)
  • Clear guidance on widget-to-widget communication and event propagation
  • Use Case: Imagine a Message widget emitting a Reply action and the App routing it to navigation and UI updates

Quick Start

To begin, review the examples and integrate the centralized action handling patterns into your App's handle_actions and handle_event methods.

Frequently Asked Questions about robius-event-action

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle widget actions in Makepad apps?

Centralized action routing in Makepad involves defining pattern-based enums for actions, emitting them from widgets, and routing them at the App level to reduce boilerplate and errors in event handling.

What is the best way to structure event handling for Makepad UI components?

Using a centralized pattern for event handling in Makepad standardizes widget-to-app communication and event propagation, ensuring clear routing of custom actions across UI components.

How do I route a custom action from a widget to the App in Makepad?

Routing a custom action from a widget to the App in Makepad requires defining a typed action enum, emitting it from the widget, and handling it within the App's centralized handle_actions method.

Does centralized event handling in Makepad require standard Rust patterns?

Centralized event handling in Makepad requires standard Rust patterns and Rust Makepad tooling to implement typed actions and ensure proper widget-to-app communication.

Why centralize action routing in Makepad instead of handling events locally?

Centralizing action routing in Makepad reduces boilerplate and errors by standardizing widget-to-widget communication and app-level event propagation, making it easier to manage complex UI updates.

Can I use this event-action pattern for Robrix or Moly apps?

The event-action pattern applies to Makepad-based apps including Robrix and Moly, providing structured guidance for widget actions and app-wide event routing in these UI components.