Using Fix Prompts with Cursor, ChatGPT, or Copilot
Fix prompts from Rihario work with any AI coding assistant. They're structured instructions that help AI assistants understand the problem and generate code fixes. Here's how to use them effectively with popular tools like Cursor, ChatGPT, and Copilot.
General Workflow
- Generate fix prompt - Click "Generate Fix Prompt" in Rihario
- Copy the prompt - Copy to clipboard
- Paste into AI assistant - Use with your preferred tool
- Review suggestions - AI provides code fixes
- Apply and test - Implement fixes and verify they work
Using with Cursor
Step 1: Open Cursor Chat
Open Cursor and access the chat feature (Cmd+L or Ctrl+L).
Step 2: Paste Fix Prompt
Paste the fix prompt from Rihario. You can also:
- Add file paths if relevant
- Include code snippets for context
- Reference specific files or functions
Step 3: Get Code Suggestions
Cursor will analyze the issue and suggest fixes. It may:
- Show code changes inline
- Provide explanations
- Suggest multiple approaches
Step 4: Apply and Test
Review Cursor's suggestions, apply the fixes, and test them.
Using with ChatGPT
Step 1: Start Conversation
Open ChatGPT and start a new conversation. Optionally provide context about your codebase first.
Step 2: Paste Fix Prompt
Paste the fix prompt. For better results:
- Provide code snippets if needed
- Specify your tech stack (React, Vue, etc.)
- Include file structure if helpful
Step 3: Get Suggestions
ChatGPT will provide:
- Explanation of the problem
- Code fixes
- Step-by-step instructions
Step 4: Implement and Test
Copy ChatGPT's code suggestions, implement them, and test.
Using with GitHub Copilot
Step 1: Open Copilot Chat
In VS Code, open Copilot chat (Cmd+I or Ctrl+I).
Step 2: Paste Fix Prompt
Paste the fix prompt. Copilot can see your open files for context.
Step 3: Get Suggestions
Copilot will suggest fixes. You can:
- Accept inline suggestions
- Ask for explanations
- Request alternative approaches
Step 4: Apply and Test
Apply Copilot's suggestions and test the fixes.
Tips for Better Results
Add Context
Enhance fix prompts with:
- File paths - Where the code is located
- Code snippets - Relevant code sections
- Tech stack - Framework, library versions
- Existing patterns - How similar issues are handled
Be Specific
If the AI doesn't understand:
- Clarify the problem
- Provide more context
- Show examples of what you want
- Break down complex issues
Iterate
If the first fix doesn't work:
- Provide feedback
- Explain what went wrong
- Ask for alternative approaches
- Provide additional context
Example: Using Fix Prompt
When Fix Prompts Work Best
- Clear errors - Console errors with stack traces
- Obvious bugs - Issues with clear causes
- Self-contained problems - Issues in specific files/functions
- Well-documented issues - Problems with good evidence
When Fix Prompts May Struggle
- Complex business logic - Requires domain knowledge
- Architectural issues - Problems requiring refactoring
- Vague errors - Unclear error messages
- Multi-file issues - Problems spanning multiple files
Best Practices
- Always review code - Don't blindly apply AI suggestions
- Test fixes thoroughly - Verify fixes actually work
- Understand the fix - Make sure you understand what changed
- Keep it simple - Fix prompts work best for straightforward issues
- Iterate if needed - Don't hesitate to ask for clarification