This is entirely solvable with skills, memory, context, and further prompting. All of which can be done in a way that's reliable and repeatable.
You wouldn't expect a Jr. dev to be the best at keeping things dry either.