[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EGAX86Q21MGWF071KB9BGP":3,"skill-same:01M6EGAX86Q21MGWF071KB9BGP":123},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EGAX86Q21MGWF071KB9BGP","tanstack",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Ftanstack\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# TanStack\n\n## Overview\n\nThe TanStack ecosystem provides type-safe client libraries for React: Query for declarative data fetching and caching, Router for fully typed routing with search parameters, Table for headless data tables with sorting\u002Ffiltering\u002Fpagination, and Virtual for rendering large lists efficiently.\n\n## Instructions\n\n- When fetching data, use `useQuery()` with hierarchical query keys (e.g., `[\"users\", userId, \"posts\"]`) and configure `staleTime` based on freshness needs (0 for real-time, 5 minutes for dashboards, Infinity for static data).\n- When performing mutations, use `useMutation()` with `onSuccess` for cache invalidation via `queryClient.invalidateQueries()`, and `onMutate` for optimistic updates with rollback.\n- When building tables, use TanStack Table's headless approach with typed column definitions, and combine with `@tanstack\u002Freact-virtual` for datasets with 10,000+ rows.\n- When routing, use TanStack Router for fully typed route parameters and search params with Zod validation, file-based routes with automatic type generation, and route-level data loading.\n- When handling pagination, use `useInfiniteQuery()` for infinite scroll or cursor-based patterns, and server-side pagination in TanStack Table.\n- When prefetching, use `queryClient.prefetchQuery()` for anticipated navigation and `useSuspenseQuery()` for React Suspense integration.\n- When virtualizing lists, use `@tanstack\u002Freact-virtual` with `estimateSize` for scroll position prediction and support for dynamic, variable-height items.\n\n## Examples\n\n### Example 1: Build a data dashboard with Query and Table\n\n**User request:** \"Create a dashboard with server-paginated data table and real-time stats\"\n\n**Actions:**\n1. Set up TanStack Query with appropriate `staleTime` and refetch intervals for stats\n2. Define TanStack Table with typed columns, server-side sorting and pagination\n3. Implement filter controls with column filters and global search\n4. Add optimistic updates for inline row editing with mutation rollback\n\n**Output:** A dashboard with efficient data fetching, server-managed table pagination, and instant edit feedback.\n\n### Example 2: Add type-safe routing with data prefetching\n\n**User request:** \"Set up TanStack Router with typed search parameters and data preloading\"\n\n**Actions:**\n1. Define routes with typed parameters and Zod-validated search params\n2. Add route loaders for data fetching with built-in caching\n3. Configure `\u003CLink>` components with type-checked params and search params\n4. Enable prefetching on hover for instant navigation\n\n**Output:** A fully typed routing layer where invalid params cause TypeScript errors at compile time.\n\n## Guidelines\n\n- Use query key factories for consistent cache keys: `const userKeys = { all: [\"users\"], detail: (id) => [\"users\", id] }`.\n- Set `staleTime` based on data freshness needs: 0 for real-time, 5 minutes for dashboards, Infinity for static data.\n- Always define `onError` for mutations; silent failures confuse users.\n- Use `placeholderData` instead of `initialData` for loading states; placeholder does not write to cache.\n- Use TanStack Table with `@tanstack\u002Freact-virtual` for large datasets; do not render thousands of DOM nodes.\n- Keep query functions pure: they receive `queryKey` and return data with no side effects.\n- Use `queryClient.invalidateQueries()` after mutations instead of manual cache updates for simplicity.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Ftanstack",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill tanstack",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill tanstack",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill tanstack","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Ftanstack\u002FSKILL.md",true,[45,51,57,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"customize.toml","OTHER","其他",1614,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fcustomize.toml",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"data\u002Fdomain-complexity.csv","ASSET","资产文件",7324,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fdata\u002Fdomain-complexity.csv",{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"data\u002Fprd-purpose.md","REFERENCE","参考文档",7246,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fdata\u002Fprd-purpose.md",{"path":64,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":65,"sourceHtmlUrl":66},"data\u002Fproject-types.csv",3144,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fdata\u002Fproject-types.csv",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"steps-v\u002Fstep-v-01-discovery.md",7447,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-01-discovery.md",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"steps-v\u002Fstep-v-02-format-detection.md",6642,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-02-format-detection.md",{"path":76,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":77,"sourceHtmlUrl":78},"steps-v\u002Fstep-v-02b-parity-check.md",6561,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-02b-parity-check.md",{"path":80,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":81,"sourceHtmlUrl":82},"steps-v\u002Fstep-v-03-density-validation.md",5903,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-03-density-validation.md",{"path":84,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":85,"sourceHtmlUrl":86},"steps-v\u002Fstep-v-04-brief-coverage-validation.md",7350,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-04-brief-coverage-validation.md",{"path":88,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":89,"sourceHtmlUrl":90},"steps-v\u002Fstep-v-05-measurability-validation.md",7269,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-05-measurability-validation.md",{"path":92,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":93,"sourceHtmlUrl":94},"steps-v\u002Fstep-v-06-traceability-validation.md",7409,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-06-traceability-validation.md",{"path":96,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":97,"sourceHtmlUrl":98},"steps-v\u002Fstep-v-07-implementation-leakage-validation.md",7162,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-07-implementation-leakage-validation.md",{"path":100,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":101,"sourceHtmlUrl":102},"steps-v\u002Fstep-v-08-domain-compliance-validation.md",7863,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-08-domain-compliance-validation.md",{"path":104,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":105,"sourceHtmlUrl":106},"steps-v\u002Fstep-v-09-project-type-validation.md",8766,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-09-project-type-validation.md",{"path":108,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":109,"sourceHtmlUrl":110},"steps-v\u002Fstep-v-10-smart-validation.md",6835,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-10-smart-validation.md",{"path":112,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":113,"sourceHtmlUrl":114},"steps-v\u002Fstep-v-11-holistic-quality-validation.md",8864,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-11-holistic-quality-validation.md",{"path":116,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":117,"sourceHtmlUrl":118},"steps-v\u002Fstep-v-12-completeness-validation.md",8376,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-12-completeness-validation.md",{"path":120,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":121,"sourceHtmlUrl":122},"steps-v\u002Fstep-v-13-report-complete.md",8423,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fgds-validate-prd\u002Fsteps-v\u002Fstep-v-13-report-complete.md",[124,133,142,151,157,163],{"skillNo":125,"name":126,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[130,131,132],"model","model hierarchy","model hierarchy skill",{"skillNo":134,"name":135,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[139,140,141],"MCP","zoom","zoom mcp",{"skillNo":143,"name":144,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[148,149,150,140],"sdk","zoom apps sdk","apps",{"skillNo":152,"name":153,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[153],{"skillNo":158,"name":159,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[159],{"skillNo":164,"name":165,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[165]]