...chapter? I mean did he thought about what he should write about Kakashi's eye and the Sharingan after he created Naruto and before the Kakashi Gaiden story was released.
well, I pretty sure he made it up as you go along. He had to think about it previously so he could get the story line secure. So, only masashi kishimoto would know.