Let’s start with the main thing. You need design documentation. It turns you describe all aspects of your game.
In the “mechanics” you describe all the functions in your game.
In the “aesthetics” you describe what it looks like.
In the “general purpose” you describe the history of the world, the history of people, characters and motivations of each character, and the plot of the game.