iii-state-management
Installation
SKILL.md
State Management
Comparable to: Redis, DynamoDB, Memcached
Key Concepts
Use the concepts below when they fit the task. Not every state operation needs all of them.
- State is a scoped key-value store accessed via built-in trigger functions
- state::set writes a value; state::get reads it (returns
nullfor missing keys) - state::list retrieves all keys in a scope; state::delete removes a key
- state::update performs a partial merge using an
opsarray for fine-grained changes - Payloads use
scope,key, andvalueto address state entries - State is shared across all functions — use meaningful scope names to avoid collisions
Architecture
Function
→ trigger('state::set', { scope, key, value })
Related skills