Skip to content
Back to skills

Next Best Practices

ASecurity

Check version-matched Next.js App Router documentation before changing routes, server components, data access, caching, or deployment behavior.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 15, 2026
developmentnextjsnodegitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 15, 2026

npx -y skills add trancethehuman/template-next-agent --skill next-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Next Best Practices?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Next Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/trancethehuman-next-best-practices/badge)](https://www.skillsdirectory.com/skills/trancethehuman-next-best-practices)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: next-best-practices
description: Check version-matched Next.js App Router documentation before changing routes, server components, data access, caching, or deployment behavior.
---

# Next.js guidance for this starter

This file is original project guidance. For the broader upstream skill, see [vercel-labs/next-skills](https://github.com/vercel-labs/next-skills). Its text is linked rather than redistributed here.

1. Inspect this project's `package.json` and `node_modules/next/dist/docs/` before editing Next.js code. Next.js 16 behavior can differ from older examples.
2. Keep server-only credentials and model calls in server modules. Make a component a client component only when it needs browser state or events.
3. Validate route input on the server, even if the browser already validated it. Preserve the access check on both run creation and run streaming.
4. Review the installed documentation for route handlers, runtime choice, async request APIs, caching, and metadata when touching those features.
5. Run `bun run typecheck` and `bun run build` after framework or routing changes, then exercise the affected route in a browser.

Official references: [Next.js App Router](https://nextjs.org/docs/app), [Next.js route handlers](https://nextjs.org/docs/app/getting-started/route-handlers).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.