Agent skill

Install Next

by foxted in foxted/rsc-boundary

Installs and wires @rsc-boundary/next into a Next.js App Router app (dependencies, root layout provider, optional explicit markers).

MITAuto-check passed

Install Install Next

skills CLI
$ npx skills add foxted/rsc-boundary --skill install-next -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install foxted/rsc-boundary install-next --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/foxted/rsc-boundary.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/install-next .claude/skills/install-next && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
install-next
GitHub stars
129
Token cost
~1k tokens
SKILL.md length
400 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Installs and wires @rsc-boundary/next into a Next.js App Router app (dependencies, root layout provider, optional explicit markers).

  • Works in 5 steps: Install the dependency → Wrap the App Router root layout → Behavior to set expectations → …
  • The user wants to add RSC Boundary
  • SKILL.md covers Prerequisites, 1. Install the dependency, 2. Wrap the App Router root… and 3. Behavior to set expectations, plus 3 more sections
  • Calls pnpm, npm and yarn

What it does

Install Next is an agent skill from foxted/rsc-boundary. Installs and wires @rsc-boundary/next into a Next.js App Router app (dependencies, root layout provider, optional explicit markers). Use when the user wants to add RSC Boundary, integrate @rsc-boundary/next, or set up server/client boundary devtools in Next.js. The unscoped rsc-boundary package on npm is deprecated — see migration note.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Next.js, npm and React. The repository describes itself as: Tooling to visualize React Server Components vs Client Components boundaries in Next.js App Router. The licence is MIT.

When your agent uses it

  • The user wants to add RSC Boundary
  • Integrate @rsc-boundary/next
  • Set up server/client boundary devtools in Next.js

Example prompts

  • “Use the install-next skill to install and wires @rsc-boundary/next into a Next.js App Router app (dependencies, root layout provider, optional…”
  • “/install-next”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Install the dependency
  2. Wrap the App Router root layout
  3. Behavior to set expectations
  4. Optional API (only if the user asks)
  5. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit ad7aa8e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm
    • npm
    • yarn

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, npm and yarn, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Install Next loads about 1k tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 400 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from foxted/rsc-boundary at commit ad7aa8e, republished under its MIT licence (© foxted). 400 words, ~1,044 tokens.

Download SKILL.mdSave it as .claude/skills/install-next/SKILL.md (or your agent's skills folder).
name
install-next
description
Installs and wires @rsc-boundary/next into a Next.js App Router app (dependencies, root layout provider, optional explicit markers). Use when the user wants to add RSC Boundary, integrate @rsc-boundary/next, or set up server/client boundary devtools in Next.js. The unscoped rsc-boundary package on npm is deprecated — see migration note.

Install RSC Boundary in a Next.js app

Package: @rsc-boundary/next on npm. The unscoped rsc-boundary package on npm is deprecated — for new projects always install @rsc-boundary/next (it pulls in @rsc-boundary/core automatically).

Prerequisites

  • Next.js 16+ with the App Router
  • React 19+ and react-dom 19+ (peer dependencies)

If versions are older, say so and recommend upgrading before installing.

1. Install the dependency

Use the project's package manager:

bash
pnpm add @rsc-boundary/next
bash
npm install @rsc-boundary/next
bash
yarn add @rsc-boundary/next
Migrating from rsc-boundary

If the user still has the deprecated unscoped rsc-boundary package installed, the migration is a one-liner:

bash
pnpm remove rsc-boundary && pnpm add @rsc-boundary/next

Then replace the import everywhere (one global find-and-replace):

diff
-import { ... } from "rsc-boundary";
+import { ... } from "@rsc-boundary/next";

The API surface is identical — no other code changes are needed.

Monorepo / local development

If the user is working inside this repository and consuming the package from the workspace, use the workspace protocol:

json
"@rsc-boundary/next": "workspace:*"

Ensure the packages are built (pnpm --filter @rsc-boundary/next build, which also builds core) before the app typechecks against dist/.

2. Wrap the App Router root layout

Edit app/layout.tsx (or the file that exports the root RootLayout for app/).

  1. Import the provider:

    tsx
    import { RscBoundaryProvider } from "@rsc-boundary/next";
  2. Wrap {children} (inside <body>) with <RscBoundaryProvider>{children}</RscBoundaryProvider>.

Preserve existing structure: fonts, metadata, other layout UI, and className on <body> / <html> stay as they are—only add the provider around the main content tree as appropriate.

Minimal pattern:

tsx
import { RscBoundaryProvider } from "@rsc-boundary/next";

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en">
      <body>
        <RscBoundaryProvider>{children}</RscBoundaryProvider>
      </body>
    </html>
  );
}

If the app already wraps children in other providers, nest RscBoundaryProvider in a sensible place (often outermost inside <body> so the whole app is covered).

Show full SKILL.md (173 more words)Show less

3. Behavior to set expectations

  • Development: A small control (pill) appears; toggling it highlights client vs server regions. No changes are required in individual components for the default experience.
  • Production: The provider is a no-op (children only). Devtools never mount in production builds; use static UI or screenshots if you need to illustrate boundaries on a deployed site.

4. Optional API (only if the user asks)

From @rsc-boundary/next the app can also use:

  • RscServerBoundaryMarker / SERVER_BOUNDARY_DATA_ATTR — explicit server region labels
  • RscDevtoolsNext — advanced mounting without the provider wrapper
  • createRscBoundaryProvider — factory for custom wiring (re-exported from @rsc-boundary/core)

