Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
deckardger avatar

Tanstack Start Best Practices

  • 8.6k installs
  • 205 repo stars
  • Updated April 3, 2026
  • deckardger/tanstack-agent-skills

tanstack-start-best-practices is an agent skill that TanStack Start best practices for full-stack React applications. Server functions, middleware, SSR, authentication, and deployment patterns. Activate when build.

About

TanStack Start best practices for full-stack React applications Server functions middleware SSR authentication and deployment patterns Activate when building full-stack apps with TanStack Start name tanstack-start-best-practices description TanStack Start best practices for full-stack React applications Server functions middleware SSR authentication and deployment patterns Activate when building full-stack apps with TanStack Start TanStack Start Best Practices Comprehensive guidelines for implementing TanStack Start patterns in full-stack React applications These rules cover server functions middleware SSR authentication and deployment When to Apply Creating server functions for data mutations Setting up middleware for auth logging Configuring SSR and hydration Implementing authentication flows Handling errors across client server boundary Organizing full-stack code Deploying to various platforms Rule Categories by Priority Priority Category Rules Impact CRITICAL Server Functions 5 rules Core data mutation patterns CRITICAL Security 4 rules Prevents vulnerabilities HIGH Middleware 4 rules Request response handling HIGH Authentication 4 rules Secure user sessions MEDIUM API Routes.

  • TanStack Start Best Practices
  • Creating server functions for data mutations
  • Setting up middleware for auth/logging
  • Configuring SSR and hydration
  • Implementing authentication flows

Tanstack Start Best Practices by the numbers

  • 8,589 all-time installs (skills.sh)
  • +114 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #79 of 2,203 Security skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

tanstack-start-best-practices capabilities & compatibility

Capabilities
tanstack start best practices · creating server functions for data mutations · setting up middleware for auth/logging · configuring ssr and hydration · implementing authentication flows
Use cases
documentation
From the docs

What tanstack-start-best-practices says it does

--- name: tanstack-start-best-practices description: TanStack Start best practices for full-stack React applications.
SKILL.md
Server functions, middleware, SSR, authentication, and deployment patterns.
SKILL.md
Activate when building full-stack apps with TanStack Start.
SKILL.md
--- # TanStack Start Best Practices Comprehensive guidelines for implementing TanStack Start patterns in full-stack React applications.
SKILL.md
npx skills add https://github.com/deckardger/tanstack-agent-skills --skill tanstack-start-best-practices

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8.6k
repo stars205
Security audit3 / 3 scanners passed
Last updatedApril 3, 2026
Repositorydeckardger/tanstack-agent-skills

What problem does tanstack-start-best-practices solve for developers using this skill?

TanStack Start best practices for full-stack React applications. Server functions, middleware, SSR, authentication, and deployment patterns. Activate when building full-stack apps with TanStack Start.

Who is it for?

Developers who need tanstack-start-best-practices patterns described in the cached skill documentation.

Skip if: Skip when docs are empty or the task is outside the skill's documented scope.

When should I use this skill?

TanStack Start best practices for full-stack React applications. Server functions, middleware, SSR, authentication, and deployment patterns. Activate when building full-stack apps with TanStack Start.

What you get

Actionable workflows and conventions from SKILL.md for tanstack-start-best-practices.

  • server route handlers
  • REST endpoint implementations

Files

SKILL.mdMarkdownGitHub ↗

TanStack Start Best Practices

Comprehensive guidelines for implementing TanStack Start patterns in full-stack React applications. These rules cover server functions, middleware, SSR, authentication, and deployment.

When to Apply

  • Creating server functions for data mutations
  • Setting up middleware for auth/logging
  • Configuring SSR and hydration
  • Implementing authentication flows
  • Handling errors across client/server boundary
  • Organizing full-stack code
  • Deploying to various platforms

Rule Categories by Priority

PriorityCategoryRulesImpact
CRITICALServer Functions5 rulesCore data mutation patterns
CRITICALSecurity4 rulesPrevents vulnerabilities
HIGHMiddleware4 rulesRequest/response handling
HIGHAuthentication4 rulesSecure user sessions
MEDIUMAPI Routes1 ruleExternal endpoint patterns
MEDIUMSSR6 rulesServer rendering patterns
MEDIUMError Handling3 rulesGraceful failure handling
MEDIUMEnvironment1 ruleConfiguration management
LOWFile Organization3 rulesMaintainable code structure
LOWDeployment2 rulesProduction readiness

Quick Reference

Server Functions (Prefix: sf-)

  • sf-create-server-fn — Use createServerFn for server-side logic
  • sf-input-validation — Always validate server function inputs
  • sf-method-selection — Choose appropriate HTTP method
  • sf-error-handling — Handle errors in server functions
  • sf-response-headers — Customize response headers when needed

Security (Prefix: sec-)

  • sec-validate-inputs — Validate all user inputs with schemas
  • sec-auth-middleware — Protect routes with auth middleware
  • sec-sensitive-data — Keep secrets server-side only
  • sec-csrf-protection — Implement CSRF protection for mutations

Middleware (Prefix: mw-)

  • mw-request-middleware — Use request middleware for cross-cutting concerns
  • mw-function-middleware — Use function middleware for server functions
  • mw-context-flow — Properly pass context through middleware
  • mw-composability — Compose middleware effectively

Authentication (Prefix: auth-)

  • auth-session-management — Implement secure session handling
  • auth-route-protection — Protect routes with beforeLoad
  • auth-server-functions — Verify auth in server functions
  • auth-cookie-security — Configure secure cookie settings

API Routes (Prefix: api-)

  • api-routes — Create API routes for external consumers

SSR (Prefix: ssr-)

  • ssr-data-loading — Load data appropriately for SSR
  • ssr-hydration-safety — Prevent hydration mismatches
  • ssr-streaming — Implement streaming SSR for faster TTFB
  • ssr-selective — Apply selective SSR when beneficial
  • ssr-prerender — Configure static prerendering and ISR

Environment (Prefix: env-)

  • env-functions — Use environment functions for configuration

Error Handling (Prefix: err-)

  • err-server-errors — Handle server function errors
  • err-redirects — Use redirects appropriately
  • err-not-found — Handle not-found scenarios

File Organization (Prefix: file-)

  • file-separation — Separate server and client code
  • file-functions-file — Use .functions.ts pattern
  • file-shared-validation — Share validation schemas

Deployment (Prefix: deploy-)

  • deploy-env-config — Configure environment variables
  • deploy-adapters — Choose appropriate deployment adapter

How to Use

Each rule file in the rules/ directory contains: 1. Explanation — Why this pattern matters 2. Bad Example — Anti-pattern to avoid 3. Good Example — Recommended implementation 4. Context — When to apply or skip this rule

Full Reference

See individual rule files in rules/ directory for detailed guidance and code examples.

Related skills

FAQ

What does tanstack-start-best-practices do?

TanStack Start best practices for full-stack React applications. Server functions, middleware, SSR, authentication, and deployment patterns. Activate when building full-stack apps with TanStack Start.

When should I use tanstack-start-best-practices?

TanStack Start best practices for full-stack React applications. Server functions, middleware, SSR, authentication, and deployment patterns. Activate when building full-stack apps with TanStack Start.

Is tanstack-start-best-practices safe to install?

Review the Security Audits panel on this page before installing in production.

Securityappsec

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.