---
title: "Put CLAUDE.md rules in each relevant directory"
description: "Put CLAUDE.md rules in each relevant directory."
canonical: "https://ian.is/claude-directory-rules"
language: "en"
---

[Ian Nuttall](https://ian.is/)

# Put CLAUDE.md rules in each relevant directory

August 7, 2025

Claude Code pro tip: Add CLAUDE.⁠md files to subdirectories

This is the unsung hero of making CC less "dumb". Instead of one giant rule, each dir can have their own:

/src/components/CLAUDE.⁠md
/src/db/CLAUDE.⁠md

Gives Claude more precise context and makes a HUGE difference

Video from the original post

## Newsletter

Join 9.2k subscribers
