Automated summary
Generates new TanStack Start file-based routes with SEO meta tags, Convex data loading, and authentication handling.
Strengths
- URL-to-file-path mapping table covering static, nested, and dynamic routes
- Copy-ready route scaffold using createFileRoute with a head() block for SEO metadata
- Explicitly separates public routes from auth-protected ones under src/routes/_authed/
- Flags key constraints: no useEffect fetching, mandatory loading states, regenerate stale types
Limitations
- Tightly coupled to Convex for data loading; other data sources need rework
- Assumes a src/routes layout and a project-specific npm run generate:routes script
- Does not explain how the auth context or the _authed layout is configured
Use when adding a page or route to an existing TanStack Start application that already relies on Convex.
Skip it on projects that do not use TanStack Start or that use a different routing or data-fetching stack.
Security analysis
SafeThis is a pure instructional document describing TanStack Start file-based routing conventions. It contains no executable commands, no network or shell operations, no credential handling, and no destructive actions. The only command mentioned is a benign local route-codegen script (npm run generate:routes). Listing it poses no meaningful execution risk.
No concerns found
How this analysis is madeExamples
Add a public /pricing route to our TanStack Start app with a proper title and meta description.Create a protected /dashboard route under _authed that lists the current user's projects from Convex with a loading state.Add a dynamic /products/:id route that reads the id via Route.useParams and fetches the product with Convex useQuery.name: tanstack-route description: Create TanStack Start file-based routes with proper SEO, data loading, and authentication. Use this skill when adding new pages or routes to the application.
Create TanStack Route
Create a new file-based route for TanStack Start with proper structure.
Goal
Generate a properly configured route with:
- Correct file location matching URL path
- SEO meta tags
- Data loading (if needed)
- Authentication (for protected routes)
Instructions
1. Determine Route Type
| Type | Location | Use When |
|------|----------|----------|
| Public | src/routes/{path}.tsx | No auth needed |
| Protected | src/routes/_authed/{path}.tsx | Requires login |
2. File Naming Rules
| URL | File Path |
|-----|-----------|
| / | src/routes/index.tsx |
| /about | src/routes/about.tsx |
| /products | src/routes/products/index.tsx |
| /products/:id | src/routes/products/$id.tsx |
| /dashboard (auth) | src/routes/_authed/dashboard.tsx |
3. Route Structure
import { createFileRoute } from "@tanstack/react-router";
export const Route = createFileRoute("/path")({
component: PageComponent,
head: () => ({
meta: [
{ title: "Page Title | App Name" },
{ name: "description", content: "Page description" },
],
}),
});
function PageComponent() {
return <div>Content</div>;
}
4. Data Loading with Convex
Use useQuery for reactive data:
import { useQuery } from "convex/react";
import { api } from "@convex/_generated/api";
function PageComponent() {
const data = useQuery(api.resource.list);
if (!data) return <Loading />;
return <div>{/* render data */}</div>;
}
5. Dynamic Parameters
Access route params via Route.useParams():
function ProductPage() {
const { productId } = Route.useParams();
const product = useQuery(api.products.get, { id: productId });
// ...
}
Constraints
- DO NOT use
useEffectfor data fetching (use ConvexuseQuery) - DO NOT forget loading states for async data
- DO NOT skip SEO meta tags
- DO run
npm run generate:routesif types are stale
Examples
See examples/ directory for:
public-route.tsx- Public page with SEOprotected-route.tsx- Auth-required page with data
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/create-tanstack-routes-mryiqhpy' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-tanstack-routes-mryiqhpy/download' --output '.skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md.part' && mv '.skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md.part' '.skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md' && test -s '.skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/tanstack-route' && cp -R '.skill-downloads/create-tanstack-routes-mryiqhpy' '.claude/skills/tanstack-route'Cursor
test -f '.skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md' && test -s '.skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/tanstack-route' && cp -R '.skill-downloads/create-tanstack-routes-mryiqhpy' '.cursor/skills/tanstack-route'Codex
test -f '.skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md' && test -s '.skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/tanstack-route' && cp -R '.skill-downloads/create-tanstack-routes-mryiqhpy' '.agents/skills/tanstack-route'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/create-tanstack-routes-mryiqhpy'openskills read 'create-tanstack-routes-mryiqhpy'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/create-tanstack-routes-mryiqhpy/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.