Prefer RscBoundaryProvider unless the user's setup requires splitting these.

5. Verify

  • Run pnpm dev (or the app's dev script).
  • Open the app in the browser; confirm the RSC Boundary control appears and toggling highlights boundaries.
  • Run the project's typecheck/lint if available.

Troubleshooting (brief)

  • Peer dependency warnings: Align react and react-dom to ^19 with the app's Next.js version.
  • Types / module not found: Ensure install completed and, for workspace usage, that packages are built.
  • Nothing in production: Expected; devtools are development-only.

© foxted, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/install-next of foxted/rsc-boundary.

Open the folder on GitHubat commit ad7aa8e

Compare with similar skills

Install Next next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Install Next compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Install Next this skillfoxted/rsc-boundary129—~1kAutomated safety check: PassMIT
GSAP for Reactgreensock/gsap-skills16k4 repos~1.6kAutomated safety check: PassMIT
Convex Quickstartspokvulcan/poker-planning1146 repos~3.5kAutomated safety check: NotesMIT
Convex Self Hostingwaynesutton/markdown-site628—~1.4kAutomated safety check: PassMIT
Spotpatchhuanglvjing/spotpatch134—~998Automated safety check: PassMIT
Swc Plugin CompatibilityB0und/WikiSpeedrun133—~2.3kAutomated safety check: PassMIT

Similar skills

  • GSAP for React

    greensock/gsap-skills

    Shows how to run GSAP animations in React and Next.js with the useGSAP hook, refs, scoped selectors and automatic cleanup on unmount.

    16k GitHub starsUsed in 4 repos~1.6k tokens
    Frontend & DesignAuto-check passed
  • Convex Quickstart

    spokvulcan/poker-planning

    Creates or adds Convex to an app. An agent skill from spokvulcan/poker-planning.

    114 GitHub starsUsed in 6 repos~3.5k tokens
    Frontend & DesignAuto-check: notes
  • Convex Self Hosting

    waynesutton/markdown-site

    Integrate Convex static self hosting into existing apps using the latest upstream instructions from get-convex/self-hosting every time.

    628 GitHub stars~1.4k tokensUpdated 4 mo ago
    DevOps & CloudAuto-check passed
  • Spotpatch

    huanglvjing/spotpatch

    为 React 项目建立从浏览器页面元素到精确 JSX/TSX 源码、结构化上下文与可审阅修改的 SpotPatch 工作流。用户提到 SpotPatch、截图沟通前端修改、页面元素定位源码、Vite 或 Next.js 接入、组件数据链路、结构化 Prompt、AI 补丁审阅、安装检查或故障排查时使用此技能。

    134 GitHub stars~998 tokensUpdated 10 days ago
    Frontend & DesignAuto-check passed
  • Swc Plugin Compatibility

    B0und/WikiSpeedrun

    Diagnose and fix Lingui SWC plugin compatibility errors with Next.js, Vite, Rspack, or other SWC runtimes.

    133 GitHub stars~2.3k tokensUpdated 18 days ago
    Frontend & DesignAuto-check passed
  • Flags SDK

    vercel/vercel-plugin

    Official

    Set up and use feature flags and A/B tests with the Flags SDK (flags npm package) and Vercel Flags.

    301 GitHub stars~6.9k tokensUpdated yesterday
    Marketing & SEOAuto-check: notes

More from foxted/rsc-boundary

  • Install Start

    foxted/rsc-boundary

    Installs and wires the npm package @rsc-boundary/start into a TanStack Start app (dependencies, root route provider, optional explicit markers).

    129 GitHub stars~969 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Install Next

What does Install Next do?

Installs and wires @rsc-boundary/next into a Next.js App Router app (dependencies, root layout provider, optional explicit markers). Install Next is an agent skill from foxted/rsc-boundary.js App Router app (dependencies, root layout provider, optional explicit markers).

When should I use Install Next?

Install Next fits situations like: the user wants to add RSC Boundary; integrate @rsc-boundary/next; set up server/client boundary devtools in Next.js.

How do I install Install Next in Claude Code?

Run `npx skills add foxted/rsc-boundary --skill install-next -a claude-code`. Or copy the skill folder (skills/install-next in foxted/rsc-boundary) into .claude/skills/install-next in your project. Claude Code loads it when a task matches its description.

How do I install Install Next in Codex?

Run `npx skills add foxted/rsc-boundary --skill install-next -a codex`. Or copy the skill folder (skills/install-next in foxted/rsc-boundary) into .agents/skills/install-next in your project. Codex loads it when a task matches its description.

Can I use Install Next in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add foxted/rsc-boundary --skill install-next -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/install-next, .gemini/skills/install-next, .github/skills/install-next and .opencode/skills/install-next in your project.

What does Install Next need to run?

Going by SKILL.md and its folder, Install Next needs the command-line tools its instructions call (pnpm, npm and yarn). Our summary lists: Node.js.

Does Install Next access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Install Next safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Install Next use?

Install Next is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Install Next use?

About 1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Install Next?

Skills that share tags, products or a category with Install Next: GSAP for React (greensock/gsap-skills, 16k stars), Convex Quickstart (spokvulcan/poker-planning, 114 stars), Convex Self Hosting (waynesutton/markdown-site, 628 stars) and Spotpatch (huanglvjing/spotpatch, 134 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Install Next?

foxted (a GitHub user) maintains it in foxted/rsc-boundary, which has 129 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 5, 2026.

Source: foxted/rsc-boundary on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.