Skip to content
Back to skills

React Server Components

ASecurity

Enforce standards for RSC implementation to eliminate client-side JavaScript for non-interactive elements. This skill focuses on the "Server-First" mindset, reducing bundle sizes and improving First Contentful Paint (FCP).

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
developmentjavascriptjavareactapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add iDorgham/Workspace-Factory --skill react-server-components --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Server Components?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for React Server Components
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/idorgham-react-server-components/badge)](https://www.skillsdirectory.com/skills/idorgham-react-server-components)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
type: Skill
subagents: [core-validator, integrity-bot]
agents: [master-guide, swarm-router]
dependencies: [core-orchestration, global-sync]
version: 1.0.0
---



# ☁️ React Server Components (RSC)

## Purpose
Enforce standards for RSC implementation to eliminate client-side JavaScript for non-interactive elements. This skill focuses on the "Server-First" mindset, reducing bundle sizes and improving First Contentful Paint (FCP).

---

## Technique 1 — Zero-Bundle Rendering
- **Rule**: Keep components as Server Components unless they require state (`useState`), effects (`useEffect`), or browser APIs.
- **Protocol**: 
    1. Perform data fetching directly inside the component using `async/await`.
    2. Render complex logic on the server to avoid shipping heavy libraries (e.g., Markdown parsers, Date formatters) to the client.
    3. Pass only serializable data through the "Server-Client Boundary."

---

## Technique 2 — Boundary Orchestration
- **Server/Client Composition**: Always pass Client Components as `children` to Server Components rather than importing Server Components inside Client Components (which is impossible).
- **Data Streaming**: Wrap data-intensive RSCs in `Suspense` to enable progressive loading profiles.

---

## 🛡️ Critical Failure Modes (Anti-Patterns)

| Anti-Pattern | Result | Correction |
| :--- | :--- | :--- |
| **Importing Server into Client** | Fatal Runtime Error | Pass the Server Component as a `prop` or `children` to the Client Component. |
| **Passing Non-Serializable Props** | Hydration Mismatch | Never pass functions, Classes, or complex Dates directly from Server to Client; serialize to JSON-safe primitives. |
| **Prop-Drilling through Boundaries** | Fragmentation | Let Server Components fetch their own data; avoid passing massive data objects from the root. |

---

## Success Criteria (RSC QA)
- [ ] Non-interactive components contribute 0kb to the JS bundle.
- [ ] Secure data (API keys, DB calls) stays purely on the server.
- [ ] No "Hydration Mismatch" errors in the console.
- [ ] User sees meaningful content before the JS finishes loading.

Files in this skill

  • SKILL.md2.1 KB
  • core.py377 B
  • manifest.yaml194 B
  • tests/test_core.py317 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.