Cursor Best Practices

Cursor best practices, for my future reference.
- Use Cursor Rules! This can get me to be a 10x vibe coder for little additional effort. Good cursor rules starting point: https://github.com/PatrickJS/awesome-cursorrules
- Turn on YOLO mode - it can run commands and execute them which makes life a lot better
- Get it to write unit tests before starting to write code. Prompt it to write unit tests then write code and make sure the code passes all of the unit tests. Tests work better for backend tasks, gotta manually test front end
- Really lean into testing, get it to write tests for everything. The extra time inputted yields a result that is orders of magnitude better than not doing this
- Figma for designs is great - can use it to convert the design into code cause currently LLM vision is really bad at any front end (expect this to get better soon so this point will be moot)
- Give it lots of feedback - treat it like a junior intern that can do stuff but needs explicit instructions
- builder.io is like cursor for Figma
- Pre commit working flows before trying a new feature - especially for windsurf
- Accept often a mass rejection can really be a setback
- Command delete doesn't work idk what it does but it does not delete the line
- Add comments when I make manual changes so that claude knows what is happening
- Claude's signature move is saying "Ah, I see the issue now" when it doesn't actually know what is going on. To solve this, give it a "chain of thought" style prompt like "please link through 5 possibilities of what is going wrong. Write in detail about them and choose in detail what is the most likely cause (noting above you tried a few things that did not work, so do not try the again because it clearly did not work because we still get the same error) when you pick the most probable solution, write in detail how to implement the solution. Make it a thorough plan even a junior engineer or low level intern could solve successfully" makes it work like a reasoning model Doing this in ask mode is good
- Adding logos to the code works if the above does not work. Then submit the results of the logs back to the llm and let it do what it wants to do
- In the future, cursor should approach more of a Devin type vibe
- Voice coding is very cool - lots of tools for that
- Command K faster than command I (agent) and may work better
- Command k in the terminal works too, cool
- Bug finder is cool for finding bugs the above approach cannot find
Best practices as of Noon on Monday, March 10, 2025. Probably will change in the coming days.