[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APWP676DN9AM07FYR3AHMF":3,"skill-same:01M7APWP676DN9AM07FYR3AHMF":166},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":5,"forksCount":13,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7APWP676DN9AM07FYR3AHMF","state-management",null,"React Query and Zustand patterns for state management. Use when implementing data fetching, caching, mutations, or client-side state. Triggers on tasks involving useQuery, useMutation, Zustand stores, caching, or state management.","davidanthonyn\u002Fclaude-skills","davidanthonyn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F55152980?v=4","01M7AJ4MY8S5C2RJCGX6626J0G","01M7AJ7JE1K98GRPH9Z57Z0R0W",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: state-management\ndescription: React Query and Zustand patterns for state management. Use when implementing data fetching, caching, mutations, or client-side state. Triggers on tasks involving useQuery, useMutation, Zustand stores, caching, or state management.\nlicense: MIT\nmetadata:\n  author: agent-skills\n  version: \"1.1.0\"\n---\n\n# State Management with React Query + Zustand\n\n**Version 1.1.0** | TanStack Query v5 | Zustand v5 | March 2026\n\n> **Note:**\n> This document provides comprehensive patterns for AI agents and LLMs working with\n> TanStack Query v5 and Zustand v5. All examples are verified against v5 APIs.\n> Optimized for automated refactoring, code generation, and state management best practices.\n\n## v5 Breaking Changes (Quick Reference)\n\n**TanStack Query v5:**\n- `cacheTime` → `gcTime`\n- `keepPreviousData` option → `placeholderData: keepPreviousData` (imported helper)\n- `isPreviousData` → `isPlaceholderData`\n- `onSuccess`\u002F`onError`\u002F`onSettled` removed from `useQuery` — still valid on `useMutation`\n- `suspense: true` on `useQuery` removed → use `useSuspenseQuery`\n\n**Zustand v5:**\n- `shallow` as 2nd arg removed → `useShallow` from `zustand\u002Fshallow`\n- Selectors returning new references need `useShallow` to avoid infinite loops\n\n## Security: Persist Middleware\n\n> **Never persist auth tokens, passwords, or secrets to localStorage\u002FsessionStorage.**\n> Use `partialize` to persist only non-sensitive state. Manage tokens via HttpOnly cookies.\n\n---\n\nComprehensive patterns for server state (React Query) and client state (Zustand). Contains 26+ rules for efficient data fetching and state management.\n\n## When to Apply\n\nReference these guidelines when:\n- Fetching data from APIs\n- Managing server state and caching\n- Handling mutations and optimistic updates\n- Creating client-side stores\n- Combining React Query with Zustand\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | React Query Basics | CRITICAL | `rq-` |\n| 2 | Zustand Store Patterns | CRITICAL | `zs-` |\n| 3 | Caching & Invalidation | HIGH | `cache-` |\n| 4 | Mutations & Updates | HIGH | `mut-` |\n| 5 | Optimistic Updates | MEDIUM | `opt-` |\n| 6 | DevTools & Debugging | MEDIUM | `dev-` |\n| 7 | Advanced Patterns | LOW | `adv-` |\n\n## Quick Reference\n\n### 1. React Query Basics (CRITICAL)\n\n- `rq-setup` - QueryClient and Provider setup\n- `rq-usequery` - Basic useQuery patterns\n- `rq-querykeys` - Query key organization\n- `rq-loading-error` - Handle loading and error states\n- `rq-enabled` - Conditional queries\n\n### 2. Zustand Store Patterns (CRITICAL)\n\n- `zs-create-store` - Create basic store\n- `zs-typescript` - TypeScript store patterns\n- `zs-selectors` - Efficient selectors\n- `zs-actions` - Action patterns\n- `zs-persist` - Persist state to storage\n\n### 3. Caching & Invalidation (HIGH)\n\n- `cache-stale-time` - Configure stale time\n- `cache-gc-time` - Configure garbage collection\n- `cache-invalidation` - Invalidate queries\n- `cache-prefetch` - Prefetch data\n- `cache-initial-data` - Set initial data\n\n### 4. Mutations & Updates (HIGH)\n\n- `mut-usemutation` - Basic useMutation\n- `mut-callbacks` - onSuccess, onError callbacks\n- `mut-invalidate` - Invalidate after mutation\n- `mut-update-cache` - Direct cache updates\n\n### 5. Optimistic Updates (MEDIUM)\n\n- `opt-basic` - Basic optimistic updates\n- `opt-rollback` - Rollback on error\n- `opt-variables` - Use mutation variables\n\n### 6. DevTools & Debugging (MEDIUM)\n\n- `dev-react-query` - React Query DevTools\n- `dev-zustand` - Zustand DevTools\n- `dev-debugging` - Debug strategies\n\n### 7. Advanced Patterns (LOW)\n\n- `adv-infinite-queries` - Infinite scrolling\n- `adv-parallel-queries` - Parallel requests\n- `adv-dependent-queries` - Dependent queries\n- `adv-query-zustand` - Combine RQ with Zustand\n\n## React Query Patterns\n\n### Setup\n\n```tsx\n\u002F\u002F lib\u002FqueryClient.ts\nimport { QueryClient } from '@tanstack\u002Freact-query'\n\nexport const queryClient = new QueryClient({\n  defaultOptions: {\n    queries: {\n      staleTime: 1000 * 60 * 5, \u002F\u002F 5 minutes\n      gcTime: 1000 * 60 * 30,   \u002F\u002F 30 minutes (formerly cacheTime)\n      retry: 1,\n      refetchOnWindowFocus: false,\n    },\n  },\n})\n\n\u002F\u002F App.tsx\nimport { QueryClientProvider } from '@tanstack\u002Freact-query'\nimport { ReactQueryDevtools } from '@tanstack\u002Freact-query-devtools'\nimport { queryClient } from '.\u002Flib\u002FqueryClient'\n\nfunction App() {\n  return (\n    \u003CQueryClientProvider client={queryClient}>\n      \u003CRouter \u002F>\n      \u003CReactQueryDevtools initialIsOpen={false} \u002F>\n    \u003C\u002FQueryClientProvider>\n  )\n}\n```\n\n### Query Keys Factory\n\n```tsx\n\u002F\u002F lib\u002FqueryKeys.ts\nexport const queryKeys = {\n  \u002F\u002F All posts\n  posts: {\n    all: ['posts'] as const,\n    lists: () => [...queryKeys.posts.all, 'list'] as const,\n    list: (filters: PostFilters) =>\n      [...queryKeys.posts.lists(), filters] as const,\n    details: () => [...queryKeys.posts.all, 'detail'] as const,\n    detail: (id: number) => [...queryKeys.posts.details(), id] as const,\n  },\n\n  \u002F\u002F All users\n  users: {\n    all: ['users'] as const,\n    detail: (id: number) => [...queryKeys.users.all, id] as const,\n    posts: (userId: number) => [...queryKeys.users.all, userId, 'posts'] as const,\n  },\n}\n```\n\n### useQuery Hook\n\n```tsx\n\u002F\u002F hooks\u002FusePosts.ts\nimport { useQuery } from '@tanstack\u002Freact-query'\nimport { queryKeys } from '@\u002Flib\u002FqueryKeys'\nimport { fetchPosts, fetchPost } from '@\u002Fapi\u002Fposts'\n\nexport function usePosts(filters?: PostFilters) {\n  return useQuery({\n    queryKey: queryKeys.posts.list(filters ?? {}),\n    queryFn: () => fetchPosts(filters),\n  })\n}\n\nexport function usePost(id: number) {\n  return useQuery({\n    queryKey: queryKeys.posts.detail(id),\n    queryFn: () => fetchPost(id),\n    enabled: !!id, \u002F\u002F Only run if id exists\n  })\n}\n\n\u002F\u002F Usage in component\nfunction PostList() {\n  const { data: posts, isLoading, error } = usePosts()\n\n  if (isLoading) return \u003CSpinner \u002F>\n  if (error) return \u003CError message={error.message} \u002F>\n\n  return (\n    \u003Cul>\n      {posts?.map((post) => (\n        \u003Cli key={post.id}>{post.title}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  )\n}\n```\n\n### useMutation Hook\n\n```tsx\n\u002F\u002F hooks\u002FuseCreatePost.ts\nimport { useMutation, useQueryClient } from '@tanstack\u002Freact-query'\nimport { queryKeys } from '@\u002Flib\u002FqueryKeys'\nimport { createPost } from '@\u002Fapi\u002Fposts'\n\nexport function useCreatePost() {\n  const queryClient = useQueryClient()\n\n  return useMutation({\n    mutationFn: createPost,\n    onSuccess: (newPost) => {\n      \u002F\u002F Invalidate and refetch posts list\n      queryClient.invalidateQueries({\n        queryKey: queryKeys.posts.lists(),\n      })\n    },\n    onError: (error) => {\n      console.error('Failed to create post:', error)\n    },\n  })\n}\n\n\u002F\u002F Usage\nfunction CreatePostForm() {\n  const { mutate, isPending } = useCreatePost()\n\n  const handleSubmit = (data: CreatePostData) => {\n    mutate(data)\n  }\n\n  return (\n    \u003Cform onSubmit={handleSubmit}>\n      {\u002F* form fields *\u002F}\n      \u003Cbutton disabled={isPending}>\n        {isPending ? 'Creating...' : 'Create'}\n      \u003C\u002Fbutton>\n    \u003C\u002Fform>\n  )\n}\n```\n\n### Optimistic Updates\n\n```tsx\nexport function useUpdatePost() {\n  const queryClient = useQueryClient()\n\n  return useMutation({\n    mutationFn: updatePost,\n    onMutate: async (updatedPost) => {\n      \u002F\u002F Cancel outgoing refetches\n      await queryClient.cancelQueries({\n        queryKey: queryKeys.posts.detail(updatedPost.id),\n      })\n\n      \u002F\u002F Snapshot previous value\n      const previousPost = queryClient.getQueryData(\n        queryKeys.posts.detail(updatedPost.id)\n      )\n\n      \u002F\u002F Optimistically update\n      queryClient.setQueryData(\n        queryKeys.posts.detail(updatedPost.id),\n        updatedPost\n      )\n\n      return { previousPost }\n    },\n    onError: (err, updatedPost, context) => {\n      \u002F\u002F Rollback on error\n      queryClient.setQueryData(\n        queryKeys.posts.detail(updatedPost.id),\n        context?.previousPost\n      )\n    },\n    onSettled: (data, error, variables) => {\n      \u002F\u002F Refetch after settle\n      queryClient.invalidateQueries({\n        queryKey: queryKeys.posts.detail(variables.id),\n      })\n    },\n  })\n}\n```\n\n## Zustand Patterns\n\n### Basic Store\n\n```tsx\n\u002F\u002F stores\u002FuseCounterStore.ts\nimport { create } from 'zustand'\n\ninterface CounterState {\n  count: number\n  increment: () => void\n  decrement: () => void\n  reset: () => void\n}\n\nexport const useCounterStore = create\u003CCounterState>((set) => ({\n  count: 0,\n  increment: () => set((state) => ({ count: state.count + 1 })),\n  decrement: () => set((state) => ({ count: state.count - 1 })),\n  reset: () => set({ count: 0 }),\n}))\n\n\u002F\u002F Usage\nfunction Counter() {\n  const { count, increment, decrement } = useCounterStore()\n\n  return (\n    \u003Cdiv>\n      \u003Cspan>{count}\u003C\u002Fspan>\n      \u003Cbutton onClick={increment}>+\u003C\u002Fbutton>\n      \u003Cbutton onClick={decrement}>-\u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n### Store with TypeScript and Middleware\n\n```tsx\n\u002F\u002F stores\u002FuseAuthStore.ts\nimport { create } from 'zustand'\nimport { persist, devtools } from 'zustand\u002Fmiddleware'\n\ninterface User {\n  id: number\n  name: string\n  email: string\n}\n\ninterface AuthState {\n  user: User | null\n  isAuthenticated: boolean\n  login: (user: User) => void\n  logout: () => void\n}\n\n\u002F\u002F ✅ Never persist tokens to localStorage — use HttpOnly cookies server-side\nexport const useAuthStore = create\u003CAuthState>()(\n  devtools(\n    persist(\n      (set) => ({\n        user: null,\n        isAuthenticated: false,\n\n        login: (user) =>\n          set({\n            user,\n            isAuthenticated: true,\n          }),\n\n        logout: () =>\n          set({\n            user: null,\n            isAuthenticated: false,\n          }),\n      }),\n      {\n        name: 'auth-storage',\n        \u002F\u002F Only persist display info and auth flag — tokens must NOT be included\n        partialize: (state) => ({\n          user: state.user,\n          isAuthenticated: state.isAuthenticated,\n        }),\n      }\n    )\n  )\n)\n```\n\n### Selectors for Performance\n\n```tsx\n\u002F\u002F Use selectors to prevent unnecessary re-renders\nfunction UserName() {\n  \u002F\u002F Only re-renders when user.name changes\n  const name = useAuthStore((state) => state.user?.name)\n  return \u003Cspan>{name}\u003C\u002Fspan>\n}\n\n\u002F\u002F Multiple selectors\nfunction UserInfo() {\n  const user = useAuthStore((state) => state.user)\n  const isAuthenticated = useAuthStore((state) => state.isAuthenticated)\n\n  if (!isAuthenticated) return \u003CLoginButton \u002F>\n  return \u003Cspan>{user?.name}\u003C\u002Fspan>\n}\n```\n\n### Combining React Query + Zustand\n\n```tsx\n\u002F\u002F Server state: React Query (what comes from API)\nconst { data: posts } = usePosts()\n\n\u002F\u002F Client state: Zustand (UI state)\nconst { selectedPostId, selectPost } = useUIStore()\n\n\u002F\u002F Use together\nconst selectedPost = posts?.find((p) => p.id === selectedPostId)\n```\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nrules\u002Frq-usequery.md\nrules\u002Frq-query-keys.md\nrules\u002Frq-mutation-setup.md\nrules\u002Frq-optimistic-updates.md\nrules\u002Fzs-create-store.md\nrules\u002Fzs-persist.md\nrules\u002Frq-query-invalidation.md\nrules\u002Frq-prefetching.md\n```\n\n---\n\n## References\n\n### React Query (TanStack Query)\n1. [TanStack Query Documentation](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest)\n2. [React Query Overview](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Foverview)\n3. [Queries Guide](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Fqueries)\n4. [Mutations Guide](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Fmutations)\n5. [Query Keys Guide](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Fquery-keys)\n6. [Optimistic Updates](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Foptimistic-updates)\n7. [Infinite Queries](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Finfinite-queries)\n8. [Paginated Queries](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Fpaginated-queries)\n9. [React Query DevTools](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fdevtools)\n\n### Zustand\n1. [Zustand Demo](https:\u002F\u002Fzustand-demo.pmnd.rs)\n2. [Zustand GitHub](https:\u002F\u002Fgithub.com\u002Fpmndrs\u002Fzustand)\n3. [Getting Started](https:\u002F\u002Fdocs.pmnd.rs\u002Fzustand\u002Fgetting-started\u002Fintroduction)\n4. [TypeScript Guide](https:\u002F\u002Fdocs.pmnd.rs\u002Fzustand\u002Fguides\u002Ftypescript)\n5. [Persisting Store Data](https:\u002F\u002Fdocs.pmnd.rs\u002Fzustand\u002Fintegrations\u002Fpersisting-store-data)\n6. [Zustand Recipes](https:\u002F\u002Fgithub.com\u002Fpmndrs\u002Fzustand#recipes)\n\n---\n\n## License\n\nThis skill is provided as-is for educational and development purposes. React Query is MIT licensed by TanStack. Zustand is MIT licensed by Poimandres (pmnd.rs).\n","# State Management with React Query + Zustand\n\n**Version 1.1.0** | TanStack Query v5 | Zustand v5 | March 2026\n\n> **Note:**\n> This document provides comprehensive patterns for AI agents and LLMs working with\n> TanStack Query v5 and Zustand v5. All examples are verified against v5 APIs.\n> Optimized for automated refactoring, code generation, and state management best practices.\n\n## v5 Breaking Changes (Quick Reference)\n\n**TanStack Query v5:**\n- `cacheTime` → `gcTime`\n- `keepPreviousData` option → `placeholderData: keepPreviousData` (imported helper)\n- `isPreviousData` → `isPlaceholderData`\n- `onSuccess`\u002F`onError`\u002F`onSettled` removed from `useQuery` — still valid on `useMutation`\n- `suspense: true` on `useQuery` removed → use `useSuspenseQuery`\n\n**Zustand v5:**\n- `shallow` as 2nd arg removed → `useShallow` from `zustand\u002Fshallow`\n- Selectors returning new references need `useShallow` to avoid infinite loops\n\n## Security: Persist Middleware\n\n> **Never persist auth tokens, passwords, or secrets to localStorage\u002FsessionStorage.**\n> Use `partialize` to persist only non-sensitive state. Manage tokens via HttpOnly cookies.\n\n---\n\nComprehensive patterns for server state (React Query) and client state (Zustand). Contains 26+ rules for efficient data fetching and state management.\n\n## When to Apply\n\nReference these guidelines when:\n- Fetching data from APIs\n- Managing server state and caching\n- Handling mutations and optimistic updates\n- Creating client-side stores\n- Combining React Query with Zustand\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | React Query Basics | CRITICAL | `rq-` |\n| 2 | Zustand Store Patterns | CRITICAL | `zs-` |\n| 3 | Caching & Invalidation | HIGH | `cache-` |\n| 4 | Mutations & Updates | HIGH | `mut-` |\n| 5 | Optimistic Updates | MEDIUM | `opt-` |\n| 6 | DevTools & Debugging | MEDIUM | `dev-` |\n| 7 | Advanced Patterns | LOW | `adv-` |\n\n## Quick Reference\n\n### 1. React Query Basics (CRITICAL)\n\n- `rq-setup` - QueryClient and Provider setup\n- `rq-usequery` - Basic useQuery patterns\n- `rq-querykeys` - Query key organization\n- `rq-loading-error` - Handle loading and error states\n- `rq-enabled` - Conditional queries\n\n### 2. Zustand Store Patterns (CRITICAL)\n\n- `zs-create-store` - Create basic store\n- `zs-typescript` - TypeScript store patterns\n- `zs-selectors` - Efficient selectors\n- `zs-actions` - Action patterns\n- `zs-persist` - Persist state to storage\n\n### 3. Caching & Invalidation (HIGH)\n\n- `cache-stale-time` - Configure stale time\n- `cache-gc-time` - Configure garbage collection\n- `cache-invalidation` - Invalidate queries\n- `cache-prefetch` - Prefetch data\n- `cache-initial-data` - Set initial data\n\n### 4. Mutations & Updates (HIGH)\n\n- `mut-usemutation` - Basic useMutation\n- `mut-callbacks` - onSuccess, onError callbacks\n- `mut-invalidate` - Invalidate after mutation\n- `mut-update-cache` - Direct cache updates\n\n### 5. Optimistic Updates (MEDIUM)\n\n- `opt-basic` - Basic optimistic updates\n- `opt-rollback` - Rollback on error\n- `opt-variables` - Use mutation variables\n\n### 6. DevTools & Debugging (MEDIUM)\n\n- `dev-react-query` - React Query DevTools\n- `dev-zustand` - Zustand DevTools\n- `dev-debugging` - Debug strategies\n\n### 7. Advanced Patterns (LOW)\n\n- `adv-infinite-queries` - Infinite scrolling\n- `adv-parallel-queries` - Parallel requests\n- `adv-dependent-queries` - Dependent queries\n- `adv-query-zustand` - Combine RQ with Zustand\n\n## React Query Patterns\n\n### Setup\n\n```tsx\n\u002F\u002F lib\u002FqueryClient.ts\nimport { QueryClient } from '@tanstack\u002Freact-query'\n\nexport const queryClient = new QueryClient({\n  defaultOptions: {\n    queries: {\n      staleTime: 1000 * 60 * 5, \u002F\u002F 5 minutes\n      gcTime: 1000 * 60 * 30,   \u002F\u002F 30 minutes (formerly cacheTime)\n      retry: 1,\n      refetchOnWindowFocus: false,\n    },\n  },\n})\n\n\u002F\u002F App.tsx\nimport { QueryClientProvider } from '@tanstack\u002Freact-query'\nimport { ReactQueryDevtools } from '@tanstack\u002Freact-query-devtools'\nimport { queryClient } from '.\u002Flib\u002FqueryClient'\n\nfunction App() {\n  return (\n    \u003CQueryClientProvider client={queryClient}>\n      \u003CRouter \u002F>\n      \u003CReactQueryDevtools initialIsOpen={false} \u002F>\n    \u003C\u002FQueryClientProvider>\n  )\n}\n```\n\n### Query Keys Factory\n\n```tsx\n\u002F\u002F lib\u002FqueryKeys.ts\nexport const queryKeys = {\n  \u002F\u002F All posts\n  posts: {\n    all: ['posts'] as const,\n    lists: () => [...queryKeys.posts.all, 'list'] as const,\n    list: (filters: PostFilters) =>\n      [...queryKeys.posts.lists(), filters] as const,\n    details: () => [...queryKeys.posts.all, 'detail'] as const,\n    detail: (id: number) => [...queryKeys.posts.details(), id] as const,\n  },\n\n  \u002F\u002F All users\n  users: {\n    all: ['users'] as const,\n    detail: (id: number) => [...queryKeys.users.all, id] as const,\n    posts: (userId: number) => [...queryKeys.users.all, userId, 'posts'] as const,\n  },\n}\n```\n\n### useQuery Hook\n\n```tsx\n\u002F\u002F hooks\u002FusePosts.ts\nimport { useQuery } from '@tanstack\u002Freact-query'\nimport { queryKeys } from '@\u002Flib\u002FqueryKeys'\nimport { fetchPosts, fetchPost } from '@\u002Fapi\u002Fposts'\n\nexport function usePosts(filters?: PostFilters) {\n  return useQuery({\n    queryKey: queryKeys.posts.list(filters ?? {}),\n    queryFn: () => fetchPosts(filters),\n  })\n}\n\nexport function usePost(id: number) {\n  return useQuery({\n    queryKey: queryKeys.posts.detail(id),\n    queryFn: () => fetchPost(id),\n    enabled: !!id, \u002F\u002F Only run if id exists\n  })\n}\n\n\u002F\u002F Usage in component\nfunction PostList() {\n  const { data: posts, isLoading, error } = usePosts()\n\n  if (isLoading) return \u003CSpinner \u002F>\n  if (error) return \u003CError message={error.message} \u002F>\n\n  return (\n    \u003Cul>\n      {posts?.map((post) => (\n        \u003Cli key={post.id}>{post.title}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  )\n}\n```\n\n### useMutation Hook\n\n```tsx\n\u002F\u002F hooks\u002FuseCreatePost.ts\nimport { useMutation, useQueryClient } from '@tanstack\u002Freact-query'\nimport { queryKeys } from '@\u002Flib\u002FqueryKeys'\nimport { createPost } from '@\u002Fapi\u002Fposts'\n\nexport function useCreatePost() {\n  const queryClient = useQueryClient()\n\n  return useMutation({\n    mutationFn: createPost,\n    onSuccess: (newPost) => {\n      \u002F\u002F Invalidate and refetch posts list\n      queryClient.invalidateQueries({\n        queryKey: queryKeys.posts.lists(),\n      })\n    },\n    onError: (error) => {\n      console.error('Failed to create post:', error)\n    },\n  })\n}\n\n\u002F\u002F Usage\nfunction CreatePostForm() {\n  const { mutate, isPending } = useCreatePost()\n\n  const handleSubmit = (data: CreatePostData) => {\n    mutate(data)\n  }\n\n  return (\n    \u003Cform onSubmit={handleSubmit}>\n      {\u002F* form fields *\u002F}\n      \u003Cbutton disabled={isPending}>\n        {isPending ? 'Creating...' : 'Create'}\n      \u003C\u002Fbutton>\n    \u003C\u002Fform>\n  )\n}\n```\n\n### Optimistic Updates\n\n```tsx\nexport function useUpdatePost() {\n  const queryClient = useQueryClient()\n\n  return useMutation({\n    mutationFn: updatePost,\n    onMutate: async (updatedPost) => {\n      \u002F\u002F Cancel outgoing refetches\n      await queryClient.cancelQueries({\n        queryKey: queryKeys.posts.detail(updatedPost.id),\n      })\n\n      \u002F\u002F Snapshot previous value\n      const previousPost = queryClient.getQueryData(\n        queryKeys.posts.detail(updatedPost.id)\n      )\n\n      \u002F\u002F Optimistically update\n      queryClient.setQueryData(\n        queryKeys.posts.detail(updatedPost.id),\n        updatedPost\n      )\n\n      return { previousPost }\n    },\n    onError: (err, updatedPost, context) => {\n      \u002F\u002F Rollback on error\n      queryClient.setQueryData(\n        queryKeys.posts.detail(updatedPost.id),\n        context?.previousPost\n      )\n    },\n    onSettled: (data, error, variables) => {\n      \u002F\u002F Refetch after settle\n      queryClient.invalidateQueries({\n        queryKey: queryKeys.posts.detail(variables.id),\n      })\n    },\n  })\n}\n```\n\n## Zustand Patterns\n\n### Basic Store\n\n```tsx\n\u002F\u002F stores\u002FuseCounterStore.ts\nimport { create } from 'zustand'\n\ninterface CounterState {\n  count: number\n  increment: () => void\n  decrement: () => void\n  reset: () => void\n}\n\nexport const useCounterStore = create\u003CCounterState>((set) => ({\n  count: 0,\n  increment: () => set((state) => ({ count: state.count + 1 })),\n  decrement: () => set((state) => ({ count: state.count - 1 })),\n  reset: () => set({ count: 0 }),\n}))\n\n\u002F\u002F Usage\nfunction Counter() {\n  const { count, increment, decrement } = useCounterStore()\n\n  return (\n    \u003Cdiv>\n      \u003Cspan>{count}\u003C\u002Fspan>\n      \u003Cbutton onClick={increment}>+\u003C\u002Fbutton>\n      \u003Cbutton onClick={decrement}>-\u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n### Store with TypeScript and Middleware\n\n```tsx\n\u002F\u002F stores\u002FuseAuthStore.ts\nimport { create } from 'zustand'\nimport { persist, devtools } from 'zustand\u002Fmiddleware'\n\ninterface User {\n  id: number\n  name: string\n  email: string\n}\n\ninterface AuthState {\n  user: User | null\n  isAuthenticated: boolean\n  login: (user: User) => void\n  logout: () => void\n}\n\n\u002F\u002F ✅ Never persist tokens to localStorage — use HttpOnly cookies server-side\nexport const useAuthStore = create\u003CAuthState>()(\n  devtools(\n    persist(\n      (set) => ({\n        user: null,\n        isAuthenticated: false,\n\n        login: (user) =>\n          set({\n            user,\n            isAuthenticated: true,\n          }),\n\n        logout: () =>\n          set({\n            user: null,\n            isAuthenticated: false,\n          }),\n      }),\n      {\n        name: 'auth-storage',\n        \u002F\u002F Only persist display info and auth flag — tokens must NOT be included\n        partialize: (state) => ({\n          user: state.user,\n          isAuthenticated: state.isAuthenticated,\n        }),\n      }\n    )\n  )\n)\n```\n\n### Selectors for Performance\n\n```tsx\n\u002F\u002F Use selectors to prevent unnecessary re-renders\nfunction UserName() {\n  \u002F\u002F Only re-renders when user.name changes\n  const name = useAuthStore((state) => state.user?.name)\n  return \u003Cspan>{name}\u003C\u002Fspan>\n}\n\n\u002F\u002F Multiple selectors\nfunction UserInfo() {\n  const user = useAuthStore((state) => state.user)\n  const isAuthenticated = useAuthStore((state) => state.isAuthenticated)\n\n  if (!isAuthenticated) return \u003CLoginButton \u002F>\n  return \u003Cspan>{user?.name}\u003C\u002Fspan>\n}\n```\n\n### Combining React Query + Zustand\n\n```tsx\n\u002F\u002F Server state: React Query (what comes from API)\nconst { data: posts } = usePosts()\n\n\u002F\u002F Client state: Zustand (UI state)\nconst { selectedPostId, selectPost } = useUIStore()\n\n\u002F\u002F Use together\nconst selectedPost = posts?.find((p) => p.id === selectedPostId)\n```\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nrules\u002Frq-usequery.md\nrules\u002Frq-query-keys.md\nrules\u002Frq-mutation-setup.md\nrules\u002Frq-optimistic-updates.md\nrules\u002Fzs-create-store.md\nrules\u002Fzs-persist.md\nrules\u002Frq-query-invalidation.md\nrules\u002Frq-prefetching.md\n```\n\n---\n\n## References\n\n### React Query (TanStack Query)\n1. [TanStack Query Documentation](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest)\n2. [React Query Overview](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Foverview)\n3. [Queries Guide](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Fqueries)\n4. [Mutations Guide](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Fmutations)\n5. [Query Keys Guide](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Fquery-keys)\n6. [Optimistic Updates](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Foptimistic-updates)\n7. [Infinite Queries](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Finfinite-queries)\n8. [Paginated Queries](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fguides\u002Fpaginated-queries)\n9. [React Query DevTools](https:\u002F\u002Ftanstack.com\u002Fquery\u002Flatest\u002Fdocs\u002Freact\u002Fdevtools)\n\n### Zustand\n1. [Zustand Demo](https:\u002F\u002Fzustand-demo.pmnd.rs)\n2. [Zustand GitHub](https:\u002F\u002Fgithub.com\u002Fpmndrs\u002Fzustand)\n3. [Getting Started](https:\u002F\u002Fdocs.pmnd.rs\u002Fzustand\u002Fgetting-started\u002Fintroduction)\n4. [TypeScript Guide](https:\u002F\u002Fdocs.pmnd.rs\u002Fzustand\u002Fguides\u002Ftypescript)\n5. [Persisting Store Data](https:\u002F\u002Fdocs.pmnd.rs\u002Fzustand\u002Fintegrations\u002Fpersisting-store-data)\n6. [Zustand Recipes](https:\u002F\u002Fgithub.com\u002Fpmndrs\u002Fzustand#recipes)\n\n---\n\n## License\n\nThis skill is provided as-is for educational and development purposes. React Query is MIT licensed by TanStack. Zustand is MIT licensed by Poimandres (pmnd.rs).\n",{"name":5,"license":14,"metadata":23,"description":7},{"author":24,"version":25},"agent-skills","1.1.0","main","45d5ac830c3e238eeba6d0b4e6fd7cf6b56bf380","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn","2026-09-09 16:05:56",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add davidanthonyn\u002Fclaude-skills --skill state-management",{"tool":37,"command":38},"bunx","bunx skills add davidanthonyn\u002Fclaude-skills --skill state-management",{"tool":40,"command":41},"pnpm","pnpm dlx skills add davidanthonyn\u002Fclaude-skills --skill state-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002FSKILL.md",true,[45,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,110,114,118,122,126,130,134,138,142,146,150,154,158,162],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"AGENTS.md","REFERENCE","参考文档",15055,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002FAGENTS.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"README.md",3439,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002FREADME.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"rules\u002F_sections.md",4795,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002F_sections.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"rules\u002F_template.md",2459,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002F_template.md",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"rules\u002Frq-cache-time.md",3940,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-cache-time.md",{"path":68,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":69,"sourceHtmlUrl":70},"rules\u002Frq-dependent-queries.md",6564,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-dependent-queries.md",{"path":72,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":73,"sourceHtmlUrl":74},"rules\u002Frq-enabled-option.md",4644,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-enabled-option.md",{"path":76,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":78},"rules\u002Frq-infinite-queries.md",6529,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-infinite-queries.md",{"path":80,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":81,"sourceHtmlUrl":82},"rules\u002Frq-initial-data.md",5637,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-initial-data.md",{"path":84,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":85,"sourceHtmlUrl":86},"rules\u002Frq-mutation-callbacks.md",5755,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-mutation-callbacks.md",{"path":88,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":89,"sourceHtmlUrl":90},"rules\u002Frq-mutation-setup.md",4855,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-mutation-setup.md",{"path":92,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":93,"sourceHtmlUrl":94},"rules\u002Frq-mutation-side-effects.md",7048,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-mutation-side-effects.md",{"path":96,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":97,"sourceHtmlUrl":98},"rules\u002Frq-mutation-variables.md",5798,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-mutation-variables.md",{"path":100,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":101,"sourceHtmlUrl":102},"rules\u002Frq-optimistic-updates.md",6596,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-optimistic-updates.md",{"path":104,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":105,"sourceHtmlUrl":106},"rules\u002Frq-paginated-queries.md",6909,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-paginated-queries.md",{"path":108,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":101,"sourceHtmlUrl":109},"rules\u002Frq-parallel-queries.md","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-parallel-queries.md",{"path":111,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":112,"sourceHtmlUrl":113},"rules\u002Frq-placeholder-data.md",4995,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-placeholder-data.md",{"path":115,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":116,"sourceHtmlUrl":117},"rules\u002Frq-prefetching.md",7539,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-prefetching.md",{"path":119,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":120,"sourceHtmlUrl":121},"rules\u002Frq-query-cancellation.md",6841,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-query-cancellation.md",{"path":123,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":124,"sourceHtmlUrl":125},"rules\u002Frq-query-functions.md",3954,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-query-functions.md",{"path":127,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":128,"sourceHtmlUrl":129},"rules\u002Frq-query-invalidation.md",7008,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-query-invalidation.md",{"path":131,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":132,"sourceHtmlUrl":133},"rules\u002Frq-query-keys.md",3037,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-query-keys.md",{"path":135,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":136,"sourceHtmlUrl":137},"rules\u002Frq-refetch-options.md",4680,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-refetch-options.md",{"path":139,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":140,"sourceHtmlUrl":141},"rules\u002Frq-retry-logic.md",5612,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-retry-logic.md",{"path":143,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":144,"sourceHtmlUrl":145},"rules\u002Frq-select-transform.md",5133,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-select-transform.md",{"path":147,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":148,"sourceHtmlUrl":149},"rules\u002Frq-stale-time.md",3593,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-stale-time.md",{"path":151,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":152,"sourceHtmlUrl":153},"rules\u002Frq-suspense-mode.md",6917,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-suspense-mode.md",{"path":155,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":156,"sourceHtmlUrl":157},"rules\u002Frq-usequery.md",5237,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Frq-usequery.md",{"path":159,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":160,"sourceHtmlUrl":161},"rules\u002Fzs-create-store.md",5907,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Fzs-create-store.md",{"path":163,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":164,"sourceHtmlUrl":165},"rules\u002Fzs-persist.md",6506,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fstate-management\u002Frules\u002Fzs-persist.md",[167,174,182,189,196,205],{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":18},"01M7AQPHJF528A4MD52YZEZV3R","zustand-state-management","Production-tested setup for Zustand state management in React applications with TypeScript.\nThis skill provides comprehensive patterns for building scalable, type-safe global state.\n\nUse when: setting up global state in React, migrating from Redux or Context API, implementing\nstate persistence with localStorage, configuring TypeScript with Zustand, using slices pattern\nfor modular stores, adding devtools middleware for debugging, handling Next.js SSR hydration,\nor encountering hydration errors, TypeScript inference issues, or persist middleware problems.\n\nPrevents 5 documented issues: Next.js hydration mismatches, TypeScript double parentheses\nsyntax errors, persist middleware export errors, infinite render loops, and slices pattern\ntype inference failures.\n\nKeywords: zustand, state management, React state, TypeScript state, persist middleware,\ndevtools, slices pattern, global state, React hooks, create store, useBoundStore,\nStateCreator, hydration error, text content mismatch, infinite render, localStorage,\nsessionStorage, immer middleware, shallow equality, selector pattern, zustand v5","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fzustand-state-management\u002FSKILL.md",[],[],{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":178,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":18},"01M7AQP2XJRPNYEH323GJ81NN5","zetic-mlange","Help users integrate the ZETIC Melange (MLange) on-device AI SDK into Android (Kotlin\u002FJava) and iOS (Swift) mobile apps. Use this skill whenever the user mentions Zetic, MLange, Melange, ZeticMLangeModel, ZeticMLangeLLMModel, ZeticMLangeHFModel, on-device NPU inference for mobile, or deploying ML models to Android\u002FiOS with NPU acceleration. Also trigger when users ask about running LLMs on-device with GGUF quantization, mobile NPU model deployment, or converting PyTorch\u002FONNX models for mobile inference. Covers general model inference, LLM inference (streaming token generation), and HuggingFace model loading.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FSKILL.md",[],[],{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":18},"01M7AQNEJHD27NNF5PYQDSW8B9","youtube-downloader","Download videos, audio, playlists, and channels from YouTube and 1000+ websites using yt-dlp. Supports quality selection, format conversion, subtitle download, playlist filtering, metadata extraction, thumbnail download, and batch operations. Use when downloading YouTube videos in any quality (4K, 8K, HDR), extracting audio as MP3\u002FM4A\u002FFLAC, downloading entire playlists\u002Fchannels, getting subtitles in multiple languages, converting to specific formats, downloading live streams, archiving content, or batch processing multiple URLs. Optimized for reliability with automatic retries, rate limiting, and error handling.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":18},"01M7AQJQSD2H04EE2EPNAQ8A3M","wordpress-plugin-core","This skill provides comprehensive knowledge for WordPress plugin development, covering core patterns, security best practices, database interactions, hooks\u002Ffilters, Settings API, custom post types, REST API, and AJAX. This skill should be used when creating WordPress plugins, troubleshooting security issues, implementing custom post types\u002Ftaxonomies, building admin interfaces, or working with the WordPress database.\n\nUse when: Creating new WordPress plugins, implementing nonces\u002Fsanitization\u002Fescaping, working with $wpdb and prepared statements, building Settings API pages, registering custom post types or taxonomies, implementing REST API endpoints, handling AJAX requests, debugging plugin activation\u002Fdeactivation issues, preventing SQL injection\u002FXSS\u002FCSRF vulnerabilities.\n\nKeywords: wordpress plugin development, wordpress security, wordpress hooks, wordpress filters, wordpress database, wpdb prepare, sanitize_text_field, esc_html, wp_nonce, custom post type, register_post_type, settings api, rest api, admin-ajax, wordpress sql injection, wordpress xss, wordpress csrf, plugin header, activation hook, deactivation hook, wordpress coding standards, wordpress plugin architecture","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":200,"licenseFileUrl":201,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":18},"01M7AQJ91T970QCFMN9R1EHZXV","webapp-testing","Test local web applications with Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, or inspect browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":18},"01M7AQJ5E89MS8C5K3GZTY4B48","web-performance-audit","Audit web performance using Chrome DevTools MCP. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fweb-performance-audit\u002FSKILL.md",[],[]]