CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

tanstack-query-setup

This guide shows how to install and configure TanStack Query, then apply it to queries, mutations, caching, optimistic updates, and infinite pagination. It includes reusable React and Next.js examples for providers, query factories, prefetching, hydration, and loading and error states.

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

71%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is highly actionable — dense, executable, version-accurate TanStack Query v5 code covering setup through advanced patterns, organized into a clear workflow ending with a checklist. Its weaknesses are token efficiency (basic library usage Claude already knows) and structure (everything inlined in one large file instead of split across reference files).

Suggestions

Trim or cut the Basic Queries 'Usage' component examples (UsersList, UserProfile rendering with Spinner/Skeleton) — Claude already knows how to consume useQuery results, so keep only the hook definitions and project conventions like queryKey structure.

Split advanced topics (optimistic updates, infinite queries, query factories, prefetching, SSR hydration) into one-level-deep reference files (e.g. references/optimistic-updates.md, references/ssr.md) and keep SKILL.md as a concise overview with well-signaled links, following the progressive-disclosure pattern.

Add an explicit verification step to the Core Workflow (e.g. 'Verify: confirm devtools renders queries and no cache-key collisions after wiring mutations') so the sequence ends with a built-in checkpoint rather than relying only on the Output Checklist.

DimensionReasoningScore

Conciseness

There is no padded prose, but roughly 100 lines of the Basic Queries section re-teach standard library usage Claude already knows (simple useQuery calls, loading/error rendering with Spinner/Error components) before the skill's actual conventions appear. This is more than the 'minor instances of over-explanation' of anchor 4, fitting anchor 3's 'mostly efficient but could be tightened'.

3 / 5

Actionability

Every section provides complete, copy-paste-ready TSX covering the common cases: provider setup with default options, mutations with cache invalidation, the full optimistic-update pattern with cancel/snapshot/rollback, both cursor- and offset-based infinite queries, prefetching, and SSR hydration. The code is v5-correct throughout (initialPageParam, gcTime, isPending, placeholderData) and includes the install command.

5 / 5

Workflow Clarity

The six-step Core Workflow maps directly onto the body's section order and terminates in an Output Checklist that serves as an explicit verification checkpoint. It falls short of anchor 5 because there is no error-recovery feedback loop (verify → fix → retry) within the workflow itself, though the destructive/batch cap does not apply to this non-destructive setup skill.

4 / 5

Progressive Disclosure

Section headers are clear and well-ordered, but the skill is a ~670-line monolith with no bundle files at all — advanced material (SSR hydration, query factories, prefetching, dependent/parallel queries) that clearly belongs in one-level-deep reference files is inlined in SKILL.md. This matches anchor 3's 'content that should be separate is inline' rather than anchor 2, since the internal structure is genuinely good.

3 / 5

Total

15

/

20

Passed

Description

96%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that clearly states multiple concrete capabilities and pairs them with an explicit 'Use when' clause containing natural trigger terms covering both library names. The only weakness is that two trigger phrases ("data fetching", "server state") are somewhat generic and could fire for related data-fetching skills.

DimensionReasoningScore

Specificity

Lists five concrete capabilities — "server state management with caching, mutations, optimistic updates, and infinite queries" — matching the skill's core pillars with comprehensive coverage, which fits the anchor-5 example of multiple specific concrete actions. It exceeds anchor 4, whose example lists only three actions with minor gaps.

5 / 5

Completeness

Explicitly answers 'what' ("Implements TanStack Query (React Query) for server state management with caching, mutations, optimistic updates, and infinite queries") and 'when' ("Use when users request 'react query', 'tanstack query', 'data fetching', 'cache management', or 'server state'") with concrete trigger phrases — a structural match to the anchor-5 example.

5 / 5

Trigger Term Quality

Covers both library names users would naturally say ("react query", "tanstack query") plus natural task phrases ("data fetching", "cache management", "server state"). Only trivial variants like "useQuery" or "react-query" are missing, which is not enough to drop to anchor 4's 'a few natural terms missing'.

5 / 5

Distinctiveness Conflict Risk

The TanStack Query niche is clear with distinct library-name triggers, but "data fetching" and "server state" are generic enough to overlap with closely related skills (generic fetch/axios or SWR-style skills). This matches anchor 4's 'mostly distinct; minor overlap risk' rather than anchor 5's minimal conflict risk.

4 / 5

Total

19

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (672 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/tanstack-query-setup/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.