Agent skill

Tanstack Start Best Practices

by DeckardGer in DeckardGer/tanstack-agent-skills

TanStack Start best practices for full-stack React applications.

MITAuto-check passedBackend & APIs

Install Tanstack Start Best Practices

skills CLI
$ npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-start-best-practices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-start-best-practices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/DeckardGer/tanstack-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/tanstack-start .claude/skills/tanstack-start-best-practices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tanstack-start-best-practices
GitHub stars
222
Token cost
~1k tokens
SKILL.md length
401 words
Files
33
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

TanStack Start best practices for full-stack React applications.

  • Works in 4 steps: Explanation — Why this pattern matters → Bad Example — Anti-pattern to avoid → Good Example — Recommended implementation → …
  • Tasks that involve Deployment
  • SKILL.md covers When to Apply, Rule Categories by Priority, Quick Reference and How to Use, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Tanstack Start Best Practices is an agent skill from DeckardGer/tanstack-agent-skills. 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.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 33 other files (for example `rules/api-routes.md`, `rules/auth-cookie-security.md` and `rules/auth-route-protection.md`).

It sits in Backend & APIs, covering Deployment and Authentication. It works with TanStack and React. The repository describes itself as: TanStack Agent Skills: Best practices for TanStack Query, Router, and Start for AI coding agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Deployment
  • Tasks that involve Authentication

Example prompts

  • “/tanstack-start-best-practices”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit b2fc14c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tanstack Start Best Practices loads about 1k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 401 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from DeckardGer/tanstack-agent-skills at commit b2fc14c, republished under its MIT licence (© DeckardGer). 401 words, ~1,035 tokens.

