llm-workshop-2025

Types of Prompts Cursor Supports

1. Code Generation Prompts

These tell the AI to create new code for you.

Using the same structure and conventions as `file1.tsx`, create `file2.tsx` for the admin panel.

2. Code Editing / Refactoring Prompts

These apply changes to existing code.

Refactor code of all pages to show background as green.

3. Code Explanation Prompts

Used to understand existing code quickly.

Summarize the logic in `authMiddleware.ts` and how it interacts with session management.

4. Debugging & Troubleshooting Prompts

Helps diagnose and fix bugs.

Investigate why the hosted website doesnot reflect changes made in repository.

5. Documentation & Comment Prompts

Generate or improve docs.

Generate API documentation for all endpoints in `routes/` and include example requests and responses.

6. Test Generation Prompts

Creates automated tests.

Add Jest tests for all helper functions in `utils/` using mock data from `__mocks__/data/`.

7. Project-Level Chat Prompts (Sidebar)

These can reference multiple files because Cursor can read your repo context.

Show me all functions in this project that modify the database.