react-server-components-framework

A guide for building React applications where components usually render on the server, using Next.js 15's App Router. It covers server-rendered pages, live page updates while loading, and actions that change data.

In plain words
What is it for?
Building Next.js applications with server-rendered components, data loading, form actions, streaming responses, and advanced routes.
Why use it?
It helps developers choose which code runs on the server or in the browser and structure data loading and updates consistently.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ariegoldkin/ai-agent-hub/react-server-components-framework
Any agent
npx skills add ArieGoldkin/ai-agent-hub --skill react-server-components-framework
Clone the repo
git clone --depth 1 https://github.com/ArieGoldkin/ai-agent-hub

Made for: Claude Code, Codex.

Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,488 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.02488
Opus 5 $0.00022 $0.01244
Sonnet 5 $0.00009 $0.00498
Haiku 4.5 $0.00004 $0.00249

Measured 3d ago against content hash ab5326747954, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

react-server-components-framework scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (templates/server-action-template.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

await fetch(url, { cache: 'force-cache' })
skills/react-server-components-framework/SKILL.md · 389 lines

How it starts

The opening of the file, as written. The whole thing — 389 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Server Components Framework

Overview

React Server Components (RSC) represent a paradigm shift in React architecture, enabling server-first rendering with client-side interactivity. This skill provides comprehensive patterns, templates, and best practices for building modern Next.js 15 applications using the App Router with Server Components, Server Actions, and streaming.

When to use this skill:

  • Building Next.js 15+ 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
  • Implementing Partial Prerendering (PPR)
  • Designing advanced routing patterns (parallel, intercepting routes)

Why React Server Components Matter

RSC fundamentally changes how we think about React applications:

  • Server-First Architecture: Components render on the server by default, reducing client bundle size
  • Zero Client Bundle: Server Components don't ship JavaScript to the client
  • Direct Backend Access: Access databases, file systems, and APIs directly from components
  • Automatic Code Splitting: Only Client Components and their dependencies are bundled
  • Streaming & Suspense: Progressive rendering for instant perceived performance
  • Type-Safe Data Fetching: End-to-end TypeScript from database to UI
  • SEO & Performance: Server rendering improves Core Web Vitals and SEO

Core Concepts

1. Server Components vs Client Components

Server Components (default):

  • Can be async and use await
  • Direct database access
  • Cannot use hooks or browser APIs
  • Zero client JavaScript

Client Components (with 'use client'):

  • Can use hooks (useState, useEffect, etc.)
  • Browser APIs available
  • Cannot be async
  • Ships JavaScript to client

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

Read the full file on GitHub · 389 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 389 lines · 43 tokens per session scan A ab5326747954

Subscribe to this mod's changes

react-server-components-framework is a skill published in the GitHub repository ArieGoldkin/ai-agent-hub (11 stars, last pushed 9mo ago), licensed MIT. It adds 43 tokens to every session and 2,488 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

nextjs-patterns

Next.js App Router — Server Components, Actions, streaming, caching. Use when building or migrating Next.js apps.

martineserios/thebrana · 28 tokens

nextjs-docs

Use this skill whenever the user asks about Next.js, React full-stack development, App Router, Server Components, or building web applications with Next.js. This skill covers Next.js 16.2.7 with React 19.2, App Router, Cache Components, Turbopack, and all modern patterns. Use it for code generation, architecture…

pledgeandgrow/pledge-skills · 138 tokens

vercel-react

React/Next.js performance — 70 rules (waterfalls, bundle, re-renders). Use when reviewing or writing React/Next.js code.

martineserios/thebrana · 34 tokens

nextjs

Next.js App Router best practices — Server Components, data fetching, caching, routing, middleware, metadata, error handling, streaming, Server Actions, and performance optimization for Next.js 14-16+.

wpank/ai · 43 tokens

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…

shadcn-ui/ui · 94 tokens

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.

shadcn-ui/ui · 61 tokens