Agent skill

Tanstack Query

by exceptionless in exceptionless/Exceptionless

Manage Svelte API queries, mutations, cache updates, and WebSocket invalidation.

Apache-2.0Auto-check passedBackend & APIs

Install Tanstack Query

skills CLI
$ npx skills add exceptionless/Exceptionless --skill tanstack-query -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install exceptionless/Exceptionless tanstack-query --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/exceptionless/Exceptionless.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/tanstack-query .claude/skills/tanstack-query && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tanstack-query
GitHub stars
2.5k
Token cost
~562 tokens
SKILL.md length
261 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
Apache-2.0

At a glance

Manage Svelte API queries, mutations, cache updates, and WebSocket invalidation.

  • Tasks that involve Realtime and WebSockets
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Tanstack Query is an agent skill from exceptionless/Exceptionless. Manage Svelte API queries, mutations, cache updates, and WebSocket invalidation.

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Realtime and WebSockets. It works with TanStack and Svelte. The repository describes itself as: Exceptionless application. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Realtime and WebSockets

Example prompts

  • “/tanstack-query”

What it can do on your machine

Read from SKILL.md and the folder at commit 300e8ca. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tanstack Query loads about 562 tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 261 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~562

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from exceptionless/Exceptionless at commit 300e8ca, republished under its Apache-2.0 licence (© exceptionless). 261 words, ~562 tokens.

