Keep the architecture map current without manual reminders, for the whole team: - .claude/hooks/check-architecture-note.sh: Stop hook that blocks finishing a turn when src/ structure changes (file added/removed/renamed vs HEAD) without ARCHITECTURE.md being updated too. Untracked files & committed history are ignored (no false positives / no loops). - .claude/settings.json: wires the Stop hook. Both versioned via a .gitignore un-ignore so Claude Code teammates inherit it (settings.local.json stays private). - CLAUDE.md: pointer → hard RULE (update the map in the same commit). - ARCHITECTURE.md: drop line counts (the only thing that drifted); note the rule. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| hooks | ||
| settings.json | ||