skills/makepad-basics/SKILL.md
--- name: makepad-basics description: CRITICAL: Use for Makepad getting started and app structure. Triggers on: makepad, makepad getting started, makepad tutorial, live_design!, app_main!, makepad project setup, makepad hello world, "how category: Document Processing source: antigravity tags: [api, claude, ai, design, document, cro] url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/makepad-basics --- # Makepad Basics Skill > **Version:** makepad-widgets (dev branch)
npx skillsauth add ranbot-ai/awesome-skills skills/makepad-basicsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Version: makepad-widgets (dev branch) | Last Updated: 2026-01-19
Check for updates: https://crates.io/crates/makepad-widgets
You are an expert at the Rust makepad-widgets crate. Help users by:
live_design!, app_main!, or first-screen application wiring.Refer to the local files for detailed documentation:
./references/app-structure.md - Complete app boilerplate and structure./references/event-handling.md - Event handling patternsBefore answering questions, Claude MUST:
/sync-crate-skills makepad --force 更新文档"use makepad_widgets::*;
live_design! {
use link::theme::*;
use link::shaders::*;
use link::widgets::*;
App = {{App}} {
ui: <Root> {
main_window = <Window> {
body = <View> {
width: Fill, height: Fill
flow: Down
<Label> { text: "Hello Makepad!" }
}
}
}
}
}
app_main!(App);
#[derive(Live, LiveHook)]
pub struct App {
#[live] ui: WidgetRef,
}
impl LiveRegister for App {
fn live_register(cx: &mut Cx) {
crate::makepad_widgets::live_design(cx);
}
}
impl AppMain for App {
fn handle_event(&mut self, cx: &mut Cx, event: &Event) {
self.ui.handle_event(cx, event, &mut Scope::empty());
}
}
[package]
name = "my_app"
version = "0.1.0"
edition = "2024"
[dependencies]
makepad-widgets = { git = "https://github.com/makepad/makepad", branch = "dev" }
impl AppMain for App {
fn handle_event(&mut self, cx: &mut Cx, event: &Event) {
let actions = self.ui.handle_event(cx, event, &mut Scope::empty());
if self.ui.button(id!(my_button)).clicked(&actions) {
log!("Button clicked!");
}
}
}
// Get widget references
let label = self.ui.label(id!(my_label));
label.set_text("Updated text");
let input = self.ui.text_input(id!(my_input));
let text = input.text();
| Macro/Type | Description | Example |
|------------|-------------|---------|
| live_design! | Defines UI in DSL | live_design! { App = {{App}} { ... } } |
| app_main! | Entry point macro | app_main!(App); |
| #[derive(Live)] | Derive live data | #[derive(Live, LiveHook)] |
| WidgetRef | Reference to UI tree | #[live] ui: WidgetRef |
| Cx | Context for rendering | fn handle_event(&mut self, cx: &mut Cx, ...) |
| id!() | Widget ID macro | self.ui.button(id!(my_button)) |
| Platform | Requirements |
|----------|--------------|
| macOS | Works out of the box |
| Windows | Works out of the box |
| Linux | apt-get install clang libaudio-dev libpulse-dev libx11-dev libxcursor-dev |
| Web | cargo install wasm-pack |
use makepad_widgets::*;live_design! macro for all UI definitionsLiveRegister and AppMain traitsid!() macro for widget referenceshandle_event methodtesting
Fix SEO indexing issues, crawl budget problems, and Search Console coverage errors for Next.js apps. Covers canonical tags, noindex audits, sitemap health, static rendering, and internal linking.
data-ai
Analyze AI disruption pressure across a business, map competitive exposure, and produce a 90-day defensive action plan.
tools
--- name: longbridge description: 125+ agent skills for Longbridge Securities — real-time quotes, charts, fundamentals, portfolio analysis, options, and more for HK/US/A-share/SG markets. Trilingual: Simplified Chinese, Traditional category: AI & Agents source: antigravity tags: [api, mcp, claude, ai, agent, security, cro] url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/longbridge --- # Longbridge ## Overview Longbridge is the official skill collection for Longbr
tools
Design, debug, and harden GitHub Actions CI/CD workflows, including reusable workflows, matrix builds, self-hosted runners, OIDC authentication, caching, environments, secrets, and release automation.