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

# Put CLAUDE.md rules in each relevant directory

Aug 2025 / 159,776 views / [via X](https://x.com/iannuttall/status/1953441811869192419)

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

## Ian's List

Join 15k\+ subscribers
