nextjs
Next.js 15 / React 19 state-of-the-art — App Router, async request APIs, use cache directive, Turbopack, Server Functions, Partial Prerendering, and…
Skill by Satcomx00-x00
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/satcomx00-x00-nextjs
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/nextjs
What's inside
- Skill name
nextjs- Description
- Next.js 15 / React 19 state-of-the-art — App Router, async request APIs, use cache directive, Turbopack, Server Functions, Partial Prerendering, and production best practices.
- License
- MIT
- Metadata
- author: Satcomx00-x00 · version: 2.0.0
- Instructions
- 370 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# nextjs
Next.js 15 / React 19 state-of-the-art — App Router, async request APIs, `use cache` directive, Turbopack, Server Functions, Partial Prerendering, and production best practices.
> Targets **Next.js 15+** with **React 19**. Older patterns (Pages Router, synchronous request APIs) are not covered here.
## Instructions
### Tooling & Project Setup
- Use **Turbopack** for local development — it is stable since Next.js 15 and faster than Webpack in virtually all cases:
```bash
next dev --turbo
```
- Use `next.config.ts` (TypeScript) instead of `next.config.js` — full type safety for all config options
- Use the codemod CLI to upgrade between versions:
```bash
npx @next/codemod@canary upgrade latest
```
- Enable the **React Compiler** (experimental) to auto-memoize components without manual `useMemo`/`useCallback`:
```ts
// next.config.ts
const nextConfig = {
experimental: { reactCompiler: true },
};
```
### App Router Conventions
Use the **App Router** (`app/`) exclusively. Understand the file conventions:
| File | Purpose |
|------|---------|
| `layout.tsx` | Shared UI wrapper; persists across navigation |
| `page.tsx` | Route segment UI |
| `loading.tsx` | Suspense boundary fallback for the segment |
| `error.tsx` | Error boundary (must be a Client Component) |
| `not-found.tsx` | Rendered when `notFound()` is called |
| `route.ts` | API route handler |
| `middleware.ts` | Edge function; runs before every matched request |
| `instrumentation.ts` | Server lifecycle hooks (stable in Next.js 15) |
**Server vs. Client Components:**
- All components are **Server Components by default** — zero JS bundle cost, direct DB/API access, secrets never reach the browser
- Add `'use client'` only for: event handlers, browser APIs, `useState`/`useEffect`, third-party client-only libraries
- Push `'use client'` boundaries as **far down** the tree as possible to minimise bundle size
```tsx
// Server Component — async/await directly, no useEffect
export default async function UserProfile({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params; // params is async in Next.js 15+
const user = await db.user.findUnique({ where: { id } });
if (!user) notFound();
return <ProfileCard user={user} />;
}
```
### ⚠️ Async Request APIs (Next.js 15 Breaking Change)
`cookies()`, `headers()`, `draftMode()`, `params`, and `searchParams` are **now async** and must be awaited:
```ts
// ✅ Next.js 15+
import { cookies, headers } from 'next/headers';
export default async function Page({ params, searchParams }: {
params: Promise<{ slug: string }>;
searchParams: Promise<{ q: string }>;
}) {
const { slug } = await params;
const { q } = await searchParams;
const cookieStore = await cookies();
const token = cookieStore.get('token');
// ...
}
```
Run the official codemod to migrate automatically:
```bash
npx @next/codemod@canary next-async-request-api .
```
### Caching — New Model (`use cache`)
Next.js 15 ships two caching models. Use the **new model** for all new projects:
**Enable Cache Components in `next.config.ts`:**
```ts
const nextConfig = { cacheComponents: true };
export default nextConfig;
```
**`use cache` directive** — replaces the old implicit `fetch` caching:
```ts
// Data-level cache — reuse across multiple components
async function getProducts() {
'use cache';
return db.product.findMany();
}
// UI-level cache — cache an entire component's render
async function FeaturedBanner() {
'use cache';
const promo = await fetchPromo();
return <Banner data={promo} />;
}
```
**Rules for `use cache`:**
- Arguments and closed-over values automatically form the cache key
- Cannot call `cookies()` or `headers()` inside a `use cache` scope — read them outside and pass as arguments
- For serverless environments the default LRU cache does not persist across invocations; use `'use cache: remote'` (Redis/KV) for shared runtime caching
- Revalidate with `revalidateTag()` / `revalidatePath()` on demand, or set a TTL via `cacheLife`:
```ts
import { unstable_cacheLife as cacheLife } from 'next/cache';
async function getStats() {
'use cache';From Satcomx00-x00/skills-db, MIT.
More from Satcomx00-x00/skills-db
- 0.470score
frontend-smell
Satcomx00-x00
Deep-audit TypeScript, React, Next.js (App Router) and frontend-design code for smells — patterns that ship but corrode performance, a11y, type safety, bundle…
SkillCFreshness: CClaude Code +9 - 0.409score
cowork-plugin-customizer
Satcomx00-x00
Customize a Claude Code plugin for a specific organization's tools and workflows.
SkillDFreshness: DClaude Code +9 - 0.406score
code-quality
Satcomx00-x00
Code quality mastery — programming principles (SOLID, DRY, KISS, YAGNI…), refactoring techniques, and design patterns to write clean, maintainable, extensible…
SkillDFreshness: DClaude Code +9 - 0.406score
code-review
Satcomx00-x00
Code review standards and checklist — how to give constructive feedback, what to look for, and how to approve or request changes effectively.
SkillDFreshness: DClaude Code +9 - 0.406score
devops
Satcomx00-x00
CI/CD pipeline design and DevOps practices — GitHub Actions workflows, deployment strategies, infrastructure-as-code patterns, and observability basics.
SkillDFreshness: DClaude Code +9 - 0.406score
backend
Satcomx00-x00
Backend and API design patterns — RESTful and GraphQL API conventions, error handling, pagination, authentication patterns, and database best practices.
SkillDFreshness: DClaude Code +9 - 0.406score
frontend
Satcomx00-x00
Frontend development patterns — component design, accessibility, performance optimisation, and state management best practices for modern web UIs.
SkillDFreshness: DClaude Code +9 - 0.406score
git
Satcomx00-x00
Git workflow best practices — conventional commits, branching strategy, rebase/merge patterns, and commit hygiene for clean project history.
SkillDFreshness: DClaude Code +9 - 0.406score
docker
Satcomx00-x00
Docker containerization best practices — writing lean Dockerfiles, multi-stage builds, image security, and docker-compose patterns for local development.
SkillDFreshness: DClaude Code +9 - 0.406score
betterauth
Satcomx00-x00
BetterAuth integration patterns — setup, session management, OAuth providers, middleware protection, and security best practices for authentication in…
SkillDFreshness: DClaude Code +9 - 0.406score
saas
Satcomx00-x00
SaaS state-of-the-art — multi-tenancy, usage-based billing, PLG, AI feature integration, modern observability, compliance, and security for production…
SkillDFreshness: DClaude Code +9 - 0.405score
doc-operationnelle
Satcomx00-x00
Skill based on "Documentation opérationnelle : structurer pour retrouver" (blog.stephane-robert.info).
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 13, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 2.0.0
- License
- MIT
- Repository
- github.com/Satcomx00-x00/skills-db
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Satcomx00-x00
- 0.470score
frontend-smell
Satcomx00-x00
Deep-audit TypeScript, React, Next.js (App Router) and frontend-design code for smells — patterns that ship but corrode performance, a11y, type safety, bundle…
SkillCFreshness: CClaude Code +9 - 0.409score
cowork-plugin-customizer
Satcomx00-x00
Customize a Claude Code plugin for a specific organization's tools and workflows.
SkillDFreshness: DClaude Code +9 - 0.406score
code-quality
Satcomx00-x00
Code quality mastery — programming principles (SOLID, DRY, KISS, YAGNI…), refactoring techniques, and design patterns to write clean, maintainable, extensible…
SkillDFreshness: DClaude Code +9 - 0.406score
code-review
Satcomx00-x00
Code review standards and checklist — how to give constructive feedback, what to look for, and how to approve or request changes effectively.
SkillDFreshness: DClaude Code +9 - 0.406score
devops
Satcomx00-x00
CI/CD pipeline design and DevOps practices — GitHub Actions workflows, deployment strategies, infrastructure-as-code patterns, and observability basics.
SkillDFreshness: DClaude Code +9 - 0.406score
betterauth
Satcomx00-x00
BetterAuth integration patterns — setup, session management, OAuth providers, middleware protection, and security best practices for authentication in…
SkillDFreshness: DClaude Code +9
Cite this page
nextjs skill. Agent Mart. https://agentmart.dev/skills/satcomx00-x00-nextjs (last updated 2026-10-24)