zustand 是做什麼的?
LobeHub Zustand 儲存庫約定。用於編輯 src/store、儲存切片、公開/內部動作、分發動作、扁平化動作、樂觀更新、選擇器、映射或類別動作遷移。
LobeHub Zustand 儲存庫約定。用於編輯 src/store、儲存切片、公開/內部動作、分發動作、扁平化動作、樂觀更新、選擇器、映射或類別動作遷移。
這個技能定義了 LobeHub 專案中 Zustand 狀態管理的編碼約定與最佳實踐。它專注於 `src/store` 目錄下的開發流程,涵蓋了儲存切片(store slices)、公開與內部動作(public/internal actions)、動作分發與扁平化(dispatch actions, flattenActions)、樂觀更新(optimistic updates)、選擇器(selectors)、映射(maps)以及從類別動作遷移至函式型動作(class action migration)等核心概念。此技能主要用於配合 Claude Code、Cursor 等 AI 編碼助手,確保在編輯或重構 Zustand 儲存時,生成的程式碼遵循 LobeHub 的統一規範,從而提高可維護性並減少狀態管理錯誤。支援的平台包括任意使用 Zustand 的前端專案,但特別適用於遵循 LobeHub 架構的應用。
npx skills add https://github.com/lobehub/lobe-chat/tree/main/skills/zustandInstalled? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
LobeHub Zustand 儲存庫約定。用於編輯 src/store、儲存切片、公開/內部動作、分發動作、扁平化動作、樂觀更新、選擇器、映射或類別動作遷移。
This repo contains 4 individual skills — each has its own dedicated page.
LobeHub Drizzle ORM schema and query style. Use for pgTable schemas, indexes, joins, inferred types, db.select/db.query, schema fields, foreign keys, junction tables, or postgres query patterns.
LobeHub i18n with react-i18next. Use for user-facing strings, locale keys, namespaces, useTranslation, t(), interpolation, zh-CN/en-US previews, hardcoded UI copy, or pnpm i18n.
LobeHub React component conventions. Use when editing TSX UI, choosing base-ui vs @lobehub/ui vs antd, styling with antd-style, routing, desktop variants, layouts, or component state.
LobeHub TypeScript style and type-safety guide. Use when editing TS/TSX/MTS, fixing types, choosing interface vs type, avoiding any/object, import type, async flow, or ts-expect-error.
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.