/hairyf:valtio-definefrom hairyf
Provides a Pinia-like API for creating reactive stores with state, actions, and getters in React using Valtio. Supports subscriptions, patch updates, signal components, and persistence.
Ships in hairyf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Based on valtio-define v1.0.1. A Valtio-based state management library with Pinia-like API for React applications.
valtio-define provides a factory function for creating reactive stores with state, actions, and getters. Built on top of Valtio, it offers a familiar API similar to Pinia with full TypeScript support.
| Topic | Description | Reference |
|---|---|---|
| defineStore | Core API for creating reactive stores | core-define-store |
| useStore | React hook for accessing store state | core-use-store |
| Types | TypeScript types and interfaces | core-types |
| Topic | Description | Reference |
|---|---|---|
| Subscriptions | Subscribe to state changes | advanced-subscribe |
| Patch | Update state with patch operations | advanced-patch |
| Signal | JSX component for inline reactive values | advanced-signal |
| Store to State | Convert store to useState-like hooks | advanced-store-to-state |
| Topic | Description | Reference |
|---|---|---|
| Plugin System | Extend stores with plugins | feature-plugin-system |
| Persistent Plugin | Persist state to storage | feature-persistent-plugin |
import { defineStore, useStore } from 'valtio-define'
const store = defineStore({
state: () => ({ count: 0 }),
actions: {
increment() { this.count++ },
},
getters: {
doubled() { return this.count * 2 },
},
})
function Counter() {
const state = useStore(store)
return (
<div>
<div>Count: {state.count}</div>
<div>Doubled: {state.doubled}</div>
<button onClick={store.increment}>Increment</button>
</div>
)
}
LICENSE.md (opens in a new tab)SYNC.md (opens in a new tab)references/advanced-patch.md (opens in a new tab)references/advanced-signal.md (opens in a new tab)references/advanced-store-to-state.md (opens in a new tab)references/advanced-subscribe.md (opens in a new tab)references/core-define-store.md (opens in a new tab)references/core-types.md (opens in a new tab)references/core-use-store.md (opens in a new tab)references/feature-persistent-plugin.md (opens in a new tab)references/feature-plugin-system.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/arch-tsdown-cliTypeScript CLI starter using tsdown. Use when scaffolding or maintaining an npm CLI package with tsdown, pnpm, Vitest, and npm Trusted Publisher./arch-tsdown-monorepopnpm monorepo starter for TypeScript libraries with tsdown per package. Use when scaffolding or maintaining a multi-package TS/ESM repo with workspace deps and npm Trusted Publisher./create-skillGuide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.npx claudepluginhub ulpi-io/plugin-marketplace --plugin hairyf2 plugins ship this exact skill · first indexed Jul 8, 2026
Other plugins' skills for the same job