Agent skill

React Router Framework Mode

by curvenote in curvenote/curvenote

Build full-stack React applications using React Router's framework mode.

MITAuto-check passedDevelopment

Install React Router Framework Mode

skills CLI
$ npx skills add curvenote/curvenote --skill react-router-framework-mode -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install curvenote/curvenote react-router-framework-mode --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/curvenote/curvenote.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/react-router-framework-mode .claude/skills/react-router-framework-mode && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
react-router-framework-mode
GitHub stars
169
Used in
4 other repos
Token cost
~1.1k tokens
SKILL.md length
287 words
Files
13 (incl. references)
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

Build full-stack React applications using React Router's framework mode.

  • Configuring routes
  • SKILL.md covers When to Apply, References, Version Compatibility and Critical Patterns, plus 1 more section
  • Calls npm
  • Working with loaders and actions

What it does

React Router Framework Mode is an agent skill from curvenote/curvenote. Build full-stack React applications using React Router's framework mode. Use when configuring routes, working with loaders and actions, handling forms, handling navigation, pending/optimistic UI, error boundaries, or working with react-router.config.ts or other react router conventions.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including reference files (for example `references/actions.md`, `references/data-loading.md` and `references/error-handling.md`).

It sits in Development, covering Error handling. It works with React Router and React. The repository describes itself as: Create, edit, share, and publish scientific and technical documents. The licence is MIT.

When your agent uses it

  • Configuring routes
  • Working with loaders and actions
  • Handling navigation
  • Pending/optimistic UI

Example prompts

  • “/react-router-framework-mode”

What it can do on your machine

Read from SKILL.md and the folder at commit 91febfe. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • reactrouter.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

React Router Framework Mode loads about 1.1k tokens when it runs, and up to ~22k if it reads all its reference files. Until then it costs about 79 tokens; SKILL.md has 287 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~22k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from curvenote/curvenote at commit 91febfe, republished under its MIT licence (© curvenote). 287 words, ~1,150 tokens.

