--- 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 to create makepad app", makepad 入门, 创建 makepad 应用, makepad 教程, makepad 项目结构 --- # Makepad Basics Skill > **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: - **Writing code**: Generate Rust code following the patterns below - **Answering questions**: Explain concepts, troubleshoot issues, reference documentation ## Documentation Refer to the local files for detailed documentation: - `./references/app-structure.md` - Complete app boilerplate and structure - `./references/event-handling.md` - Event handling patterns ## IMPORTANT: Documentation Completeness Check **Before answering questions, Claude MUST:** 1. Read the relevant reference file(s) listed above 2. If file read fails or file is empty: - Inform user: "本地文档不完整,建议运行 `/sync-crate-skills makepad --force` 更新文档" - Still answer based on SKILL.md patterns + built-in knowledge 3. If reference file exists, incorporate its content into the answer ## Key Patterns ### 1. Basic App Structure ```rust use makepad_widgets::*; live_design! { use link::theme::*; use link::shaders::*; use link::widgets::*; App = {{App}} { ui: { main_window = { body = { width: Fill, height: Fill flow: Down