[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EX93KC5VATHD1C172H8NCH":3,"skill-same:01M7EX93KC5VATHD1C172H8NCH":133},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7EX93KC5VATHD1C172H8NCH","tanstack-query-best-practices",null,"TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management. Activate when building data-driven React applications with server state.","Phenomenon-Studio\u002Fphenomenon-configs","Phenomenon-Studio","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F85674486?v=4","01M7EX2X2JF76C91JB202QMQHW","Phenomenon studio","01M7EX2X37T2C5FBHAH4B60YMX",1,"MIT","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tanstack-query-best-practices\ndescription: TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management. Activate when building data-driven React applications with server state.\n---\n\n# TanStack Query Best Practices\n\nComprehensive guidelines for implementing TanStack Query (React Query) patterns in React applications. These rules optimize data fetching, caching, mutations, and server state synchronization.\n\n## When to Apply\n\n- Creating new data fetching logic\n- Setting up query configurations\n- Implementing mutations and optimistic updates\n- Configuring caching strategies\n- Integrating with SSR\u002FSSG\n- Refactoring existing data fetching code\n\n## Rule Categories by Priority\n\n| Priority | Category | Rules | Impact |\n|----------|----------|-------|--------|\n| CRITICAL | Query Keys | 5 rules | Prevents cache bugs and data inconsistencies |\n| CRITICAL | Caching | 5 rules | Optimizes performance and data freshness |\n| HIGH | Mutations | 6 rules | Ensures data integrity and UI consistency |\n| HIGH | Error Handling | 3 rules | Prevents poor user experiences |\n| MEDIUM | Prefetching | 4 rules | Improves perceived performance |\n| MEDIUM | Parallel Queries | 2 rules | Enables dynamic parallel fetching |\n| MEDIUM | Infinite Queries | 3 rules | Prevents pagination bugs |\n| MEDIUM | SSR Integration | 4 rules | Enables proper hydration |\n| LOW | Performance | 4 rules | Reduces unnecessary re-renders |\n| LOW | Offline Support | 2 rules | Enables offline-first patterns |\n\n## Quick Reference\n\n### Query Keys (Prefix: `qk-`)\n\n- `qk-array-structure` — Always use arrays for query keys\n- `qk-include-dependencies` — Include all variables the query depends on\n- `qk-hierarchical-organization` — Organize keys hierarchically (entity → id → filters)\n- `qk-factory-pattern` — Use query key factories for complex applications\n- `qk-serializable` — Ensure all key parts are JSON-serializable\n\n### Caching (Prefix: `cache-`)\n\n- `cache-stale-time` — Set appropriate staleTime based on data volatility\n- `cache-gc-time` — Configure gcTime for inactive query retention\n- `cache-defaults` — Set sensible defaults at QueryClient level\n- `cache-invalidation` — Use targeted invalidation over broad patterns\n- `cache-placeholder-vs-initial` — Understand placeholder vs initial data differences\n\n### Mutations (Prefix: `mut-`)\n\n- `mut-invalidate-queries` — Always invalidate related queries after mutations\n- `mut-optimistic-updates` — Implement optimistic updates for responsive UI\n- `mut-rollback-context` — Provide rollback context from onMutate\n- `mut-error-handling` — Handle mutation errors gracefully\n- `mut-loading-states` — Use isPending for mutation loading states\n- `mut-mutation-state` — Use useMutationState for cross-component tracking\n\n### Error Handling (Prefix: `err-`)\n\n- `err-error-boundaries` — Use error boundaries with useQueryErrorResetBoundary\n- `err-retry-config` — Configure retry logic appropriately\n- `err-fallback-data` — Provide fallback data when appropriate\n\n### Prefetching (Prefix: `pf-`)\n\n- `pf-intent-prefetch` — Prefetch on user intent (hover, focus)\n- `pf-route-prefetch` — Prefetch data during route transitions\n- `pf-stale-time-config` — Set staleTime when prefetching\n- `pf-ensure-query-data` — Use ensureQueryData for conditional prefetching\n\n### Infinite Queries (Prefix: `inf-`)\n\n- `inf-page-params` — Always provide getNextPageParam\n- `inf-loading-guards` — Check isFetchingNextPage before fetching more\n- `inf-max-pages` — Consider maxPages for large datasets\n\n### SSR Integration (Prefix: `ssr-`)\n\n- `ssr-dehydration` — Use dehydrate\u002Fhydrate pattern for SSR\n- `ssr-client-per-request` — Create QueryClient per request\n- `ssr-stale-time-server` — Set higher staleTime on server\n- `ssr-hydration-boundary` — Wrap with HydrationBoundary\n\n### Parallel Queries (Prefix: `parallel-`)\n\n- `parallel-use-queries` — Use useQueries for dynamic parallel queries\n- `query-cancellation` — Implement query cancellation properly\n\n### Performance (Prefix: `perf-`)\n\n- `perf-select-transform` — Use select to transform\u002Ffilter data\n- `perf-structural-sharing` — Leverage structural sharing\n- `perf-notify-change-props` — Limit re-renders with notifyOnChangeProps\n- `perf-placeholder-data` — Use placeholderData for instant UI\n\n### Offline Support (Prefix: `offline-`)\n\n- `network-mode` — Configure network mode for offline support\n- `persist-queries` — Configure query persistence for offline support\n\n## How to Use\n\nEach rule file in the `rules\u002F` directory contains:\n1. **Explanation** — Why this pattern matters\n2. **Bad Example** — Anti-pattern to avoid\n3. **Good Example** — Recommended implementation\n4. **Context** — When to apply or skip this rule\n\n## Full Reference\n\nSee individual rule files in `rules\u002F` directory for detailed guidance and code examples.\n","# TanStack Query Best Practices\n\nComprehensive guidelines for implementing TanStack Query (React Query) patterns in React applications. These rules optimize data fetching, caching, mutations, and server state synchronization.\n\n## When to Apply\n\n- Creating new data fetching logic\n- Setting up query configurations\n- Implementing mutations and optimistic updates\n- Configuring caching strategies\n- Integrating with SSR\u002FSSG\n- Refactoring existing data fetching code\n\n## Rule Categories by Priority\n\n| Priority | Category | Rules | Impact |\n|----------|----------|-------|--------|\n| CRITICAL | Query Keys | 5 rules | Prevents cache bugs and data inconsistencies |\n| CRITICAL | Caching | 5 rules | Optimizes performance and data freshness |\n| HIGH | Mutations | 6 rules | Ensures data integrity and UI consistency |\n| HIGH | Error Handling | 3 rules | Prevents poor user experiences |\n| MEDIUM | Prefetching | 4 rules | Improves perceived performance |\n| MEDIUM | Parallel Queries | 2 rules | Enables dynamic parallel fetching |\n| MEDIUM | Infinite Queries | 3 rules | Prevents pagination bugs |\n| MEDIUM | SSR Integration | 4 rules | Enables proper hydration |\n| LOW | Performance | 4 rules | Reduces unnecessary re-renders |\n| LOW | Offline Support | 2 rules | Enables offline-first patterns |\n\n## Quick Reference\n\n### Query Keys (Prefix: `qk-`)\n\n- `qk-array-structure` — Always use arrays for query keys\n- `qk-include-dependencies` — Include all variables the query depends on\n- `qk-hierarchical-organization` — Organize keys hierarchically (entity → id → filters)\n- `qk-factory-pattern` — Use query key factories for complex applications\n- `qk-serializable` — Ensure all key parts are JSON-serializable\n\n### Caching (Prefix: `cache-`)\n\n- `cache-stale-time` — Set appropriate staleTime based on data volatility\n- `cache-gc-time` — Configure gcTime for inactive query retention\n- `cache-defaults` — Set sensible defaults at QueryClient level\n- `cache-invalidation` — Use targeted invalidation over broad patterns\n- `cache-placeholder-vs-initial` — Understand placeholder vs initial data differences\n\n### Mutations (Prefix: `mut-`)\n\n- `mut-invalidate-queries` — Always invalidate related queries after mutations\n- `mut-optimistic-updates` — Implement optimistic updates for responsive UI\n- `mut-rollback-context` — Provide rollback context from onMutate\n- `mut-error-handling` — Handle mutation errors gracefully\n- `mut-loading-states` — Use isPending for mutation loading states\n- `mut-mutation-state` — Use useMutationState for cross-component tracking\n\n### Error Handling (Prefix: `err-`)\n\n- `err-error-boundaries` — Use error boundaries with useQueryErrorResetBoundary\n- `err-retry-config` — Configure retry logic appropriately\n- `err-fallback-data` — Provide fallback data when appropriate\n\n### Prefetching (Prefix: `pf-`)\n\n- `pf-intent-prefetch` — Prefetch on user intent (hover, focus)\n- `pf-route-prefetch` — Prefetch data during route transitions\n- `pf-stale-time-config` — Set staleTime when prefetching\n- `pf-ensure-query-data` — Use ensureQueryData for conditional prefetching\n\n### Infinite Queries (Prefix: `inf-`)\n\n- `inf-page-params` — Always provide getNextPageParam\n- `inf-loading-guards` — Check isFetchingNextPage before fetching more\n- `inf-max-pages` — Consider maxPages for large datasets\n\n### SSR Integration (Prefix: `ssr-`)\n\n- `ssr-dehydration` — Use dehydrate\u002Fhydrate pattern for SSR\n- `ssr-client-per-request` — Create QueryClient per request\n- `ssr-stale-time-server` — Set higher staleTime on server\n- `ssr-hydration-boundary` — Wrap with HydrationBoundary\n\n### Parallel Queries (Prefix: `parallel-`)\n\n- `parallel-use-queries` — Use useQueries for dynamic parallel queries\n- `query-cancellation` — Implement query cancellation properly\n\n### Performance (Prefix: `perf-`)\n\n- `perf-select-transform` — Use select to transform\u002Ffilter data\n- `perf-structural-sharing` — Leverage structural sharing\n- `perf-notify-change-props` — Limit re-renders with notifyOnChangeProps\n- `perf-placeholder-data` — Use placeholderData for instant UI\n\n### Offline Support (Prefix: `offline-`)\n\n- `network-mode` — Configure network mode for offline support\n- `persist-queries` — Configure query persistence for offline support\n\n## How to Use\n\nEach rule file in the `rules\u002F` directory contains:\n1. **Explanation** — Why this pattern matters\n2. **Bad Example** — Anti-pattern to avoid\n3. **Good Example** — Recommended implementation\n4. **Context** — When to apply or skip this rule\n\n## Full Reference\n\nSee individual rule files in `rules\u002F` directory for detailed guidance and code examples.\n",{"name":5,"description":7},"main","a5c9ac2f39c1611831e417faea2e6d635699d9b5","template\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices",0,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio","https:\u002F\u002Fphenomenonstudio.com\u002F","Phenomenon is a digital product studio bolstering a core team of world-class developers, designers, and a flexible network of multi-specialized talent. ","2026-10-23 17:20:31",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Phenomenon-Studio\u002Fphenomenon-configs --skill tanstack-query-best-practices",{"tool":39,"command":40},"bunx","bunx skills add Phenomenon-Studio\u002Fphenomenon-configs --skill tanstack-query-best-practices",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Phenomenon-Studio\u002Fphenomenon-configs --skill tanstack-query-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002FSKILL.md",true,[47,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"rules\u002Fcache-gc-time.md","REFERENCE","参考文档",2892,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fcache-gc-time.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"rules\u002Fcache-invalidation.md",3686,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fcache-invalidation.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"rules\u002Fcache-placeholder-vs-initial.md",4749,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fcache-placeholder-vs-initial.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"rules\u002Fcache-stale-time.md",2551,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fcache-stale-time.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"rules\u002Ferr-error-boundaries.md",3640,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Ferr-error-boundaries.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"rules\u002Finf-page-params.md",3584,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Finf-page-params.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"rules\u002Fmut-invalidate-queries.md",3820,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fmut-invalidate-queries.md",{"path":78,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":79,"sourceHtmlUrl":80},"rules\u002Fmut-mutation-state.md",4204,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fmut-mutation-state.md",{"path":82,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":83,"sourceHtmlUrl":84},"rules\u002Fmut-optimistic-updates.md",4004,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fmut-optimistic-updates.md",{"path":86,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":87,"sourceHtmlUrl":88},"rules\u002Fnetwork-mode.md",4582,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fnetwork-mode.md",{"path":90,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":91,"sourceHtmlUrl":92},"rules\u002Fparallel-use-queries.md",3922,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fparallel-use-queries.md",{"path":94,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":95,"sourceHtmlUrl":96},"rules\u002Fperf-select-transform.md",3823,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fperf-select-transform.md",{"path":98,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":99,"sourceHtmlUrl":100},"rules\u002Fpersist-queries.md",4960,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fpersist-queries.md",{"path":102,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":103,"sourceHtmlUrl":104},"rules\u002Fpf-intent-prefetch.md",3361,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fpf-intent-prefetch.md",{"path":106,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":107,"sourceHtmlUrl":108},"rules\u002Fqk-array-structure.md",1377,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fqk-array-structure.md",{"path":110,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":111,"sourceHtmlUrl":112},"rules\u002Fqk-factory-pattern.md",3070,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fqk-factory-pattern.md",{"path":114,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":115,"sourceHtmlUrl":116},"rules\u002Fqk-hierarchical-organization.md",2117,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fqk-hierarchical-organization.md",{"path":118,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":119,"sourceHtmlUrl":120},"rules\u002Fqk-include-dependencies.md",1847,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fqk-include-dependencies.md",{"path":122,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":123,"sourceHtmlUrl":124},"rules\u002Fqk-serializable.md",2598,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fqk-serializable.md",{"path":126,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":127,"sourceHtmlUrl":128},"rules\u002Fquery-cancellation.md",4650,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fquery-cancellation.md",{"path":130,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":131,"sourceHtmlUrl":132},"rules\u002Fssr-dehydration.md",3857,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'next' else '' }}\u002F.agents\u002Fskills\u002Ftanstack-query-best-practices\u002Frules\u002Fssr-dehydration.md",[134,141,148,155,162,169],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":19},"01M7EXBNNR8YZB8PD7J8ZAB5FP","web-security","Enforce web security and avoid security vulnerabilities.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Fweb-security\u002FSKILL.md",[],[],{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":19},"01M7EXBJGWKB32NY4R2V141G0S","typescript","Write clean, efficient TypeScript code that follows project conventions and advanced type patterns. Use when writing or reviewing TypeScript code, defining types, creating generics, handling errors, or working with React components, Zod schemas, and TanStack libraries.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Ftypescript\u002FSKILL.md",[],[],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":19},"01M7EXBESDHFPHAZKN292SDB6E","tanstack-router","TanStack Router patterns for this repo — file-based routing, auth guards, search params, data loading, TanStack Query integration, navigation, and code splitting. Use when creating routes, adding pages, implementing auth flows, working with search\u002Fpath params, or integrating loaders with TanStack Query.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Ftanstack-router\u002FSKILL.md",[],[],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":19},"01M7EXBAZW0KSMGVDB9DW157SD","tanstack-query","TanStack Query patterns for this repo — queryOptions\u002FmutationOptions factories, query key hierarchies, service layer integration, optimistic updates, Suspense usage, error handling, and TanStack Router data loading. Use when creating queries, mutations, API services, query keys, cache invalidation, optimistic updates, or integrating data fetching with routes.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Ftanstack-query\u002FSKILL.md",[],[],{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":19},"01M7EXB6X2TG4HYWCYB293581T","tanstack-form","Build forms using TanStack Form with the project's useAppForm composition, composable field components, Zod validation schemas, FormFieldWrapper error tracking, and form.AppField vs form.Field patterns. Use when creating new forms, adding form fields, writing form validation, or working with TanStack Form in this project.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Ftanstack-form\u002FSKILL.md",[],[],{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":19},"01M7EXB4EXHFSSVY64QQAE77SA","react","Build clean, modern React components that apply common best practices and avoid common pitfalls like unnecessary state management or useEffect usage.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Freact\u002FSKILL.md",[],[]]