Skip to content
Back to skills

Nextjs Conventions

ASecurity

Apply Next.js conventions for schema-validated input, Server Components by default, Server Actions with typed results, forward-only migrations, and consented analytics. Use when writing or reviewing Next.js app code or next.config files.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 16, 2026
developmentnextjsapi

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add msolecki/developer-os --skill nextjs-conventions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nextjs Conventions?

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

Security grade badge for Nextjs Conventions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/msolecki-nextjs-conventions/badge)](https://www.skillsdirectory.com/skills/msolecki-nextjs-conventions)

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: nextjs-conventions
description: Apply Next.js conventions for schema-validated input, Server Components by default, Server Actions with typed results, forward-only migrations, and consented analytics. Use when writing or reviewing Next.js app code or next.config files.
license: MIT
compatibility: "Claude Code"
---

# Shared Next.js and web conventions

- Validate every input from forms and APIs with a schema validator (for example Zod with `.safeParse()`).
- Default to Server Components. Use `'use client'` only for state or event handling.
- Prefer Server Actions over API routes when possible. Return `{ ok: true, data? } | { ok: false, error }`, where `error` is the `{ code, message, details? }` object from `developer-os:error-handling-conventions`.
- Follow the project's migration policy; if it declares none, write forward-only migrations.
- When the project has a `DESIGN.md`, record in `docs/decisions/` which side is the source of truth for tokens (`DESIGN.md` generating the Tailwind theme, or the reverse), and keep the other in sync.
- Route analytics calls through the project's tracking wrapper when one exists, behind a consent gate where the platform requires consent.

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.

View all in development →

Comments

Loading comments…

Newsletter

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