← Back to list

create-route
by seosd97
unwrap web application
⭐ 0🍴 0📅 Jan 15, 2026
SKILL.md
name: create-route description: Create a new route following project conventions. Use when adding pages, routes, or navigation endpoints.
Create Route
Instructions
When creating a new route:
-
Create folder structure:
src/routes/[route-name]/ └── index.tsx -
Route template (TanStack Router):
import { createFileRoute } from '@tanstack/react-router' export const Route = createFileRoute('/route-name')({ component: RouteName, }) function RouteName() { return ( <div> <h1>Route Name</h1> </div> ) }
Nested Routes
src/routes/
├── settings/
│ ├── index.tsx # /settings
│ └── profile/
│ └── index.tsx # /settings/profile
// src/routes/settings/profile/index.tsx
import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute('/settings/profile')({
component: SettingsProfile,
})
function SettingsProfile() {
return <div>Profile Settings</div>
}
With Data Loading
import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute('/users')({
loader: async () => {
// fetch data
return { users: [] }
},
component: Users,
})
function Users() {
const { users } = Route.useLoaderData()
return <div>{/* render users */}</div>
}
Example
Creating /dashboard route:
mkdir -p src/routes/dashboard
// src/routes/dashboard/index.tsx
import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute('/dashboard')({
component: Dashboard,
})
function Dashboard() {
return (
<div>
<h1>Dashboard</h1>
</div>
)
}
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon