Write a CLAUDE.md file for coding agents
A CLAUDE.md file gives coding agents repository-specific instructions. Use this guide to choose rules that are concrete, testable, and relevant to the codebase.
Put durable project rules in CLAUDE.md
Write rules that an agent can follow and verify. Include repository commands, file boundaries, code conventions, and safety limits.
- Name the exact command for tests and formatting
- State which files are generated or must not change
- Describe repository-specific naming and architecture
- Remove guidance that duplicates tool defaults
Start from the maintained source
The repository file contains practical rules used across Claude Code and other coding agents. Copy only the parts that fit your project.
Open CLAUDE.md on GitHubCurrent source length: 120 lines