---
name: "Claude Code memory: CLAUDE.md, .claude/rules, auto MEMORY.md"
description: "Use when Claude Code memory must live in CLAUDE.md, .claude/rules, and auto MEMORY.md files."
---

# Claude Code memory: CLAUDE.md, .claude/rules, auto MEMORY.md

## When
Use when instructions and learnings must load at session start as files, not chat.

## Stop
Never treat CLAUDE.md as enforcement — use a PreToolUse hook to block. Never dump multi-step procedures into CLAUDE.md; those are skills.

## Steps
1. Use 2-space indentation (not "format properly")
2. Run the project test command before committing (not "test your changes")
3. API handlers live in src/api/handlers/ (not "keep files organized")
4. Build
5. Test
6. Lint
7. 2-space indent
8. API handlers live in src/api/handlers/

## Load
CLAUDE.md + MEMORY.md. Repo files. No bot-chat memory.
