For my latest project, I have 20k+ lines of markdown docs to guide it, with great success. Some of them are generic rules, some of them describes how I code, some of them describing the codebase & features. Then I have another 17k+ that are used while coding. Plans, phases, todos, reviews etc.
All of them are written by Claude Code also. I'm calling it "spec-driven development".
Cursor has a much different flow, where you usually pair program with it, which I call "ai-assisted development".