No slash command · from Engineering Paved Path
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Ships in Engineering Paved Path. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Apply these rules when writing or reviewing Next.js code.
See references/file-conventions.md for:
Detect invalid React Server Component patterns.
See references/rsc-boundaries.md for:
Next.js 15+ async API changes.
See references/async-patterns.md for:
params and searchParamscookies() and headers()See references/runtime-selection.md for:
See references/directives.md for:
'use client', 'use server' (React)'use cache' (Next.js)See references/functions.md for:
useRouter, usePathname, useSearchParams, useParamscookies, headers, draftMode, aftergenerateStaticParams, generateMetadataSee references/error-handling.md for:
error.tsx, global-error.tsx, not-found.tsxredirect, permanentRedirect, notFoundforbidden, unauthorized (auth errors)unstable_rethrow for catch blocksSee references/data-patterns.md for:
Promise.all, Suspense, preload)See references/route-handlers.md for:
route.ts basicspage.tsxSee references/metadata.md for:
generateMetadata functionnext/ogSee references/image.md for:
next/image over <img>sizes attributeSee references/font.md for:
next/font setupSee references/bundling.md for:
See references/scripts.md for:
next/script vs native script tagsid@next/third-partiesSee references/hydration-error.md for:
See references/suspense-boundaries.md for:
useSearchParams and usePathnameSee references/parallel-routes.md for:
@slot and (.) interceptorsdefault.tsx for fallbacksrouter.back()See references/self-hosting.md for:
output: 'standalone' for DockerSee references/debug-tricks.md for:
--debug-build-pathsreferences/async-patterns.md (opens in a new tab)references/bundling.md (opens in a new tab)references/data-patterns.md (opens in a new tab)references/debug-tricks.md (opens in a new tab)references/directives.md (opens in a new tab)references/error-handling.md (opens in a new tab)references/file-conventions.md (opens in a new tab)references/font.md (opens in a new tab)references/functions.md (opens in a new tab)references/hydration-error.md (opens in a new tab)references/image.md (opens in a new tab)references/metadata.md (opens in a new tab)references/parallel-routes.md (opens in a new tab)references/route-handlers.md (opens in a new tab)references/rsc-boundaries.md (opens in a new tab)references/runtime-selection.md (opens in a new tab)references/scripts.md (opens in a new tab)references/self-hosting.md (opens in a new tab)references/suspense-boundaries.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/fastify-best-practicesGuides development of Fastify Node.js backend servers and REST APIs using TypeScript or JavaScript. Use when building, configuring, or debugging a Fastify application — including defining routes, implementing plugins, setting up JSON Schema validation, handling errors, optimising performance, managing authentication, configuring CORS and security headers, integrating databases, working with WebSockets, and deploying to production. Covers the full Fastify request lifecycle (hooks, serialization, logging with Pino) and TypeScript integration via strip types. Trigger terms: Fastify, Node.js server, REST API, API routes, backend framework, fastify.config, server.ts, app.ts./onion-architectureEnforces Onion Architecture (dependencies point inward) on a TypeScript backend (a Fastify + Drizzle + Zod server/ package and a pure domain core, reviewer-core in the reference layout). Use this skill whenever you add or change a backend route, service, repository, adapter, DB query, contract, or DI wiring — and whenever deciding WHERE a piece of logic, an external-tool call (LLM/OpenAI/Anthropic/OpenRouter, GitHub/octokit, git, ripgrep/ast-grep, Postgres), a type, or a validation belongs across layers. Also use when reviewing layering, an import that crosses package/layer boundaries, a leaked Drizzle query, a directly-instantiated SDK client, or business logic creeping into a route. Trigger terms: onion architecture, layer, dependency direction/rule, ports and adapters, repository, service, adapter, composition root, container, dependency inversion, where should this live, layering violation./react-best-practicesModern React best practices and anti-pattern catalog (2025-26). Use when writing, reviewing, or refactoring React components, hooks, and state management. Covers component design, state patterns, hooks misuse, performance, data fetching, and code organization./react-frontend-architectureReact/Next.js frontend architecture & code organization (2025-26): where files live, how to split components, feature-based structure, co-location, constants/utils/helpers/types/hooks placement, where business logic goes, import boundaries, barrel files, path aliases, and naming conventions. Use when structuring a new frontend, deciding where a file or piece of logic belongs, splitting an oversized component/module, reviewing folder layout, or naming files. Stack-agnostic (React 19 + Next.js 15 App Router aware)./react-testing-libraryGeneral-purpose React Testing Library guide with Vitest. Use when writing, reviewing, or setting up React component and hook tests. Covers project setup from scratch, RTL query priority, userEvent, async patterns, mocking strategies, and common anti-patterns. Applicable to any Vite + React project./securityApplication-CODE security review based on OWASP Top 10:2025, for a React + Express + MongoDB/Mongoose + JWT stack. Use when reviewing source code for vulnerabilities, implementing or auditing auth/authorization, handling untrusted input, working with file uploads, managing secrets in code, or hardening an API endpoint. Covers A01-A10 for that stack, including supply-chain risk in npm dependencies. Trigger terms: security review, is this code safe, vulnerability, OWASP, injection, XSS, IDOR, broken access control, auth bypass, mass assignment, rate limiting, JWT verification. NOT for infrastructure or network security — VPC and security-group design, firewall rules, which ports to open, public IPs, TLS termination, OS or container hardening, and cloud IAM policy are all out of scope: this skill reads application source code and has nothing to say about them.npx claudepluginhub syukpublic/ai-dev-toolkit --plugin engineering-paved-path