Next.js App Router expert guidance. An agent skill from leonvanzyl/opencode-masterclass.

No licenceAuto-check passedDevelopment

Install Nextjs

skills CLI
$ npx skills add leonvanzyl/opencode-masterclass --skill nextjs -a claude-code

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

GitHub CLI
$ gh skill install leonvanzyl/opencode-masterclass nextjs --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/leonvanzyl/opencode-masterclass.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/nextjs .claude/skills/nextjs && 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
nextjs
GitHub stars
124
Token cost
~4.5k tokens
SKILL.md length
375 words
Files
22 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
None found

At a glance

Next.js App Router expert guidance. An agent skill from leonvanzyl/opencode-masterclass.

  • Architecting Next.js applications — routing
  • SKILL.md covers File Conventions, RSC Boundaries, Async Patterns and Runtime Selection, plus 15 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Server Components

What it does

Nextjs is an agent skill from leonvanzyl/opencode-masterclass. Next.js App Router expert guidance. Use when building, debugging, or architecting Next.js applications — routing, Server Components, Server Actions, Cache Components, layouts, middleware/proxy, data fetching, rendering strategies, and deployment on Vercel.

Its SKILL.md is about 4.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 22 other files, including reference files (for example `overlay.yaml`, `references/app-router-files.md` and `references/async-patterns.md`).

It sits in Development. It works with Next.js and Vercel.

When your agent uses it

  • Architecting Next.js applications — routing
  • Server Components
  • Cache Components
  • Middleware/proxy

Example prompts

  • “/nextjs”

What it can do on your machine

Read from SKILL.md and the folder at commit 27f18e7. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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

Nextjs loads about 4.5k tokens when it runs, and up to ~24k if it reads all its reference files. Until then it costs about 66 tokens; SKILL.md has 375 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~4.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~24k

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 375 words (~4,479 tokens).

“Apply these rules when writing or reviewing Next.js code.”

