# instinct: 自動学習 — write_to_fileで「File has not been read yet. Read it first before writing to it.」エ
ファイル書き込み前に必ずread_fileで内容を確認する
**Why:** write_to_fileで「File has not been read yet. Read it first before writing to it.」エラーが発生したため。Claude Codeは未読ファイルへの書き込みをブロックする
**How to apply:** workflow カテゴリの作業時に適用する。
_Auto-learned by session_learner.py on 2026-06-13_
---
(migrated from local memory/instinct_2026-06-13_1_ファイル書き込み前に必ずread_fileで内容を確認する.md)
instinct: 自動学習 — write_to_fileで「File has not been read yet. Read it first before writing to it.」エ