- Home
- Skills
- Zhanghandong
- Makepad Skills
- Makepad Splash
makepad-splash_skill
- Shell
715
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill zhanghandong/makepad-skills --skill makepad-splash- SKILL.md4.1 KB
Overview
This skill provides expert help for the Makepad Splash scripting language: writing Splash scripts, explaining syntax and patterns, and guiding AI-driven dynamic UI and workflow automation. It targets developers using Makepad for rapid prototyping, runtime scripting, HTTP/async operations, and AI-integrated UI generation.
How this skill works
Before producing answers, the skill attempts to read the local Splash tutorial reference to incorporate precise, up-to-date examples. If the local reference cannot be read or is empty, it informs you to run a sync command to refresh docs: "Local documentation is incomplete; run /sync-crate-skills makepad --force to update documentation" and still answers from built-in knowledge and common patterns. The skill then generates Splash code snippets, explains control flow, built-in objects (console, http, timer, ui), and shows embedding and runtime evaluation via cx.eval and cx.eval_with_context.
When to use it
- Rapidly prototype UI layouts without rebuilding the app
- Create or modify runtime behavior via scripts and timers
- Generate dynamic forms or views from AI models
- Make HTTP requests and handle async flows inside the app
- Automate repetitive workflows or create plugin-style extensions
Best practices
- Use Splash for flexibility and runtime logic; keep performance-critical code in Rust
- Read the local tutorial reference first; sync docs if missing
- Sandbox network requests and validate external data before use
- Prefer small, composable functions and UI builders for testability
- Use cx.eval_with_context to provide necessary app context to scripts
Example use cases
- Create a dynamic settings panel whose fields are generated from a remote schema
- Build an AI-assisted form generator that constructs inputs based on model output
- Schedule background tasks with timer.interval and clear them when views unmount
- Fetch data via http.get and populate widgets on async completion
- Embed Splash in Rust with script!{ ... } and evaluate user scripts at runtime
FAQ
Splash runs in a sandboxed runtime; use cx.eval_with_context to expose specific Rust-provided functions or data. Keep heavy computation in Rust and surface safe interfaces to Splash.
Are scripts sandboxed and secure?
Yes. Scripts execute in a sandboxed environment; network and context access should be explicitly provided by the host app to limit surface area.