— opening of SKILL.md by leonvanzyl
name
nextjs
metadata.priority
5
metadata.docs
https://nextjs.org/docs, https://nextjs.org/docs/app
metadata.sitemap
https://nextjs.org/sitemap.xml
metadata.pathPatterns
next.config.*, next-env.d.ts, app/**, pages/**, src/app/**, src/pages/**, tailwind.config.*, postcss.config.*, tsconfig.json, tsconfig.*.json, apps/*/app/**…
metadata.bashPatterns
\bnext\s+(dev|build|start|lint)\b, \bnext\s+experimental-analyze\b, \bnpx\s+create-next-app\b, \bbunx\s+create-next-app\b, \bnpm\s+run\s+(dev|build|start)\b…
retrieval.aliases
next.js, nextjs app, react framework, app router
retrieval.intents
set up routing and layouts in a Next.js app, choose between server and client components for a feature, configure data fetching or caching in App Router, add…
retrieval.entities
App Router, Server Components, Server Actions, generateMetadata, layout, proxy, next.config
retrieval.examples
add a new page with dynamic routing, should this be a server or client component, set up middleware for auth redirects, configure caching for this data fetch…

Read the full SKILL.md on GitHub

Files

SKILL.md and 21 other files (references) in .agents/skills/nextjs of leonvanzyl/opencode-masterclass.

  • SKILL.md
  • overlay.yaml
  • references/app-router-files.md
  • references/async-patterns.md
  • references/bundling.md
  • references/data-patterns.md
  • references/debug-tricks.md
  • references/directives.md
  • references/error-handling.md
  • references/file-conventions.md
  • references/font.md
  • references/functions.md
  • references/hydration-error.md
  • references/image.md
  • references/metadata.md
  • references/parallel-routes.md
  • references/route-handlers.md
  • references/rsc-boundaries.md
  • references/runtime-selection.md
  • references/scripts.md
  • … and 2 more

Open the folder on GitHubat commit 27f18e7

Compare with similar skills

Nextjs 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.

Nextjs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nextjs this skillleonvanzyl/opencode-masterclass124—~4.5kAutomated safety check: PassNone
Next Best Practicesvercel-labs/openreview1.7k18 repos~1kAutomated safety check: PassNone
Next Upgradevercel-labs/openreview1.7k6 repos~502Automated safety check: PassNone
Create PRvercel/next.js143k—~943Automated safety check: PassMIT
Catalog Publishingepoko77-ai/design-diversity192—~775Automated safety check: PassCustom licence
React Refactor Tournamentragnar-pwninskjold/tech-snacks136—~1.3kAutomated safety check: PassMIT

Similar skills

  • Next Best Practices

    vercel-labs/openreview

    Official

    Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

    1.7k GitHub starsUsed in 18 repos~1k tokens
    DevelopmentAuto-check passed
  • Next Upgrade

    vercel-labs/openreview

    Official

    Upgrade Next.js to the latest version following official migration guides and codemods

    1.7k GitHub starsUsed in 6 repos~502 tokens
    DevelopmentAuto-check passed
  • Create PR

    vercel/next.js

    Official

    Create Git branches, commits, pushes, and GitHub pull requests for Next.js.

    143k GitHub stars~943 tokensUpdated today
    DevelopmentAuto-check passed
  • Catalog Publishing

    epoko77-ai/design-diversity

    검증 통과한 디자인 팩을 GitHub 공개 레포로 구조화하고, 팩을 탐색·필터·복사할 수 있는 Next.js 카탈로그 웹사이트로 빌드해 Vercel에 배포하는 방법론 스킬.

    192 GitHub stars~775 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • React Refactor Tournament

    ragnar-pwninskjold/tech-snacks

    Review React/Next.js code against the real vercel-react-best-practices skill, backlog the performance findings keyed to actual rule ids + impact tiers, rank the most over-subscribed tiers, then fix…

    136 GitHub stars~1.3k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • React Performance

    affaan-m/ECC

    React and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills).

    275k GitHub starsUsed in 1 repo~4.5k tokens
    DevelopmentAuto-check passed

Works with

Questions about Nextjs

What does Nextjs do?

Next.js App Router expert guidance. An agent skill from leonvanzyl/opencode-masterclass. Nextjs is an agent skill from leonvanzyl/opencode-masterclass.js App Router expert guidance.

When should I use Nextjs?

Nextjs fits situations like: architecting Next.js applications — routing; server Components; cache Components; middleware/proxy.

How do I install Nextjs in Claude Code?

Run `npx skills add leonvanzyl/opencode-masterclass --skill nextjs -a claude-code`. Or copy the skill folder (.agents/skills/nextjs in leonvanzyl/opencode-masterclass) into .claude/skills/nextjs in your project. Claude Code loads it when a task matches its description.

How do I install Nextjs in Codex?

Run `npx skills add leonvanzyl/opencode-masterclass --skill nextjs -a codex`. Or copy the skill folder (.agents/skills/nextjs in leonvanzyl/opencode-masterclass) into .agents/skills/nextjs in your project. Codex loads it when a task matches its description.

Can I use Nextjs 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 leonvanzyl/opencode-masterclass --skill nextjs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nextjs, .gemini/skills/nextjs, .github/skills/nextjs and .opencode/skills/nextjs in your project.

What does Nextjs need to run?

SKILL.md names no scripts, command-line tools or credentials: Nextjs is instructions for the agent only.

Does Nextjs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Nextjs 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 Nextjs use?

No licence was found for Nextjs or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Nextjs use?

About 4.5k tokens (SKILL.md is roughly 18k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 20k tokens, read only when the agent opens those files.

What are the alternatives to Nextjs?

Skills that share tags, products or a category with Nextjs: Next Best Practices (vercel-labs/openreview, 1.7k stars), Next Upgrade (vercel-labs/openreview, 1.7k stars), Create PR (vercel/next.js, 143k stars) and Catalog Publishing (epoko77-ai/design-diversity, 192 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nextjs?

leonvanzyl (a GitHub user) maintains it in leonvanzyl/opencode-masterclass, which has 124 GitHub stars. The repository was last updated on May 5, 2026.

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