Skip to main content
skill CX Codex

makepad-2.0-shaders — Claude Code skill for 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.

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

What makepad-2.0-shaders does

The skill covers shader functions placed in Makepad drawing blocks, along with variables such as instance and uniform. Its reference files explain shader syntax and SDF2D operations, including shape construction, transforms, fills, strokes, and shape combinations.

It also walks through color handling, shadows, button states, and helper functions. Pixel shaders must return premultiplied alpha; an SDF2D result already has that form, while a manually built color needs premultiplication. That distinction matters when writing a shader’s return value.

The skill draws a clear boundary between Splash and Rust. Splash can change how existing draw types render, but new DrawQuad types and extra fields on existing shaders must be defined in Rust.

What it helps with

  • draw SDF2D shapes in a widget shader
  • add a gradient or shadow to a Makepad background
  • change a widget’s shader color on hover
  • write a helper function for pixel shading
  • identify when a shader change requires Rust code

Example prompts for the agent

  • Draw a rounded Makepad 2.0 button whose color changes on hover.
  • Add a gradient to this widget background using a pixel function.
  • Explain why a new DrawQuad type has to be defined in Rust.

How to install makepad-2.0-shaders

1Skills CLI (Vercel)

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

2Manually: put the files in place

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

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

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

Questions about makepad-2.0-shaders

How do I install makepad-2.0-shaders in Claude Code?

Run npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-shaders -a claude-code. The skill file is at ~/.claude/skills/makepad-2.0-shaders/SKILL.md.

What does makepad-2.0-shaders do?

It guides an agent through Makepad 2.0 shader work, including SDF2D drawing, shader variables, and widget rendering functions. It also covers color handling and custom shader helpers.

Can Splash add a new DrawQuad type?

No. Define and register a new draw type in Rust. Splash can override the rendering of draw types that already exist.

Similar skills

All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set14

makepad-2.0-vector Teaches your coding assistant how to write vector shapes and animations for Makepad 2.0. Generates inline SVG paths, gradients, and UI icons. CX Codex +1 ★ 751repo stars makepad-2.0-troubleshooting A skill that walks through the usual Makepad 2.0 and Splash failures: layouts that never appear, text hidden behind a background, broken overrides. Useful when the UI compiles but looks wrong. CX Codex +1 ★ 751repo stars makepad-2.0-theme A skill covering the Makepad 2.0 theme system: theme.* variables, dark and light modes, colors, fonts and spacing in Splash. CX Codex +1 ★ 751repo stars 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. 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

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