Today I Learned
Day 2 - Cursor AI Best Practices
1 - Sketch first
Sketch on figma or ipad or notes, wherever you like
2 - Upload to v0 for visualization
Upload your sketch into v0 and let them cook. For example, copy from Figma
Then add this prompt if you are happy with the result and wants to run it locally
Now, create a comprehensive set of files and configurations necessary to run this project locally. This should include all necessary dependencies, configuration files, and any other assets required for the project to function correctly in a local development environment. The generated files should be organized in a logical directory structure, ensuring that the project can be easily set up and executed on a local machine.3 - Visit cursor.directory for prompt ideas
Visit cursor.directory to get what other people prompt the cursor for specific technology
Create .cursorrules file in the root folder and paste the prompt
4 - Use other model like claude ai
Prompt:
I'm building an web application using React and python. I want to write nice prompt for my AI similar with the one below. Please be just a concise
<paste the reference prompt>5 - Tagging documentation
Model may be outdated with the current technology
Add Docs inside composer terminal in Cursor
6 - Ask other AI
If it feels it’s getting stuck, ask other model with the following format:
1. The bug you want to fix
2. The solution that didn't work
3. Ask for the new solution7 - Explain the code
Until you proud of the work, ask the cursor or AI model to explain the code with the following prompt:
Explain this code to me like a beginner. I want to know the flow, logic, and overall how things work. Please and thank you.