agent-creator
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Use when loading data in Start routes — isomorphic loaders, TanStack Query in a loader, mutations, or per-route SSR. Do NOT use for generic Router/Query API.
$ npx -y skills add fusengine/agents --skill start-routing-data --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/start-routing-dataContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when loading data in Start routes — isomorphic loaders, TanStack Query in a loader, mutations, or per-route SSR. Do NOT use for generic Router/Query API.
name: start-routing-data description: Use when loading data in Start routes — isomorphic loaders, TanStack Query in a loader, mutations, or per-route SSR. Do NOT use for generic Router/Query API. versions: "@tanstack/react-start": "^1" "@tanstack/react-router": "^1" "@tanstack/react-query": "^5" user-invocable: false references: references/isomorphic-loaders.md, references/query-in-loader.md, references/selective-ssr.md, references/mutations.md, references/templates/query-loader-route.md, references/templates/selective-ssr-route.md related-skills: react-tanstack-router, nextjs-tanstack-query
<objective> Covers what is specific to TanStack Start about data loading, on top of generic TanStack Router/Query (route trees, file-based routing, search-param validation, useQuery/useMutation mechanics, cache config — all covered instead by react-expert's react-tanstack-router): isomorphic loaders (server on first request, client on navigation), context.queryClient.ensureQueryData() inside a loader for SSR prefetch + hydration, the per-route ssr flag (true | false | 'data-only'), and mutations through server functions followed by router.invalidate().
Critical rules: never touch window/localStorage at loader top level (loaders run on the server too) — gate with ssr: false/'data-only' or useEffect instead; share one queryOptions factory between ensureQueryData (loader) and useQuery (component) so cache keys match; prefetch through the router-context queryClient, never a new one; invalidate loaders/Query cache after every server-function write; and remember ssr only tightens down the route tree, a child can never loosen a parent's ssr: false back to true.
Includes templates for a Query-prefetching route and a selective-SSR route.
Do NOT use this skill for generic TanStack Router/Query API questions — route trees, search params, useQuery/useMutation basics belong to react-expert's react-tanstack-router skill. </objective>
Before ANY implementation, spawn in parallel:
1. **fuse-ai-pilot:explore-codebase** — map `src/routes/`, existing loaders, `router.tsx`, queryClient wiring 2. **fuse-ai-pilot:research-expert** — verify Start API via Context7 `/websites/tanstack_start_framework_react` 3. **mcp__context7__query-docs** — confirm loader / ssr / ensureQueryData signatures
After implementation, run **fuse-ai-pilot:sniper**.
---
Generic TanStack Router and TanStack Query — route trees, file-based routing, search-param validation, `useQuery`/`useMutation` mechanics, cache config — are covered by **react-expert's `react-tanstack-router`**. This skill covers ONLY what is **specific to Start**:
---
| Start-specific feature | Description | |------------------------|-------------| | **Isomorphic loader** | `Route.loader` runs on server (initial) AND client (navigation) — no `window` at top level | | **Query in loader** | `ensureQueryData(queryOptions)` prefetches on server, `useQuery` reads cache in component | | **Selective SSR** | `ssr` flag per route: full SSR, data-only, or client-only | | **Server-fn mutation** | Call `createServerFn` handler, then `router.invalidate()` to refetch loaders |
---
1. **Loaders are isomorphic** — never touch `window`/`localStorage` at loader top level; gate with `ssr: false`/`'data-only'` or `useEffect`. 2. **Share `queryOptions`** — define once, pass to BOTH `ensureQueryData` (loader) and `useQuery` (component) so the cache key matches. 3. **Prefetch via `context.queryClient`** — the loader receives `queryClient` from router context; do not create a new client. 4. **Mutations invalidate** — after a server-fn write, call `router.invalidate()` (loader data) or `queryClient.invalidateQueries` (Query cache). 5. **`ssr` inherits down and only tightens** — a child cannot loosen a parent's `ssr: false` back to `true`.
---
src/
├── router.tsx # createRouter({ context: { queryClient } })
├── routes/
│ └── posts.$postId.tsx # loader: ensureQueryData + component: useQuery
└── queries/
└── posts.ts # queryOptions factory (shared loader + component)→ See [query-loader-route.md](references/templates/query-loader-route.md) for the complete route
---
| Topic | Reference | Load when | |-------|-----------|-----------| | **Isomorphic loaders** | [isomorphic-loaders.md](references/isomorphic-loaders.md) | Loader touches browser API or you see hydration mismatch | | **Query in loader** | [query-in-loader.md](references/query-in-loader.md) | Integrating TanStack Query prefetch with a Start loader | | **Selective SSR** | [selective-ssr.md](references/selective-ssr.md) | Disabling/tuning SSR per route | | **Mutations** | [mutations.md](references/mutations.md) | Writing data via server functions and refreshing the UI |
| Template | When to Use | |----------|-------------| | [query-loader-route.md](references/templates/query-loader-route.md) | Route that prefetches with Query and reads in the component | | [selective-ssr-route.md](references/templates/selective-ssr-route.md) | Route needing client-only render or data-only SSR |
---
A plugin ecosystem that turns Claude Code into a supervised, multi-agent development environment.
Repo: fusengine/agents
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Use when starting ANY development task -- feature, bug fix, refactor, hotfix (triggers: implement, create, build, fix, add feature, refactor, develop).
Use when creating a feature/component or adding functionality. Fires BEFORE APEX Analyze to refine requirements via structured questioning.
Use before a root-cause, done/verified claim, irreversible action, or 2nd-time fix reaches the owner (APEX or plain conversation); also fires at every…
Use when validating code quality after modifications -- SOLID compliance, DRY duplication, linter errors, architecture violations. Do NOT use for functional…
Use when an expert agent self-reviews and self-corrects code after the Execute phase, before sniper validation (BMAD-METHOD elicitation techniques).