Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

skill_tree.yaml

177 lines7.3 KB

1# skills/_artifacts/start_skill_tree.yaml
2library:
3 name: '@tanstack/react-start'
4 version: '1.168.32'
5 repository: 'https://github.com/TanStack/router'
6 description: >-
7 Full-stack React framework built on TanStack Router and Vite.
8 Adds SSR, streaming, server functions (type-safe RPCs), middleware,
9 server routes, and universal deployment. Isomorphic by default β€”
10 all code runs in both environments unless explicitly constrained.
11generated_from:
12 domain_map: '_artifacts/start_domain_map.yaml'
13generated_at: '2026-03-07'
14​
15skills:
16 # ── Start Core Skills ───────────────────────────────────────────
17 - name: 'Start Core'
18 slug: 'start-core'
19 type: 'core'
20 domain: 'project-setup'
21 path: 'skills/start-core/SKILL.md'
22 package: 'packages/start-client-core'
23 description: >-
24 Core overview for TanStack Start: tanstackStart() Vite plugin,
25 getRouter() factory, root route document shell (HeadContent,
26 Scripts, Outlet), client/server entry points, routeTree.gen.ts,
27 tsconfig configuration. Entry point for all Start skills.
28 sources:
29 - 'TanStack/router:docs/start/framework/react/build-from-scratch.md'
30 - 'TanStack/router:docs/start/framework/react/quick-start.md'
31 - 'TanStack/router:docs/start/framework/react/guide/routing.md'
32​
33 - name: 'Server Functions'
34 slug: 'start-core/server-functions'
35 type: 'sub-skill'
36 domain: 'server-functions'
37 path: 'skills/start-core/server-functions/SKILL.md'
38 package: 'packages/start-client-core'
39 description: >-
40 createServerFn (GET/POST), validator (Zod or function),
41 useServerFn hook, server context utilities (getRequest,
42 getRequestHeader, setResponseHeader, setResponseStatus), error
43 handling (throw errors, redirect, notFound), streaming
44 (ReadableStream, async generators), FormData handling, file
45 organization (.functions.ts, .server.ts).
46 requires:
47 - 'start-core'
48 sources:
49 - 'TanStack/router:docs/start/framework/react/guide/server-functions.md'
50​
51 - name: 'Middleware'
52 slug: 'start-core/middleware'
53 type: 'sub-skill'
54 domain: 'middleware-and-context'
55 path: 'skills/start-core/middleware/SKILL.md'
56 package: 'packages/start-client-core'
57 description: >-
58 createMiddleware, request middleware (.server only), server
59 function middleware (.client + .server), context passing via
60 next({ context }), sendContext for client-server transfer,
61 global middleware via createStart in src/start.ts, middleware
62 factories, method order enforcement.
63 requires:
64 - 'start-core'
65 - 'start-core/server-functions'
66 sources:
67 - 'TanStack/router:docs/start/framework/react/guide/middleware.md'
68​
69 - name: 'Execution Model'
70 slug: 'start-core/execution-model'
71 type: 'sub-skill'
72 domain: 'execution-model'
73 path: 'skills/start-core/execution-model/SKILL.md'
74 package: 'packages/start-client-core'
75 description: >-
76 Isomorphic-by-default principle, environment boundary functions
77 (createServerFn, createServerOnlyFn, createClientOnlyFn,
78 createIsomorphicFn), ClientOnly component, useHydrated hook,
79 import protection, dead code elimination, environment variable
80 safety (VITE_ prefix, process.env).
81 requires:
82 - 'start-core'
83 sources:
84 - 'TanStack/router:docs/start/framework/react/guide/execution-model.md'
85 - 'TanStack/router:docs/start/framework/react/guide/environment-variables.md'
86​
87 - name: 'Server Routes'
88 slug: 'start-core/server-routes'
89 type: 'sub-skill'
90 domain: 'server-routes'
91 path: 'skills/start-core/server-routes/SKILL.md'
92 package: 'packages/start-client-core'
93 description: >-
94 Server-side API endpoints using the server property on
95 createFileRoute, HTTP method handlers (GET, POST, PUT, DELETE),
96 createHandlers for per-handler middleware, handler context
97 (request, params, context), request body parsing, response
98 helpers, file naming for API routes.
99 requires:
100 - 'start-core'
101 sources:
102 - 'TanStack/router:docs/start/framework/react/guide/server-routes.md'
103​
104 - name: 'Deployment'
105 slug: 'start-core/deployment'
106 type: 'sub-skill'
107 domain: 'deployment-and-rendering'
108 path: 'skills/start-core/deployment/SKILL.md'
109 package: 'packages/start-client-core'
110 description: >-
111 Deploy to Cloudflare Workers, Netlify, Vercel, Node.js/Docker,
112 Bun, Railway. Selective SSR (ssr option per route), SPA mode,
113 static prerendering, ISR with Cache-Control headers, SEO and
114 head management.
115 requires:
116 - 'start-core'
117 sources:
118 - 'TanStack/router:docs/start/framework/react/guide/hosting.md'
119 - 'TanStack/router:docs/start/framework/react/guide/selective-ssr.md'
120 - 'TanStack/router:docs/start/framework/react/guide/static-prerendering.md'
121 - 'TanStack/router:docs/start/framework/react/guide/full-stack-seo.md'
122​
123 # ── React Start Skills ──────────────────────────────────────────
124 - name: 'React Start'
125 slug: 'react-start'
126 type: 'framework'
127 domain: 'project-setup'
128 path: 'skills/react-start/SKILL.md'
129 package: 'packages/react-start'
130 description: >-
131 React bindings for TanStack Start: createStart, StartClient,
132 StartServer, React-specific imports, re-exports from
133 @tanstack/react-router, full project setup with React.
134 requires:
135 - 'start-core'
136 sources:
137 - 'TanStack/router:packages/react-start/src'
138 - 'TanStack/router:docs/start/framework/react/build-from-scratch.md'
139​
140 - name: 'Server Components'
141 slug: 'react-start/server-components'
142 type: 'sub-skill'
143 domain: 'deployment-and-rendering'
144 path: 'skills/react-start/server-components/SKILL.md'
145 package: 'packages/react-start'
146 description: >-
147 Implement, review, debug, and refactor TanStack Start React
148 Server Components in React 19 apps.
149 requires:
150 - 'react-start'
151 - 'start-core/server-functions'
152 - 'start-core/execution-model'
153 sources:
154 - 'TanStack/router:docs/start/framework/react/guide/server-components.md'
155 - 'TanStack/router:docs/start/framework/react/guide/server-functions.md'
156 - 'TanStack/router:docs/start/framework/react/guide/execution-model.md'
157 - 'TanStack/router:docs/router/guide/data-loading.md'
158​
159 # ── Lifecycle Skills ────────────────────────────────────────────
160 - name: 'Migrate from Next.js'
161 slug: 'lifecycle/migrate-from-nextjs'
162 type: 'lifecycle'
163 domain: 'project-setup'
164 path: 'skills/lifecycle/migrate-from-nextjs/SKILL.md'
165 package: 'packages/react-start'
166 description: >-
167 Step-by-step migration from Next.js App Router to TanStack
168 Start: route definition conversion, API mapping, server
169 function conversion from Server Actions, middleware conversion,
170 data fetching pattern changes.
171 requires:
172 - 'start-core'
173 - 'react-start'
174 sources:
175 - 'TanStack/router:docs/start/framework/react/guide/server-functions.md'
176 - 'TanStack/router:docs/start/framework/react/guide/middleware.md'
177 - 'TanStack/router:docs/start/framework/react/guide/execution-model.md'