# Awesome CLAUDE.md — Project Config Best Practices > Community collection of CLAUDE.md templates and best practices for configuring Claude Code per-project. Includes templates for monorepos, web apps, Python projects, and team workflows. 3,000+ stars. ## Install Paste the prompt below into your AI tool: ## Quick Use Create a `CLAUDE.md` file in your project root: ```markdown # CLAUDE.md ## Project Overview This is a Next.js 14 app with TypeScript, Tailwind CSS, and Prisma ORM. ## Commands - `npm run dev` — Start dev server - `npm run test` — Run tests - `npm run lint` — Run ESLint + Prettier ## Code Style - Functional components only, no class components - Use Server Components by default - State: Zustand for client, React Query for server - Naming: PascalCase components, camelCase functions, kebab-case files ## Architecture - `src/app/` — Next.js App Router pages - `src/components/` — Shared UI components - `src/lib/` — Utilities and helpers - `src/server/` — Server-side logic and API ## Do NOT - Do not use Redux or Context API for state - Do not create CSS modules — use Tailwind only - Do not add comments explaining obvious code ``` --- ## Intro Awesome CLAUDE.md is a community collection of CLAUDE.md templates and best practices for configuring Claude Code on a per-project basis with 3,000+ GitHub stars. A CLAUDE.md file in your project root tells Claude Code about your codebase conventions, tech stack, architecture, and team preferences — so it writes code that fits your project from the first interaction. This collection includes ready-to-use templates for monorepos, web apps, Python projects, APIs, and team workflows. Best for developers who want Claude Code to follow project conventions without repeating instructions. Works with: Claude Code. Setup time: under 2 minutes. --- ## Template Library ### Next.js + TypeScript ```markdown # CLAUDE.md ## Stack: Next.js 14, TypeScript, Tailwind, Prisma ## Commands: npm run dev | test | lint | build ## Style: functional components, Server Components default, Zustand + React Query ## DB: Prisma with PostgreSQL, always use transactions for writes ``` ### Python FastAPI ```markdown # CLAUDE.md ## Stack: Python 3.12, FastAPI, SQLAlchemy, Alembic ## Commands: uvicorn main:app --reload | pytest | ruff check ## Style: type hints everywhere, Pydantic models for all I/O, async by default ## DB: SQLAlchemy async with PostgreSQL, Alembic for migrations ``` ### Go Microservice ```markdown # CLAUDE.md ## Stack: Go 1.22, Chi router, sqlc, Docker ## Commands: go run . | go test ./... | golangci-lint run ## Style: standard Go project layout, error wrapping with fmt.Errorf ## Testing: table-driven tests, testcontainers for integration ``` ### Monorepo ```markdown # CLAUDE.md ## Structure: Turborepo monorepo ## Packages: apps/web (Next.js), apps/api (Express), packages/ui (shared components) ## Commands: turbo dev | turbo test | turbo build ## Conventions: shared types in packages/types, all packages use TypeScript strict ``` ### Team Configuration ```markdown # CLAUDE.md ## Team Conventions - PR titles: type(scope): description (conventional commits) - Branch naming: feat/JIRA-123-description - Tests required for all new functions - No direct pushes to main — always PR ## Review Checklist - [ ] Tests pass - [ ] No console.log in production code - [ ] Error handling for all API calls - [ ] Accessibility: all interactive elements have labels ``` ## Best Practices ### Keep It Focused - Only include conventions Claude Code might get wrong - Skip obvious things (Claude already knows language syntax) - Update when you notice Claude making mistakes ### Structure Matters - Start with project overview (1-2 lines) - Commands section for common tasks - Code style for conventions - Architecture for file structure - "Do NOT" section for anti-patterns ### Key Stats - 3,000+ GitHub stars - 20+ ready-to-use templates - Covers 10+ tech stacks - Community-contributed best practices - Updated monthly ### FAQ **Q: What is CLAUDE.md?** A: A markdown file in your project root that configures Claude Code with project-specific conventions, commands, architecture, and coding standards. **Q: Where does CLAUDE.md go?** A: In the root of your project directory. Claude Code automatically reads it at the start of every conversation. **Q: Can I have multiple CLAUDE.md files?** A: Yes, you can place them in subdirectories for package-specific instructions in monorepos. --- ## Source & Thanks > Community-maintained collection. Licensed under MIT. > > [awesome-claude-md](https://github.com/awesome-claude/awesome-claude-md) — ⭐ 3,000+ Thanks to the community for codifying what makes a great CLAUDE.md. --- ## Quick Use Create `CLAUDE.md` in your project root: ```markdown # CLAUDE.md ## Project: Next.js 14 + TypeScript + Tailwind ## Commands: npm run dev | test | lint ## Style: Functional components, Server Components first ## Avoid: No Redux, no CSS modules ``` --- ## Intro Awesome CLAUDE.md is a community collection of CLAUDE.md templates and best practices, with 3,000+ GitHub stars. Includes 20+ ready-to-use templates for monorepos, web apps, Python projects, and more. Ideal for developers who want Claude Code to follow project conventions automatically. --- ## Source & Thanks > Community-maintained collection. Licensed under MIT. > > [awesome-claude-md](https://github.com/awesome-claude/awesome-claude-md) — ⭐ 3,000+ --- Source: https://tokrepo.com/en/workflows/awesome-claude-md-project-config-best-practices-e0565f2a Author: Prompt Lab