Agent skill · software engineering · sickn33
robius-state-management
CRITICAL: Use for Robius state management patterns. Triggers on: AppState, persistence, theme switch, 状态管理, Scope::with_data, save state, load state, serde, 状态持久化, 主题切换
Why this skill is useful
Provides specific patterns and code examples for state management in Makepad applications that the AI wouldn't reliably generate on its own.
What it needs
About 6k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.
What this skill does
Supporting material availability This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files: <support-root>/references/persistence-patterns.md <support-root>/references/state-structures.md <support-root>/references/moly-state-patterns.md Ask for the original supporting material or an existing installation before using a step that depends on these paths; this catalog does not identify a verified download source for them. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the user’s authorized scope; report any dependent step as unavailable. Robius State Management Skill Best practices for state management and persistence in Makepad applications based on Robrix and Moly codebases. Source codebases: Robrix: Matrix chat client - AppState, SelectedRoom, persistence via serde Moly: AI chat application - Central Store pattern, async initialization, Preferences When to Use Use this skill when: Designing application state structure Implementing state persistence Passing state through widget tree Managing UI state across sessions Keywords: app state, makepad state, persistence, Scope::withdata, save state, load state Production Patterns For production-ready state management patterns, see the base/ directory: Pattern Description --------- ------------- 06-global-registry Global widget registry with Cx::setglobal 07-radio-navigation Tab-style navigation with radio buttons 10-state-machine Enum-based state machine widgets 11-theme-switching Multi-theme support with applyover 12-local-persistence Save/load user preferences AppState Structure Core Stat …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sickn33/robius-state-management--5c6e41