Agent skill
tanstack-start
TanStack Start, Router, Query, and Server Functions patterns and best practices for this project.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/tanstack-start-dlupiak-claude-session-dashb
SKILL.md
TanStack Start Patterns
Server Functions
- Define with
createServerFnfrom@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
createFileRoutefor route definitions - Use
loaderfor server-side data fetching (runs on server) - Use
beforeLoadfor auth guards and redirects - Route context flows from
__root.tsxto child routes
Query
- Use
queryOptionsto define reusable query configs - Use
useSuspenseQueryin 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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?