[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M753Q7EPYMKC4S4PHNEGP8S6":3,"skill-same:01M753Q7EPYMKC4S4PHNEGP8S6":73},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M753Q7EPYMKC4S4PHNEGP8S6","tanstack",null,"Comprehensive guide for the TanStack ecosystem in React — Query (caching, mutations, prefetching, SSR), DB (collections, live queries, optimistic updates), Form (state, validation, fields), Router (file-based, type-safe navigation, search params, loaders), and Start (server functions, middleware, auth, SSR). Use when working with any TanStack library in a React\u002Ffull-stack project. Don't use for non-TanStack data libraries (SWR, Apollo, RTK Query), non-React TanStack ports (Solid, Svelte), or backend-only work.","haryelramalho\u002Fskills","haryelramalho","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F38708454?v=4","01M753ESC6XNS6GXGV5X9YMKGA","Haryel Ramalho","01M753ESCSPRNDTEJRVRYY1VJ0",0,"MIT","https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcommunity\u002Ftanstack\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: tanstack\ndescription: Comprehensive guide for the TanStack ecosystem in React — Query (caching, mutations, prefetching, SSR), DB (collections, live queries, optimistic updates), Form (state, validation, fields), Router (file-based, type-safe navigation, search params, loaders), and Start (server functions, middleware, auth, SSR). Use when working with any TanStack library in a React\u002Ffull-stack project. Don't use for non-TanStack data libraries (SWR, Apollo, RTK Query), non-React TanStack ports (Solid, Svelte), or backend-only work.\nallowed-tools: Read, Grep, Glob\nmetadata:\n  author: Pedro Nauck\n  github: https:\u002F\u002Fgithub.com\u002Fpedronauck\n  repository: https:\u002F\u002Fgithub.com\u002Fpedronauck\u002Fskills\n---\n# TanStack Developer Guide\n\nThis SKILL.md is a **dispatcher**, not an encyclopedia. The load-bearing detail (code patterns, anti-patterns, edge cases, full checklists) lives in `references\u002F*.md`. The tripwires below exist so you can detect violations during scanning — they are not the contract.\n\n## Required Reading Router\n\nMatch the task to the row. **Read the listed file(s) in full before producing output.** They are not appendices — they are the contract. Inline content in this SKILL.md is a pointer, not a substitute.\n\n| Task | MUST read |\n|------|-----------|\n| `useQuery` \u002F `useMutation` \u002F prefetch \u002F infinite list \u002F SSR hydration \u002F cache config | `references\u002Fquery-patterns.md` |\n| Typed collections, live queries, optimistic collection mutations | `references\u002Fdb-patterns.md` |\n| Forms, field components, validation, async checks | `references\u002Fform-patterns.md` |\n| Routes, search params, loaders, navigation, auth-protected layouts, router setup | `references\u002Frouter-patterns.md` |\n| Server functions, middleware, sessions, SSR streaming, env, deploy adapters | `references\u002Fstart-patterns.md` |\n| Anything that touches **two or more** layers (e.g. route loader + server fn + form) | Each file from the relevant rows — read all before designing |\n\n## Reference Index\n\n| File | What you get |\n|------|--------------|\n| `references\u002Fquery-patterns.md` | Vanilla Query: key factories + `queryOptions`, `staleTime`\u002F`gcTime`, `placeholderData` vs `initialData`, optimistic mutations with rollback, error boundaries, intent prefetch, infinite queries, SSR dehydrate\u002Fhydrate, `useQueries`, cancellation, `select`, network mode, persistence, testing |\n| `references\u002Fdb-patterns.md` | DB collections: 5 critical rules, collection setup, live queries with joins, optimistic updates, shared collection instances, persistence handlers, common anti-patterns, advanced patterns (computed, aggregations, pagination) |\n| `references\u002Fform-patterns.md` | Form: `createFormHook` + `useAppForm`, Zod schema validation, field\u002Fform\u002Fasync validators with debounce, reusable field components (TextField, SelectField, SubmitButton), array fields, error handling with a11y, performance, anti-patterns |\n| `references\u002Frouter-patterns.md` | Router: `declare module` registration, router defaults, `from` narrowing, pathless layouts, search-param Zod validation, parallel + deferred loaders, lazy + auto code splitting, custom serializers, `notFound()`, route masks, integration with TanStack Query |\n| `references\u002Fstart-patterns.md` | Start: `createServerFn` with Zod validator, request + function middleware, secure cookie sessions, route protection, SSR streaming + hydration safety, prerender\u002FISR, API routes, env split, file separation, deploy adapters |\n\n---\n\n## Tripwires (not the contract)\n\nThese bullets exist so you can spot likely violations during a scan. **They are deliberately incomplete.** The full rules, examples, and edge cases live in the reference files. If a tripwire triggers, you must consult the referenced file before fixing.\n\n### Query \u002F DB\n\n- Vanilla Query and DB collections are different paradigms — never mix them on the same entity.\n- `staleTime: 0` (default) refetches on every mount. Tune by data volatility.\n- Optimistic mutations without `cancelQueries` + rollback context will get overwritten by in-flight refetches.\n\n**STOP. Read `references\u002Fquery-patterns.md` in full before writing a `useQuery`, `useMutation`, prefetch, or SSR hydration boundary.** **STOP. Read `references\u002Fdb-patterns.md` in full before creating a collection, live query, or persistence handler.** The three bullets above only flag the most common slip-ups.\n\n### Form\n\n- `defaultValues` drives type inference — manual generics fight it.\n- Async validators without `asyncDebounceMs` hammer the network.\n- Reuse Zod schemas across form + server function (in `*.shared.ts`).\n\n**STOP. Read `references\u002Fform-patterns.md` in full before building or modifying a form, field component, or validator.** Field-level a11y attributes, `createFormHook` setup, and array-field patterns are not in this body.\n\n### Router\n\n- Without `declare module '@tanstack\u002Freact-router' { interface Register { router: typeof router } }`, `Link`\u002F`useNavigate`\u002F`useParams` silently degrade to `unknown`.\n- Sequential `await`s in a loader create waterfalls — fan out with `Promise.all`.\n- Throw `notFound()` \u002F `redirect()` from loaders, not generic `Error`.\n\n**STOP. Read `references\u002Frouter-patterns.md` in full before adding a route, changing router setup, writing a loader, or modifying search-param validation.** Defaults (`defaultPreload`, `scrollRestoration`, global error\u002F404), pathless layouts, masks, and deferred loaders all live in the reference.\n\n### Start\n\n- Server logic belongs in `createServerFn` with a Zod `validator()` — not raw `fetch` + API routes.\n- Auth uses HTTP-only cookies. localStorage is XSS-bait.\n- SSR loaders should `await` only critical data; stream the rest via `prefetchQuery` + `Suspense`.\n\n**STOP. Read `references\u002Fstart-patterns.md` in full before writing a server function, middleware, session helper, or SSR loader.** Cookie settings, middleware composition order, hydration-safety pitfalls, and adapter trade-offs are not in this body.\n\n---\n\n## End-of-task checklist\n\nEach reference file has a scoped checklist with the real validation criteria. This umbrella confirms you actually consulted them:\n\n- [ ] For each layer you touched, the corresponding reference file was read **in full**, not skimmed\n- [ ] The scoped checklist in that reference file passes\n- [ ] No mixed Query\u002FDB paradigms on the same entity\n- [ ] `pnpm run typecheck` and `pnpm run test` pass\n\nIf you cannot point to which reference file you read for a given change, the change is not done.\n","# TanStack Developer Guide\n\nThis SKILL.md is a **dispatcher**, not an encyclopedia. The load-bearing detail (code patterns, anti-patterns, edge cases, full checklists) lives in `references\u002F*.md`. The tripwires below exist so you can detect violations during scanning — they are not the contract.\n\n## Required Reading Router\n\nMatch the task to the row. **Read the listed file(s) in full before producing output.** They are not appendices — they are the contract. Inline content in this SKILL.md is a pointer, not a substitute.\n\n| Task | MUST read |\n|------|-----------|\n| `useQuery` \u002F `useMutation` \u002F prefetch \u002F infinite list \u002F SSR hydration \u002F cache config | `references\u002Fquery-patterns.md` |\n| Typed collections, live queries, optimistic collection mutations | `references\u002Fdb-patterns.md` |\n| Forms, field components, validation, async checks | `references\u002Fform-patterns.md` |\n| Routes, search params, loaders, navigation, auth-protected layouts, router setup | `references\u002Frouter-patterns.md` |\n| Server functions, middleware, sessions, SSR streaming, env, deploy adapters | `references\u002Fstart-patterns.md` |\n| Anything that touches **two or more** layers (e.g. route loader + server fn + form) | Each file from the relevant rows — read all before designing |\n\n## Reference Index\n\n| File | What you get |\n|------|--------------|\n| `references\u002Fquery-patterns.md` | Vanilla Query: key factories + `queryOptions`, `staleTime`\u002F`gcTime`, `placeholderData` vs `initialData`, optimistic mutations with rollback, error boundaries, intent prefetch, infinite queries, SSR dehydrate\u002Fhydrate, `useQueries`, cancellation, `select`, network mode, persistence, testing |\n| `references\u002Fdb-patterns.md` | DB collections: 5 critical rules, collection setup, live queries with joins, optimistic updates, shared collection instances, persistence handlers, common anti-patterns, advanced patterns (computed, aggregations, pagination) |\n| `references\u002Fform-patterns.md` | Form: `createFormHook` + `useAppForm`, Zod schema validation, field\u002Fform\u002Fasync validators with debounce, reusable field components (TextField, SelectField, SubmitButton), array fields, error handling with a11y, performance, anti-patterns |\n| `references\u002Frouter-patterns.md` | Router: `declare module` registration, router defaults, `from` narrowing, pathless layouts, search-param Zod validation, parallel + deferred loaders, lazy + auto code splitting, custom serializers, `notFound()`, route masks, integration with TanStack Query |\n| `references\u002Fstart-patterns.md` | Start: `createServerFn` with Zod validator, request + function middleware, secure cookie sessions, route protection, SSR streaming + hydration safety, prerender\u002FISR, API routes, env split, file separation, deploy adapters |\n\n---\n\n## Tripwires (not the contract)\n\nThese bullets exist so you can spot likely violations during a scan. **They are deliberately incomplete.** The full rules, examples, and edge cases live in the reference files. If a tripwire triggers, you must consult the referenced file before fixing.\n\n### Query \u002F DB\n\n- Vanilla Query and DB collections are different paradigms — never mix them on the same entity.\n- `staleTime: 0` (default) refetches on every mount. Tune by data volatility.\n- Optimistic mutations without `cancelQueries` + rollback context will get overwritten by in-flight refetches.\n\n**STOP. Read `references\u002Fquery-patterns.md` in full before writing a `useQuery`, `useMutation`, prefetch, or SSR hydration boundary.** **STOP. Read `references\u002Fdb-patterns.md` in full before creating a collection, live query, or persistence handler.** The three bullets above only flag the most common slip-ups.\n\n### Form\n\n- `defaultValues` drives type inference — manual generics fight it.\n- Async validators without `asyncDebounceMs` hammer the network.\n- Reuse Zod schemas across form + server function (in `*.shared.ts`).\n\n**STOP. Read `references\u002Fform-patterns.md` in full before building or modifying a form, field component, or validator.** Field-level a11y attributes, `createFormHook` setup, and array-field patterns are not in this body.\n\n### Router\n\n- Without `declare module '@tanstack\u002Freact-router' { interface Register { router: typeof router } }`, `Link`\u002F`useNavigate`\u002F`useParams` silently degrade to `unknown`.\n- Sequential `await`s in a loader create waterfalls — fan out with `Promise.all`.\n- Throw `notFound()` \u002F `redirect()` from loaders, not generic `Error`.\n\n**STOP. Read `references\u002Frouter-patterns.md` in full before adding a route, changing router setup, writing a loader, or modifying search-param validation.** Defaults (`defaultPreload`, `scrollRestoration`, global error\u002F404), pathless layouts, masks, and deferred loaders all live in the reference.\n\n### Start\n\n- Server logic belongs in `createServerFn` with a Zod `validator()` — not raw `fetch` + API routes.\n- Auth uses HTTP-only cookies. localStorage is XSS-bait.\n- SSR loaders should `await` only critical data; stream the rest via `prefetchQuery` + `Suspense`.\n\n**STOP. Read `references\u002Fstart-patterns.md` in full before writing a server function, middleware, session helper, or SSR loader.** Cookie settings, middleware composition order, hydration-safety pitfalls, and adapter trade-offs are not in this body.\n\n---\n\n## End-of-task checklist\n\nEach reference file has a scoped checklist with the real validation criteria. This umbrella confirms you actually consulted them:\n\n- [ ] For each layer you touched, the corresponding reference file was read **in full**, not skimmed\n- [ ] The scoped checklist in that reference file passes\n- [ ] No mixed Query\u002FDB paradigms on the same entity\n- [ ] `pnpm run typecheck` and `pnpm run test` pass\n\nIf you cannot point to which reference file you read for a given change, the change is not done.\n",{"name":5,"metadata":24,"description":7,"allowed-tools":28},{"author":25,"github":26,"repository":27},"Pedro Nauck","https:\u002F\u002Fgithub.com\u002Fpedronauck","https:\u002F\u002Fgithub.com\u002Fpedronauck\u002Fskills","Read, Grep, Glob","main","a5b533be2d244bbf3e5606e851742f0e0ba99423","skills\u002Fcommunity\u002Ftanstack","https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills","https:\u002F\u002Fgithub.com\u002Fharyelramalho","linkedin.com\u002Fin\u002Fharyelramalho\u002F","Software Engineer @ SKORR •  Former Vice President of the Junior Computer Association - TecnoJr","2026-07-16 01:34:58",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add haryelramalho\u002Fskills --skill tanstack",{"tool":43,"command":44},"bunx","bunx skills add haryelramalho\u002Fskills --skill tanstack",{"tool":46,"command":47},"pnpm","pnpm dlx skills add haryelramalho\u002Fskills --skill tanstack","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcommunity\u002Ftanstack\u002FSKILL.md",true,[51,57,61,65,69],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fdb-patterns.md","REFERENCE","参考文档",8390,"https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcommunity\u002Ftanstack\u002Freferences\u002Fdb-patterns.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fform-patterns.md",15380,"https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcommunity\u002Ftanstack\u002Freferences\u002Fform-patterns.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fquery-patterns.md",12152,"https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcommunity\u002Ftanstack\u002Freferences\u002Fquery-patterns.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Frouter-patterns.md",17738,"https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcommunity\u002Ftanstack\u002Freferences\u002Frouter-patterns.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fstart-patterns.md",13462,"https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcommunity\u002Ftanstack\u002Freferences\u002Fstart-patterns.md",[74,81,88,95,102,109],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M753YDMKSDB7320THEQ2CVW5","to-prompt-opus","Use when preparing or rewriting prompts for Claude Opus 4.8, Anthropic API agents, XML-structured prompts, long-context document work, coding agents, research synthesis, frontend\u002Fdesign tasks, or model-specific prompt optimization. Do not use for GPT\u002FOpenAI prompts or raw context packaging without Opus-specific tuning.","https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmine\u002Fto-prompt-opus\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M753YAP95W4K2MCEAEEAV6YA","to-prompt-gpt","Use when preparing or rewriting prompts for GPT-5.5, OpenAI API agents, Responses workflows, coding agents, research synthesis, support assistants, or model-specific prompt optimization. Do not use for Claude\u002FOpus prompts or raw context packaging without GPT-specific tuning.","https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmine\u002Fto-prompt-gpt\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M753Y700AZ0GVJDNW9Q1Q54F","plan-refactor-qa","Plans and runs qa-report before executing Compozy refactor tasks. Use when the user provides a refactor or issue slug and wants Codex to inspect the matching .compozy\u002Ftasks directory, related PRD\u002FTechSpec\u002FADR\u002Ftask artifacts, affected code, and existing tests, then invoke $qa-report with a repository-grounded prompt. Do not use to run tests, execute qa-execution, implement code, or perform post-refactor verification.","https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmine\u002Fplan-refactor-qa\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M753XZENG0Z8S2ET75EM8CGB","multi-tool-branch-review","Orchestrates a multi-tool branch review of the current git branch against a base branch. By default it runs two independent thermo-nuclear maintainability audits, one on Codex GPT-5.5 xhigh and one on Claude Opus xhigh, then consolidates the findings into a single remediation plan via writing-plans. If the user explicitly asks for native reviews, it can add the Claude native review pass, the Codex native review pass, or both. Use when the user wants a deep cross-model review of a branch or PR before merge, or asks to review this branch with multiple tools or models. Encodes known infra failure modes and their fixes (missing Claude ACP adapter, Codex MCP auth hangs, false-positive report files, long jobs orphaned inside subagents). Do not use for reviewing a single uncommitted snippet, for non-git work, for running only one reviewer, or when the user only wants a quick lint or test run.","https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmine\u002Fmulti-tool-branch-review\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M753XQM40XCK55BH5WPA88EW","create-pr-with-template","Create a GitHub Pull Request with gh CLI and prefer repository PR templates automatically. Use this whenever the user asks to open\u002Fcreate a PR, especially when template compliance is needed. If multiple templates exist, ask the user which template to use.","https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmine\u002Fcreate-pr-with-template\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M753XJMBJ8VFPRCDCC1JJ9G4","ui-craft","Provides guardrails for user-facing UI work: usability heuristics, accessibility floors, design-system discipline, component states, microcopy, motion, dark mode, responsive behavior, and human-AI UX. Use when designing, generating, reviewing, or refactoring visible product surfaces such as components, pages, dashboards, forms, dialogs, loading\u002Fempty\u002Ferror states, or AI interfaces. Do not use for backend-only work, infrastructure, CLI\u002FTUI design, or pure documentation editing.","https:\u002F\u002Fgithub.com\u002Fharyelramalho\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated\u002Fui-craft\u002FSKILL.md",[],[]]