Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/pproenca/dot-skills/tanstack-querynpx skills add pproenca/dot-skills --skill tanstack-querygit clone --depth 1 https://github.com/pproenca/dot-skillsWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00079 | $0.01266 |
| Opus 5 | $0.00039 | $0.00633 |
| Sonnet 5 | $0.00016 | $0.00253 |
| Haiku 4.5 | $0.00008 | $0.00127 |
Grade A, and why
tanstack-query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- tanstack-query — 86% identical, 18 lines differ
How it starts
The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TanStack Query Best Practices
Comprehensive performance optimization guide for TanStack Query v5 applications. Contains 40 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
When to Apply
Reference these guidelines when:
- Writing new queries, mutations, or data fetching logic
- Implementing caching strategies (staleTime, gcTime)
- Reviewing code for performance issues or request waterfalls
- Refactoring existing TanStack Query code
- Implementing infinite queries, Suspense, or optimistic updates
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Query Key Structure | CRITICAL | tquery- |
| 2 | Caching Configuration | CRITICAL | cache- |
| 3 | Mutation Patterns | HIGH | mutation- |
| 4 | Prefetching & Waterfalls | HIGH | prefetch- |
| 5 | Infinite Queries | MEDIUM | infinite- |
| 6 | Suspense Integration | MEDIUM | suspense- |
| 7 | Error & Retry Handling | MEDIUM | error- |
| 8 | Render Optimization | LOW-MEDIUM | render- |
Quick Reference
1. Query Key Structure (CRITICAL)
tquery-key-factories- Use centralized query key factoriestquery-hierarchical-keys- Structure keys from generic to specifictquery-always-arrays- Always use array query keystquery-serializable-objects- Use serializable objects in keystquery-options-pattern- Use queryOptions for type-safe sharingtquery-colocate-keys- Colocate query keys with features
2. Caching Configuration (CRITICAL)
cache-staletime-gctime- Understand staleTime vs gcTimecache-global-defaults- Configure global defaults appropriatelycache-placeholder-vs-initial- Use placeholderData vs initialData correctlycache-invalidation-precision- Invalidate with precisioncache-refetch-triggers- Control automatic refetch triggerscache-enabled-option- Use enabled for conditional queries
3. Mutation Patterns (HIGH)
What ships with it
44 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 7.9 KB
- metadata.json 829 B
- README.md 1.8 KB
- references/_sections.md 1.8 KB
- references/cache-enabled-option.md 2.0 KB
- references/cache-global-defaults.md 2.0 KB
- references/cache-invalidation-precision.md 2.1 KB
- references/cache-placeholder-vs-initial.md 2.1 KB
- references/cache-refetch-triggers.md 2.0 KB
- references/cache-staletime-gctime.md 2.2 KB
- references/error-conditional-retry.md 2.1 KB
- references/error-display-patterns.md 2.2 KB
- references/error-global-handler.md 2.2 KB
- references/error-retry-config.md 1.8 KB
- references/error-throw-on-error.md 2.1 KB
- references/infinite-flatten-pages.md 2.6 KB
- references/infinite-loading-states.md 2.4 KB
- references/infinite-max-pages.md 2.2 KB
- references/infinite-refetch-behavior.md 2.0 KB
- references/mutation-avoid-parallel.md 2.0 KB
- references/mutation-cancel-queries.md 2.0 KB
- references/mutation-invalidate-onsettled.md 1.9 KB
- references/mutation-optimistic-updates.md 2.3 KB
- references/mutation-setquerydata.md 1.9 KB
- references/prefetch-avoid-waterfalls.md 2.5 KB
- references/prefetch-flatten-api.md 2.0 KB
- references/prefetch-in-queryfn.md 1.9 KB
- references/prefetch-on-hover.md 2.0 KB
- references/prefetch-server-components.md 2.2 KB
- references/render-notify-props.md 2.1 KB
- references/render-select-derived.md 2.3 KB
- references/render-select-memoize.md 2.0 KB
- references/render-structural-sharing.md 2.2 KB
- references/render-tracked-props.md 1.9 KB
- references/suspense-boundaries-placement.md 2.2 KB
- references/suspense-error-boundaries.md 2.2 KB
- references/suspense-parallel-queries.md 2.0 KB
- references/suspense-use-suspense-hooks.md 2.0 KB
- references/tquery-always-arrays.md 1.4 KB
- references/tquery-colocate-keys.md 1.8 KB
- references/tquery-hierarchical-keys.md 1.9 KB
- references/tquery-key-factories.md 1.7 KB
- references/tquery-options-pattern.md 2.0 KB
- references/tquery-serializable-objects.md 1.8 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 124 lines · 79 tokens per session scan A 2df31e8c38d7
tanstack-query is a skill published in the GitHub repository pproenca/dot-skills (200 stars, last pushed 18d ago), licensed MIT. It adds 79 tokens to every session and 1,266 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
chat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…