Skip to main content
在 Manus 中运行任何 Skill
一键导入

super-store

星标0
分支0
更新时间2026年6月23日 18:13

Use when building with super-store — the reactive StoreValue primitive imported from @super-store/store (and the useStore / useStoreSelector hooks from @super-store/react). Triggers whenever code constructs a StoreValue handle, reads .value or getSnapshot(), writes via set() or update() (recursive diff-and-patch in one transaction), subscribes / selects for reactivity, or reaches for the sync surface (encodeState / applyUpdate / onUpdate) to add real-time collaboration or persistence WITHOUT importing yjs. Also use for the two backing modes (unbound in-memory vs bound Yjs CRDT, lazy binding from the root), nested StoreValue for per-field CRDT merge, opt-in undo/redo, the StoreValue→Yjs type mapping, and wiring stores into React with useSyncExternalStore. Applies even when the user never says "super-store" but is clearly using a StoreValue, getSnapshot/subscribe, or the encodeState/applyUpdate/onUpdate trio.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
4 个文件
SKILL.md
readonly