pickstack

Next.js + Claude Code

CLAUDE.md, permissions, a format hook and MCP servers for your stack. This page shows exactly what pickstack adds to a Next.js project for Claude Code: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.

$ npm create pickstack@latest my-app -- --framework next --modules claude-code --yes
Customize in the configurator

New files

.claude/settings.json
{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "permissions": {
    "allow": [
      "Bash(npm install)",
      "Bash(npm run build *)",
      "Bash(npm run typecheck *)"
    ],
    "ask": ["Bash(git push *)"],
    "deny": ["Read(./.env)", "Read(./.env.local)", "Read(./.env.*.local)"]
  }
}
.mcp.json
{
  "mcpServers": {
    "next-devtools": {
      "command": "npx",
      "args": ["-y", "next-devtools-mcp@latest"]
    }
  }
}
AGENTS.md
# my-app

Stack: Next.js (App Router), React 19, TypeScript.

## Commands

- `npm install`: install dependencies
- `npm run dev`: start the dev server
- `npm run build`: production build
- `npm run start`: serve the production build
- `npm run typecheck`: type-check

## Project structure

- App Router: routes are folders in `app/` with `page` and `layout` files; components in `components/`.
- `@/` points to the project root.

## Conventions

- Components are Server Components by default; add `"use client"` only where state, effects or event handlers are needed.
- Set page titles through the `metadata` export, not `<head>` tags.
- TypeScript strict mode; avoid `any`.

## Before finishing a change

Run `npm run typecheck` and fix what they report.
CLAUDE.md
@AGENTS.md

## Claude Code

- After a change, run `npm run typecheck` before reporting it done.
- MCP servers for this stack are in `.mcp.json` (next-devtools); prefer them over guessing APIs.
- Keep secrets in `.env.local`; Claude is not allowed to read `.env` files.

Changes to existing files

.gitignore (changed)
⋯ 3 unchanged lines out next-env.d.ts *.tsbuildinfo+.claude/settings.local.json+CLAUDE.local.md .env .env.local .DS_Store⋯ 1 unchanged lines

Project files

Related templates