// Interactive Tool

CLAUDE.md
Generator

Build your agent constitution. A starting template for your project.

CLAUDE.md is the file that tells Claude Code how to behave in your project. Stack conventions, git rules, quality gates, and anti-patterns — all in one file. Fill out the form below and copy the result into your repo root after checking commands and conventions against your project.

01 — Project Identity
02 — Workflow & Deploy
03 — Quality & Guardrails
Live PreviewCLAUDE.md
# CLAUDE.md — my-project

## Stack
- **Framework:** Next.js
- **Styling:** Tailwind CSS
- **Testing:** Vitest
- **Deploy:** Cloudflare

## Git Rules
- **NEVER** commit directly to `main`. Always create a feature branch, push, and open a PR.
- Branch naming: `feat/<description>`, `fix/<description>`, `chore/<description>`
- Squash merge PRs. Keep commit history clean.

## Architecture Constraints
- Use App Router (`app/` directory). No Pages Router.
- Server Components by default. Only add `"use client"` when interactivity is required.
- Static export (`output: "export"`) unless server-side features are explicitly needed.
- All styling via Tailwind CSS. No inline styles except for dynamic values.

## Quality Gates
- All PRs must pass `npx vitest run` before merge.

## Commands
```bash
npm run dev         # local development
npm run build       # production build
npm run lint        # lint check
npx vitest run    # run Vitest tests
```
Review these commands against installed tools and package scripts before use. For mixed-language projects, select Other and verify each toolchain.
L56

CLAUDE.md Mastery

Deep dive into structuring your agent constitution for maximum effectiveness.

Related Tools