tanstack-start
dlupiak/claude-session-dashboard/.claude/skills/tanstack-start/SKILL.md
TanStack Start, Router, Query, and Server Functions patterns and best practices for this project.
Skill66 starsChanged 7 months ago
What's in it
- TanStack Start Patterns
- Server Functions
- Router
- Query
- Key Conventions
--- name: tanstack-start description: TanStack Start, Router, Query, and Server Functions patterns and best practices for this project. user-invocable: true --- # TanStack Start Patterns ## Server Functions - Define with `createServerFn` from `@tanstack/react-start` - Use `.validator()` for input validation (e.g. with zod) - Use `.handler()` for the implementation - Server functions run on the server only — safe for DB access and secrets ## Router - File-based routing in `src/routes/` - Use `createFileRoute` for route definitions - Use `loader` for server-side data fetching (runs on server) - Use `beforeLoad` for auth guards and redirects - Route context flows from `__root.tsx` to child routes ## Query - Use `queryOptions` to define reusable query configs - Use `useSuspenseQuery` in components for data fetching - Invalidate queries after mutations with `queryClient.invalidateQueries()` - TanStack Query handles caching, deduplication, and background refetching ## Key Conventions - Path alias: `@/` → `apps/web/src/` - Route files: `src/routes/<path>.tsx` - Layouts: `src/routes/_<layout>.tsx` (pathless layout routes) - API routes: `src/routes/api/<name>.ts`
More agent context in dlupiak/claude-session-dashboard
17 other files this repository gives its agents.
CLAUDE.md
Skill
- analyze-skills.claude/skills/analyze-skills/SKILL.md
- dashboard.claude/skills/dashboard/SKILL.md
- feature.claude/skills/feature/SKILL.md
- fix-ci.claude/skills/fix-ci/SKILL.md
- fix-issue.claude/skills/fix-issue/SKILL.md
- investigate.claude/skills/investigate/SKILL.md
- open-issue.claude/skills/open-issue/SKILL.md
- playwright-cli.claude/skills/playwright-cli/SKILL.md
- quality-check.claude/skills/quality-check/SKILL.md
- react-rules.claude/skills/react-rules/SKILL.md
- review.claude/skills/review/SKILL.md
- sdlc.claude/skills/sdlc/SKILL.md
- ship.claude/skills/ship/SKILL.md
- testing.claude/skills/testing/SKILL.md
- typescript-rules.claude/skills/typescript-rules/SKILL.md
- uiux.claude/skills/uiux/SKILL.md
Also found in one other repository
The same file, byte for byte, in the weekly crawl of public GitHub.
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