Download SKILL.mdSave it as .claude/skills/react-router-framework-mode/SKILL.md (or your agent's skills folder). This skill also uses 12 other files; get the full folder from GitHub.
name
react-router-framework-mode
description
Build full-stack React applications using React Router's framework mode. Use when configuring routes, working with loaders and actions, handling forms, handling navigation, pending/optimistic UI, error boundaries, or working with react-router.config.ts or other react router conventions.
license
MIT

React Router Framework Mode

Framework mode is React Router's full-stack development experience with file-based routing, server-side, client-side, and static rendering strategies, data loading and mutations, and type-safe route module API.

When to Apply

  • Configuring new routes (app/routes.ts)
  • Loading data with loader or clientLoader
  • Handling mutations with action or clientAction
  • Navigating with <Link>, <NavLink>, <Form>, redirect, and useNavigate
  • Implementing pending/loading UI states
  • Configuring SSR, SPA mode, or pre-rendering (react-router.config.ts)
  • Implementing authentication

References

Load the relevant reference for detailed guidance on the specific API/concept:

ReferenceUse When
references/routing.mdConfiguring routes, nested routes, dynamic segments
references/route-modules.mdUnderstanding all route module exports
references/special-files.mdCustomizing root.tsx, adding global nav/footer, fonts
references/data-loading.mdLoading data with loaders, streaming, caching
references/actions.mdHandling forms, mutations, validation
references/navigation.mdLinks, programmatic navigation, redirects
references/pending-ui.mdLoading states, optimistic UI
references/error-handling.mdError boundaries, error reporting
references/rendering-strategies.mdSSR vs SPA vs pre-rendering configuration
references/middleware.mdAdding middleware (requires v7.9.0+)
references/sessions.mdCookie sessions, authentication, protected routes
references/type-safety.mdAuto-generated route types, type imports, type safety

Version Compatibility

Some features require specific React Router versions. Always verify before implementing:

bash
npm list react-router
FeatureMinimum VersionNotes
Middleware7.9.0+Requires v8_middleware flag
Core framework features7.0.0+loaders, actions, Form, etc.

Critical Patterns

These are the most important patterns to follow. Load the relevant reference for full details.

Forms & Mutations

Search forms - use <Form method="get">, NOT onSubmit with setSearchParams:

tsx
// ✅ Correct
<Form method="get">
  <input name="q" />
</Form>

// ❌ Wrong - don't manually handle search params
<form onSubmit={(e) => { e.preventDefault(); setSearchParams(...) }}>

Inline mutations - use useFetcher, NOT <Form> (which causes page navigation):

tsx
const fetcher = useFetcher();
const optimistic = fetcher.formData
  ? fetcher.formData.get("favorite") === "true"
  : isFavorite;

<fetcher.Form method="post" action={`/favorites/${id}`}>
  <button>{optimistic ? "★" : "☆"}</button>
</fetcher.Form>;

See references/actions.md for complete patterns.

Layouts

Global UI belongs in root.tsx - don't create separate layout files for nav/footer:

tsx
// app/root.tsx - add navigation, footer, providers here
export default function App() {
  return (
    <div>
      <nav>...</nav>
      <Outlet />
      <footer>...</footer>
    </div>
  );
}

Use nested routes for section-specific layouts. See references/routing.md.

Route Module Exports

meta uses loaderData, not deprecated data:

tsx
// ✅ Correct
export function meta({ loaderData }: Route.MetaArgs) { ... }

// ❌ Wrong - `data` is deprecated
export function meta({ data }: Route.MetaArgs) { ... }

See references/route-modules.md for all exports.

Further Documentation

If anything related to React Router is not covered in these references, you can search the official documentation:

https://reactrouter.com/docs

© curvenote, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 12 other files (references) in .agents/skills/react-router-framework-mode of curvenote/curvenote.

  • SKILL.md
  • references/actions.md
  • references/data-loading.md
  • references/error-handling.md
  • references/middleware.md
  • references/navigation.md
  • references/pending-ui.md
  • references/rendering-strategies.md
  • references/route-modules.md
  • references/routing.md
  • references/sessions.md
  • references/special-files.md
  • references/type-safety.md

Open the folder on GitHubat commit 91febfe

Used in 4 other repositories

We found 4 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 4 other GitHub owners. This page covers the copy in curvenote/curvenote, which our catalogue first saw on October 7, 2026.

Compare with similar skills

React Router Framework Mode next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

React Router Framework Mode compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
React Router Framework Mode this skillcurvenote/curvenote1694 repos~1.1kAutomated safety check: PassMIT
Next Best Practicesvercel-labs/openreview1.7k18 repos~1kAutomated safety check: PassNone
Data Client Reactreactive/data-client2k—~1.9kAutomated safety check: PassApache-2.0
Using Docs Kitlobehub/lobe-ui2.2k—~2.8kAutomated safety check: PassMIT
React Fetch Cache Patternspproenca/dot-skills214—~3kAutomated safety check: PassMIT
Error Boundaryvibeeval/vibecosystem531—~4.5kAutomated safety check: PassMIT

Similar skills

  • Next Best Practices

    vercel-labs/openreview

    Official

    Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

    1.7k GitHub starsUsed in 18 repos~1k tokens
    DevelopmentAuto-check passed
  • Data Client React

    reactive/data-client

    Use @data-client/react hooks for data fetching, mutations, and rendering - useSuspense, useFetch, useQuery, useCache, useLive, useDLE, useSubscription, useController, DataProvider, AsyncBoundary…

    2k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Using Docs Kit

    lobehub/lobe-ui

    Set up and author a documentation site with @lobehub/docs-kit (the lobedocs CLI, React Router + Vite static docs used by ui.lobehub.com).

    2.2k GitHub stars~2.8k tokensUpdated today
    Frontend & DesignAuto-check passed
  • React Fetch Cache Patterns

    pproenca/dot-skills

    React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards.

    214 GitHub stars~3k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Error Boundary

    vibeeval/vibecosystem

    React error boundary hierarchy, fallback UI patterns, offline-first fallback, retry mechanisms, and graceful degradation.

    531 GitHub stars~4.5k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Safe Element Comparison

    seasonedcc/remix-forms

    Maintain element type comparison safety in remix-forms. An agent skill from seasonedcc/remix-forms.

    514 GitHub stars~1.8k tokensUpdated 5 mo ago
    Frontend & DesignAuto-check passed

More from curvenote/curvenote

All 10 skills in this repo
  • Supabase

    curvenote/curvenote

    A skill your agent uses when doing ANY task involving Supabase.

    169 GitHub starsUsed in 5 repos~2.2k tokens
    Auto-check passed
  • Prisma Database Setup

    curvenote/curvenote

    Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.).

    169 GitHub starsUsed in 3 repos~1.4k tokens
    Auto-check passed
  • Prisma Client API

    curvenote/curvenote

    Prisma Client API reference covering model queries, filters, operators, and client methods.

    169 GitHub starsUsed in 2 repos~1.6k tokens
    Auto-check passed
  • Prisma Postgres

    curvenote/curvenote

    Prisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK.

    169 GitHub starsUsed in 1 repo~937 tokens
    Auto-check: notes
  • Prisma Postgres Setup

    curvenote/curvenote

    Set up a new Prisma Postgres database and connect it to a local project using the Management API.

    169 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes
  • Prisma CLI

    curvenote/curvenote

    Prisma CLI commands reference covering all available commands, options, and usage patterns.

    169 GitHub stars~1.6k tokensUpdated 9 days ago
    Auto-check passed

