Cursor/Windsurf cheat code. {Provide detailed context about your...

@cjzafir
CJ Zafir@cjzafir
31 views Mar 02, 2025 ~2 min read
Advertisement
1
Cursor/Windsurf cheat code.

{Provide detailed context about your coding project}

It will minimize 85% of AI hallucinations and errors.

Here's how you can do it using ChatGPT:
Media image
2
1. Project Requirements Document.

Ask AI to write a PRD (for AI coding model) about your project.

It should include these sections.
- App overview
- User flow
- Tech stack & APIs
- Core features
- In-scope and out-of-scope

To make it air tight add these too:
- Non-functional requirements
- Constraints & assumptions
- Known issues & potential pitfalls

This doc will provide high level overview to Cursor/Windsurf
Media image
3
2. App Flow Document

This document will provide a detailed user journey from landing page to all the pages of the app.

This doc creates a map for AI coding model.

Tips:
- Don't use bullet points in this doc
- Don't miss any page
- Use simple language
Media image
4
3. Tech Stack Document

This is the technical doc of your coding project. It will provide details about what packages and dependencies to install.

You can also add API documentation to this page (with links) and Cursor/Windsurf will search the web.
Media image
5
4. Frontend Guidelines Document

This doc should provide in depth details about the UI, styling, design principles of the app

To make it more detailed you should also add:
- colour palettes
- fonts
- icons

This document will make sure the style is consistent throughout the app
Media image
6
5. Backend Structure

Most AI devs use Supabase for the Backend for a reason. Because AI can write SQL queries, for your database tables in Supabase.

All you need to do is copy and paste the queries and policies to SQL editor in Supabase.

This doc will make sure that database, authentication and storage structure is built properly.
Media image
7
These are the 5 core documents that are MUST for your coding projects.

You should also create:
- cursorrules/windsurfrules file
- implementation plan file

Implementation plan should list all (50+) steps to code this app.

This one document is a game changer.
Media image
8
The quality of docs generated by ChatGPT is not so good.

I've built 35+ projects with AI code and to fix the project documentation problem I built @CodeGuidedev

I use a mix of AI models:
o3-mini
GPT4o
Sonnet 3.5

You can follow simple 5 steps and download all docs in best structure.

Build web apps, mobile apps, extensions, landing pages or even plugins.
0:18
9
Join codeguide.dev here - Home of 2489 AI Coders

40% discount on Yearly Membership - Only $199 right now.

Create project docs
Use Starter Kits
Use templates
Community
Discounts
AI Agent
and more features and partnerships are coming...
Actions
What You Can Do
  • Export as PDF or Markdown
  • Batch Export to Notion
  • Bookmark & Highlight
  • LinkedIn & Instagram Carousel Maker
Create Free Account

Includes 7-day Premium trial

Advertisement