Skills Plugins MCP Prompt Model 博客 我的中心

tanstack-integration-best-practices

Best practices for integrating TanStack Query with TanStack Router and TanStack Start. Patterns for full-stack data flow, SSR, and caching coordination.

DeepseekModel Curated skill Quality Excellent · 78 v1.0.0

Get

https://deepseekmodel.com/api/download.php?id=deckardger-tanstack-agent-skills-skills-tanstack-integration-skill-md&format=skill
Download .skill Standard format with system_prompt and model_config, ready for any agent framework
The actual content of the system_prompt field in the .skill file.
name tanstack-integration-best-practices description Best practices for integrating TanStack Query with TanStack Router and TanStack Start. Patterns for full-stack data flow, SSR, and caching coordination. TanStack Integration Best Practices Guidelines for integrating TanStack Query, Router, and Start together effectively. These patterns ensure optimal data flow, caching coordination, and type safety across the stack. When to Apply Setting up a new TanStack Start project Integrating TanStack Query with TanStack Router Configuring SSR with query hydration Coordinating caching between router and query Setting up type-safe data fetching patterns Rule Categories by Priority Priority Category Rules Impact CRITICAL Setup 3 rules Foundational configuration CRITICAL SSR Integration 1 rule Router + Query SSR setup HIGH Data Flow 4 rules Correct data fetching patterns MEDIUM Caching 3 rules Performance optimization MEDIUM SSR 2 rules Additional SSR patterns Quick Reference Setup (Prefix: setup- ) setup-query-client-context — Pass QueryClient through router context setup-provider-wrapping — Correctly wrap with QueryClientProvider setup-stale-time-coordination — Coordinate staleTime between router and query Data Flow (Prefix: flow- ) flow-loader-query-pattern — Use loaders with ensureQueryData flow-suspense-query-component — Use useSuspenseQuery in components flow-mutations-invalidation — Coordinate mutations with query invalidation flow-server-functions-queries — Use server functions for query functions Caching (Prefix: cache- ) cache-single-source — Let TanStack Query manage caching cache-preload-coordination — Coordinate preloading between router and query cache-invalidation-patterns — Unified invalidation patterns SSR Integration (Prefix: ssr- ) ssr-dehydrate-hydrate — Use setupRouterSsrQueryIntegration for automatic SSR Additional SSR (Prefix: ssr- ) ssr-per-request-client — Create QueryClient per request ssr-streaming-queries — Handle streaming with queries How to Use Each rule file in the rules/ directory contains: Explanation — Why this pattern matters Bad Example — Anti-pattern to avoid Good Example — Recommended implementation Context — When to apply or skip this rule Full Reference See individual rule files in rules/ directory for detailed guidance and code examples.
Keywords that activate this skill. Click one to copy it.

This skill does not provide trigger words.

The downloaded .skill package contains the following fields.
Field Description
formatFormat tag (skill/v1)
skill_idUnique skill ID
nameSkill name
versionVersion
descriptionDescription
categoryCategories (array)
trigger_wordsTrigger words
tagsTags
sourceSource
source_urlSource URL (this page)
exported_atExported at (set per download)
system_promptSystem prompt body
model_configModel config: provider / model / temperature / max_tokens / top_p
examplesExamples
install_guideImport guide for Coze / Dify / Claude / custom frameworks
The same skill can be exported in different platform formats.
.skill Standard format with system_prompt and model_config, ready for any agent framework Download
.skillpro Enhanced format with scripts, tools, dependencies and hooks Download
.json Plain JSON export with system_prompt and model parameters only Download
Coze Markdown with frontmatter, for Coze platform import Download
Dify Dify DSL, import directly after creating an app Download

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。