React State Management
involvex/youtube-music-cli
Master modern React state management with Redux Toolkit, Zustand, Jotai, and React Query.
Create or modify ryOS Zustand stores following repo conventions — persist middleware, partialize, versioned migrations, the debounced write-behind storage adapter for large slices, and cloud-sync…
$ npx skills add ryokun6/ryos --skill create-store -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ryokun6/ryos create-store --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/create-store .claude/skills/create-store && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "create-store" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/create-store into .claude/skills/create-store/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-store", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ryokun6/ryos/tree/main/.cursor/skills/create-storeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ryokun6/ryos --skill create-store -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ryokun6/ryos create-store --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/create-store .agents/skills/create-store && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "create-store" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/create-store into .agents/skills/create-store/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-store", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ryokun6/ryos --skill create-store -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ryokun6/ryos create-store --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/create-store .cursor/skills/create-store && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "create-store" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/create-store into .cursor/skills/create-store/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-store", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ryokun6/ryos.git --path .cursor/skills/create-store--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ryokun6/ryos --skill create-store -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ryokun6/ryos create-store --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/create-store .gemini/skills/create-store && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "create-store" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/create-store into .gemini/skills/create-store/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-store", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ryokun6/ryos create-storeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ryokun6/ryos --skill create-store -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/create-store .github/skills/create-store && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "create-store" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/create-store into .github/skills/create-store/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-store", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ryokun6/ryos --skill create-store -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ryokun6/ryos create-store --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/create-store .opencode/skills/create-store && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "create-store" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/create-store into .opencode/skills/create-store/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-store", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
create-storeCreate or modify ryOS Zustand stores following repo conventions — persist middleware, partialize, versioned migrations, the debounced write-behind storage adapter for large slices, and cloud-sync…
Create Store is an agent skill from ryokun6/ryos. Create or modify ryOS Zustand stores following repo conventions — persist middleware, partialize, versioned migrations, the debounced write-behind storage adapter for large slices, and cloud-sync deletion tombstones. Use when adding state management, creating a useStore, persisting app state, or wiring a store into cloud sync.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design, covering State management. It works with Zustand. The repository describes itself as: ryOS, made with Cursor. The licence is AGPL-3.0.
Read from SKILL.md and the folder at commit 4a6e61e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Create Store loads about 2.1k tokens when it runs. Until then it costs about 86 tokens; SKILL.md has 600 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ryokun6/ryos at commit 4a6e61e, republished under its AGPL-3.0 licence (© ryokun6). 600 words, ~2,080 tokens.
.claude/skills/create-store/SKILL.md (or your agent's skills folder).ryOS state lives in Zustand stores under src/stores/, named use<Name>Store.ts. Most persist to localStorage via the persist middleware. This skill covers the conventions: persistence, partialize, versioned migrations, the debounced storage adapter, and cloud-sync tombstones.
- [ ] 1. Create src/stores/use<Name>Store.ts
- [ ] 2. Define State interface (data + actions together)
- [ ] 3. create<State>()(persist((set, get) => ({...}), { name: "ryos:<name>" }))
- [ ] 4. Add version + migrate if the shape may evolve
- [ ] 5. Use the debounced storage adapter for large/hot slices
- [ ] 6. partialize to persist only what's needed
- [ ] 7. If synced: mark deletions as tombstones via useCloudSyncStore
- [ ] 8. Read in non-React code with useXStore.getState()Keep data and actions in one interface. Actions use set/get. Generate IDs with crypto.randomUUID().
import { create } from "zustand";
import { persist } from "zustand/middleware";
export interface Item {
id: string;
content: string;
createdAt: number;
updatedAt: number;
}
interface MyState {
items: Item[];
addItem: (content: string) => string;
updateItem: (id: string, updates: Partial<Omit<Item, "id" | "createdAt">>) => void;
deleteItem: (id: string) => void;
clearAll: () => void;
}
export const useMyStore = create<MyState>()(
persist(
(set, get) => ({
items: [],
addItem: (content) => {
const id = crypto.randomUUID();
const now = Date.now();
set((s) => ({ items: [...s.items, { id, content, createdAt: now, updatedAt: now }] }));
return id;
},
updateItem: (id, updates) =>
set((s) => ({
items: s.items.map((it) =>
it.id === id ? { ...it, ...updates, updatedAt: Date.now() } : it
),
})),
deleteItem: (id) => set((s) => ({ items: s.items.filter((it) => it.id !== id) })),
clearAll: () => set({ items: [] }),
}),
{
name: "ryos:my-feature", // every app-owned storage key uses `ryos:`
}
)
);const items = useMyStore((s) => s.items); (selector — avoid subscribing to the whole store).useMyStore.getState() / useMyStore.getState().addItem(...).Inside the second persist argument:
| Option | Use |
|---|---|
name | Required. Namespaced storage key, "ryos:<feature>". |
partialize | Persist only the needed fields (omit transient UI/derived state). |
version + migrate | Required when the persisted shape can change over time. |
storage | Use the debounced adapter for large/hot slices (see below). |
partialize: (state) => ({
items: state.items,
// omit transient fields like isLoading, selectedId, etc.
}),Bump version whenever the persisted shape changes; handle older payloads in migrate. Reference: useChatsStore.ts.
const STORE_VERSION = 2;
// ...inside persist config:
version: STORE_VERSION,
migrate: (persistedState, version) => {
if (version < 2) {
// transform old shape → new shape
}
return persistedState as MyState;
},createJSONStorage(() => localStorage) re-serializes the entire partialized slice synchronously on every mutation. For large or frequently-written slices (chat history, Files VFS, iPod library), use the write-behind adapter from src/utils/debouncedPersistStorage.ts:
import { createDebouncedPersistStorage } from "@/utils/debouncedPersistStorage";
// ...inside persist config:
storage: createDebouncedPersistStorage(),It keeps localStorage authoritative but batches writes per quiet window and flushes on pagehide/tab-hidden. Flows that read raw localStorage keys directly (system reset, manual backup) must call flushDebouncedPersistWrites() first. Small slices (settings, a handful of notes) don't need this — plain name is fine.
localStorage has a hard ~5–10MB per-origin quota; a slice that inlines large
binary-ish data (e.g. Soundboard recordings store base64 audio in boards)
will silently throw QuotaExceededError and lose writes (historically crashing
on mobile Safari). For those, persist to IndexedDB via
src/utils/indexedDBPersistStorage.ts:
import { createIndexedDBPersistStorage } from "@/utils/indexedDBPersistStorage";
// ...inside persist config:
storage: createIndexedDBPersistStorage(),It mirrors the debounced localStorage adapter (write-behind, read-your-writes,
shared flushDebouncedPersistWrites()/haltDebouncedPersistWrites() hooks) but
hydrates asynchronously. Two consequences:
persisted_state IndexedDB object store, keyed by the
persist name. On first read it transparently migrates the slice's legacy
localStorage value, then drops the localStorage key.useXStore.persist.hasHydrated() / onFinishHydration so you don't clobber
restored data. Avoid for boot-critical stores read synchronously via
getState() before hydration completes.Manual backup must await settlePersistWrites() (not just the sync flush)
before reading the raw persisted_state records, and the store name must be
listed in the backup's IndexedDB store set.
If a slice contains a large entity collection or binary payloads, use
createSplitIndexedDBPersistStorage from
src/utils/splitIndexedDBPersistStorage.ts. It keeps scalar metadata in
persisted_state, migrates old monolithic snapshots on hydration, and writes
changed entities to dedicated object stores. Add each object store to
STORES, bump DB_VERSION, include it in
MANUAL_BACKUP_INDEXEDDB_STORES, and cover migration + row deletion in tests.
Soundboard, Chats, TextEdit, and Files are the reference implementations.
If the store's data participates in cloud sync, a plain local delete isn't enough — the deletion must be recorded as a tombstone so other devices remove it too. Call useCloudSyncStore.getState().markDeletedKeys(bucket, ids) when deleting (pattern from useStickiesStore.ts):
import { useCloudSyncStore } from "@/stores/useCloudSyncStore";
deleteItem: (id) => {
set((s) => ({ items: s.items.filter((it) => it.id !== id) }));
useCloudSyncStore.getState().markDeletedKeys("stickyNoteIds", [id]);
},
clearAll: () => {
const ids = get().items.map((it) => it.id);
useCloudSyncStore.getState().markDeletedKeys("stickyNoteIds", ids);
set({ items: [] });
},Use an existing CloudSyncDeletionBucket value (see useCloudSyncStore.ts); only introduce a new bucket when adding a genuinely new synced collection, and wire it through the sync engine. Stores that don't sync skip this entirely.
use<Name>Store.name: "ryos:<feature>"; partialize to the minimum needed.version + migrate for any shape that can evolve.useCloudSyncStore.crypto.randomUUID() for ids; track createdAt/updatedAt where useful.getState().Store logic (reducers, migrations, tombstone calls) is unit-testable without a server — see the write-tests skill and examples like tests/unit/apps/test-stickies-tool-reducer.test.ts and tests/unit/sync/test-debounced-persist-storage.test.ts. Place new unit suites under tests/unit/<domain>/ (auto-discovered by test:unit).
© ryokun6, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .cursor/skills/create-store of ryokun6/ryos.
Open the folder on GitHubat commit 4a6e61e
Create Store next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Create Store this skillryokun6/ryos | 1.3k | — | ~2.1k | Automated safety check: Pass | AGPL-3.0 | |
| React State Managementinvolvex/youtube-music-cli | 456 | 13 repos | ~3k | Automated safety check: Pass | MIT | |
| LobeHub Data Fetching Layerslobehub/lobehub | 83k | — | ~1.7k | Automated safety check: Pass | Custom licence | |
| LobeHub Zustand Store Patternslobehub/lobehub | 83k | — | ~1.6k | Automated safety check: Pass | Custom licence | |
| Nextjs15 Initbear2u/my-skills | 933 | — | ~2.4k | Automated safety check: Pass | None | |
| Xray UI Devbropines/xray-config-ui-editor | 119 | — | ~942 | Automated safety check: Pass | MIT |
involvex/youtube-music-cli
Master modern React state management with Redux Toolkit, Zustand, Jotai, and React Query.
lobehub/lobehub
Explains how LobeHub client code fetches data through services, SWR store hooks and cache keys, and when to avoid useEffect fetching or duplicated state.
lobehub/lobehub
Conventions for Zustand stores in LobeHub: list and detail state shapes, public, internal and dispatch actions, reducers, optimistic updates and naming rules.
bear2u/my-skills
A skill your agent uses when user wants to create a new Next.js 15 project (Todo/Blog/Dashboard/E-commerce/Custom domain) with App Router, ShadCN, Zustand, Tanstack Query, and modern Next.js stack
bropines/xray-config-ui-editor
Development and maintenance of Xray Config UI Editor. An agent skill from bropines/xray-config-ui-editor.
comet-ml/opik
Sets the conventions for the Opik React frontend: TanStack Query for data, Zustand for shared state, one-way layer imports and a fix for Google Translate crashes.
ryokun6/ryos
Add or modify an AI chat tool ("Ask Ryo" capability) in ryOS.
ryokun6/ryos
Create new applications for ryOS following established patterns and conventions.
ryokun6/ryos
Cut and publish ryOS Electron desktop releases on GitHub. An agent skill from ryokun6/ryos.
ryokun6/ryos
Localize ryOS apps and components by extracting hardcoded strings, replacing with translation keys, and syncing across languages.
ryokun6/ryos
React performance optimization guidelines from Vercel Engineering (vercel-labs/agent-skills).
ryokun6/ryos
Design and style ryOS UI using the current OS theme token system, Tailwind variants, shared primitives, Aqua Glass, dark mode, and accent conventions.
Works with
Categories
Create or modify ryOS Zustand stores following repo conventions — persist middleware, partialize, versioned migrations, the debounced write-behind storage adapter for large slices, and cloud-sync…. Create Store is an agent skill from ryokun6/ryos. Create or modify ryOS Zustand stores following repo conventions — persist middleware, partialize, versioned migrations, the debounced write-behind storage adapter for large slices, and cloud-sync deletion tombstones.
Create Store fits situations like: adding state management; creating a useStore; persisting app state; wiring a store into cloud sync.
Run `npx skills add ryokun6/ryos --skill create-store -a claude-code`. Or copy the skill folder (.cursor/skills/create-store in ryokun6/ryos) into .claude/skills/create-store in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ryokun6/ryos --skill create-store -a codex`. Or copy the skill folder (.cursor/skills/create-store in ryokun6/ryos) into .agents/skills/create-store in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ryokun6/ryos --skill create-store -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-store, .gemini/skills/create-store, .github/skills/create-store and .opencode/skills/create-store in your project.
SKILL.md names no scripts, command-line tools or credentials: Create Store is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Create Store is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Create Store: React State Management (involvex/youtube-music-cli, 456 stars), LobeHub Data Fetching Layers (lobehub/lobehub, 83k stars), LobeHub Zustand Store Patterns (lobehub/lobehub, 83k stars) and Nextjs15 Init (bear2u/my-skills, 933 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ryokun6 (a GitHub user) maintains it in ryokun6/ryos, which has 1,264 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.
Source: ryokun6/ryos on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.