tanstack-router-best-practices
✓TanStack Router 類型安全性路由、資料載入、搜尋參數和導航的最佳實務。在建立具有複雜路由需求的 React 應用程式時啟動。
SKILL.md
Comprehensive guidelines for implementing TanStack Router patterns in React applications. These rules optimize type safety, data loading, navigation, and code organization.
| CRITICAL | Type Safety | 4 rules | Prevents runtime errors and enables refactoring | | CRITICAL | Route Organization | 5 rules | Ensures maintainable route structure | | HIGH | Router Config | 1 rule | Global router defaults | | HIGH | Data Loading | 6 rules | Optimizes data fetching and caching |
| HIGH | Search Params | 5 rules | Enables type-safe URL state | | HIGH | Error Handling | 1 rule | Handles 404 and errors gracefully | | MEDIUM | Navigation | 5 rules | Improves UX and accessibility | | MEDIUM | Code Splitting | 3 rules | Reduces bundle size | | MEDIUM | Preloading | 3 rules | Improves perceived performance |
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/deckardger/tanstack-agent-skills --skill tanstack-router-best-practices- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-14
- 更新時間
- 2026-02-18
快速解答
什麼是 tanstack-router-best-practices?
TanStack Router 類型安全性路由、資料載入、搜尋參數和導航的最佳實務。在建立具有複雜路由需求的 React 應用程式時啟動。 來源:deckardger/tanstack-agent-skills。
如何安裝 tanstack-router-best-practices?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/deckardger/tanstack-agent-skills --skill tanstack-router-best-practices 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/deckardger/tanstack-agent-skills
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-14