Use the template documents as the long-term project memory.
Recommended responsibility by file:
README.md: public entry point and quick startPROJECT.md: project goals, scope, constraints, non-goalsARCHITECTURE.md: long-lived structure and system boundariesDECISIONS.md: important decisions and why they were madeTODO.md: project task trackingAPI.md: interface contractsDATABASE.md: persistent data model and runtime state notesSTYLE_GUIDE.md: code and naming conventionsWORKFLOW.md: collaboration rulesPROMPTS.md: fixed prompts for repeated AI collaboration
After any major change, check whether the following need updates:
ARCHITECTURE.mdDECISIONS.mdAPI.mdDATABASE.mdTODO.md
- new core module added or removed
- interface behavior changes
- persistence model changes
- new provider or infrastructure introduced
- security or permission model changes
Keep implementation work in code and active discussion in chat. Keep durable project knowledge in the documents.
If a project starts drifting away from its documents, fix the documents early.