Skip to main content
skill CX Codex

makepad-2.0-dsl — Claude Code skill: what it does, how to install

Teaches agents Makepad 2.0 DSL syntax, Splash runtime scripts, property merging, and Rust widget registration.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-dsl -a claude-code
Open on GitHub

What makepad-2.0-dsl does

Makepad 2.0 shifted from compile-time templates to runtime evaluation using Splash and the script_mod! macro. This skill directs coding assistants to apply the refreshed rules: colons replace equals signs, commas between siblings are dropped, and := declares addressable widget instances. Those instances end up in object vectors and resolve via id! in Rust.

The guidance covers property merging mechanics. Using +: or dot paths modifies targeted fields without wiping existing borders or hover states. On the Rust side, structs tied to the script engine must include #[source] source: ScriptObjectRef. Registration sequence is critical: registering UI screens before their underlying widget modules will break initialization at runtime.

What it helps with

  • Migrate legacy live_design! layouts to Makepad 2.0 script_mod! blocks
  • Apply partial style updates using +: without wiping default parameters
  • Create addressable widget instances using := for Rust lookup via ids!
  • Sequence widget and UI module registrations correctly in Rust code

Example prompts for the agent

  • Convert this legacy Makepad component to the 2.0 script_mod! format
  • Demonstrate how to update border radius using dot-path shorthand in Makepad 2.0
  • Write a custom widget Rust struct definition using Script and ScriptHook derives

How to install makepad-2.0-dsl

1Skills CLI (Vercel)

npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-dsl -a claude-code

2Manually: put the files in place

~/.claude/skills/makepad-2.0-dsl/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/makepad-2.0-dsl/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about makepad-2.0-dsl

How to install makepad-2.0-dsl in Claude Code?

Run npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-dsl -a claude-code or place the definition file into ~/.claude/skills/makepad-2.0-dsl/SKILL.md.

What does makepad-2.0-dsl do?

It provides syntax constraints and architecture patterns for Makepad 2.0, helping coding assistants generate valid Splash DSL and matching Rust bindings.

Why is registration order critical in Makepad 2.0?

Base widgets and custom widget types must register with the script engine before UI modules execute. If the UI loads first, the runtime cannot find the widget types.

Similar skills

All skills for Frontend and UI →

From the same set14

makepad-2.0-shaders This skill guides agents writing Makepad 2.0 shaders, from SDF2D shapes to custom widget drawing. Use it when shader work needs to follow Makepad’s GPU conventions. CX Codex +1 ★ 751repo stars makepad-2.0-performance A skill for tuning and debugging Makepad 2.0: draw batching, Splash VM garbage collection and texture caching explained. CX Codex +1 ★ 751repo stars makepad-2.0-migration Guides coding assistants through upgrading Rust UI code from Makepad 1.x to 2.0. Helps rewrite layout macros and lifecycle hooks. CX Codex +1 ★ 751repo stars makepad-2.0-layout This skill guides an agent through sizing widgets and arranging children in Makepad 2.0. Use it when building a screen or tracing an invisible container. CX Codex +1 ★ 751repo stars makepad-2.0-events The makepad-2.0-events skill gives your agent a map of event and action handling in Makepad 2.0, from Splash on_click to the Rust MatchEvent trait. CX Codex +1 ★ 751repo stars makepad-2.0-design-judgment Entry skill for Makepad 2.0 architecture: routes syntax questions to specialized skills and anchors design decisions on data flow, component split, and GPU rendering. CX Codex +1 ★ 751repo stars makepad-2.0-app-structure Walks you through the skeleton of a Makepad 2.0 app: Rust entry point, Splash markup, event handling and hot reload. CX Codex +1 ★ 751repo stars makepad-2.0-animation Guides coding agents on building transitions, hover states, and loops in Makepad 2.0. Useful for Rust UI styling with shader variables. CX Codex +1 ★ 751repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor