Tanstack Vue Query Skilld
Vue data-fetching hooks with Vue-specific rules for refs, reactive query keys, and client setup.
- CCM score
- 57 of 100
- skills.sh installs
- 233
- GitHub stars
- 187
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers the plugin setup, basic query and mutation patterns, and Vue-specific reactivity rules for queries and mutations
- Includes reference files for the full API, reactivity, the query client, mutations, and v5 migration notes
- Enforces that query keys hold refs rather than unwrapped values, and that composables run inside
setup()or aneffectScope - Designed for Vue 3.3+ and Vue 2.6+ projects that use
@tanstack/vue-queryfor remote and cached async state
Install
$ npx -y skills add skilld-dev/vue-ecosystem-skills --skill tanstack-vue-query-skilld -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
@tanstack/vue-query@5.103.2
Async data hooks for Vue. Version 5.103.2, prepared source at input/source.
Peer deps: vue ^2.6.0 || ^3.3.0; Vue 2 needs @vue/composition-api (optional peer) (package.json:56-59).
Re-exports everything from @tanstack/query-core 5.103.2, so keepPreviousData, skipToken, focusManager, onlineManager, hydration utils, and observer classes import from @tanstack/vue-query directly (src/index.ts:1).
Setup
Install the plugin once per app. It creates (or accepts) a QueryClient, provides it app-wide, and mounts/unmounts it (src/vueQueryPlugin.ts:74-154):
import { createApp } from 'vue'
import { QueryClient, VueQueryPlugin } from '@tanstack/vue-query'
const app = createApp(App)
// Option A: pass your own client (required for SSR — one fresh client per request)
const queryClient = new QueryClient()
app.use(VueQueryPlugin, { queryClient })
// Option B: let the plugin build one with your defaults
app.use(VueQueryPlugin, {
queryClientConfig: { defaultOptions: { queries: { staleTime: 5 * 1000 } } },
})
Details
- Repository
- github.com/skilld-dev/vue-ecosystem-skills
- Category
- Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the tanstack-vue-query-skilld skill do?
It gives the agent context for @tanstack/vue-query 5.103.2, the Vue hooks for managing, caching and syncing asynchronous and remote data. It covers useQuery, useMutation, the QueryClient setup through VueQueryPlugin, and the rules Vue developers most often get wrong, such as refs in query keys.
How do I install the tanstack-vue-query-skilld skill?
Run npx -y skills add skilld-dev/vue-ecosystem-skills --skill tanstack-vue-query-skilld -y in your project. Once installed, the agent can follow the library's current conventions when writing or debugging TanStack Vue Query code.
Which Vue versions does the tanstack-vue-query-skilld skill cover?
The skill targets Vue 3.3 and later, and Vue 2.6 or later with @vue/composition-api or Vue 2.7 native. It is built from the 5.103.2 release of @tanstack/vue-query, so v4 APIs in older examples may not match.
Where does the tanstack-vue-query-skilld skill sit in its category?
It is listed under Frontend & UI Code, next to vercel-react-best-practices, web-design-guidelines and design-taste-frontend. Its focus is narrower: data fetching and caching for Vue with TanStack Vue Query.
More from skilld-dev/vue-ecosystem-skills
All 10Similar to Tanstack Vue Query Skilld
More Frontend & UI Codevue-skilldskilld-dev/vue-ecosystem-skills443 installsPre-release Vue 3.6 beta guide covering Vapor Mode, reactivity changes, and API migrations from 3.4 onward.
pinia-colada-skilldskilld-dev/vue-ecosystem-skills243 installsData fetching layer for Vue built on Pinia, covering queries, mutations, and cache invalidation.
state-managementasyrafhussin/agent-skills877 installsVersioned React Query and Zustand patterns for data fetching, caching, mutations, and client state.
react-querymindrally/skills1.5K installsGuidelines for React Query data fetching, caching, mutations, and server-state patterns alongside client state.
vue-best-practicesvuejs-ai/skills47.2K installsVue 3 guidance that enforces Composition API with <script setup> and TypeScript for every Vue task.
vueuni-helper/skills731 installsVue 3.5+ framework skill covering components, reactivity, and Composition API patterns with TypeScript defaults.