# makepad-2.0-splash

Guides coding agents through the Splash scripting language for Makepad 2.0. Helps build reactive UIs inside Rust while avoiding silent layout bugs.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 751
- Author: ZhangHanDong
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ZhangHanDong/makepad-skills/tree/HEAD/skills/makepad-2.0-splash/SKILL.md
- Updated: 2026-04-07
- HTML: https://affpapa.org/en/nevibecode/skills/makepad-20-splash

## What it does

This skill equips the agent with knowledge about Splash, the runtime UI scripting engine introduced in Makepad 2.0. Splash replaces `live_design!` macros with `script_mod!`. Its syntax eliminates commas between properties as well as semicolons. Blocks merge using `+:`, while child nodes bind through `:=`.

The scripting VM runs incremental parsing checkpoints. This architecture supports live UI rendering while an LLM streams tokens. The runtime tracks code changes with `ScriptModKey` to enable hot reloading. However, adding or removing Rust `#(...)` bindings breaks hot reload and forces a full rebuild.

Layout bugs happen easily. Top containers default to `height: Fill`, collapsing heights to zero pixels unless assigned `height: Fit`. For text inside styled views, the engine requires `new_batch: true` to render correctly.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-splash -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/makepad-2.0-splash/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/makepad-2.0-splash/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-splash -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/makepad-2.0-splash/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-splash -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/makepad-2.0-splash/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ZhangHanDong/makepad-skills makepad-2.0-splash
```

2. **Manually: put the files in place**
- File: `.github/skills/makepad-2.0-splash/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-splash -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ZhangHanDong/makepad-skills --path skills/makepad-2.0-splash
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/makepad-2.0-splash/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-splash -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ZhangHanDong/makepad-skills/tree/HEAD/skills/makepad-2.0-splash/SKILL.md

## When to use it
- write Makepad 2.0 UI components using `script_mod!` syntax
- trigger UI updates from Rust code via `script_eval!`
- configure reactive rendering with `mod.state` and `on_render`
- fix 0px collapsed layout bugs caused by container sizing defaults

## Example prompts
- Create a counter view in Makepad 2.0 using the Splash script_mod macro
- Add a reactive on_render callback to display todo items in Splash
- Update mod.state from a Rust event handler using script_eval

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

From the same set: [zhanghandong/makepad-skills](https://affpapa.org/en/nevibecode/by/zhanghandong/makepad-skills.md) — 14 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
