[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M785M495QMS0WZKG2ECQKQ3P":3,"skill-same:01M785M495QMS0WZKG2ECQKQ3P":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M785M495QMS0WZKG2ECQKQ3P","react-router",null,"Build applications with React Router in Framework, Data, Declarative, and unstable RSC modes. Use when configuring routes, route modules, loaders, actions, forms, fetchers, navigation, pending UI, SSR\u002FSPA\u002Fpre-rendering, middleware, URL params\u002Fsearch params, or React Router upgrades.","sushichan044\u002Fvivlio-style-preview","sushichan044","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F71284054?v=4","01M6CD61CFDCQYW4XTQ1CF5200","Kentaro Suzuki","01M785KZMYPXHTATHPMQEERYTA",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fvivlio-style-preview\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Freact-router\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: react-router\ndescription: Build applications with React Router in Framework, Data, Declarative, and unstable RSC modes. Use when configuring routes, route modules, loaders, actions, forms, fetchers, navigation, pending UI, SSR\u002FSPA\u002Fpre-rendering, middleware, URL params\u002Fsearch params, or React Router upgrades.\nlicense: MIT\n---\n\n# React Router\n\nReact Router is mode-specific. Before changing an app, identify the mode, load the matching reference, then read the installed docs for the installed package version.\n\n## Identify the Mode\n\nDo not apply Framework\u002FData patterns to a Declarative app unless you are intentionally migrating modes.\n\n### Framework Mode\n\nUse Framework Mode guidance when you see:\n\n- `@react-router\u002Fdev` in dependencies\n- `react-router.config.ts`\n- `app\u002Froutes.ts`\n- `app\u002Fentry.server.tsx` and\u002For `app\u002Fentry.client.tsx` files\n- route modules under `app\u002Froutes\u002F`\n- route exports like `loader`, `action`, `clientLoader`, `clientAction`, `ErrorBoundary`, `meta`, `links`, or `headers`\n- imports from `.\u002F+types\u002F...`\n- the React Router Vite plugin from `@react-router\u002Fdev\u002Fvite`\n\nFramework examples usually use the default `app\u002F` directory, but check `react-router.config.ts` for a custom `appDirectory` before assuming exact paths.\n\nThen read `references\u002Fframework-mode.md`.\n\n### Data Mode\n\nUse Data Mode guidance when you see:\n\n- `createBrowserRouter`, `createHashRouter`, `createMemoryRouter`, or `createStaticRouter`\n- `\u003CRouterProvider router={router}>`\n- route objects with properties like `path`, `children`, `loader`, `action`, `Component`, `ErrorBoundary`, or `lazy`\n- data APIs without the Framework Vite plugin\n\nThen read `references\u002Fdata-mode.md`.\n\n### Declarative Mode\n\nUse Declarative Mode guidance when you see:\n\n- `\u003CBrowserRouter>`, `\u003CHashRouter>`, or `\u003CMemoryRouter>`\n- `\u003CRoutes>` and `\u003CRoute>` JSX route configuration\n- route components passed with `element={\u003CComponent \u002F>}`\n- no data router, no route module convention, and no loaders\u002Factions\n\nThen read `references\u002Fdeclarative-mode.md`.\n\n### RSC Framework and RSC Data Modes\n\nReact Server Components support is unstable and exists in both Framework and Data variants. Use RSC guidance when you see:\n\n- `unstable_reactRouterRSC`\n- `@vitejs\u002Fplugin-rsc`\n- `unstable_RSCRouteConfig`\n- RSC entry files such as `entry.rsc`\n- `ServerComponent`, `ServerErrorBoundary`, `ServerLayout`, or `ServerHydrateFallback`\n- React directives or boundary packages such as `\"use client\"`, `\"server-only\"`, or `\"client-only\"`\n\nFor RSC Framework, read both `references\u002Fframework-mode.md` and `references\u002Frsc.md`.\nFor RSC Data, read both `references\u002Fdata-mode.md` and `references\u002Frsc.md`.\n\n## Use Installed Docs as Source of Truth\n\nReact Router ships markdown docs in the package so guidance can match the installed version:\n\n```txt\nnode_modules\u002Freact-router\u002Fdocs\u002F\n```\n\nKey docs paths:\n\n```txt\nnode_modules\u002Freact-router\u002Fdocs\u002Findex.md\nnode_modules\u002Freact-router\u002Fdocs\u002Fstart\u002F\nnode_modules\u002Freact-router\u002Fdocs\u002Fhow-to\u002F\nnode_modules\u002Freact-router\u002Fdocs\u002Fexplanation\u002F\nnode_modules\u002Freact-router\u002Fdocs\u002Fupgrading\u002F\n```\n\nWhen this skill references `react-router\u002Fdocs\u002F...`, read the matching file under `node_modules\u002Freact-router\u002Fdocs\u002F`. If the installed version does not include local docs, use the repo `docs\u002F` directory when working inside the React Router repository; in a consuming app, fall back to version-matched website docs.\n\nMost docs include a mode marker near the top:\n\n```txt\n[MODES: framework, data, declarative]\n```\n\nOnly apply a doc when its mode marker matches the app mode. If a task spans modes, prefer the section or file that matches the current app.\n\nRSC is documented primarily in:\n\n```txt\nnode_modules\u002Freact-router\u002Fdocs\u002Fhow-to\u002Freact-server-components.md\n```\n\n## Skill References\n\nLoad the relevant reference after identifying the mode:\n\n| Reference                        | Use When                                      |\n| -------------------------------- | --------------------------------------------- |\n| `references\u002Fframework-mode.md`   | Framework Mode or RSC Framework base behavior |\n| `references\u002Fdata-mode.md`        | Data Mode or RSC Data base behavior           |\n| `references\u002Fdeclarative-mode.md` | Declarative Mode                              |\n| `references\u002Frsc.md`              | Any unstable RSC app                          |\n\n## Mode Migration Doc Index\n\nIf the user explicitly asks to switch modes, read the target mode reference plus the migration-relevant docs:\n\n| Migration                            | Docs to read                                                                                                                                                                                                                          |\n| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Declarative → Data                   | `react-router\u002Fdocs\u002Fstart\u002Fmodes.md`, `react-router\u002Fdocs\u002Fstart\u002Fdata\u002Frouting.md`, `react-router\u002Fdocs\u002Fstart\u002Fdata\u002Fdata-loading.md`, `react-router\u002Fdocs\u002Fstart\u002Fdata\u002Factions.md`                                                              |\n| Declarative\u002FData → Framework         | `react-router\u002Fdocs\u002Fstart\u002Fmodes.md`, `react-router\u002Fdocs\u002Fstart\u002Fframework\u002Frouting.md`, `react-router\u002Fdocs\u002Fstart\u002Fframework\u002Froute-module.md`, `react-router\u002Fdocs\u002Fhow-to\u002Froute-module-type-safety.md`                                       |\n| Framework SPA\u002FSSR\u002Fpre-render changes | `react-router\u002Fdocs\u002Fstart\u002Fframework\u002Frendering.md`, `react-router\u002Fdocs\u002Fhow-to\u002Fspa.md`, `react-router\u002Fdocs\u002Fhow-to\u002Fpre-rendering.md`, `react-router\u002Fdocs\u002Fstart\u002Fframework\u002Fdata-loading.md`, `react-router\u002Fdocs\u002Fstart\u002Fframework\u002Factions.md` |\n| Future flags\u002Fupgrades                | `react-router\u002Fdocs\u002Fupgrading\u002Ffuture.md` and relevant files under `react-router\u002Fdocs\u002Fupgrading\u002F`                                                                                                                                       |\n","# React Router\n\nReact Router is mode-specific. Before changing an app, identify the mode, load the matching reference, then read the installed docs for the installed package version.\n\n## Identify the Mode\n\nDo not apply Framework\u002FData patterns to a Declarative app unless you are intentionally migrating modes.\n\n### Framework Mode\n\nUse Framework Mode guidance when you see:\n\n- `@react-router\u002Fdev` in dependencies\n- `react-router.config.ts`\n- `app\u002Froutes.ts`\n- `app\u002Fentry.server.tsx` and\u002For `app\u002Fentry.client.tsx` files\n- route modules under `app\u002Froutes\u002F`\n- route exports like `loader`, `action`, `clientLoader`, `clientAction`, `ErrorBoundary`, `meta`, `links`, or `headers`\n- imports from `.\u002F+types\u002F...`\n- the React Router Vite plugin from `@react-router\u002Fdev\u002Fvite`\n\nFramework examples usually use the default `app\u002F` directory, but check `react-router.config.ts` for a custom `appDirectory` before assuming exact paths.\n\nThen read `references\u002Fframework-mode.md`.\n\n### Data Mode\n\nUse Data Mode guidance when you see:\n\n- `createBrowserRouter`, `createHashRouter`, `createMemoryRouter`, or `createStaticRouter`\n- `\u003CRouterProvider router={router}>`\n- route objects with properties like `path`, `children`, `loader`, `action`, `Component`, `ErrorBoundary`, or `lazy`\n- data APIs without the Framework Vite plugin\n\nThen read `references\u002Fdata-mode.md`.\n\n### Declarative Mode\n\nUse Declarative Mode guidance when you see:\n\n- `\u003CBrowserRouter>`, `\u003CHashRouter>`, or `\u003CMemoryRouter>`\n- `\u003CRoutes>` and `\u003CRoute>` JSX route configuration\n- route components passed with `element={\u003CComponent \u002F>}`\n- no data router, no route module convention, and no loaders\u002Factions\n\nThen read `references\u002Fdeclarative-mode.md`.\n\n### RSC Framework and RSC Data Modes\n\nReact Server Components support is unstable and exists in both Framework and Data variants. Use RSC guidance when you see:\n\n- `unstable_reactRouterRSC`\n- `@vitejs\u002Fplugin-rsc`\n- `unstable_RSCRouteConfig`\n- RSC entry files such as `entry.rsc`\n- `ServerComponent`, `ServerErrorBoundary`, `ServerLayout`, or `ServerHydrateFallback`\n- React directives or boundary packages such as `\"use client\"`, `\"server-only\"`, or `\"client-only\"`\n\nFor RSC Framework, read both `references\u002Fframework-mode.md` and `references\u002Frsc.md`.\nFor RSC Data, read both `references\u002Fdata-mode.md` and `references\u002Frsc.md`.\n\n## Use Installed Docs as Source of Truth\n\nReact Router ships markdown docs in the package so guidance can match the installed version:\n\n```txt\nnode_modules\u002Freact-router\u002Fdocs\u002F\n```\n\nKey docs paths:\n\n```txt\nnode_modules\u002Freact-router\u002Fdocs\u002Findex.md\nnode_modules\u002Freact-router\u002Fdocs\u002Fstart\u002F\nnode_modules\u002Freact-router\u002Fdocs\u002Fhow-to\u002F\nnode_modules\u002Freact-router\u002Fdocs\u002Fexplanation\u002F\nnode_modules\u002Freact-router\u002Fdocs\u002Fupgrading\u002F\n```\n\nWhen this skill references `react-router\u002Fdocs\u002F...`, read the matching file under `node_modules\u002Freact-router\u002Fdocs\u002F`. If the installed version does not include local docs, use the repo `docs\u002F` directory when working inside the React Router repository; in a consuming app, fall back to version-matched website docs.\n\nMost docs include a mode marker near the top:\n\n```txt\n[MODES: framework, data, declarative]\n```\n\nOnly apply a doc when its mode marker matches the app mode. If a task spans modes, prefer the section or file that matches the current app.\n\nRSC is documented primarily in:\n\n```txt\nnode_modules\u002Freact-router\u002Fdocs\u002Fhow-to\u002Freact-server-components.md\n```\n\n## Skill References\n\nLoad the relevant reference after identifying the mode:\n\n| Reference                        | Use When                                      |\n| -------------------------------- | --------------------------------------------- |\n| `references\u002Fframework-mode.md`   | Framework Mode or RSC Framework base behavior |\n| `references\u002Fdata-mode.md`        | Data Mode or RSC Data base behavior           |\n| `references\u002Fdeclarative-mode.md` | Declarative Mode                              |\n| `references\u002Frsc.md`              | Any unstable RSC app                          |\n\n## Mode Migration Doc Index\n\nIf the user explicitly asks to switch modes, read the target mode reference plus the migration-relevant docs:\n\n| Migration                            | Docs to read                                                                                                                                                                                                                          |\n| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Declarative → Data                   | `react-router\u002Fdocs\u002Fstart\u002Fmodes.md`, `react-router\u002Fdocs\u002Fstart\u002Fdata\u002Frouting.md`, `react-router\u002Fdocs\u002Fstart\u002Fdata\u002Fdata-loading.md`, `react-router\u002Fdocs\u002Fstart\u002Fdata\u002Factions.md`                                                              |\n| Declarative\u002FData → Framework         | `react-router\u002Fdocs\u002Fstart\u002Fmodes.md`, `react-router\u002Fdocs\u002Fstart\u002Fframework\u002Frouting.md`, `react-router\u002Fdocs\u002Fstart\u002Fframework\u002Froute-module.md`, `react-router\u002Fdocs\u002Fhow-to\u002Froute-module-type-safety.md`                                       |\n| Framework SPA\u002FSSR\u002Fpre-render changes | `react-router\u002Fdocs\u002Fstart\u002Fframework\u002Frendering.md`, `react-router\u002Fdocs\u002Fhow-to\u002Fspa.md`, `react-router\u002Fdocs\u002Fhow-to\u002Fpre-rendering.md`, `react-router\u002Fdocs\u002Fstart\u002Fframework\u002Fdata-loading.md`, `react-router\u002Fdocs\u002Fstart\u002Fframework\u002Factions.md` |\n| Future flags\u002Fupgrades                | `react-router\u002Fdocs\u002Fupgrading\u002Ffuture.md` and relevant files under `react-router\u002Fdocs\u002Fupgrading\u002F`                                                                                                                                       |\n",{"name":5,"license":15,"description":7},"main","0f5016cf0e431723f43e65384a7ce31de78cda30",".agents\u002Fskills\u002Freact-router","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fvivlio-style-preview","https:\u002F\u002Fgithub.com\u002Fsushichan044","A software engineer with a passion for novels and music.","2026-07-21 08:07:10",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add sushichan044\u002Fvivlio-style-preview --skill react-router",{"tool":37,"command":38},"bunx","bunx skills add sushichan044\u002Fvivlio-style-preview --skill react-router",{"tool":40,"command":41},"pnpm","pnpm dlx skills add sushichan044\u002Fvivlio-style-preview --skill react-router","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fvivlio-style-preview\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Freact-router\u002FSKILL.md",true,[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fdata-mode.md","REFERENCE","参考文档",4797,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fvivlio-style-preview\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Freact-router\u002Freferences\u002Fdata-mode.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Frsc.md",3447,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fvivlio-style-preview\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Freact-router\u002Freferences\u002Frsc.md",[]]