- Use planning mode before execution mode.
Multiple commenters flagged this. When you let Claude plan the approach before writing the code, the output quality jumps. When you skip straight to "write the code," you're asking a nondeterministic system to make architectural decisions on the fly.
Plan first. Execute second. Review third.