mcpField
V
valtio

valtio

github.com/hairyfDevelopment26781 installsUpdated 2w ago
Repository

About valtio

A skill for using Valtio, a proxy-based state library for React and vanilla JavaScript. It covers reactive state, React snapshots, subscriptions, utilities, and practices for organizing and persisting state.

Key features

  1. 01Proxy-based reactive state
  2. 02Render-optimized React snapshots
  3. 03State change subscriptions
  4. 04Observable Map and Set utilities
  5. 05Async state with Suspense
  6. 06State organization and persistence

Use cases

  1. 01Building reactive React component state
  2. 02Subscribing to changes outside components
  3. 03Managing observable Map or Set data
  4. 04Persisting and composing application state

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hairyf/skills --skill valtio

After installing, type/valtioin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

GENERATION.md
references/
best-practices-actions.md
best-practices-persistence.md
best-practices-state-composition.md
core-proxy.md
core-snapshot.md
core-subscribe.md
core-use-snapshot.md
guides-async.md
guides-component-state.md
guides-computed-properties.md
utils-devtools.md
utils-proxy-map.md
utils-proxy-set.md
utils-ref.md
utils-subscribe-key.md

Details

From the project README

Valtio makes proxy-state simple for React and vanilla JavaScript. It provides a minimal, flexible, and unopinionated API that turns objects into self-aware proxies, enabling fine-grained subscription and reactivity. Valtio shines at render optimization in React and is compatible with Suspense and React 18+.

The skill is based on Valtio v2.3.0, generated at 2026-01-29.

Core References

TopicDescriptionReference
ProxyCreate reactive state objects that track changescore-proxy
useSnapshotReact hook for render-optimized state accesscore-use-snapshot
SnapshotCreate immutable snapshots for comparison and Suspensecore-snapshot
SubscribeSubscribe to state changes from anywherecore-subscribe

Utils

TopicDescriptionReference
proxyMapObservable Map-like proxy for Map data structuresutils-proxy-map
proxySetObservable Set-like proxy for Set data structuresutils-proxy-set
subscribeKeySubscribe to changes of a specific propertyutils-subscribe-key
DevToolsRedux DevTools Extension integrationutils-devtools
RefCreate unproxied references for special objectsutils-ref

Guides

TopicDescriptionReference
Component StateIsolate component state using useRefguides-component-state
Computed PropertiesCreate computed properties with getters and settersguides-computed-properties
AsyncWork with promises and React Suspenseguides-async

Best Practices

TopicDescriptionReference
ActionsOrganize actions for mutating statebest-practices-actions
PersistencePersist state to localStorage or other storagebest-practices-persistence
State CompositionSplit and compose states for organizationbest-practices-state-composition

Comments

Markdown supported