start-core/middleware

Configure and compose server and client middleware for TanStack Start applications.

Updated Apr 1, 2026
One-click install
npx skills add https://github.com/cill-i-am/task-tracker --skill start-core-middleware-cill-i-am
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: start-core/middleware
Source: https://github.com/cill-i-am/task-tracker/tree/main/.agents/skills/tanstack-start-middleware
Command: npx skills add https://github.com/cill-i-am/task-tracker --skill start-core-middleware-cill-i-am

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured middleware framework integration for TanStack Start, enabling customizable server and client middleware pipelines and context passing.

Core Features & Use Cases

  • Middleware creation and composition for both server and client phases.
  • Context passing and fetch customization across the request pipeline.
  • Enabling global and route-specific middleware with deterministic execution order.

Quick Start

Configure and integrate middleware using createMiddleware with TanStack Start to extend server and client behavior in your app.

Frequently Asked Questions about start-core/middleware

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure middleware in a TanStack Start application?

To configure middleware in TanStack Start, use createMiddleware and createStart to define server and client pipelines with deterministic execution order and context passing.

What is the execution order for server and client middleware in TanStack Start?

Middleware execution order in TanStack Start is deterministic, enforced by API method ordering during composition. This ensures global and route-specific middleware apply predictably across both SSR and server routes.

Can I use TanStack Start middleware for both SSR and server routes?

Yes, TanStack Start middleware applies to both SSR and server routes. The framework supports composing middleware across server and client phases, ensuring context passing and fetch customization throughout the request lifecycle.

Do I need TypeScript to set up middleware with TanStack Start?

Yes, you need TypeScript to set up middleware with TanStack Start. This Skill requires TypeScript-enabled projects to properly configure and compose middleware using createMiddleware with enforced method order and context passing.

How do I pass context across server functions using TanStack Start middleware?

Pass context across server functions by composing middleware with createMiddleware in TanStack Start. The framework handles context passing automatically across the request pipeline, allowing customized fetch behavior for both server and client phases.