Agent skill

Tanstack Query

by Mystic-Stars in Mystic-Stars/Axolotl

Convert a page or component from useAsyncData/manual ref patterns to TanStack Query for server state management.

Custom licenceAuto-check passedFrontend & Design

Install Tanstack Query

skills CLI
$ npx skills add Mystic-Stars/Axolotl --skill tanstack-query -a claude-code

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

GitHub CLI
$ gh skill install Mystic-Stars/Axolotl 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/Mystic-Stars/Axolotl.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
507
Token cost
~421 tokens
SKILL.md length
165 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
Custom licence

At a glance

Convert a page or component from useAsyncData/manual ref patterns to TanStack Query for server state management.

  • Works in 6 steps: Read the target file at $ARGUMENTS and… → Define query boundaries: use stable… → Convert queries → …
  • Migrating data fetching to useQuery/useMutation
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Adding cache invalidation

What it does

Tanstack Query is an agent skill from Mystic-Stars/Axolotl. Convert a page or component from useAsyncData/manual ref patterns to TanStack Query for server state management. Use when migrating data fetching to useQuery/useMutation, adding cache invalidation, or replacing useAsyncData with TanStack Query.

Its SKILL.md is about 420 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 Frontend & Design, covering Caching and State management. It works with TanStack.

When your agent uses it

  • Migrating data fetching to useQuery/useMutation
  • Adding cache invalidation
  • Replacing useAsyncData with TanStack Query

Example prompts

  • “/tanstack-query”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Read the target file at $ARGUMENTS and identify all data-fetching patterns: useAsyncData, useFetch, manual ref() + await, or onMounted…
  2. Define query boundaries: use stable hierarchical keys, preserve reactive parameters, and decide whether mutation feedback needs an…
  3. Convert queries
  4. Convert mutations
  5. Clean up
  6. Verify the page still renders correctly and that cache invalidation triggers re-fetches where expected.

What it can do on your machine

Read from SKILL.md and the folder at commit 4058fb9. 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 421 tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 165 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 165 words (~421 tokens).

name
tanstack-query
argument-hint
<path-to-file>

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/tanstack-query of Mystic-Stars/Axolotl.

Open the folder on GitHubat commit 4058fb9

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 skillMystic-Stars/Axolotl507—~421Automated safety check: PassCustom licence
Tanstack Querysecondsky/claude-skills227—~7.9kAutomated safety check: PassMIT
Tanstack QueryMindrally/skills269—~3.6kAutomated safety check: PassApache-2.0
Tanstack Query Best PracticesDeckardGer/tanstack-agent-skills2221 repos~1.2kAutomated safety check: PassMIT
Frontend Query Mutationlangflow-ai/langflow155k—~979Automated safety check: PassMIT
React State Managementinvolvex/youtube-music-cli45613 repos~3kAutomated safety check: PassMIT

Similar skills

  • Tanstack Query

    secondsky/claude-skills

    TanStack Query v5 (React Query) server state management. An agent skill from secondsky/claude-skills.

    227 GitHub stars~7.9k tokensUpdated 11 days ago
    Frontend & DesignAuto-check passed
  • Tanstack Query

    Mindrally/skills

    Best practices for TanStack Query v5 (React Query) server state management, including query key factories, the queryOptions helper, mutations, optimistic updates, infinite queries, and Suspense mode.

    269 GitHub stars~3.6k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Tanstack Query Best Practices

    DeckardGer/tanstack-agent-skills

    TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management.

    222 GitHub starsUsed in 1 repo~1.2k tokens
    Backend & APIsAuto-check passed
  • Frontend Query Mutation

    langflow-ai/langflow

    Guide for implementing Langflow frontend query and mutation patterns with Axios and TanStack React Query v5.

    155k GitHub stars~979 tokensUpdated today
    Frontend & DesignAuto-check passed
  • React State Management

    involvex/youtube-music-cli

    Master modern React state management with Redux Toolkit, Zustand, Jotai, and React Query.

    456 GitHub starsUsed in 13 repos~3k tokens
    Frontend & DesignAuto-check passed
  • Explains how LobeHub client code fetches data through services, SWR store hooks and cache keys, and when to avoid useEffect fetching or duplicated state.

    83k GitHub stars~1.7k tokensUpdated today
    Frontend & DesignAuto-check passed

More from Mystic-Stars/Axolotl

  • Oil Frontend

    Mystic-Stars/Axolotl

    用于实现、修改、重构或评审产品前端。当前任务涉及页面、组件、交互、表单、状态、数据流、Hook、类型、CSS、前端代码组织或共享实现时自动触发。触发后先阅读 SKILL.md 判断相关范围,只读取与当前任务直接相关的参考文件;如果改动与产品前端无关则停止使用。纯构建、部署、依赖升级、安全、后端任务,以及只解释前端概念而不处理项目实现的请求,不触发。

    507 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Cross Platform Pages

    Mystic-Stars/Axolotl

    Convert a page to the cross-platform page system so it works in both the website and the desktop app.

    507 GitHub stars~489 tokensUpdated today
    Auto-check passed
  • API Module

    Mystic-Stars/Axolotl

    Add a new API endpoint module to packages/api-client from an OpenAPI schema.

    507 GitHub stars~327 tokensUpdated today
    Auto-check passed
  • Figma MCP

    Mystic-Stars/Axolotl

    Use the Figma MCP server to translate a Figma design into a Vue page or component layout.

    507 GitHub stars~388 tokensUpdated today
    Auto-check passed
  • I18n Pass

    Mystic-Stars/Axolotl

    Perform an i18n localization pass on changed files or a pull request, converting hard-coded English strings to the @modrinth/ui i18n system.

    507 GitHub stars~435 tokensUpdated today
    Auto-check passed

Works with

Questions about Tanstack Query

What does Tanstack Query do?

Convert a page or component from useAsyncData/manual ref patterns to TanStack Query for server state management. Tanstack Query is an agent skill from Mystic-Stars/Axolotl. Convert a page or component from useAsyncData/manual ref patterns to TanStack Query for server state management.

When should I use Tanstack Query?

Tanstack Query fits situations like: migrating data fetching to useQuery/useMutation; adding cache invalidation; replacing useAsyncData with TanStack Query.

How do I install Tanstack Query in Claude Code?

Run `npx skills add Mystic-Stars/Axolotl --skill tanstack-query -a claude-code`. Or copy the skill folder (.agents/skills/tanstack-query in Mystic-Stars/Axolotl) 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 Mystic-Stars/Axolotl --skill tanstack-query -a codex`. Or copy the skill folder (.agents/skills/tanstack-query in Mystic-Stars/Axolotl) 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 Mystic-Stars/Axolotl --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 has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Tanstack Query use?

About 421 tokens (SKILL.md is roughly 1.7k 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: Tanstack Query (secondsky/claude-skills, 227 stars), Tanstack Query (Mindrally/skills, 269 stars), Tanstack Query Best Practices (DeckardGer/tanstack-agent-skills, 222 stars) and Frontend Query Mutation (langflow-ai/langflow, 155k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tanstack Query?

Mystic-Stars (a GitHub user) maintains it in Mystic-Stars/Axolotl, which has 507 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 9, 2026.

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