router-core

Create type-safe route trees with TanStack Router core primitives.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/redacharf/fin-punk --skill router-core-redacharf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: router-core
Source: https://github.com/redacharf/fin-punk/tree/main/.agents/skills/router-core
Command: npx skills add https://github.com/redacharf/fin-punk --skill router-core-redacharf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill clarifies and codifies the core concepts and patterns needed to build and maintain a type-safe route tree with TanStack Router across frameworks, enabling consistent routing APIs and scalable architecture.

Core Features & Use Cases

  • Understand and apply route trees, createRouter, createRoute, and createRootRoute with optional context integration.
  • Build framework-agnostic routing patterns for React and Solid, including file-based routing and nested layouts.
  • Reuse router primitives to compose robust navigation structures in real-world apps (dashboards, admin panels, onboarding flows).

Quick Start

Define a root route and a child page, then render using RouterProvider in your app.

Frequently Asked Questions about router-core

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

FAQPage Schema
How do I build a type-safe route tree using TanStack Router?

A type-safe route tree in TanStack Router is built by defining a root route with createRootRoute and child pages with createRoute, then passing the assembled tree to createRouter to establish predictable navigation and nested layouts.

Does TanStack Router core routing work with both React and Solid?

Yes, TanStack Router core primitives are framework-agnostic and can be applied across both React and Solid applications to compose robust navigation structures with consistent routing APIs.

What is the best way to set up nested layouts and context in TanStack Router?

The best way to set up nested layouts and context is by leveraging createRootRoute with optional context integration, allowing you to match and traverse routes predictably while passing shared state down the route tree.

How do I add frontmatter metadata and resources to TanStack Router routes?

You can extend route capabilities by attaching frontmatter-based metadata and optional resources such as scripts, references, and assets directly to your route definitions within the router tree.

Can I use TanStack Router primitives for complex apps like dashboards and onboarding flows?

Yes, you can reuse router primitives to compose robust navigation structures in real-world apps, effectively handling complex routing requirements for dashboards, admin panels, and onboarding flows.

What core primitives do I need to start creating a router in TanStack Router?

To start creating a router, you need to use the core primitives createRouter, createRoute, and createRootRoute to define the tree structure, then render the application using RouterProvider.