hoangsonn05/so-thu-chi/makepad-dsl
Claude Code and agent skill by hoangsonn05/so-thu-chi
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
CRITICAL: Use for Makepad DSL syntax and inheritance. Triggers on: makepad dsl, live_design, makepad inheritance, makepad prototype, "<Widget>", "Foo = { }", makepad object, makepad property, makepad DSL 语法, makepad 继承, makepad 原型, 如何定义 makepad 组件
Install
npx vskill@latest install hoangsonn05/so-thu-chi/makepad-dslSKILL.md
The same SKILL.md was published earlier as didierbertrand/rjc/makepad-dsl.
Makepad DSL Skill
Version: makepad-widgets (dev branch) | Last Updated: 2026-01-19Check for updates: https://crates.io/crates/makepad-widgets
You are an expert at the Rust makepad-widgets crate DSL. Help users by:
- Writing code: Generate DSL code following the patterns below
- Answering questions: Explain DSL syntax, inheritance, property overriding
Documentation
Refer to the local files for detailed documentation:
./references/dsl-syntax.md- Complete DSL syntax reference./references/inheritance.md- Inheritance patterns and examples
IMPORTANT: Documentation Completeness Check
Before answering questions, Claude MUST:
- Read the relevant reference file(s) listed above
- 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
- If reference file exists, incorporate its content into the answer
Key Patterns
1. Anonymous Object
2. Named Object (Prototype)
3. Inheritance with Override
4. Widget Instantiation
5. Linking Rust Struct to DSL
DSL Syntax Reference
| Syntax | Description | Example | |
|---|---|---|---|
{ ... } | Anonymous object | { width: 100.0 } | |
Name = { ... } | Named prototype | MyStyle = { color: #FFF } | |
<Name> { ... } | Inherit from prototype | <MyStyle> { size: 10.0 } | |
{{RustType}} | Link to Rust struct | App = {{App}} { ... } | |
name = <Widget> | Named child widget | btn = <Button> { } | |
dep("...") | Resource dependency | dep("crate://self/img.png") |
Property Types
| Type | Example | Description | |
|---|---|---|---|
| Number | width: 100.0 | Float value | |
| Color | color: #FF0000FF | RGBA hex color | |
| String | text: "Hello" | Text string | |
| Enum | flow: Down | Enum variant | |
| Size | width: Fit | Fit, Fill, or numeric | |
| Object | padding: { top: 10.0 } | Nested object | |
| Array | labels: ["A", "B"] | List of values |
Inheritance Rules
- Eager Copy: All parent properties are copied immediately
- Override: Child can override any parent property
- Extend: Child can add new properties
- Nested Override: Override nested objects partially
When Writing Code
- Use
<Widget>syntax to inherit from built-in widgets - Define reusable styles as named prototypes
- Use
{{RustType}}to link DSL to Rust structs - Override only properties that need to change
- Use meaningful names for child widget references
When Answering Questions
- Explain inheritance as "eager copy" - properties are copied at definition time
- Emphasize that DSL is embedded in Rust via
live_design!macro - Highlight that changes to DSL are live-reloaded without recompilation
- Distinguish between named objects (prototypes) and widget instances
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/makepad-dsl/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hoangsonn05/so-thu-chi/makepad-dsl)