/javascript:nextjsfrom javascript
Use in any project whose package.json depends on next or that has an app/ directory with layout.tsx, before adding or changing a page or dynamic route, an API endpoint or form handler (app/api/**/route.ts), a Server Action or caching, or fixing caching or a build error, even when the user does not say Next.js. Next.js 16 App Router: server and client components, async params, Cache Components.
Ships in javascript. 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.
None: SKILL.md is the whole skill.
Assume the App Router and Next.js 16. The APIs move fast: check the current Next.js docs (a docs or library-lookup tool if available) before relying on memory for anything version-specific.
Load it alongside javascript-typescript and react, not instead of them. It applies in any project whose package.json depends on next or that has an app/ directory with layout.tsx, even when the user does not say Next.js.
app/ holds routing only: layouts, pages, route handlers. Shared code goes in lib/, components/, hooks/, contexts/, types/; static files in public/.(admin) group without changing the URL; _private folders opt out of routing.kebab-case; files snake_case like all TypeScript here (user_card.tsx exports UserCard, use_cart.ts exports useCart); providers XyzProvider; constants UPPER_SNAKE_CASE; static assets snake_case or kebab-case. Named exports, except the default export Next requires from page, layout and the other special files. Related components share an index.ts barrel. Props typed with an interface. Tests beside the file (user_card.test.tsx).modal_example.tsx) unless asked for a live example, story or docs component.'use client' only for interactivity, state or browser APIs, on the smallest component that needs it.app/api/**/route.ts, export verb-named functions and use Web Request/Response. Validate every input (for example with zod), return the right status, and authorize on the server in every route handler and Server Action..env.local, never committed. HTTPS in production, with secure HTTP headers.await cookies(), await headers(), await draftMode(), and params / searchParams are Promises. Reading any of them makes the route dynamic; isolate that part behind Suspense.next/dynamic with { ssr: false } fails the build inside a Server Component. Move the client-only UI into its own 'use client' component and import it directly.fetches its own route handler (fetch('/api/...')): call the logic in lib/ directly.cacheComponents: true, 'use cache', cacheTag, cacheLife), not unstable_cache. revalidateTag(tag, 'max'); the one-argument form is deprecated. updateTag in a Server Action for read-your-writes.NEXT_PUBLIC_* is inlined at build time; changing it later has no effect. For a runtime read in a dynamic context, call connection() first. serverRuntimeConfig / publicRuntimeConfig are gone.turbopack (experimental.turbo is removed). typedRoutes is stable.next lint is gone in 16: run the ESLint CLI with the official Next.js config.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub giocaizzi/harness --plugin javascriptOther plugins' skills for the same job
5 skills in this plugin
/atomic-designUse when extracting shared components or layouts, structuring a UI kit or component folders, deciding where a component goes, or adding lint rules for import boundaries (feature to feature, UI kit to features, layers, cycles). Atomic design./javascript-typescriptUse whenever you write, change or review .ts, .tsx or .js code, a package.json, tsconfig.json or eslint.config.js, whether adding a function or feature, fixing a bug, refactoring, scaffolding a package or reviewing before a merge, even when the user does not mention conventions. House rules: TypeScript 7, Node 26, pnpm, ESLint 10, strict tsconfig, no any or enums, zod at the boundaries./react