robius-state-management
AppState, persistence, theme switch, 状态管理, 状态持久化, 主题切换
npx skills add sickn33/agentic-awesome-skills --skill robius-state-management --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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::with_data, 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::set_global | | 07-radio-navigation | Tab-style navigation with radio buttons | | 10-state-machine | Enum-based state machine widgets | | 11-theme-switching | Multi-theme support with apply_over | | 12-local-persistence | Save/load user preferences | ## AppState Structure ### Core State Definition ```rust use serde::{Serialize, Deserialize}; use std::collections::HashMap; use matri
- When to Use
- Production Patterns
- AppState Structure
- Core State Definition
- Layout/Dock State Persistence
- State Propagation via Scope
- Passing State Through Widget Tree
- Accessing State in Child Widgets
- Modifying State
- Persistence Layer
- File Paths
- Saving State
- Loading State
- Startup/Shutdown Integration
What does the robius-state-management skill do?
AppState, persistence, theme switch, 状态管理, 状态持久化, 主题切换
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill robius-state-management --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.