[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AG1D4APYHX0N9WQJ9N311E":3,"skill-same:01M6AG1D4APYHX0N9WQJ9N311E":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":54,"linkOnly":55,"markdownContent":56,"markdownBody":57,"frontMatter":58,"refName":61,"commitSha":62,"skillDirectory":63,"forksCount":64,"repositoryHtmlUrl":65,"repositoryHomepageUrl":66,"ownerHtmlUrl":67,"ownerBlogUrl":68,"ownerDescription":69,"updatedAt":70,"install":71,"resources":84},"01M6AG1D4APYHX0N9WQJ9N311E","tanstack-query-expert","TanStack Query 异步状态管理","Expert in TanStack Query (React Query) — asynchronous state management. Covers data fetching, stale time configuration, mutations, optimistic updates, and Next.js App Router (SSR) integration.","TanStack Query（React Query）异步状态管理专家，涵盖数据获取、stale time（过期时间）配置、变更操作（mutation）、乐观更新，以及 Next.js App Router（SSR）集成。","davila7\u002Fclaude-code-templates","davila7","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6216945?v=4","01M6ADEWWFPS191NFM0Y1EX1JH","Daniel Avila","01M6ADJHGM78PHQRD3XZTFDVKK",33602,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-development\u002Ftanstack-query-expert\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],"query","tanstack query expert","tanstack","tanstack query","expert","router","2026","react query","data fetching","updates","app","time","next","community","safe","Next.js","data","asynchronous","integration","state","state management","ssr","react","2026-11-10 10:12:30",false,"---\nname: tanstack-query-expert\ndescription: \"Expert in TanStack Query (React Query) — asynchronous state management. Covers data fetching, stale time configuration, mutations, optimistic updates, and Next.js App Router (SSR) integration.\"\nmetadata:\n  risk: safe\n  source: community\n  date_added: \"2026-03-07\"\n---\n\n# TanStack Query Expert\n\nYou are a production-grade TanStack Query (formerly React Query) expert. You help developers build robust, performant asynchronous state management layers in React and Next.js applications. You master declarative data fetching, cache invalidation, optimistic UI updates, background syncing, error boundaries, and server-side rendering (SSR) hydration patterns.\n\n## When to Use This Skill\n\n- Use when setting up or refactoring data fetching logic (replacing `useEffect` + `useState`)\n- Use when designing query keys (Array-based, strictly typed keys)\n- Use when configuring global or query-specific `staleTime`, `gcTime`, and `retry` behavior\n- Use when writing `useMutation` hooks for POST\u002FPUT\u002FDELETE requests\n- Use when invalidating the cache (`queryClient.invalidateQueries`) after a mutation\n- Use when implementing Optimistic Updates for instant UX feedback\n- Use when integrating TanStack Query with Next.js App Router (Server Components + Client Boundary hydration)\n\n## Core Concepts\n\n### Why TanStack Query?\n\nTanStack Query is not just for fetching data; it's an **asynchronous state manager**. It handles caching, background updates, deduplication of multiple requests for the same data, pagination, and out-of-the-box loading\u002Ferror states. \n\n**Rule of Thumb:** Never use `useEffect` to fetch data if TanStack Query is available in the stack.\n\n## Query Definition Patterns\n\n### The Custom Hook Pattern (Best Practice)\n\nAlways abstract `useQuery` calls into custom hooks to encapsulate the fetching logic, TypeScript types, and query keys.\n\n```typescript\nimport { useQuery } from '@tanstack\u002Freact-query';\n\n\u002F\u002F 1. Define strict types\ntype User = { id: string; name: string; status: 'active' | 'inactive' };\n\n\u002F\u002F 2. Define the fetcher function\nconst fetchUser = async (userId: string): Promise\u003CUser> => {\n  const res = await fetch(`\u002Fapi\u002Fusers\u002F${userId}`);\n  if (!res.ok) throw new Error('Failed to fetch user');\n  return res.json();\n};\n\n\u002F\u002F 3. Export a custom hook\nexport const useUser = (userId: string) => {\n  return useQuery({\n    queryKey: ['users', userId], \u002F\u002F Array-based query key\n    queryFn: () => fetchUser(userId),\n    staleTime: 1000 * 60 * 5, \u002F\u002F Data is fresh for 5 minutes (no background refetching)\n    enabled: !!userId, \u002F\u002F Dependent query: only run if userId exists\n  });\n};\n```\n\n### Advanced Query Keys\n\nQuery keys uniquely identify the cache. They must be arrays, and order matters.\n\n```typescript\n\u002F\u002F Filtering \u002F Sorting\nuseQuery({\n  queryKey: ['issues', { status: 'open', sort: 'desc' }],\n  queryFn: () => fetchIssues({ status: 'open', sort: 'desc' })\n});\n\n\u002F\u002F Factory pattern for query keys (Highly recommended for large apps)\nexport const issueKeys = {\n  all: ['issues'] as const,\n  lists: () => [...issueKeys.all, 'list'] as const,\n  list: (filters: string) => [...issueKeys.lists(), { filters }] as const,\n  details: () => [...issueKeys.all, 'detail'] as const,\n  detail: (id: number) => [...issueKeys.details(), id] as const,\n};\n```\n\n## Mutations & Cache Invalidation\n\n### Basic Mutation with Invalidation\n\nWhen you modify data on the server, you must tell the client cache that the old data is now stale.\n\n```typescript\nimport { useMutation, useQueryClient } from '@tanstack\u002Freact-query';\n\nexport const useCreatePost = () => {\n  const queryClient = useQueryClient();\n\n  return useMutation({\n    mutationFn: async (newPost: { title: string }) => {\n      const res = await fetch('\u002Fapi\u002Fposts', {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify(newPost),\n      });\n      return res.json();\n    },\n    \u002F\u002F On success, invalidate the 'posts' cache to trigger a background refetch\n    onSuccess: () => {\n      queryClient.invalidateQueries({ queryKey: ['posts'] });\n    },\n  });\n};\n```\n\n### Optimistic Updates\n\nGive the user instant feedback by updating the cache *before* the server responds, and rolling back if the request fails.\n\n```typescript\nexport const useUpdateTodo = () => {\n  const queryClient = useQueryClient();\n\n  return useMutation({\n    mutationFn: updateTodoFn,\n    \n    \u002F\u002F 1. Triggered immediately when mutate() is called\n    onMutate: async (newTodo) => {\n      \u002F\u002F Cancel any outgoing refetches so they don't overwrite our optimistic update\n      await queryClient.cancelQueries({ queryKey: ['todos'] });\n\n      \u002F\u002F Snapshot the previous value\n      const previousTodos = queryClient.getQueryData(['todos']);\n\n      \u002F\u002F Optimistically update to the new value\n      queryClient.setQueryData(['todos'], (old: any) => \n        old.map((todo: any) => todo.id === newTodo.id ? { ...todo, ...newTodo } : todo)\n      );\n\n      \u002F\u002F Return a context object with the snapshotted value\n      return { previousTodos };\n    },\n    \n    \u002F\u002F 2. If the mutation fails, use the context returned from onMutate to roll back\n    onError: (err, newTodo, context) => {\n      queryClient.setQueryData(['todos'], context?.previousTodos);\n    },\n    \n    \u002F\u002F 3. Always refetch after error or success to ensure server sync\n    onSettled: () => {\n      queryClient.invalidateQueries({ queryKey: ['todos'] });\n    },\n  });\n};\n```\n\n## Next.js App Router Integration\n\n### Initializing the Provider\n\n```typescript\n\u002F\u002F app\u002Fproviders.tsx\n'use client'\nimport { QueryClient, QueryClientProvider } from '@tanstack\u002Freact-query'\nimport { useState } from 'react'\n\nexport default function Providers({ children }: { children: React.ReactNode }) {\n  const [queryClient] = useState(\n    () =>\n      new QueryClient({\n        defaultOptions: {\n          queries: {\n            staleTime: 60 * 1000, \u002F\u002F 1 minute\n            refetchOnWindowFocus: false, \u002F\u002F Prevents aggressive refetching on tab switch\n          },\n        },\n      })\n  )\n\n  return (\n    \u003CQueryClientProvider client={queryClient}>\n      {children}\n    \u003C\u002FQueryClientProvider>\n  )\n}\n```\n\n### Server Component Pre-fetching (Hydration)\n\nPre-fetch data on the server and pass it to the client without prop-drilling or `initialData`.\n\n```typescript\n\u002F\u002F app\u002Fposts\u002Fpage.tsx (Server Component)\nimport { dehydrate, HydrationBoundary, QueryClient } from '@tanstack\u002Freact-query';\nimport PostsList from '.\u002FPostsList'; \u002F\u002F Client Component\n\nexport default async function PostsPage() {\n  const queryClient = new QueryClient();\n\n  \u002F\u002F Prefetch the data on the server\n  await queryClient.prefetchQuery({\n    queryKey: ['posts'],\n    queryFn: fetchPostsServerSide,\n  });\n\n  \u002F\u002F Dehydrate the cache and pass it to the HydrationBoundary\n  return (\n    \u003CHydrationBoundary state={dehydrate(queryClient)}>\n      \u003CPostsList \u002F>\n    \u003C\u002FHydrationBoundary>\n  );\n}\n```\n\n```typescript\n\u002F\u002F app\u002Fposts\u002FPostsList.tsx (Client Component)\n'use client'\nimport { useQuery } from '@tanstack\u002Freact-query';\n\nexport default function PostsList() {\n  \u002F\u002F This will NOT trigger a network request on mount! \n  \u002F\u002F It reads instantly from the dehydrated server cache.\n  const { data } = useQuery({\n    queryKey: ['posts'],\n    queryFn: fetchPostsClientSide,\n  });\n\n  return \u003Cdiv>{data.map(post => \u003Cp key={post.id}>{post.title}\u003C\u002Fp>)}\u003C\u002Fdiv>;\n}\n```\n\n## Best Practices\n\n- ✅ **Do:** Create Query Key factories so you don't misspell `['users']` vs `['user']` across different files.\n- ✅ **Do:** Set a global `staleTime` (e.g., `1000 * 60`) if your data doesn't change every second. The default `staleTime` is `0`, meaning TanStack Query will trigger a background refetch on every component remount by default.\n- ✅ **Do:** Use `queryClient.setQueryData` sparingly. It's usually better to just `invalidateQueries` and let TanStack Query refetch the fresh data organically.\n- ✅ **Do:** Abstract all `useMutation` and `useQuery` calls into custom hooks. Views should only say `const { mutate } = useCreatePost()`.\n- ❌ **Don't:** Pass primitive callbacks inline directly to `useQuery` without memoization if you rely on closures. (Instead, rely on the `queryKey` dependency array).\n- ❌ **Don't:** Sync query data into local React state (e.g., `useEffect(() => setLocalState(data), [data])`). Use the query data directly. If you need derived state, derive it during render.\n\n## Troubleshooting\n\n**Problem:** Infinite fetching loop in the network tab.\n**Solution:** Check your `queryFn`. If your `fetch` logic isn't structured correctly, or throws an unhandled exception before hitting the return, TanStack Query will retry automatically up to 3 times (default). If wrapped in an unstable `useEffect`, it loops infinitely. Check `retry: false` for debugging.\n\n**Problem:** `staleTime` vs `gcTime` (formerly `cacheTime`) confusion.\n**Solution:** `staleTime` governs when a background refetch is triggered. `gcTime` governs how long the inactive data stays in memory after the component unmounts. If `gcTime` \u003C `staleTime`, data will be deleted before it even gets stale!\n","# TanStack Query Expert\n\nYou are a production-grade TanStack Query (formerly React Query) expert. You help developers build robust, performant asynchronous state management layers in React and Next.js applications. You master declarative data fetching, cache invalidation, optimistic UI updates, background syncing, error boundaries, and server-side rendering (SSR) hydration patterns.\n\n## When to Use This Skill\n\n- Use when setting up or refactoring data fetching logic (replacing `useEffect` + `useState`)\n- Use when designing query keys (Array-based, strictly typed keys)\n- Use when configuring global or query-specific `staleTime`, `gcTime`, and `retry` behavior\n- Use when writing `useMutation` hooks for POST\u002FPUT\u002FDELETE requests\n- Use when invalidating the cache (`queryClient.invalidateQueries`) after a mutation\n- Use when implementing Optimistic Updates for instant UX feedback\n- Use when integrating TanStack Query with Next.js App Router (Server Components + Client Boundary hydration)\n\n## Core Concepts\n\n### Why TanStack Query?\n\nTanStack Query is not just for fetching data; it's an **asynchronous state manager**. It handles caching, background updates, deduplication of multiple requests for the same data, pagination, and out-of-the-box loading\u002Ferror states. \n\n**Rule of Thumb:** Never use `useEffect` to fetch data if TanStack Query is available in the stack.\n\n## Query Definition Patterns\n\n### The Custom Hook Pattern (Best Practice)\n\nAlways abstract `useQuery` calls into custom hooks to encapsulate the fetching logic, TypeScript types, and query keys.\n\n```typescript\nimport { useQuery } from '@tanstack\u002Freact-query';\n\n\u002F\u002F 1. Define strict types\ntype User = { id: string; name: string; status: 'active' | 'inactive' };\n\n\u002F\u002F 2. Define the fetcher function\nconst fetchUser = async (userId: string): Promise\u003CUser> => {\n  const res = await fetch(`\u002Fapi\u002Fusers\u002F${userId}`);\n  if (!res.ok) throw new Error('Failed to fetch user');\n  return res.json();\n};\n\n\u002F\u002F 3. Export a custom hook\nexport const useUser = (userId: string) => {\n  return useQuery({\n    queryKey: ['users', userId], \u002F\u002F Array-based query key\n    queryFn: () => fetchUser(userId),\n    staleTime: 1000 * 60 * 5, \u002F\u002F Data is fresh for 5 minutes (no background refetching)\n    enabled: !!userId, \u002F\u002F Dependent query: only run if userId exists\n  });\n};\n```\n\n### Advanced Query Keys\n\nQuery keys uniquely identify the cache. They must be arrays, and order matters.\n\n```typescript\n\u002F\u002F Filtering \u002F Sorting\nuseQuery({\n  queryKey: ['issues', { status: 'open', sort: 'desc' }],\n  queryFn: () => fetchIssues({ status: 'open', sort: 'desc' })\n});\n\n\u002F\u002F Factory pattern for query keys (Highly recommended for large apps)\nexport const issueKeys = {\n  all: ['issues'] as const,\n  lists: () => [...issueKeys.all, 'list'] as const,\n  list: (filters: string) => [...issueKeys.lists(), { filters }] as const,\n  details: () => [...issueKeys.all, 'detail'] as const,\n  detail: (id: number) => [...issueKeys.details(), id] as const,\n};\n```\n\n## Mutations & Cache Invalidation\n\n### Basic Mutation with Invalidation\n\nWhen you modify data on the server, you must tell the client cache that the old data is now stale.\n\n```typescript\nimport { useMutation, useQueryClient } from '@tanstack\u002Freact-query';\n\nexport const useCreatePost = () => {\n  const queryClient = useQueryClient();\n\n  return useMutation({\n    mutationFn: async (newPost: { title: string }) => {\n      const res = await fetch('\u002Fapi\u002Fposts', {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify(newPost),\n      });\n      return res.json();\n    },\n    \u002F\u002F On success, invalidate the 'posts' cache to trigger a background refetch\n    onSuccess: () => {\n      queryClient.invalidateQueries({ queryKey: ['posts'] });\n    },\n  });\n};\n```\n\n### Optimistic Updates\n\nGive the user instant feedback by updating the cache *before* the server responds, and rolling back if the request fails.\n\n```typescript\nexport const useUpdateTodo = () => {\n  const queryClient = useQueryClient();\n\n  return useMutation({\n    mutationFn: updateTodoFn,\n    \n    \u002F\u002F 1. Triggered immediately when mutate() is called\n    onMutate: async (newTodo) => {\n      \u002F\u002F Cancel any outgoing refetches so they don't overwrite our optimistic update\n      await queryClient.cancelQueries({ queryKey: ['todos'] });\n\n      \u002F\u002F Snapshot the previous value\n      const previousTodos = queryClient.getQueryData(['todos']);\n\n      \u002F\u002F Optimistically update to the new value\n      queryClient.setQueryData(['todos'], (old: any) => \n        old.map((todo: any) => todo.id === newTodo.id ? { ...todo, ...newTodo } : todo)\n      );\n\n      \u002F\u002F Return a context object with the snapshotted value\n      return { previousTodos };\n    },\n    \n    \u002F\u002F 2. If the mutation fails, use the context returned from onMutate to roll back\n    onError: (err, newTodo, context) => {\n      queryClient.setQueryData(['todos'], context?.previousTodos);\n    },\n    \n    \u002F\u002F 3. Always refetch after error or success to ensure server sync\n    onSettled: () => {\n      queryClient.invalidateQueries({ queryKey: ['todos'] });\n    },\n  });\n};\n```\n\n## Next.js App Router Integration\n\n### Initializing the Provider\n\n```typescript\n\u002F\u002F app\u002Fproviders.tsx\n'use client'\nimport { QueryClient, QueryClientProvider } from '@tanstack\u002Freact-query'\nimport { useState } from 'react'\n\nexport default function Providers({ children }: { children: React.ReactNode }) {\n  const [queryClient] = useState(\n    () =>\n      new QueryClient({\n        defaultOptions: {\n          queries: {\n            staleTime: 60 * 1000, \u002F\u002F 1 minute\n            refetchOnWindowFocus: false, \u002F\u002F Prevents aggressive refetching on tab switch\n          },\n        },\n      })\n  )\n\n  return (\n    \u003CQueryClientProvider client={queryClient}>\n      {children}\n    \u003C\u002FQueryClientProvider>\n  )\n}\n```\n\n### Server Component Pre-fetching (Hydration)\n\nPre-fetch data on the server and pass it to the client without prop-drilling or `initialData`.\n\n```typescript\n\u002F\u002F app\u002Fposts\u002Fpage.tsx (Server Component)\nimport { dehydrate, HydrationBoundary, QueryClient } from '@tanstack\u002Freact-query';\nimport PostsList from '.\u002FPostsList'; \u002F\u002F Client Component\n\nexport default async function PostsPage() {\n  const queryClient = new QueryClient();\n\n  \u002F\u002F Prefetch the data on the server\n  await queryClient.prefetchQuery({\n    queryKey: ['posts'],\n    queryFn: fetchPostsServerSide,\n  });\n\n  \u002F\u002F Dehydrate the cache and pass it to the HydrationBoundary\n  return (\n    \u003CHydrationBoundary state={dehydrate(queryClient)}>\n      \u003CPostsList \u002F>\n    \u003C\u002FHydrationBoundary>\n  );\n}\n```\n\n```typescript\n\u002F\u002F app\u002Fposts\u002FPostsList.tsx (Client Component)\n'use client'\nimport { useQuery } from '@tanstack\u002Freact-query';\n\nexport default function PostsList() {\n  \u002F\u002F This will NOT trigger a network request on mount! \n  \u002F\u002F It reads instantly from the dehydrated server cache.\n  const { data } = useQuery({\n    queryKey: ['posts'],\n    queryFn: fetchPostsClientSide,\n  });\n\n  return \u003Cdiv>{data.map(post => \u003Cp key={post.id}>{post.title}\u003C\u002Fp>)}\u003C\u002Fdiv>;\n}\n```\n\n## Best Practices\n\n- ✅ **Do:** Create Query Key factories so you don't misspell `['users']` vs `['user']` across different files.\n- ✅ **Do:** Set a global `staleTime` (e.g., `1000 * 60`) if your data doesn't change every second. The default `staleTime` is `0`, meaning TanStack Query will trigger a background refetch on every component remount by default.\n- ✅ **Do:** Use `queryClient.setQueryData` sparingly. It's usually better to just `invalidateQueries` and let TanStack Query refetch the fresh data organically.\n- ✅ **Do:** Abstract all `useMutation` and `useQuery` calls into custom hooks. Views should only say `const { mutate } = useCreatePost()`.\n- ❌ **Don't:** Pass primitive callbacks inline directly to `useQuery` without memoization if you rely on closures. (Instead, rely on the `queryKey` dependency array).\n- ❌ **Don't:** Sync query data into local React state (e.g., `useEffect(() => setLocalState(data), [data])`). Use the query data directly. If you need derived state, derive it during render.\n\n## Troubleshooting\n\n**Problem:** Infinite fetching loop in the network tab.\n**Solution:** Check your `queryFn`. If your `fetch` logic isn't structured correctly, or throws an unhandled exception before hitting the return, TanStack Query will retry automatically up to 3 times (default). If wrapped in an unstable `useEffect`, it loops infinitely. Check `retry: false` for debugging.\n\n**Problem:** `staleTime` vs `gcTime` (formerly `cacheTime`) confusion.\n**Solution:** `staleTime` governs when a background refetch is triggered. `gcTime` governs how long the inactive data stays in memory after the component unmounts. If `gcTime` \u003C `staleTime`, data will be deleted before it even gets stale!\n",{"name":5,"metadata":59,"description":7},{"risk":45,"source":44,"date_added":60},"2026-03-07","main","2b749c82b5d11fac39d9a6e021ce3f5b8a541bd1","cli-tool\u002Fcomponents\u002Fskills\u002Fweb-development\u002Ftanstack-query-expert",3963,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates","https:\u002F\u002Faitmpl.com","https:\u002F\u002Fgithub.com\u002Fdavila7","https:\u002F\u002Fdanielavila.me","Building AI dev tools with LLMs","2026-11-15 01:32:48",{"source":9,"skillName":5,"commands":72,"prompt":82,"zipAvailable":83},[73,76,79],{"tool":74,"command":75},"npx","npx skills add davila7\u002Fclaude-code-templates --skill tanstack-query-expert",{"tool":77,"command":78},"bunx","bunx skills add davila7\u002Fclaude-code-templates --skill tanstack-query-expert",{"tool":80,"command":81},"pnpm","pnpm dlx skills add davila7\u002Fclaude-code-templates --skill tanstack-query-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-development\u002Ftanstack-query-expert\u002FSKILL.md",true,[],[86,113,139,162,195,223],{"skillNo":87,"name":88,"nameZh":17,"description":89,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":54},"01M70NHBTQ8BV0A2SCAZXEPHCX","wealthville-pool-scoring","Score DeFi liquidity pools before providing liquidity. Returns a 0-100 pool score and an Enter\u002FHold\u002FExit\u002FReduce\u002FAvoid verdict with calibrated confidence for ~68,800 Solana pools and 575 EVM pools, plus a public miss-inclusive track record. Use when asked whether a pool is worth LPing into, which pools look best right now, or how accurate the scores have actually been.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-data\u002Fwealthville-pool-scoring\u002FSKILL.md",[],[93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],"scoring","pool","wealthville pool scoring","liquidity","which","for","exit","now","use","when","reduce","with","record","track","verdict","evm","solana","how","public","look",{"skillNo":114,"name":115,"nameZh":17,"description":116,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":54},"01M70MB6VR8ERJ4EM8D5KHBMEV","technical-debt-auditor","Scans a codebase and produces a quantified technical debt report with a prioritized remediation plan. Analyzes dead code, TODO\u002FFIXME\u002FHACK markers, dependency staleness, complexity hotspots, code duplication signals, test coverage gaps, unused exports, and outdated patterns. Use this skill when the user asks to audit their codebase for tech debt, wants a health check of their code quality, says things like \"where should I focus refactoring\", \"find code smells\", \"audit my codebase\", \"what technical debt do we have\", \"prioritize cleanup work\", or asks about code quality metrics. Also trigger when the user mentions \"code rot\", \"legacy cleanup\", \"refactoring priorities\", or wants to understand the overall health of a project before a major effort. Trigger even if the user doesn't say \"technical debt\" explicitly — any request to systematically assess code quality and identify improvement priorities belongs here.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Ftechnical-debt-auditor\u002FSKILL.md",[],[120,121,122,123,124,125,126,127,128,129,130,102,131,132,133,134,135,136,137,138],"technical debt","debt","technical","technical debt auditor","auditor","coverage","complexity","markers","project","cleanup","unused","code","todo","work","plan","focus","signals","audit","dependency",{"skillNo":140,"name":141,"nameZh":17,"description":142,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":54},"01M70KPYH9QNHCNME5GJQGE22K","readonly-sql-guard","Make an agent's database access provably read-only. Use when an agent runs caller-supplied SQL against a production\u002FERP\u002Fanalytics database (a \"query\" MCP tool, text-to-SQL, an admin console), or when reviewing DB-access code for write\u002FDDL\u002Fside-effect\u002Ftransaction-escape risks. Checks what a statement CALLS, not just its shape.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdatabase\u002Freadonly-sql-guard\u002FSKILL.md",[],[146,147,148,149,150,151,152,98,153,154,155,156,157,158,159,101,160,161,102,31],"readonly","guard","sql guard","sql","readonly sql guard","erp","effect","read-only","db","just","tool","calls","only","MCP","access","database",{"skillNo":163,"name":164,"nameZh":165,"description":166,"descriptionZh":167,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":168,"licenseFileUrl":169,"sourceHtmlUrl":170,"categories":171,"keywords":174,"publishedAt":54},"01M6AFY6F7CC2BBZP1QD6VTNVC","web-artifacts-builder","Claude 网页 Artifact 构建","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","用于创建精细的、多组件的 claude.ai HTML artifact 的工具套件，采用现代前端 Web 技术（React、Tailwind CSS、shadcn\u002Fui）。适用于需要状态管理、路由或 shadcn\u002Fui 组件的复杂 artifact —— 不适用于简单的单文件 HTML\u002FJSX artifact。","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[172,173],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[175,176,177,178,179,50,180,51,181,182,183,184,185,186,187,188,53,189,190,191,192,193,98,194],"artifacts builder","web","web artifacts builder","artifacts","builder","routing","component","css","frontend","ui","Tools","file","components","shadcn","Tailwind","suite","jsx","html","single-file","ui components",{"skillNo":196,"name":197,"nameZh":198,"description":199,"descriptionZh":200,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":168,"licenseFileUrl":201,"sourceHtmlUrl":202,"categories":203,"keywords":210,"publishedAt":54},"01M6AFWF33SFV9Z3SF4PEEE4BF","webapp-testing","Playwright Web 应用测试","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","使用 Playwright 与本地 Web 应用进行交互和测试的工具包。支持验证前端功能、调试 UI 行为、捕获浏览器截图以及查看浏览器日志。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[204,207],{"categoryNo":205,"categoryName":206,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":208,"categoryName":209,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[211,212,213,214,215,176,216,183,184,217,218,219,220,98,221,104,222],"webapp testing","testing","webapp","browser","playwright","applications","debugging","toolkit","logs","screenshots","local","behavior",{"skillNo":224,"name":225,"nameZh":226,"description":227,"descriptionZh":228,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":168,"licenseFileUrl":229,"sourceHtmlUrl":230,"categories":231,"keywords":238,"publishedAt":54},"01M6AF67Q67JJJ5V51JR2P52KA","discernment-nudge","回复事实核查追问","After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.","在你给出用户可能据以行动的实质性答案或草稿之后——建议或推荐、起草的工件（如目标、计划、推介、提案或电子邮件）、估计或预测、数据分析或解读、他们可能依赖的事实声明，或多步骤论证——在最终确定回复之前调用本技能，然后，如适用，附加 2-3 个简短的后续问题，每个问题都与你刚刚产出的具体内容相关，帮助用户核查关键事实、探究推理或假设，并注意到缺失的上下文。每次对话最多执行一次。当用户询问琐碎的操作方法或简单查找、想要纯教育性解释、仅要求根据提供的内容格式化\u002F转换\u002F组装文件、正在编写将要运行的代码、正在进行创意写作或休闲聊天，或已经要求你复核、引用或审查时跳过——技能文件解释了这些边界和确切的输出格式。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fdiscernment-nudge\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fdiscernment-nudge\u002FSKILL.md",[232,235],{"categoryNo":233,"categoryName":234,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TMSBZZX4V1THHNVC815","回答复核",{"categoryNo":236,"categoryName":237,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[239,240,241,242,243,244,47,245,178,246,186,131,247,248,249,250,251,158,252,102,253,254,255,256,257,110,258],"discernment nudge","nudge","interpretation","help","run","reasoning","writing","lookup","content","review","conversation","short","up","invoke","you","analysis","claims","argument","assemble","recommendations"]