skills/makepad-reference/SKILL.md
CRITICAL: Use for Makepad troubleshooting and reference. Triggers on: troubleshoot, error, debug, fix, problem, issue, no matching field, parse error, widget not found, UI not updating, code quality, refactor, responsive layout, adaptive, api docs, reference, documentation, 故障排除, 错误, 调试, 问题, 修复
npx skillsauth add ZhangHanDong/makepad-skills makepad-referenceInstall 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.
This category provides reference materials for debugging, code quality, and advanced layout patterns.
| Topic | File | Use When | |-------|------|----------| | API Documentation | Official docs index, quick API reference | Finding detailed API info | | Troubleshooting | Common errors and fixes | Build fails, runtime errors | | Code Quality | Makepad-aware refactoring | Simplifying code safely | | Adaptive Layout | Desktop/mobile responsive | Cross-platform layouts |
| Error | Quick Fix |
|-------|-----------|
| no matching field: font | Use text_style: <THEME_FONT_*>{} |
| Color parse error (ends in e) | Change last digit (e.g., #14141e → #14141f) |
| set_text missing argument | Add cx as first argument |
| UI not updating | Call redraw(cx) after changes |
| Widget not found | Check ID spelling, use ids!() for paths |
# Run with line info for better error messages
MAKEPAD=lines cargo +nightly run
// Add logging
log!("Value: {:?}", my_value);
log!("State: {} / {}", self.counter, self.is_loading);
data-ai
CRITICAL: Use for Robius widget patterns. Triggers on: apply_over, TextOrImage, modal, 可复用, 模态, collapsible, drag drop, reusable widget, widget design, pageflip, 组件设计, 组件模式
data-ai
CRITICAL: Use for Robius state management patterns. Triggers on: AppState, persistence, theme switch, 状态管理, Scope::with_data, save state, load state, serde, 状态持久化, 主题切换
tools
CRITICAL: Use for Matrix SDK integration with Makepad. Triggers on: Matrix SDK, sliding sync, MatrixRequest, timeline, matrix-sdk, matrix client, robrix, matrix room, Matrix 集成, 聊天客户端
tools
CRITICAL: Use for Robius event and action patterns. Triggers on: custom action, MatchEvent, post_action, cx.widget_action, handle_actions, DefaultNone, widget action, event handling, 事件处理, 自定义动作