---
name: bootstrap-nextjs
description: "Scaffold a production Next.js app to Selwyn's conventions. Use when starting a new Next.js codebase or aligning an existing one to his defaults: App Router with Server Components, src/ layout, the decided data/auth/hosting stack, and secure-by-default wiring. Installs the handbook's CLAUDE.md so every future session inherits the rules."
---

# Bootstrap Next.js

Stand up a Next.js project with my structure, stack, and secure-by-default wiring already in place.

## Read first

[project-setup](https://selwynuy.dev/d/project-setup.md), [getting-started](https://selwynuy.dev/d/getting-started.md), [decisions](https://selwynuy.dev/d/decisions.md), [security-by-design](https://selwynuy.dev/d/security-by-design.md)

## Bundled files

- `scripts/install-claude-md.sh` (script): Fetches the handbook /claude.md and writes it to the project root.
- `references/conventions.md` (reference): The src/ layout, App Router structure, and stack defaults with the why for each.

---

Part of Bootstrap Next.js from Selwyn Uy's Next.js Handbook. Full page: https://selwynuy.dev/skills/bootstrap-nextjs