Download SKILL.mdSave it as .claude/skills/tanstack-query/SKILL.md (or your agent's skills folder).
name
tanstack-query
description
Manage Svelte API queries, mutations, cache updates, and WebSocket invalidation.

TanStack Query

Centralize API calls in each feature's api.svelte.ts, using @tanstack/svelte-query and @exceptionless/fetchclient.

Use the current organization and webhook implementations under src/Exceptionless.Web/ClientApp/src/lib/features/ as examples. Preserve their response/error types and signal handling.

  • Share a feature's queryKeys factory across queries, mutations, and invalidation.
  • Name operations get{Resource}Query, post{Resource}Mutation, patch{Resource}Mutation, and delete{Resource}Mutation.
  • Gate queries on required authentication or identifiers.
  • Pass the query cancellation signal through the fetch client.
  • For optimistic updates, cancel competing queries, snapshot the cache, restore on failure, and reconcile with server state after completion.
  • Wire WebSocket changes through the feature's invalidation helper. Match invalidation scope to the message identifiers.

Verify failure recovery and relevant cache interactions, not just the successful response.

Mutation and cache lifecycle

Keep reactive query options in the factory passed to createQuery or createMutation, following the current feature implementation. Include identifiers and relevant query parameters in its key factory so distinct results do not share a cache entry.

For an optimistic mutation, onMutate cancels affected in-flight queries and saves the previous value before updating the cache. onError uses that context to roll back; completion reconciles affected queries with server state, commonly through onSettled. Preserve unrelated cache entries and consider overlapping mutations before restoring an older snapshot.

Await invalidation or refetching when the calling UI depends on it before closing or navigating. Match the existing feature's FetchClientResponse and ProblemDetails handling instead of assuming every request throws or every mutation returns an unwrapped model.

WebSocket invalidation must use the same key factories as queries. Inspect both the feature helper and its caller when changing message handling; verify identifier-specific and collection updates.

© exceptionless, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/tanstack-query of exceptionless/Exceptionless.

Open the folder on GitHubat commit 300e8ca

Compare with similar skills

Tanstack Query next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tanstack Query compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tanstack Query this skillexceptionless/Exceptionless2.5k—~562Automated safety check: PassApache-2.0
Lunora Realtimeanolilab/lunora282—~2.7kAutomated safety check: PassCustom licence
AuthEpicenterHQ/epicenter4.8k—~7kAutomated safety check: PassCustom licence
Svgridsv-grid/sv-grid179—~2.4kAutomated safety check: PassCustom licence
Tanstack Querybskimball/tanstack-hono1191 repos~5.4kAutomated safety check: PassMIT
Supabase Development and Debuggingsupabase/agent-skills2.7k3 repos~3.6kAutomated safety check: PassMIT

Similar skills

  • Lunora Realtime

    anolilab/lunora

    Wires Lunora's live data into a client app. An agent skill from anolilab/lunora.

    282 GitHub stars~2.7k tokensUpdated today
    MobileAuto-check passed
  • Auth

    EpicenterHQ/epicenter

    Epicenter auth packages: @epicenter/auth and the Svelte adapter at @epicenter/auth/svelte, OAuth sessions, identity state, auth-owned fetch/WebSocket, and the reload gate that makes a page lifetime…

    4.8k GitHub stars~7k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Svgrid

    sv-grid/sv-grid

    Writes, fixes, and reviews SvGrid data-grid code in Svelte 5 projects - columns, features, inline editing, filtering, theming with --sg- tokens, server-side data, the built-in AI helpers, and the…

    179 GitHub stars~2.4k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Tanstack Query

    bskimball/tanstack-hono

    Powerful asynchronous state management, server-state utilities, and data fetching for TS/JS, React, Vue, Solid, Svelte & Angular.

    119 GitHub starsUsed in 1 repo~5.4k tokens
    Frontend & DesignAuto-check passed
  • Official

    General Supabase skill for database, auth, Edge Functions, Realtime and storage work, plus client libraries, migrations, security audits, debugging and reading logs.

    2.7k GitHub starsUsed in 3 repos~3.6k tokens
    Backend & APIsAuto-check passed
  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed

More from exceptionless/Exceptionless

All 11 skills in this repo
  • Emil Design Eng

    exceptionless/Exceptionless

    This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.

    2.5k GitHub starsUsed in 28 repos~6.8k tokens
    Auto-check passed
  • Shadcn Svelte

    exceptionless/Exceptionless

    Manages shadcn-svelte components and projects — adding, updating, fixing, debugging, styling, and composing UI.

    2.5k GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed
  • Dogfood

    exceptionless/Exceptionless

    Systematically dogfood Exceptionless locally. An agent skill from exceptionless/Exceptionless.

    2.5k GitHub stars~759 tokensUpdated yesterday
    Auto-check passed
  • Aspire Diagnostics

    exceptionless/Exceptionless

    Inspect local Aspire resource health, logs, traces, and browser telemetry.

    2.5k GitHub stars~769 tokensUpdated yesterday
    Auto-check passed
  • Foundatio Repositories

    exceptionless/Exceptionless

    Query, aggregate, patch, or paginate Exceptionless data through its Elasticsearch repository abstractions.

    2.5k GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Releasenotes

    exceptionless/Exceptionless

    Evaluate semantic-version impact and generate formatted changelogs from git history since the last release tag.

    2.5k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Tanstack Query

What does Tanstack Query do?

Manage Svelte API queries, mutations, cache updates, and WebSocket invalidation. Tanstack Query is an agent skill from exceptionless/Exceptionless. Manage Svelte API queries, mutations, cache updates, and WebSocket invalidation.

When should I use Tanstack Query?

Tanstack Query fits situations like: tasks that involve Realtime and WebSockets.

How do I install Tanstack Query in Claude Code?

Run `npx skills add exceptionless/Exceptionless --skill tanstack-query -a claude-code`. Or copy the skill folder (.agents/skills/tanstack-query in exceptionless/Exceptionless) into .claude/skills/tanstack-query in your project. Claude Code loads it when a task matches its description.

How do I install Tanstack Query in Codex?

Run `npx skills add exceptionless/Exceptionless --skill tanstack-query -a codex`. Or copy the skill folder (.agents/skills/tanstack-query in exceptionless/Exceptionless) into .agents/skills/tanstack-query in your project. Codex loads it when a task matches its description.

Can I use Tanstack Query in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add exceptionless/Exceptionless --skill tanstack-query -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tanstack-query, .gemini/skills/tanstack-query, .github/skills/tanstack-query and .opencode/skills/tanstack-query in your project.

What does Tanstack Query need to run?

SKILL.md names no scripts, command-line tools or credentials: Tanstack Query is instructions for the agent only.

Does Tanstack Query access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Tanstack Query safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tanstack Query use?

Tanstack Query is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tanstack Query use?

About 562 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tanstack Query?

Skills that share tags, products or a category with Tanstack Query: Lunora Realtime (anolilab/lunora, 282 stars), Auth (EpicenterHQ/epicenter, 4.8k stars), Svgrid (sv-grid/sv-grid, 179 stars) and Tanstack Query (bskimball/tanstack-hono, 119 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tanstack Query?

exceptionless (a GitHub organization) maintains it in exceptionless/Exceptionless, which has 2,457 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 8, 2026.

Source: exceptionless/Exceptionless on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.