What problem does it solve?
Setting up a Makepad 2.0 application requires correctly wiring Rust lifecycle code with Splash UI scripts, and mistakes in registration order, event dispatch, or Rust-Splash communication cause confusing failures. This Skill provides working templates and integration patterns so the app structure is correct from the start.
Core Features & Use Cases
- Complete App Boilerplate: Provides a minimal working template including Cargo.toml,
app_main!, script_mod!, App::run, MatchEvent, and AppMain implementations.
- Rust-Splash Bridge Patterns: Documents
script_eval!, script_apply_eval!, inline on_click/on_render handlers, and widget access via ids! for two-way communication.
- Platform Integration Guidance: Covers hot reload flags, Makepad Studio debugging, native audio I/O via
cx.audio_output/cx.audio_input, and macOS specifics like NSStatusBar and CGEvent taps.
- Use Case: When starting a new Makepad project, load this Skill to generate a compilable counter-style app skeleton, then extend it with state management via
mod.state and action handling in MatchEvent.
Quick Start
Ask the AI to create a minimal Makepad 2.0 app with a window, a label, and a button that increments a counter using the app-structure skill.