ui-state-architecture
Installation
SKILL.md
State architecture for agent UIs
Three tiers. Every value belongs to exactly one. Most agent-UI bugs are a value stored in the wrong tier.
| Tier | Owner | Lifetime | Examples |
|---|---|---|---|
| Authoritative business data | Server or external service | Long-lived | Tasks, tickets, orders, documents |
| Ephemeral UI state | The rendered View instance | This instance only | Selected row, expanded panel, sort order, draft filter |
| Durable cross-session state | Storage you control | Across sessions and devices | Saved filters, view mode, workspace prefs |