router-core
Skill by TanStack
router-core is the entry skill for TanStack Router, a type-safe router for React and Solid. It routes the assistant to the right sub-skill for search params, navigation, data loading, guards and more. It is for developers building TanStack Router apps.
Install router-core
Built from the published package, never by AI.
git clone --depth 1 https://github.com/TanStack/router /tmp/router && mkdir -p ~/.claude/skills && cp -r /tmp/router/packages/router-core/skills/router-core ~/.claude/skills/router-coreRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/TanStack/router /tmp/router && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/router/packages/router-core/skills/router-core ~/.gemini/antigravity-cli/skills/router-coreAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
router-core is an entry point skill for TanStack Router, a type-safe router for React and Solid with built-in SWR caching, JSON-first search params, file-based route generation, and end-to-end type inference. It covers route trees, createRouter, createRoute, createRootRoute, Register type declarations, route matching, route sorting and file naming conventions.
The skill tells the assistant to choose one primary sub-skill from a table covering search params, path params, navigation, data loading, auth guards, code splitting, not-found and error handling, type safety, and SSR. It also gives completion checks for route refactors and response schema changes, and notes that types are inferred and that loaders run on the client by default. It is aimed at developers building TanStack Router apps.
Written from the project's SKILL.md and checked against it.
What it can do
- Search paramsValidate, read, write and transform URL query parameters.
- Path paramsHandle dynamic segments, splats and optional params.
- NavigationCovers Link, useNavigate, preloading and blocking.
- Data loadingRoute loaders, SWR caching, context and deferred data.
- Auth and guardsAuth guards, RBAC and beforeLoad redirects.
- Code splittingAutomatic and manual code splitting per route.
- Not found and errors404 handling, error boundaries and notFound().
- Type safetyInference, Register, from narrowing and TypeScript performance.
- SSRStreaming and non-streaming SSR, hydration and head management.
- Route refactor checksSteps for renaming routes and regenerating routeTree.gen.ts.
Try asking
- Add validated search params for page and sort to my posts route
- Protect the /admin route so only users with the admin role can open it
- Set up a route loader with SWR caching for my posts page
Good to know
- Loaders run on the client by default, not server-only.
- Splat routes use $, and the * alias will be removed in v2.
- This entry skill points to sub-skills; each task is covered there.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/router-core/skills/router-core/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
auth-and-guards/SKILL.md15 KB -
code-splitting/SKILL.md9 KB -
data-loading/SKILL.md14 KB -
navigation/SKILL.md11 KB
Show all 11 files
-
not-found-and-errors/SKILL.md11 KB -
path-params/SKILL.md9 KB -
search-params/SKILL.md9 KB -
search-params/references/validation-patterns.md9 KB -
ssr/SKILL.md13 KB -
type-safety/SKILL.md15 KB
Alternatives to router-core
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
router-core: common questions
What is TanStack Router?
TanStack Router is a type-safe router for React and Solid with built-in SWR caching, JSON-first search params, file-based route generation, and end-to-end type inference.
Are TanStack Router loaders server-only?
No. The source says TanStack Router is client-first, and loaders run on the client by default, unlike Remix or Next.js.
Which version does this skill target?
The skill targets @tanstack/router-core v1.171.15.
How do I install router-core?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is router-core free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is router-core safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to router-core?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
