Source profileQuality 96/100

yonatangross/orchestkit/src/skills/react-server-components-framework/SKILL.md

react-server-components-framework

Use when building Next.js 16+ apps with React Server Components. Covers App Router, Cache Components (replacing experimental_ppr), streaming SSR, Server Actions, and React 19 patterns for server-first architecture.

Source repository stars
223
Declared platforms
1
Static risk flags
1
Last source update
2026-08-24
Source checked
2026-08-25

Decision brief

What it does: where it fits

js 16+ apps with React Server Components. Covers App Router, Cache Components (replacing experimental_ppr), streaming SSR, Server Actions, and React 19 patterns for server-first architecture.

Best for

  • Use when building Next.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeDeclaredSource recordInstall path and trigger
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/yonatangross/orchestkit --skill "src/skills/react-server-components-framework"
Safe inspection promptEditorial

Inspect the Agent Skill "react-server-components-framework" from https://github.com/yonatangross/orchestkit/blob/4e5c1327b7d7902022ee69328e12db1f6a88f390/src/skills/react-server-components-framework/SKILL.md at commit 4e5c1327b7d7902022ee69328e12db1f6a88f390. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Quick Reference

    Key Rule: Server Components can render Client Components, but Client Components cannot directly import Server Components (use children prop instead).

    Turbopack default — next dev and next build run Turbopack without any flag. Pass --webpack only when forced (legacy plugin).Server Fast Refresh — Server Components hot-reload on save without losing client state. No extra config; it's on by default in 16.2.Next DevTools MCP — register npx -y next-devtools-mcp@latest in .mcp.json; it attaches to the running dev server over the /next/mcp endpoint and exposes RSC payloads and cache boundaries to an MCP client. Designed for A…
  2. 02

    Server vs Client Components

    Key Rule: Server Components can render Client Components, but Client Components cannot directly import Server Components (use children prop instead).

    Key Rule: Server Components can render Client Components, but Client Components cannot directly import Server Components (use children prop instead).
  3. 03

    Data Fetching Quick Reference

    Next.js 16 Cache Components (Recommended):

    Next.js 16 Cache Components (Recommended):Enable via next.config.ts:Legacy Fetch Options (Next.js 15):
  4. 04

    Server Actions Quick Reference

    Review the “Server Actions Quick Reference” section in the pinned source before continuing.

    Review and apply the “Server Actions Quick Reference” source section.
  5. 05

    Async Params/SearchParams (Next.js 16)

    Route parameters and search parameters are now Promises that must be awaited:

    Route parameters and search parameters are now Promises that must be awaited:Note: Also applies to layout.tsx, generateMetadata(), and route handlers. Complete migration guide: first-party next-upgrade / vercel:next-upgrade skill. House scars: Read("${CLAUDEPLUGINROOT}/skills/react-server-compon…

Permission review

Static risk signals and limitations

Network access

medium · line 85

The documentation includes network, browsing, or remote request actions.

await fetch(url, { cache: 'force-cache' })

Network access

medium · line 88

The documentation includes network, browsing, or remote request actions.

await fetch(url, { next: { revalidate: 60 } })

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score96/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars223SourceRepository attention, not individual Skill quality
Compatibility1 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
yonatangross/orchestkit
Skill path
src/skills/react-server-components-framework/SKILL.md
Commit
4e5c1327b7d7902022ee69328e12db1f6a88f390
License
MIT
Collected
2026-08-25
Default branch
main
View the original SKILL.md

React Server Components Framework

Overview

React Server Components (RSC) enable server-first rendering with client-side interactivity. This skill covers Next.js 16.2 LTS App Router patterns, Server Components, Server Actions, and streaming.

Next.js 16.2.6 / React 19.2.6 (security release, May 2026) — Turbopack is the default bundler (no --turbo flag needed), Server Fast Refresh is on by default, and the new cacheComponents config flag replaces the legacy experimental_ppr escape hatch. For AI-agent debugging Next.js ships Next DevTools MCP — wire npx -y next-devtools-mcp@latest into .mcp.json (it connects via the dev server's /_next/mcp endpoint) to inspect render trees and cache boundaries mid-session.

When to use this skill:

  • Building Next.js 16+ applications with the App Router
  • Designing component boundaries (Server vs Client Components)
  • Implementing data fetching with caching and revalidation
  • Creating mutations with Server Actions
  • Optimizing performance with streaming and Suspense

Quick Reference

Server vs Client Components

FeatureServer ComponentClient Component
DirectiveNone (default)'use client'
Async/awaitYesNo
HooksNoYes
Browser APIsNoYes
Database accessYesNo
Client JS bundleZeroShips to client

Key Rule: Server Components can render Client Components, but Client Components cannot directly import Server Components (use children prop instead).

Data Fetching Quick Reference

Next.js 16 Cache Components (Recommended):

import { cacheLife, cacheTag } from 'next/cache'

// Default — shared across all users (public CDN-cached)
async function CachedProducts() {
  'use cache'
  cacheLife('hours')
  cacheTag('products')
  return await db.product.findMany()
}

// Remote variant (16.2+) — always served from the edge/CDN, never rendered
// inline on the origin. Best for static product listings, marketing content.
async function MarketingHero() {
  'use cache: remote'
  cacheLife('days')
  return <Hero />
}

// Private variant (16.2+) — cached per-user session. Never shared across
// users. Use for personalized dashboards with expensive computation.
async function UserDashboard({ userId }: { userId: string }) {
  'use cache: private'
  cacheLife('minutes')
  cacheTag(`user:${userId}`)
  return await loadDashboard(userId)
}

// Invalidate cache — v16 requires a cacheLife profile as the 2nd arg
import { revalidateTag } from 'next/cache'
revalidateTag('products', 'max') // or updateTag('products') for read-your-writes

Enable via next.config.ts:

import type { NextConfig } from 'next'
const config: NextConfig = {
  cacheComponents: true,  // 16.2+ — replaces experimental_ppr flag
}
export default config

Legacy Fetch Options (Next.js 15):

// Static (cached indefinitely)
await fetch(url, { cache: 'force-cache' })

// Revalidate every 60 seconds
await fetch(url, { next: { revalidate: 60 } })

// Always fresh
await fetch(url, { cache: 'no-store' })

// Tag-based revalidation
await fetch(url, { next: { tags: ['posts'] } })

Server Actions Quick Reference

'use server'

export async function createPost(formData: FormData) {
  const title = formData.get('title') as string
  const post = await db.post.create({ data: { title } })
  revalidatePath('/posts')
  redirect("/posts/" + post.id)
}

Async Params/SearchParams (Next.js 16)

Route parameters and search parameters are now Promises that must be awaited:

// app/posts/[slug]/page.tsx
export default async function PostPage({
  params,
  searchParams,
}: {
  params: Promise<{ slug: string }>
  searchParams: Promise<{ page?: string }>
}) {
  const { slug } = await params
  const { page } = await searchParams
  return <Post slug={slug} page={page} />
}

Note: Also applies to layout.tsx, generateMetadata(), and route handlers. Complete migration guide: first-party next-upgrade / vercel:next-upgrade skill. House scars: Read("${CLAUDE_PLUGIN_ROOT}/skills/react-server-components-framework/references/ork-delta.md").

Dev Server (Next.js 16.2 LTS)

  • Turbopack defaultnext dev and next build run Turbopack without any flag. Pass --webpack only when forced (legacy plugin).
  • Server Fast Refresh — Server Components hot-reload on save without losing client state. No extra config; it's on by default in 16.2.
  • Next DevTools MCP — register npx -y next-devtools-mcp@latest in .mcp.json; it attaches to the running dev server over the /_next/mcp endpoint and exposes RSC payloads and cache boundaries to an MCP client. Designed for AI agents that need to inspect render trees mid-session without screenshotting. (There is no next-browser binary.)

References

Load on demand with Read("${CLAUDE_PLUGIN_ROOT}/skills/react-server-components-framework/references/<file>"):

FileContent
ork-delta.mdHouse rules and scars: fabricated-API corrections from PR #2143, React 19 house conventions (2026-07-31 distillation)
tanstack-router-patterns.mdReact 19 features without Next.js, route-based data fetching, client-rendered app patterns
capability-details.mdKeyword and problem-mapping metadata for all 12 RSC capabilities

Upstream coverage (do not restate)

Vendor tutorials for these topics live in first-party skills and docs. This skill keeps only floors, scars, and house decisions (references/ork-delta.md).

TopicFirst-party source
Server Components fundamentals (async components, data fetching, route segment config, generateStaticParams, error handling)next-best-practices / vercel:nextjs skill; nextjs.org/docs
Client Components, 'use client', hydration, client-only renderingnext-best-practices / vercel:nextjs skill
Server/Client boundary and composition patterns, serializable propsnext-best-practices / vercel:nextjs skill; vercel-composition-patterns
Data fetching and caching (fetch cache options, revalidate, tags)next-best-practices / vercel:nextjs skill
Streaming SSR, Suspense boundaries, loading.tsx, skeleton statesvercel:nextjs skill (streaming)
Server Actions, progressive enhancement, useActionState forms, Zod validationvercel:nextjs skill (Server Actions)
Advanced routing (parallel, intercepting, route groups, dynamic and catch-all)vercel:nextjs skill (routing)
Pages Router to App Router migrationnext-upgrade / vercel:next-upgrade skill
Next.js 16 upgrade, breaking changes, codemodsnext-upgrade / vercel:next-upgrade skill
Cache Components: use cache, cacheLife, cacheTag, updateTag, PPRnext-cache-components / vercel:next-cache-components skill
React 19 core APIs (useActionState, useFormStatus, useOptimistic, use(), ref as prop)context7: /vercel/next.js + react.dev (query-docs)
RSC implementation and deployment checklistnext-best-practices skill

Best Practices Summary

Component Boundaries

  • Keep Client Components at the edges (leaves) of the component tree
  • Use Server Components by default
  • Extract minimal interactive parts to Client Components
  • Pass Server Components as children to Client Components

Data Fetching

  • Fetch data in Server Components close to where it's used
  • Use parallel fetching (Promise.all) for independent data
  • Set appropriate cache and revalidate options
  • Use generateStaticParams for static routes

Performance

  • Use Suspense boundaries for streaming
  • Implement loading.tsx for instant loading states
  • Enable PPR for static/dynamic mix
  • Use route segment config to control rendering mode

Templates

  • scripts/server-component-template.tsx - Basic async Server Component with data fetching
  • scripts/client-component-template.tsx - Interactive Client Component with hooks
  • scripts/server-action-template.ts - Server Action with validation and revalidation
  • scripts/create-server-component.md - Command-style scaffold; kept as the script-invocation contract exercised by tests/skills/scripts/

Troubleshooting

ErrorFix
"You're importing a component that needs useState"Add 'use client' directive
"async/await is not valid in non-async Server Components"Add async to function declaration
"Cannot use Server Component inside Client Component"Pass Server Component as children prop
"Hydration mismatch"Use 'use client' for Date.now(), Math.random(), browser APIs
"params is not defined" or params returning PromiseAdd await before params (Next.js 16 breaking change)
"experimental_ppr is not a valid export"Use Cache Components with "use cache" directive instead
"cookies/headers is not a function"Add await before cookies() or headers() (Next.js 16)

Resources


Related Skills

After mastering React Server Components:

  1. Streaming API Patterns - Real-time data patterns
  2. Type Safety & Validation - tRPC integration
  3. Edge Computing Patterns - Global deployment
  4. Performance Optimization - Core Web Vitals

Capability Details

Keyword and problem-mapping metadata for each RSC capability (react-19-patterns, use-hook-suspense, optimistic-updates-async, rsc-patterns, server-actions, data-fetching, streaming-ssr, caching, cache-components, tanstack-router-patterns, async-params, nextjs-16-upgrade).

Load full capability details: Read("${CLAUDE_PLUGIN_ROOT}/skills/react-server-components-framework/references/capability-details.md")

Frequently asked questions

What to verify before installation and use

What does the react-server-components-framework source document cover?

js 16+ apps with React Server Components. Covers App Router, Cache Components (replacing experimental_ppr), streaming SSR, Server Actions, and React 19 patterns for server-first architecture.

How do I install react-server-components-framework?

The source record exposes this install command: npx skills add https://github.com/yonatangross/orchestkit --skill "src/skills/react-server-components-framework". Inspect the command and pinned source before running it.

Which Agent platforms does the source record declare?

The pinned source record declares support for: claude code.

Which permission-related actions were detected?

Static rules flagged network in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing

Computed 96223

yonatangross/orchestkit

json-render-catalog

json-render component catalog patterns for AI-safe generative UI. Define Zod-typed catalogs that constrain what AI can generate, use @json-render/shadcn for 36 pre-built components, optimize specs with YAML mode, and apply the three edit modes (patch/merge/diff) for progressive updates. Use when building AI-generated UIs, defining component catalogs, or integrating json-render into React/Vue/Svelte/React Native/Ink/Next.js projects.

Computed 9180

vasilyu1983/AI-Agents-public

software-localisation

Implements production-grade i18n/l10n for React, Vue, Angular, and Next.js with ICU format and RTL support. Use when setting up or debugging localisation.

Computed 90223

yonatangross/orchestkit

multi-surface-render

Multi-surface rendering with json-render — one JSON spec produces React web, Next.js, React Native, Ink terminal UIs, PDFs, emails, Remotion videos, OG images, and 3D scenes. Covers renderer target selection, registry mapping, and platform APIs (renderToBuffer, renderToStream, renderToFile). Use when generating output for several platforms or creating PDF reports, email templates, demo videos, or social images from one component spec.

Computed 961,101

fcakyon/claude-codex-settings

vercel-react-view-transitions

Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view