[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JR00TDMVAFFCZXZ04AN7Q7":3,"skill-same:01M6JR00TDMVAFFCZXZ04AN7Q7":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6JR00TDMVAFFCZXZ04AN7Q7","zustand",null,"Zustand state management guide. Use when working with store code (src\u002Fstore\u002F**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.","LongLeo287\u002FOmniClaw","LongLeo287","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F141803367?v=4","01M6JK75C62VCNZKR5BRZ386YV","LongLeo","01M6JK75GQ78TSP1ZPXNKK3MCH",9,"MIT","https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fzustand\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"use","implementing","action","zustand state management","questions","with","store","triggers","zustand state","implementation","development","guide","management","src","actions","state","code","state management","2026-11-10 10:12:30",false,"---\nname: zustand\ndescription: Zustand state management guide. Use when working with store code (src\u002Fstore\u002F**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.\n---\n\n# LobeHub Zustand State Management\n\n## Action Type Hierarchy\n\n### 1. Public Actions\n\nMain interfaces for UI components:\n\n- Naming: Verb form (`createTopic`, `sendMessage`)\n- Responsibilities: Parameter validation, flow orchestration\n\n### 2. Internal Actions (`internal_*`)\n\nCore business logic implementation:\n\n- Naming: `internal_` prefix (`internal_createTopic`)\n- Responsibilities: Optimistic updates, service calls, error handling\n- Should not be called directly by UI\n\n### 3. Dispatch Methods (`internal_dispatch*`)\n\nState update handlers:\n\n- Naming: `internal_dispatch` + entity (`internal_dispatchTopic`)\n- Responsibilities: Calling reducers, updating store\n\n## When to Use Reducer vs Simple `set`\n\n**Use Reducer Pattern:**\n\n- Managing object lists\u002Fmaps (`messagesMap`, `topicMaps`)\n- Optimistic updates\n- Complex state transitions\n\n**Use Simple `set`:**\n\n- Toggling booleans\n- Updating simple values\n- Setting single state fields\n\n## Optimistic Update Pattern\n\n```typescript\ninternal_createTopic: async (params) => {\n  const tmpId = Date.now().toString();\n\n  \u002F\u002F 1. Immediately update frontend (optimistic)\n  get().internal_dispatchTopic(\n    { type: 'addTopic', value: { ...params, id: tmpId } },\n    'internal_createTopic'\n  );\n\n  \u002F\u002F 2. Call backend service\n  const topicId = await topicService.createTopic(params);\n\n  \u002F\u002F 3. Refresh for consistency\n  await get().refreshTopic();\n  return topicId;\n},\n```\n\n**Delete operations**: Don't use optimistic updates (destructive, complex recovery)\n\n## Naming Conventions\n\n**Actions:**\n\n- Public: `createTopic`, `sendMessage`\n- Internal: `internal_createTopic`, `internal_updateMessageContent`\n- Dispatch: `internal_dispatchTopic`\n- Toggle: `internal_toggleMessageLoading`\n\n**State:**\n\n- ID arrays: `messageLoadingIds`, `topicEditingIds`\n- Maps: `topicMaps`, `messagesMap`\n- Active: `activeTopicId`\n- Init flags: `topicsInit`\n\n## Detailed Guides\n\n- Action patterns: `references\u002Faction-patterns.md`\n- Slice organization: `references\u002Fslice-organization.md`\n\n## Class-Based Action Implementation\n\nWe are migrating slices from plain `StateCreator` objects to **class-based actions**.\n\n### Pattern\n\n- Define a class that encapsulates actions and receives `(set, get, api)` in the constructor.\n- Use `#private` fields (e.g., `#set`, `#get`) to avoid leaking internals.\n- Prefer shared typing helpers:\n  - `StoreSetter\u003CT>` from `@\u002Fstore\u002Ftypes` for `set`.\n  - `Pick\u003CActionImpl, keyof ActionImpl>` to expose only public methods.\n- Export a `create*Slice` helper that returns a class instance.\n\n```ts\ntype Setter = StoreSetter\u003CHomeStore>;\nexport const createRecentSlice = (set: Setter, get: () => HomeStore, _api?: unknown) =>\n  new RecentActionImpl(set, get, _api);\n\nexport class RecentActionImpl {\n  readonly #get: () => HomeStore;\n  readonly #set: Setter;\n\n  constructor(set: Setter, get: () => HomeStore, _api?: unknown) {\n    void _api;\n    this.#set = set;\n    this.#get = get;\n  }\n\n  useFetchRecentTopics = () => {\n    \u002F\u002F ...\n  };\n}\n\nexport type RecentAction = Pick\u003CRecentActionImpl, keyof RecentActionImpl>;\n```\n\n### Composition\n\n- In store files, merge class instances with `flattenActions` (do not spread class instances).\n- `flattenActions` binds methods to the original class instance and supports prototype methods and class fields.\n\n```ts\nconst createStore: StateCreator\u003CHomeStore, [['zustand\u002Fdevtools', never]]> = (...params) => ({\n  ...initialState,\n  ...flattenActions\u003CHomeStoreAction>([\n    createRecentSlice(...params),\n    createHomeInputSlice(...params),\n  ]),\n});\n```\n\n### Multi-Class Slices\n\n- For large slices that need multiple action classes, compose them in the slice entry using `flattenActions`.\n- Use a local `PublicActions\u003CT>` helper if you need to combine multiple classes and hide private fields.\n\n```ts\ntype PublicActions\u003CT> = { [K in keyof T]: T[K] };\n\nexport type ChatGroupAction = PublicActions\u003C\n  ChatGroupInternalAction & ChatGroupLifecycleAction & ChatGroupMemberAction & ChatGroupCurdAction\n>;\n\nexport const chatGroupAction: StateCreator\u003C\n  ChatGroupStore,\n  [['zustand\u002Fdevtools', never]],\n  [],\n  ChatGroupAction\n> = (...params) =>\n  flattenActions\u003CChatGroupAction>([\n    new ChatGroupInternalAction(...params),\n    new ChatGroupLifecycleAction(...params),\n    new ChatGroupMemberAction(...params),\n    new ChatGroupCurdAction(...params),\n  ]);\n```\n\n### Store-Access Types\n\n- For class methods that depend on actions in other classes, define explicit store augmentations:\n  - `ChatGroupStoreWithSwitchTopic` for lifecycle `switchTopic`\n  - `ChatGroupStoreWithRefresh` for member refresh\n  - `ChatGroupStoreWithInternal` for curd `internal_dispatchChatGroup`\n\n### Do \u002F Don't\n\n- **Do**: keep constructor signature aligned with `StateCreator` params `(set, get, api)`.\n- **Do**: use `#private` to avoid `set\u002Fget` being exposed.\n- **Do**: use `flattenActions` instead of spreading class instances.\n- **Don't**: keep both old slice objects and class actions active at the same time.\n","# LobeHub Zustand State Management\n\n## Action Type Hierarchy\n\n### 1. Public Actions\n\nMain interfaces for UI components:\n\n- Naming: Verb form (`createTopic`, `sendMessage`)\n- Responsibilities: Parameter validation, flow orchestration\n\n### 2. Internal Actions (`internal_*`)\n\nCore business logic implementation:\n\n- Naming: `internal_` prefix (`internal_createTopic`)\n- Responsibilities: Optimistic updates, service calls, error handling\n- Should not be called directly by UI\n\n### 3. Dispatch Methods (`internal_dispatch*`)\n\nState update handlers:\n\n- Naming: `internal_dispatch` + entity (`internal_dispatchTopic`)\n- Responsibilities: Calling reducers, updating store\n\n## When to Use Reducer vs Simple `set`\n\n**Use Reducer Pattern:**\n\n- Managing object lists\u002Fmaps (`messagesMap`, `topicMaps`)\n- Optimistic updates\n- Complex state transitions\n\n**Use Simple `set`:**\n\n- Toggling booleans\n- Updating simple values\n- Setting single state fields\n\n## Optimistic Update Pattern\n\n```typescript\ninternal_createTopic: async (params) => {\n  const tmpId = Date.now().toString();\n\n  \u002F\u002F 1. Immediately update frontend (optimistic)\n  get().internal_dispatchTopic(\n    { type: 'addTopic', value: { ...params, id: tmpId } },\n    'internal_createTopic'\n  );\n\n  \u002F\u002F 2. Call backend service\n  const topicId = await topicService.createTopic(params);\n\n  \u002F\u002F 3. Refresh for consistency\n  await get().refreshTopic();\n  return topicId;\n},\n```\n\n**Delete operations**: Don't use optimistic updates (destructive, complex recovery)\n\n## Naming Conventions\n\n**Actions:**\n\n- Public: `createTopic`, `sendMessage`\n- Internal: `internal_createTopic`, `internal_updateMessageContent`\n- Dispatch: `internal_dispatchTopic`\n- Toggle: `internal_toggleMessageLoading`\n\n**State:**\n\n- ID arrays: `messageLoadingIds`, `topicEditingIds`\n- Maps: `topicMaps`, `messagesMap`\n- Active: `activeTopicId`\n- Init flags: `topicsInit`\n\n## Detailed Guides\n\n- Action patterns: `references\u002Faction-patterns.md`\n- Slice organization: `references\u002Fslice-organization.md`\n\n## Class-Based Action Implementation\n\nWe are migrating slices from plain `StateCreator` objects to **class-based actions**.\n\n### Pattern\n\n- Define a class that encapsulates actions and receives `(set, get, api)` in the constructor.\n- Use `#private` fields (e.g., `#set`, `#get`) to avoid leaking internals.\n- Prefer shared typing helpers:\n  - `StoreSetter\u003CT>` from `@\u002Fstore\u002Ftypes` for `set`.\n  - `Pick\u003CActionImpl, keyof ActionImpl>` to expose only public methods.\n- Export a `create*Slice` helper that returns a class instance.\n\n```ts\ntype Setter = StoreSetter\u003CHomeStore>;\nexport const createRecentSlice = (set: Setter, get: () => HomeStore, _api?: unknown) =>\n  new RecentActionImpl(set, get, _api);\n\nexport class RecentActionImpl {\n  readonly #get: () => HomeStore;\n  readonly #set: Setter;\n\n  constructor(set: Setter, get: () => HomeStore, _api?: unknown) {\n    void _api;\n    this.#set = set;\n    this.#get = get;\n  }\n\n  useFetchRecentTopics = () => {\n    \u002F\u002F ...\n  };\n}\n\nexport type RecentAction = Pick\u003CRecentActionImpl, keyof RecentActionImpl>;\n```\n\n### Composition\n\n- In store files, merge class instances with `flattenActions` (do not spread class instances).\n- `flattenActions` binds methods to the original class instance and supports prototype methods and class fields.\n\n```ts\nconst createStore: StateCreator\u003CHomeStore, [['zustand\u002Fdevtools', never]]> = (...params) => ({\n  ...initialState,\n  ...flattenActions\u003CHomeStoreAction>([\n    createRecentSlice(...params),\n    createHomeInputSlice(...params),\n  ]),\n});\n```\n\n### Multi-Class Slices\n\n- For large slices that need multiple action classes, compose them in the slice entry using `flattenActions`.\n- Use a local `PublicActions\u003CT>` helper if you need to combine multiple classes and hide private fields.\n\n```ts\ntype PublicActions\u003CT> = { [K in keyof T]: T[K] };\n\nexport type ChatGroupAction = PublicActions\u003C\n  ChatGroupInternalAction & ChatGroupLifecycleAction & ChatGroupMemberAction & ChatGroupCurdAction\n>;\n\nexport const chatGroupAction: StateCreator\u003C\n  ChatGroupStore,\n  [['zustand\u002Fdevtools', never]],\n  [],\n  ChatGroupAction\n> = (...params) =>\n  flattenActions\u003CChatGroupAction>([\n    new ChatGroupInternalAction(...params),\n    new ChatGroupLifecycleAction(...params),\n    new ChatGroupMemberAction(...params),\n    new ChatGroupCurdAction(...params),\n  ]);\n```\n\n### Store-Access Types\n\n- For class methods that depend on actions in other classes, define explicit store augmentations:\n  - `ChatGroupStoreWithSwitchTopic` for lifecycle `switchTopic`\n  - `ChatGroupStoreWithRefresh` for member refresh\n  - `ChatGroupStoreWithInternal` for curd `internal_dispatchChatGroup`\n\n### Do \u002F Don't\n\n- **Do**: keep constructor signature aligned with `StateCreator` params `(set, get, api)`.\n- **Do**: use `#private` to avoid `set\u002Fget` being exposed.\n- **Do**: use `flattenActions` instead of spreading class instances.\n- **Don't**: keep both old slice objects and class actions active at the same time.\n",{"name":5,"description":7},"main","c173cdffe08e788a99b91928a831b476b8434838","ecosystem\u002Fskills\u002Fzustand",0,"https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw","https:\u002F\u002Fportfolio-longleo.vercel.app\u002Flabs\u002Fomniclaw.html","https:\u002F\u002Fgithub.com\u002FLongLeo287","https:\u002F\u002Fwww.facebook.com\u002FResourceRookie2023","2026-11-14 08:48:28",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add LongLeo287\u002FOmniClaw --skill zustand",{"tool":57,"command":58},"bunx","bunx skills add LongLeo287\u002FOmniClaw --skill zustand",{"tool":60,"command":61},"pnpm","pnpm dlx skills add LongLeo287\u002FOmniClaw --skill zustand","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fzustand\u002FSKILL.md",true,[65,71,75,79,83],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"_DIR_IDENTITY.md","REFERENCE","参考文档",135,"https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fzustand\u002F_DIR_IDENTITY.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"README.md",449,"https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fzustand\u002FREADME.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Faction_patterns.md",3118,"https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fzustand\u002Freferences\u002Faction_patterns.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fslice_organization.md",3219,"https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fzustand\u002Freferences\u002Fslice_organization.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"schema.json",423,"https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fzustand\u002Fschema.json",[88,115,135,152,175,197],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":37},"01M6JR0KQP4MHT32TN40D9CBFX","UI-UX Pro Max","Advanced UI\u002FUX analysis and generation skills with data-driven patterns. Python scripts (core.py, search.py) for systematic UI pattern extraction, design system generation, and component search from curated data sources.","https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fui_components\u002Fui_ux_pro_max\u002FSKILL.md",[],[95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114],"ux","ui","ui ux pro max","max","pro","ui ux","design","component","search","analysis","team","rd","ui-ux","active","systematic","scripts","pattern extraction","sources","advanced","data-driven",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":37},"01M6JR0EF5AEQHP2FSTB57H05P","shadcn-ui","Expert guidance for integrating and building applications with shadcn\u002Fui components, including component discovery, installation, customization, and best practices.","https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fui_components\u002Fshadcn_ui\u002FSKILL.md",[],[122,96,123,124,102,125,126,127,128,105,129,130,131,108,132,133,24,134],"shadcn","shadcn ui","components","core","best practices","applications","discovery","customization","guidance","expert","installation","ui components","for",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":37},"01M6JR08F51BEN17RHFYX65WVE","zustand_store_ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fzustand_store_ts\u002FSKILL.md",[],[142,5,25,143,144,145,146,36,34,147,31,148,19,149,150,151,24,21,20],"zustand store ts","typescript","microsoft","react","create","react state management","global","patterns","separation","middleware",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":37},"01M6JQZSWV4KWJP112G6XHEP44","youtube_summarizer","Automatically fetch YouTube video transcripts, generate structured summaries, and send full transcripts to messaging platforms. Detects YouTube URLs and provides metadata, key insights, and downloadable transcripts.","https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fyoutube_summarizer\u002FSKILL.md",[],[159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174],"youtube","youtube summarizer","summarizer","generate","metadata","messaging","Video","fetch","telegram","transcription","summarization","structured","full","insights","transcripts","summaries",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":37},"01M6JQZN3QJB6B77JGKJD62DQT","youtube_clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fyoutube_clipper\u002FSKILL.md",[],[159,182,183,165,184,185,186,187,188,189,190,191,192,193,194,195,196],"clipper","youtube clipper","Bash","下载","视频","生成","关键词","翻译","read","write","clip","总结","工具","文案","sonnet",{"skillNo":198,"name":199,"nameZh":6,"description":200,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":201,"categories":202,"keywords":203,"publishedAt":37},"01M6JQZGDW5Y1YABVVY8JHXS8S","xvary_stock_research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002FLongLeo287\u002FOmniClaw\u002Fblob\u002Fmain\u002Fecosystem\u002Fskills\u002Fxvary_stock_research\u002FSKILL.md",[],[204,205,206,207,208,209,210,35,211,212,104,213,214,215,216,217,218,24,219,220],"research","stock","xvary stock research","xvary","safe","python","workflows","data","Tools","analyze","Market","community","thesis","compare","equity","market data","sec edgar"]