# tanstack-wasp-drone

tanstack-wasp-drone guides TanStack library integration inside SvelteKit applications running Svelte 5 runes.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 96 repo stars
- Author: Legion Code Inc.
- License: AGPL-3.0-or-later · policy=link-only · description only; the file stays with the author
- Source: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/web-development-tools/agents/tanstack-wasp-drone.md
- Updated: 2026-10-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/tanstack-wasp-drone

## What it does

This subagent enforces correct patterns when pairing TanStack libraries with SvelteKit and Svelte 5. It configures `@tanstack/svelte-query` for SSR-safe client initialization, universal `load` prefetching, and cache invalidation. For data grids, it scaffolds `@tanstack/svelte-table` v9 using rune-native state with getter-based data inputs, alongside snippet-based form validation via `@tanstack/svelte-form` and list virtualization via `@tanstack/svelte-virtual`.

The workflow begins by validating native framework alternatives. If SvelteKit built-in `load` functions or remote primitives satisfy requirements, the drone advises against importing TanStack Query to save bundle weight. A strict boundary applies to routing: because TanStack Router and TanStack Start lack official Svelte support, the agent openly refuses to generate speculative workarounds or introduce unverified third-party adapters.

Component styling, Vercel edge caching, and underlying SQL schemas remain outside its scope, delegating those layers to companion drones. It logs architectural reasoning directly into markdown records under `library/`.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add legioncodeinc/vibe-coding-tools
```
In the agent chat (not a shell):
```text
/plugin install web-development-tools@wasp-nest
```

2. **Manually: put the files in place**
- File: `.claude/agents/tanstack-wasp-drone.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/tanstack-wasp-drone.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/tanstack-wasp-drone.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/web-development-tools/agents/tanstack-wasp-drone.md

## When to use it
- configure SSR-safe TanStack Query prefetching inside SvelteKit
- build reactive data tables using TanStack Table v9 runes
- audit Svelte 5 compatibility across proposed TanStack libraries

## Example prompts
- Set up svelte-query with SSR prefetching inside our universal load function
- Build a data table using rune-native createTable in Svelte 5
- Should I use TanStack Router with SvelteKit?

## Similar
- [tanstack-table](https://affpapa.org/en/nevibecode/skills/tanstack-table.md) — skill · 5700 installs
- [tanstack-vue-table-skilld](https://affpapa.org/en/nevibecode/skills/tanstack-vue-table-skilld.md) — skill · 144 installs
- [tanstack-query-best-practices](https://affpapa.org/en/nevibecode/skills/tanstack-query-best-practices.md) — skill · 13400 installs
- [tanstack](https://affpapa.org/en/nevibecode/skills/tanstack.md) — skill · 393 installs
- [tanstack-query-setup](https://affpapa.org/en/nevibecode/skills/tanstack-query-setup.md) — skill · 267 installs
- [tanstack-query](https://affpapa.org/en/nevibecode/skills/tanstack-query.md) — skill · 10500 installs

From the same set: [legioncodeinc/vibe-coding-tools](https://affpapa.org/en/nevibecode/by/legioncodeinc/vibe-coding-tools.md) — 172 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