Questions about React Router Framework Mode

What does React Router Framework Mode do?

Build full-stack React applications using React Router's framework mode. React Router Framework Mode is an agent skill from curvenote/curvenote. Build full-stack React applications using React Router's framework mode.

When should I use React Router Framework Mode?

React Router Framework Mode fits situations like: configuring routes; working with loaders and actions; handling navigation; pending/optimistic UI.

How do I install React Router Framework Mode in Claude Code?

Run `npx skills add curvenote/curvenote --skill react-router-framework-mode -a claude-code`. Or copy the skill folder (.agents/skills/react-router-framework-mode in curvenote/curvenote) into .claude/skills/react-router-framework-mode in your project. Claude Code loads it when a task matches its description.

How do I install React Router Framework Mode in Codex?

Run `npx skills add curvenote/curvenote --skill react-router-framework-mode -a codex`. Or copy the skill folder (.agents/skills/react-router-framework-mode in curvenote/curvenote) into .agents/skills/react-router-framework-mode in your project. Codex loads it when a task matches its description.

Can I use React Router Framework Mode in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add curvenote/curvenote --skill react-router-framework-mode -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-router-framework-mode, .gemini/skills/react-router-framework-mode, .github/skills/react-router-framework-mode and .opencode/skills/react-router-framework-mode in your project.

What does React Router Framework Mode need to run?

Going by SKILL.md and its folder, React Router Framework Mode needs the command-line tools its instructions call (npm).

Does React Router Framework Mode access the network?

SKILL.md names 1 domain. As links in the text: reactrouter.com. This is read from the text; nothing was executed.

Is React Router Framework Mode safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does React Router Framework Mode use?

React Router Framework Mode is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does React Router Framework Mode use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 20k tokens, read only when the agent opens those files.

What are the alternatives to React Router Framework Mode?

Skills that share tags, products or a category with React Router Framework Mode: Next Best Practices (vercel-labs/openreview, 1.7k stars), Data Client React (reactive/data-client, 2k stars), Using Docs Kit (lobehub/lobe-ui, 2.2k stars) and React Fetch Cache Patterns (pproenca/dot-skills, 214 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains React Router Framework Mode?

curvenote (a GitHub organization) maintains it in curvenote/curvenote, which has 169 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on September 28, 2026.

Source: curvenote/curvenote on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.