server-components
Skill by davepoon
Explains React Server Components in the Next.js App Router, covering when to use Server vs Client Components, the 'use client' directive, composition and data fetching. Aimed at developers building Next.js apps.
Install server-components
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davepoon/buildwithclaude /tmp/buildwithclaude && mkdir -p ~/.claude/skills && cp -r /tmp/buildwithclaude/plugins/nextjs-expert/skills/server-components ~/.claude/skills/server-componentsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davepoon/buildwithclaude /tmp/buildwithclaude && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/buildwithclaude/plugins/nextjs-expert/skills/server-components ~/.gemini/antigravity-cli/skills/server-componentsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The server-components skill is a guide to React Server Components in the Next.js App Router. It explains when to use Server Components versus Client Components and how the 'use client' directive works. It describes the component tree as having a client boundary, and covers composition patterns such as passing Server Components as children. It also shows data fetching with async components, Promise.all and Suspense streaming.
The skill is aimed at developers building Next.js apps who have questions about RSC architecture. It includes a decision guide and a list of common mistakes, such as adding 'use client' unnecessarily and serializing data at boundaries. It also points to reference files for deeper comparisons and data fetching examples.
Written from the project's SKILL.md and checked against it.
What it can do
- Server vs Client ComponentsExplains the difference between Server Components and Client Components and when to use each.
- 'use client' directiveShows how to mark components for interactivity with the 'use client' directive.
- Composition patternsCovers passing Server Components as children and using slots in Client Components.
- Data fetchingShows async Server Components, parallel fetching with Promise.all and streaming with Suspense.
- Decision guideLists when to use a Server Component and when to use a Client Component.
- Common mistakesLists frequent errors such as unnecessary 'use client' and importing Server Components into Client Components.
What you need
- Next.js App Router
- React
Try asking
- When should this component be a Server Component instead of a Client Component?
- Show me how to pass a Server Component as children to a Client Component.
- How do I fetch several resources in parallel in a Next.js page?
Good to know
- Client Components cannot import Server Components.
- Adding 'use client' unnecessarily increases bundle size.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/nextjs-expert/skills/server-components/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
examples/data-fetching-patterns.md9 KB -
references/composition-patterns.md8 KB -
references/server-vs-client.md7 KB
Alternatives to server-components
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
server-components: common questions
What is the difference between Server and Client Components in Next.js?
Server Components run only on the server and can access data directly. Client Components use the 'use client' directive and handle state, effects and browser APIs.
Can I pass Server Components into Client Components?
Yes, the skill says you can pass Server Components as children to Client Components. Client Components cannot import Server Components directly.
Does this skill cover data fetching in Next.js?
Yes, it covers async Server Components, parallel data fetching with Promise.all and streaming slow components with Suspense.
How do I install server-components?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is server-components free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is server-components safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to server-components?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
