Firstly the obvious ,start with a clear plan and write them down in a md file that you work together with it. Execute things in chuck and always updating the docs as it goes and taking note of any deviations or changes from initially set rules and assumptions.
I achieve this by:
Asking it to create test scenarios and documentations as it builds.
Along with the CLAUDE.md also ask it to create area specific files (example: frontend, backend, security, database, testing) all being referenced in the main CLAUDE.md where it saves the detailed rules for that area. This would help immensely when the project grows avoid hitting the CLAUDE.md file limit.