Hey everyone! I'm planning to build a SaaS and I want to incorporate AI tools like Cursor into my coding process. I'm looking for suggestions on how to prompt these tools effectively so I can get the best results while keeping my code clean and scalable. Any tips or insights would be greatly appreciated!
4 Answers
What programming language or stack are you using? It'd help to know your background in web development too. If AI generates faulty code, will you be able to spot the errors and fix them? The effectiveness of AI depends a lot on your current knowledge.
While AI is a great tool for productivity, it can lose context during longer coding sessions. It's not ideal to just copy and paste large code sections into an AI tool without understanding what's happening. Instead, use it for smaller snippets and to help troubleshoot specific issues by narrowing down where the problem lies.
Thanks, very helpful.
How about tools that can access all your code and decide which files to include in the context for AI prompts?
It's really important to have a solid foundation in writing clean, maintainable code. If you're not already familiar with those practices, relying on AI might lead to messier code over time. Start by learning about writing clean code first—then use AI to assist with specific issues rather than as a crutch.
Thanks, makes sense!
Start by using an LLM to help draft a Product Requirement Document (PRD). Spend time refining that document—it's like giving your AI a set of guidelines before you start coding. Consider creating markdown documents that give context, similar to onboarding docs for a new developer. Once you begin coding, have the AI reference all your documentation to ensure it stays on track.

I understand the basics. But yes you're right, thanks!