スキル一覧に戻る
eug-subscription

route-generator

by eug-subscription

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: route-generator description: Adds new routes to TanStack Router in src/router.tsx. Creates route definitions following project patterns. Use when adding new pages or sections.

Route Generator Skill

Adds new routes to src/router.tsx following TanStack Router patterns.

Route Definition Pattern

const {name}Route = createRoute({
    getParentRoute: () => {parentRoute},
    path: "/{path}",
    component: {ComponentName},
});

Parent Route Selection

ParentUse For
rootRouteTop-level pages (like /project)
orderLayoutRouteOrder-related pages with shared layout
projectRouteProject sub-pages under /project/...

Adding a New Route

  1. Import the component at the top of router.tsx
  2. Create the route definition with appropriate parent
  3. Add to routeTree in the correct children array

Example: Adding a New Order Page

// 1. Import
import { NewFeature } from "./components/NewFeature";

// 2. Create route
const newFeatureRoute = createRoute({
    getParentRoute: () => orderLayoutRoute,
    path: "/new-feature",
    component: NewFeature,
});

// 3. Add to routeTree
const routeTree = rootRoute.addChildren([
    orderLayoutRoute.addChildren([
        // ... existing routes
        newFeatureRoute, // Add here
    ]),
    // ...
]);

Example: Adding a Project Sub-Page

const projectAnalyticsRoute = createRoute({
    getParentRoute: () => projectRoute,
    path: "/analytics",
    component: ProjectAnalytics,
});

// Add to projectRoute's children in routeTree

Placeholder Component Pattern

For pages not yet implemented:

const comingSoonRoute = createRoute({
    getParentRoute: () => projectRoute,
    path: "/coming-soon",
    component: () => (
        <div className="p-8 text-center text-default-500">
            Coming Soon
        </div>
    ),
});

Use TanStack Router's Link component:

import { Link } from "@tanstack/react-router";

<Link to="/new-feature">Go to Feature</Link>

Reference

See src/router.tsx for current route structure.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です