react-router-framework-mode

remix-run/agent-skills · Agent Skill

React Router şablonları yükleyici, eylemler, middleware, yol modülleri ve tam ekran render akışları için çerçeve modunda.

Kuruluma geç ↓

Genel bakış

Yayıncıremix-runKuruluş
Deporemix-run/agent-skills ↗
Skill klasörüreact-router-framework-mode
Yıldız134
Fork4
Dosyalar13
LisansMIT
Son güncelleme18 Haziran 2026
BağlantılarSkill kaynağı ↗ · Depo ↗

Mozgi kontrolü

Skill dosyalarında bulduklarımız. Ayrıntılar abonelikle.

Güvenlik
düşük risk · belirgin risk bulunamadı — tam rapor ayrıntıları gösterir
Uyumluluk
ek yazılım gerekiyor
Benzer skiller
139 benzer skill bulundu
Abonelikte ayrıca

Kurulum

Skill, SKILL.md dosyası içeren bir klasördür. Ajanınızı seçin ve komutları proje kökünde bir terminalde çalıştırın (macOS, Linux veya Windows'ta Git Bash).

Promptu Claude, Codex veya başka bir asistana yapıştırın: skill'i inceleyip sizin için kuracaktır.

Install the “react-router-framework-mode” skill from mozgi.io (https://mozgi.io/skills/remix-run-react-router-framework-mode/) for me.

1. Download the archive: https://mozgi.io/skills/remix-run-react-router-framework-mode/download
   If it fails, take the skill folder from the source: https://github.com/remix-run/agent-skills/tree/main/skills/react-router-framework-mode
2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me.
3. Put the “react-router-framework-mode” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.).
4. Make sure <skills folder>/react-router-framework-mode/SKILL.md exists.
5. Briefly tell me what this skill does and offer to try it on my task.

If you cannot do a step yourself, tell me what to click or type.

Kaynak dosyaları

13 dosya ZIP indir

Kurulumdan önce SKILL.md ve eşlik eden dosyaları inceleyin. Önizleme için dosyaya tıklayın.

SKILL.md içeriği

Yazarın orijinal metni · salt okunur

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:

| Reference | Use When |

| ------------------------------------ | ----------------------------------------------------- |

| references/routing.md | Configuring routes, nested routes, dynamic segments |

| references/route-modules.md | Understanding all route module exports |

| references/special-files.md | Customizing root.tsx, adding global nav/footer, fonts |

| references/data-loading.md | Loading data with loaders, streaming, caching |

| references/actions.md | Handling forms, mutations, validation |

| references/navigation.md | Links, programmatic navigation, redirects |

| references/pending-ui.md | Loading states, optimistic UI |

| references/error-handling.md | Error boundaries, error reporting |

| references/rendering-strategies.md | SSR vs SPA vs pre-rendering configuration |

| references/middleware.md | Adding middleware (requires v7.9.0+) |

| references/sessions.md | Cookie sessions, authentication, protected routes |

| references/type-safety.md | Auto-generated route types, type imports, type safety |

Version Compatibility

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

npm list react-router

| Feature | Minimum Version | Notes |

| ----------------------- | --------------- | ----------------------------- |

| Middleware | 7.9.0+ | Requires v8_middleware flag |

| Core framework features | 7.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:

// ✅ 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):

const fetcher = useFetcher();
const optimistic = 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:

// 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:

// ✅ 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

Sık sorulan sorular

react-router-framework-mode skill'i ne yapar?

React Router şablonları yükleyici, eylemler, middleware, yol modülleri ve tam ekran render akışları için çerçeve modunda.

react-router-framework-mode nasıl kurulur?

Bu sayfadaki “Kurulum” bölümünü açın ve ajanınızı seçin — Claude Code, Codex, Cursor veya Gemini CLI: skill klasörünü doğru yere kopyalayan hazır komutlar orada. Ya da “Asistanla” sekmesindeki promptu kopyalayın; asistan skill'i inceleyip kuracaktır.

react-router-framework-mode hangi yapay zekâlarla çalışır?

Skill'ler düz Markdown talimatlarıdır (Agent Skills formatı), bu yüzden react-router-framework-mode SKILL.md okuyan her ajanla çalışır: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode ve diğerleri. Model talimatları yalnızca görev skill açıklamasına uyduğunda yükler.

react-router-framework-mode ücretsiz mi?

Skill, remix-run tarafından açık olarak yayımlandı (MIT lisansı). Skill'in kendisi ücretsizdir — yalnızca kullandığınız token'lar için yapay zekâ sağlayıcınıza ödeme yaparsınız.

Skill kurmak güvenli mi?

Skill, ajanınızın izleyeceği talimatlardır; kurmadan önce SKILL.md ve eşlik eden dosyaları okuyun. Skill klasöründeki betikler yalnızca ajanınız çalıştırırsa çalışır — ne yaptığını izleyin ve gereksiz izin vermeyin.

Skill, MCP sunucusu veya eklentiden nasıl farklıdır?

MCP sunucusu veya eklenti modele yeni araçlar verir — çalışıp sonuç döndüren kod. Skill ise bilgi ve süreç verir: göreve nasıl yaklaşılacağı, hangi adımların izleneceği ve iyi sonucun neye benzediği. Sunucu veya API anahtarı gerekmez.

Benzer skiller

Tüm skiller →