Download SKILL.mdSave it as .claude/skills/tanstack-start-best-practices/SKILL.md (or your agent's skills folder). This skill also uses 32 other files; get the full folder from GitHub.
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

PriorityCategoryRulesImpact
CRITICALServer Functions5 rulesCore data mutation patterns
CRITICALSecurity4 rulesPrevents vulnerabilities
HIGHMiddleware4 rulesRequest/response handling
HIGHAuthentication4 rulesSecure user sessions
MEDIUMAPI Routes1 ruleExternal endpoint patterns
MEDIUMSSR5 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
Show full SKILL.md (151 more words)Show less
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.

© DeckardGer, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 32 other files in skills/tanstack-start of DeckardGer/tanstack-agent-skills.

  • SKILL.md
  • rules/api-routes.md
  • rules/auth-cookie-security.md
  • rules/auth-route-protection.md
  • rules/auth-server-functions.md
  • rules/auth-session-management.md
  • rules/deploy-adapters.md
  • rules/deploy-env-config.md
  • rules/env-functions.md
  • rules/err-not-found.md
  • rules/err-redirects.md
  • rules/err-server-errors.md
  • rules/file-functions-file.md
  • rules/file-separation.md
  • rules/file-shared-validation.md
  • rules/mw-composability.md
  • rules/mw-context-flow.md
  • rules/mw-function-middleware.md
  • rules/mw-request-middleware.md
  • rules/sec-auth-middleware.md
  • … and 13 more

Open the folder on GitHubat commit b2fc14c

Compare with similar skills

Tanstack Start Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tanstack Start Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tanstack Start Best Practices this skillDeckardGer/tanstack-agent-skills222—~1kAutomated safety check: PassMIT
Flow Nexus Platformruvnet/agentic-flow8164 repos~6.4kAutomated safety check: PassNone
Authvercel/vercel-plugin301—~6.4kAutomated safety check: NotesCustom licence
Adobe Upgrade Migrationjeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: PassMIT
Granola Multi Env Setupjeremylongshore/tons-of-skills-marketplace2.8k—~2kAutomated safety check: PassMIT
Tanstack StartMindrally/skills268—~2kAutomated safety check: PassApache-2.0

Similar skills

  • Flow Nexus Platform

    ruvnet/agentic-flow

    Comprehensive Flow Nexus platform management - authentication, sandboxes, app deployment, payments, and challenges

    816 GitHub starsUsed in 4 repos~6.4k tokens
    Backend & APIsAuto-check passed
  • Auth

    vercel/vercel-plugin

    Official

    Authentication integration guidance — Clerk (native Vercel Marketplace), Better Auth, Descope, and Auth0 setup for Next.js applications, plus Sign in with Vercel, Vercel Passport, and Vercel KMS.

    301 GitHub stars~6.4k tokensUpdated today
    Backend & APIsAuto-check: notes
  • Adobe Upgrade Migration

    jeremylongshore/tons-of-skills-marketplace

    Migrate Adobe integrations away from Service Account JWT, Photoshop v1, retired Lightroom Firefly Services, or drifting SDK/API contracts with canaries and rollback.

    2.8k GitHub stars~1.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Granola Multi Env Setup

    jeremylongshore/tons-of-skills-marketplace

    Configure Granola across multiple workspaces and teams with SSO/SCIM provisioning.

    2.8k GitHub stars~2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Tanstack Start

    Mindrally/skills

    Best practices for TanStack Start, the full-stack React framework built on TanStack Router and Vite/Nitro.

    268 GitHub stars~2k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Azure Dev Box

    MicrosoftDocs/Agent-Skills

    Official

    Expert knowledge for Azure Dev Box development including troubleshooting, best practices, decision making, limits & quotas, security, configuration, integrations & coding patterns, and deployment.

    777 GitHub stars~2.6k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed

More from DeckardGer/tanstack-agent-skills

  • Tanstack Query Best Practices

    DeckardGer/tanstack-agent-skills

    TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management.

    222 GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check passed
  • Tanstack Router Best Practices

    DeckardGer/tanstack-agent-skills

    TanStack Router best practices for type-safe routing, data loading, search params, and navigation.

    222 GitHub stars~1.1k tokensUpdated 28 days ago
    Auto-check passed
  • Tanstack Integration Best Practices

    DeckardGer/tanstack-agent-skills

    Best practices for integrating TanStack Query with TanStack Router and TanStack Start.

    222 GitHub stars~644 tokensUpdated 28 days ago
    Auto-check passed

Works with

Questions about Tanstack Start Best Practices

What does Tanstack Start Best Practices do?

TanStack Start best practices for full-stack React applications. Tanstack Start Best Practices is an agent skill from DeckardGer/tanstack-agent-skills. TanStack Start best practices for full-stack React applications.

When should I use Tanstack Start Best Practices?

Tanstack Start Best Practices fits situations like: tasks that involve Deployment; tasks that involve Authentication.

How do I install Tanstack Start Best Practices in Claude Code?

Run `npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-start-best-practices -a claude-code`. Or copy the skill folder (skills/tanstack-start in DeckardGer/tanstack-agent-skills) into .claude/skills/tanstack-start-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Tanstack Start Best Practices in Codex?

Run `npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-start-best-practices -a codex`. Or copy the skill folder (skills/tanstack-start in DeckardGer/tanstack-agent-skills) into .agents/skills/tanstack-start-best-practices in your project. Codex loads it when a task matches its description.

Can I use Tanstack Start Best Practices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-start-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tanstack-start-best-practices, .gemini/skills/tanstack-start-best-practices, .github/skills/tanstack-start-best-practices and .opencode/skills/tanstack-start-best-practices in your project.

What does Tanstack Start Best Practices need to run?

SKILL.md names no scripts, command-line tools or credentials: Tanstack Start Best Practices is instructions for the agent only.

Does Tanstack Start Best Practices access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Tanstack Start Best Practices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tanstack Start Best Practices use?

Tanstack Start Best Practices is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tanstack Start Best Practices use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tanstack Start Best Practices?

Skills that share tags, products or a category with Tanstack Start Best Practices: Flow Nexus Platform (ruvnet/agentic-flow, 816 stars), Auth (vercel/vercel-plugin, 301 stars), Adobe Upgrade Migration (jeremylongshore/tons-of-skills-marketplace, 2.8k stars) and Granola Multi Env Setup (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tanstack Start Best Practices?

DeckardGer (a GitHub user) maintains it in DeckardGer/tanstack-agent-skills, which has 222 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 9, 2026.

Source: DeckardGer/tanstack-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.