Nextjs With AI
Description
A comprehensive CLAUDE.md template for modern Next.js 16 App Router projects. Drop it in and Claude Code automatically follows production-grade conventions for TypeScript, React Server Components, Server Actions, Cache Components, accessibility, security, testing, and more — with token-efficient output rules built in.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Nextjs-with-AI
A `CLAUDE.md` template that teaches [Claude Code](https://docs.anthropic.com/en/docs/claude-code) modern Next.js 16+ best practices. Drop it into any Next.js App Router project and Claude will follow production-grade conventions for TypeScript, React Server Components, Server Actions, the Cache Components model, accessibility, security, testing, and more — automatically, on every interaction.
Why
Claude Code reads `CLAUDE.md` from your working directory and applies its rules to every conversation (including sub-agents). Without guardrails, AI-generated Next.js code can drift in ways that are hard to see until production: `useState` in a Server Component (build error), unawaited `params` (silent breakage in 16), raw DB queries in route components (no auth check), Server Actions without re-authentication (public POST endpoints anyone can call), `'use cache'` without a `cacheLife` (no caching), tokens in `localStorage`, secrets in `NEXT_PUBLIC_*`. This template codifies the conventions experienced Next.js teams enforce in code review — Server/Client boundary discipline, the Data Access Layer pattern, Cache Components usage, Server Action security — so Claude follows them from the first line.
Two Versions
Pick the one that fits your project.
| File | Size | Contains | Best for |
|---|---|---|---|
| `CLAUDE.md.FULL` | 39,977 chars | All rules plus canonical code examples (cached function, secured Server Action, project tree) | Teams that want rules plus concrete patterns — Claude follows rules-with-examples more reliably |
| `CLAUDE.md.SHORT` | 30,852 chars | All rules, no fenced code blocks | Token-constrained setups, or projects that just need guardrails without inline samples |
Both files cover the **same rules** — the only difference is whether each rule is illustrated with a code block. SHORT is ~23% smaller because it strips all fenced code blocks while preserving every rule, table, and
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI