react-router
Generate and edit React Router Framework Mode applications using route configuration, route modules, loaders, actions, middleware, pending UI, SSR, and provider adapters. Use for framework id react-router rather than declarative router-only SPAs.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- react-router
- description
- Generate and edit React Router Framework Mode applications using route configuration, route modules, loaders, actions, middleware, pending UI, SSR, and provider adapters. Use for framework id react-router rather than declarative router-only SPAs.
02 资源文件 1
- 参考文档agents/openai.yaml206 B
03 SKILL.md 正文
React Router Framework Mode
Use Framework Mode and preserve its route-module contract.
Project contract
- Declare compatible
react-router, React, framework development, and deployment adapter packages. - Keep the document shell in
app/root.tsx, route configuration inapp/routes.ts, and framework options inreact-router.config.ts. - Implement route modules with typed loader, action, metadata, headers, error-boundary, and component exports as required.
- Use loaders for reads, actions for mutations,
<Form>for progressive enhancement, and fetchers for concurrent non-navigation interactions. - Keep
.servermodules out of client graphs and.clientmodules out of server rendering. - Preserve entry files and provider presets when the template supplies them.
Editing rules
- Do not mix declarative
<Routes>setup with a Framework Mode project unless integrating an explicit nested use case. - Use generated route types rather than recreating parameter types manually.
- Add every imported package and keep authorization inside loaders/actions.
Verification
Run framework type generation, typecheck, and the production build. Exercise loaders, actions, error boundaries, and the selected deployment adapter.
04 同仓库更多 Skills
request-design
Apply the request-scoped design system.
vue
Generate and edit typed Vue applications with Vite, Vue single-file components, Composition API, scoped styles, and optional Vue Router or Pinia integrations. Use for framework id vue when Nuxt server features are not required.
vite
Generate and edit Vite applications while preserving the selected UI renderer, TypeScript setup, plugin chain, environment boundaries, static assets, and production build contract. Use for framework id vite when no meta-framework is selected.
tanstack-start
Generate and edit TanStack Start React applications using TanStack Router file routes, loaders, validated search params, server functions, middleware, SSR, and runtime-neutral deployment output. Use for framework id tanstack-start.
sveltekit
Generate and edit SvelteKit applications using filesystem routes, layouts, load functions, form actions, server endpoints, adapters, and server-only module boundaries. Use for framework id sveltekit and full-stack Svelte projects.
svelte
Generate and edit client-side Svelte applications with typed single-file components, Vite, scoped styles, accessible events, and Svelte state conventions. Use for framework id svelte when a full SvelteKit server is not requested.