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 skills add pproenca/dot-skills --skill tanstack-querygit clone --depth 1 https://github.com/pproenca/dot-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pproenca/dot-skills/tanstack-query)<a href="https://agentmods.dev/skills/pproenca/dot-skills/tanstack-query"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/tanstack-query/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pproenca/dot-skills/tanstack-query"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/tanstack-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
- NVIDIA SkillSpector warn
SkillSpector: 3 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Excessive Agency · line 21 Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.Fix: Set explicit rate limits, timeouts, and resource quotas for API calls, file operations, and compute. Implement circuit breakers for runaway loops.
- medium Excessive Agency · line 31 Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.Fix: Set explicit rate limits, timeouts, and resource quotas for API calls, file operations, and compute. Implement circuit breakers for runaway loops.
- medium Excessive Agency · line 72 Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.Fix: Set explicit rate limits, timeouts, and resource quotas for API calls, file operations, and compute. Implement circuit breakers for runaway loops.
What 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.1 | $0.00079 | $0.01266 |
| Opus 5.5 | $0.00032 | $0.00506 |
| Sonnet 5.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 3mo 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
2 near-identical copies found in the catalogue:
- tanstack-query — 100% identical, 2 lines differ
- tanstack-query — 86% identical, 37 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.
- 3mo 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 (230 stars, last pushed 3mo ago), licensed MIT. It adds 79 tokens to every session and 1,266 once invoked, about $0.0003 per session on Opus 5.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.
tanstack-query compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tanstack-querypproenca/dot-skills | Skill | 230 | 3mo ago | MIT | A | 79 | Claude Code, Codex |
| build-ghost-appTryGhost/Ghost | Skill | 56k | today | MIT | A | 44 | Claude Code, Codex |
| material-ui-tailwindmui/material-ui | Skill | 99k | today | MIT | A | 67 | Claude Code, Codex |
| fuzzy-rankingTanStack/table | Skill | 29k | 6d ago | MIT | A | 62 | Claude Code, Codex |
| r3f-best-practiceszebbern/claude-code-guide | Skill | 4.7k | 4d ago | MIT | A | 74 | Claude Code, Codex |
| git-safetytamagui/tamagui | Skill | 14k | 3d ago | MIT | A | 42 | Claude Code |
| onchainkitalsk1992/CloddsBot | Skill | 3.1k | 16d ago | MIT | A | 24 | Claude Code, Codex |