Opinionated
CLAUDE.mdtemplates for popular stacks, drop into your project root.
CLAUDE.md is a project-level instructions file that Claude Code automatically reads when you start a session in your project. It tells Claude:
- The project's tech stack and conventions
- Build, test, and lint commands
- What patterns to follow and what to avoid
- Where the important code lives
A good CLAUDE.md cuts your time-to-productive-Claude-session from minutes to seconds.
| Stack | Template |
|---|---|
| Next.js (App Router, TypeScript) | templates/nextjs/CLAUDE.md |
| FastAPI (Python 3.12, async) | templates/fastapi/CLAUDE.md |
| Express + TypeScript | templates/express-typescript/CLAUDE.md |
| Go (stdlib + minimal deps) | templates/go/CLAUDE.md |
| Generic scaffold | templates/_scaffold/CLAUDE.md |
- Find the template that matches your stack (or start from
_scaffold). - Copy its
CLAUDE.mdto your project root. - Customize the sections marked
<!-- EDIT: ... -->. - Commit it.
Claude Code automatically loads CLAUDE.md from the project root on every session.
Each template follows the same six-section structure:
- Project context — what this is, who uses it
- Stack & conventions — language, framework, key dependencies
- Commands — install, dev, build, test, lint, typecheck
- Code style — formatting, naming, comment policy
- What to avoid — anti-patterns specific to this stack
- Important files — entry points, configs, gotchas
This consistent structure makes it easy to swap templates as your stack evolves.
PRs adding new stacks welcome. To contribute:
- Copy
templates/_scaffold/totemplates/<stack-name>/ - Fill out all six sections with stack-specific content
- Add an entry to the table above
- Open a PR
Stack-specific judgment calls (e.g., "use this ORM, not that one") should be defensible — explain in PR.
- llmapi-pro/claude-code-setup — One-line installer for Claude Code with the LLM API relay backend.
- llmapi-pro/awesome-claude-code-china — Curated Claude Code resources for Chinese developers.
MIT © 2026 Yazhou Hu