FreeSkills
Commits, branches and sync with the but CLI
- 361361 downloads
- 198198 likes
- 103103 saves
- Claude Code
- Codex
- Cursor
- and 3 more
Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans
Use this resource to write middleware for TanStack Start server functions and routes
New
Free
In a terminal, from the folder you want:
npx --yes palatekit@latest install server-function-middlewareWith no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.
First time: connect the CLI with
npx --yes palatekit@latest loginThe agent creates middleware with createMiddleware, attaches it to server functions, passes context with next and sendContext, then declares it globally in src/start.ts. It respects the required method order. You get a typed middleware chain, whose access control must still be re-checked on the server.
Mostly picked by
Updated November 2, 2026
You say
“Create a middleware that reads the session and passes it to all my server functions.”

Skill published by tanstack under the MIT license, delivered in its original version.
Listed unmodified
« middleware » (tanstack, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.
–
No ratings yet
Loading reviews…