Agent skill

Tanstack Vue Store Skilld

by skilld-dev in skilld-dev/vue-ecosystem-skills

Vue adapter for TanStack Store, a framework agnostic type-safe store.

MITAuto-check passedDevelopment

Install Tanstack Vue Store Skilld

skills CLI
$ npx skills add skilld-dev/vue-ecosystem-skills --skill tanstack-vue-store-skilld -a claude-code

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

GitHub CLI
$ gh skill install skilld-dev/vue-ecosystem-skills tanstack-vue-store-skilld --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/skilld-dev/vue-ecosystem-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/tanstack-vue-store-skilld .claude/skills/tanstack-vue-store-skilld && 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-vue-store-skilld
GitHub stars
181
Token cost
~1.7k tokens
SKILL.md length
604 words
Files
5 (incl. references)
Skills in repo
34
Repo updated
First seen
Licence
MIT

At a glance

Vue adapter for TanStack Store, a framework agnostic type-safe store.

  • Writing code importing @tanstack/vue-store in a Vue app
  • SKILL.md covers Quick start, Hooks (this package's own…, Rules that prevent bugs and Core re-exports from…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Type safety

What it does

Tanstack Vue Store Skilld is an agent skill from skilld-dev/vue-ecosystem-skills. Vue adapter for TanStack Store, a framework agnostic type-safe store. ALWAYS use when writing code importing "@tanstack/vue-store" in a Vue app. Covers the useSelector, useAtom, useStore (deprecated), and useStore hooks, the re-exported @tanstack/store core API (createStore, createAtom, createAsyncAtom, batch, flush, shallow), debugging, best practices, and migration between @tanstack/vue-store versions.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/core-api.md`, `references/migration.md` and `references/patterns.md`).

It sits in Development, covering Type safety. It works with TanStack and Vue.js. The repository describes itself as: Agent Skills for the Vue ecosystem, written from current docs, issues, and releases. The licence is MIT.

When your agent uses it

  • Writing code importing @tanstack/vue-store in a Vue app
  • Tasks that involve Type safety

Example prompts

  • “@tanstack/vue-store”
  • “/tanstack-vue-store-skilld”

What it can do on your machine

Read from SKILL.md and the folder at commit c8994af. 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 (its code samples are typescript).

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

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • tanstack.com

    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 Vue Store Skilld loads about 1.7k tokens when it runs, and up to ~5.7k if it reads all its reference files. Until then it costs about 109 tokens; SKILL.md has 604 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~109
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.7k

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 skilld-dev/vue-ecosystem-skills at commit c8994af, republished under its MIT licence (© skilld-dev). 604 words, ~1,697 tokens.

Download SKILL.mdSave it as .claude/skills/tanstack-vue-store-skilld/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
tanstack-vue-store-skilld
description
Vue adapter for TanStack Store, a framework agnostic type-safe store. ALWAYS use when writing code importing "@tanstack/vue-store" in a Vue app. Covers the useSelector, useAtom, useStore (deprecated), and _useStore hooks, the re-exported @tanstack/store core API (createStore, createAtom, createAsyncAtom, batch, flush, shallow), debugging, best practices, and migration between @tanstack/vue-store versions.

@tanstack/vue-store@0.11.1

Vue adapter for TanStack Store. Exact core dependency: @tanstack/store@0.11.1 (package.json:41). src/index.ts:1 re-exports the whole core, so Vue apps import everything from @tanstack/vue-store alone.

Quick start

ts
import { createStore, createAtom, shallow, useAtom, useSelector } from '@tanstack/vue-store'

// Module scope: create once, import anywhere
const counter = createStore({ count: 0 })
const countAtom = createAtom(0)

// Inside <script setup>
const count = useSelector(counter, (s) => s.count)                             // slice
const pair = useSelector(counter, (s) => ({ n: s.count }), { compare: shallow }) // object slice
const [n, setN] = useAtom(countAtom)                                           // read + write
setN((prev) => prev + 1)

Read refs in templates as {{ count }}, in script as count.value.

Hooks (this package's own exports)

HookSignatureUse
useSelector(source, selector?, options?) => Readonly<Ref<TSelected>>Primary read hook. Store, atom, or any { get, subscribe } source. Omit the selector to subscribe to the whole value.
useAtom(atom, options?) => [Readonly<Ref<TValue>>, atom.set]Read plus write for one writable atom. The setter takes a value or an updater function (src/useAtom.ts:20-27).
_useStore(store, selector, options?) => [selected, actions or setState]Experimental read+write tuple. The selector argument is required (src/_useStore.ts:30). Returns store.actions when the store has an actions factory, else store.setState (src/_useStore.ts:37-38).
useStoredeprecatedAlias for useSelector. Third argument is a bare compare function, not an options object (src/useStore.ts:14-23). Prefer useSelector.

options is UseSelectorOptions: { compare?: (a, b) => boolean } (src/useSelector.ts:4-6).

Details, behavior notes, and pitfalls: Vue hooks reference

Rules that prevent bugs

  • Default compare is strict === (src/useSelector.ts:15-17). When the selector builds a fresh object or array, pass { compare: shallow } or the ref updates on every notification. Primitive selectors need no custom compare.
  • Call the hooks inside component setup or another effect scope. useSelector unsubscribes via onScopeDispose (src/useSelector.ts:54-56); outside a scope, cleanup never runs.
  • Returned refs are readonly. Write through store.setState, atom.set, store actions, or the second tuple element of useAtom/_useStore.
  • Keep selectors cheap. The selector runs on every notification of the source (src/useSelector.ts:46-52); move expensive computation into a derived createStore.
  • Do not import createStoreContext from this package. The 0.11.0 release notes list it, but the 0.11.1 source exports only useSelector, useAtom, useStore, _useStore plus the core re-export (src/index.ts, dist/index.d.ts). See release 0.11.0.

Core re-exports from @tanstack/store

  • createStore(initialValue) -> Store<T>; createStore((prev?) => T) -> ReadonlyStore<T> (derived); createStore(initialValue, actionsFactory) -> Store<T, TActions> with typed store.actions.
  • Store: state getter, get(), setState(updater), subscribe(observerOrFn) returning { unsubscribe }, bound actions. ReadonlyStore omits setState and actions.
  • createAtom(initialValue) -> writable Atom<T>; createAtom(fn) -> computed ReadonlyAtom<T>. AtomOptions.compare controls change detection.
  • createAsyncAtom(() => Promise<T>) -> ReadonlyAtom of a { status } discriminated union: 'pending' | 'done' | 'error'.
  • batch(fn) groups updates into one notification cycle; flush() drains pending effects. shallow(a, b) compares Object.is, then Map and Set contents, Date timestamps, and own keys including symbols.
  • toObserver() normalizes callbacks or RxJS-style observers for subscribe.
  • Types: Observer, Subscription, Subscribable, Readable, Atom, ReadonlyAtom, AtomOptions, StoreActionMap, StoreActionsFactory, and others.

Full surface with cautions: core API reference

Show full SKILL.md (219 more words)Show less

Best practices

  • Use useSelector, never the deprecated useStore, for new code (src/useSelector.ts:39).
  • Define stores in plain modules outside components. This is the documented sharing pattern (Vue quick start).
  • Select fine-grained slices. The component re-renders only when the selected value changes.
  • Write state through store.setState((prev) => next) updater functions; updates are immutable.
  • Group multiple updates in batch(() => { ... }) so subscribers notify once with the final state.
  • Derive with createStore(() => ...); derived stores recompute when dependencies change, and prev accumulates values.
  • Co-locate writes with an actions factory so _useStore returns typed actions (src/_useStore.ts:37-38).
  • Use createAsyncAtom for async data instead of hand-rolled pending and error flags.
  • Observe state outside components with store.subscribe(() => ...); it returns { unsubscribe }.

Recipes and full examples: patterns reference

Migration

Version-specific changes and upgrade steps, most recent first: migration reference

Highlights:

  • 0.11.x: useSelector introduced as primary hook; useStore deprecated; default compare is ===, replacing the pre-0.11 shallow default and { equal } option.
  • 0.9.0 breaking: new Store() -> createStore(); new Derived() -> derived createStore(fn); new Effect() removed in favor of store.subscribe().

Environment

  • Vue ^3.0.0 or ^2.5.0 through vue-demi. Vue 2 needs the optional peer @vue/composition-api@^1.2.1 (package.json:50-58).
  • Exact core pin @tanstack/store@0.11.1; core APIs are re-exported, so no separate core install is needed in Vue apps.
  • Dual format: ESM via the import condition (dist/index.js), CJS via require (dist/index.cjs); types at dist/index.d.cts; sideEffects: false.
  • TypeScript 5.6 through 5.9 are tested (package.json:62-66).

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

Files

SKILL.md and 4 other files (references) in skills/tanstack-vue-store-skilld of skilld-dev/vue-ecosystem-skills.

  • SKILL.md
  • references/core-api.md
  • references/migration.md
  • references/patterns.md
  • references/vue-hooks.md

Open the folder on GitHubat commit c8994af

Compare with similar skills

Tanstack Vue Store Skilld 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 Vue Store Skilld compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tanstack Vue Store Skilld this skillskilld-dev/vue-ecosystem-skills181—~1.7kAutomated safety check: PassMIT
Wagmi Feature Developmentwevm/wagmi6.8k—~3.8kAutomated safety check: PassMIT
Vue Best Practicesoyjt/uniapp-vue3-template6273 repos~667Automated safety check: PassMIT
Tanstack Router Best PracticesDeckardGer/tanstack-agent-skills222—~1.1kAutomated safety check: PassMIT
Tanstack Routerbskimball/tanstack-hono119—~4.4kAutomated safety check: PassMIT
Regle Typescriptvictorgarciaesgi/regle506—~534Automated safety check: PassMIT

Similar skills

  • Walks through adding a Wagmi feature across its layers: a Viem-based core action, TanStack Query options, and React and Vue bindings.

    6.8k GitHub stars~3.8k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Vue Best Practices

    oyjt/uniapp-vue3-template

    Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar.

    627 GitHub starsUsed in 3 repos~667 tokens
    DevelopmentAuto-check passed
  • Tanstack Router Best Practices

    DeckardGer/tanstack-agent-skills

    TanStack Router best practices for type-safe routing, data loading, search params, and navigation.

    222 GitHub stars~1.1k tokensUpdated 28 days ago
    DevelopmentAuto-check passed
  • Tanstack Router

    bskimball/tanstack-hono

    Type-safe routing for React and Solid applications with first-class search params, data loading, and seamless integration with the React ecosystem.

    119 GitHub stars~4.4k tokensUpdated 26 days ago
    DevelopmentAuto-check passed
  • Regle Typescript

    victorgarciaesgi/regle

    TypeScript integration for Regle — type-safe validated output (InferSafeOutput, $validate), inferring state from rules (InferInput), typing computed rules (inferRules, RegleComputedRules), and…

    506 GitHub stars~534 tokensUpdated 9 days ago
    DevelopmentAuto-check passed
  • Tanstack Router

    blencorp/claude-code-kit

    TanStack Router file-based routing patterns including route creation, navigation, loaders, type-safe routing, and lazy loading.

    106 GitHub stars~2.4k tokensUpdated 10 mo ago
    DevelopmentAuto-check passed

More from skilld-dev/vue-ecosystem-skills

All 34 skills in this repo
  • Floating UI Vue Skilld

    skilld-dev/vue-ecosystem-skills

    Floating UI for Vue (@floating-ui/vue@2.0.1). An agent skill from skilld-dev/vue-ecosystem-skills.

    181 GitHub stars~1.3k tokensUpdated 15 days ago
    Auto-check passed
  • Formkit Core Skilld

    skilld-dev/vue-ecosystem-skills

    A skill your agent uses whenever writing, debugging, or reviewing code that imports @formkit/core — FormKit's framework-agnostic core (node trees, values, events, hooks, message stores, ledgers…

    181 GitHub stars~2.1k tokensUpdated 15 days ago
    Auto-check passed
  • Pinia Colada Skilld

    skilld-dev/vue-ecosystem-skills

    Data fetching layer for Vue built on Pinia. An agent skill from skilld-dev/vue-ecosystem-skills.

    181 GitHub stars~1.9k tokensUpdated 15 days ago
    Auto-check passed
  • Pinia Skilld

    skilld-dev/vue-ecosystem-skills

    A skill your agent uses when writing, debugging, or refactoring code that imports "pinia", the Vue 3 store library.

    181 GitHub stars~1.5k tokensUpdated 15 days ago
    Auto-check passed
  • Primevue Skilld

    skilld-dev/vue-ecosystem-skills

    A skill your agent uses when writing, debugging, or updating code that imports primevue (PrimeVue v5, UI component library for Vue 3).

    181 GitHub stars~1.9k tokensUpdated 15 days ago
    Auto-check passed
  • Quasar Skilld

    skilld-dev/vue-ecosystem-skills

    Build, configure, and debug apps with the Quasar framework (quasar npm package, v2.33.1).

    181 GitHub stars~1.6k tokensUpdated 15 days ago
    Auto-check passed

Works with

Categories

Questions about Tanstack Vue Store Skilld

What does Tanstack Vue Store Skilld do?

Vue adapter for TanStack Store, a framework agnostic type-safe store. Tanstack Vue Store Skilld is an agent skill from skilld-dev/vue-ecosystem-skills. Vue adapter for TanStack Store, a framework agnostic type-safe store.

When should I use Tanstack Vue Store Skilld?

Tanstack Vue Store Skilld fits situations like: writing code importing @tanstack/vue-store in a Vue app; tasks that involve Type safety.

How do I install Tanstack Vue Store Skilld in Claude Code?

Run `npx skills add skilld-dev/vue-ecosystem-skills --skill tanstack-vue-store-skilld -a claude-code`. Or copy the skill folder (skills/tanstack-vue-store-skilld in skilld-dev/vue-ecosystem-skills) into .claude/skills/tanstack-vue-store-skilld in your project. Claude Code loads it when a task matches its description.

How do I install Tanstack Vue Store Skilld in Codex?

Run `npx skills add skilld-dev/vue-ecosystem-skills --skill tanstack-vue-store-skilld -a codex`. Or copy the skill folder (skills/tanstack-vue-store-skilld in skilld-dev/vue-ecosystem-skills) into .agents/skills/tanstack-vue-store-skilld in your project. Codex loads it when a task matches its description.

Can I use Tanstack Vue Store Skilld 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 skilld-dev/vue-ecosystem-skills --skill tanstack-vue-store-skilld -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-vue-store-skilld, .gemini/skills/tanstack-vue-store-skilld, .github/skills/tanstack-vue-store-skilld and .opencode/skills/tanstack-vue-store-skilld in your project.

What does Tanstack Vue Store Skilld need to run?

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

Does Tanstack Vue Store Skilld access the network?

SKILL.md names 2 domains. As links in the text: github.com and tanstack.com. This is read from the text; nothing was executed.

Is Tanstack Vue Store Skilld 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 Vue Store Skilld use?

Tanstack Vue Store Skilld is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tanstack Vue Store Skilld use?

About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4k tokens, read only when the agent opens those files.

What are the alternatives to Tanstack Vue Store Skilld?

Skills that share tags, products or a category with Tanstack Vue Store Skilld: Wagmi Feature Development (wevm/wagmi, 6.8k stars), Vue Best Practices (oyjt/uniapp-vue3-template, 627 stars), Tanstack Router Best Practices (DeckardGer/tanstack-agent-skills, 222 stars) and Tanstack Router (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 Vue Store Skilld?

skilld-dev (a GitHub organization) maintains it in skilld-dev/vue-ecosystem-skills, which has 181 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on September 22, 2026.

Source: skilld-dev/vue-ecosystem-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.