How to Generate Fix Prompts from Test Results
Rihario can generate fix prompts from detected issues, helping you use AI coding assistants (Cursor, VS Code Copilot, Antigravity) and LLMs (ChatGPT, Claude, Gemini) to fix problems quickly. Fix prompts include error details, context, and instructions for fixing the issue. They're assistive, not automatic - you review and apply the fixes.
What Are Fix Prompts?
Fix prompts are structured instructions you can give to AI coding assistants:
- Problem description - What issue was found
- Error details - Console errors, network errors, or UI problems
- Context - Where the issue occurred, what was happening
- Evidence - Screenshots, logs, DOM snapshots
- Fix instructions - How to fix the problem
How to Generate Fix Prompts
Step 1: Review Test Results
After an exploration completes:
- Open the test results
- Find the issue you want to fix
- Review the evidence (screenshots, logs, etc.)
- Understand what the problem is
Step 2: Generate Fix Prompt
Click "Generate Fix Prompt" on the issue:
- Rihario creates a structured prompt
- Includes all relevant details
- Formatted for AI coding assistants
- Ready to copy and paste
Step 3: Use with AI Assistant
Copy the prompt and use it with:
- Cursor - Paste into Cursor chat, get code suggestions
- VS Code Copilot - Use Copilot chat for code fixes
- Antigravity - Provide the prompt to your Antigravity agent
- LLMs - Works great with ChatGPT, Claude, and Gemini
Example Fix Prompt
Issue: Console error in contact form submission
Error: Cannot read property 'value' of null
Location: Contact form on /contact page
Context:
- User fills email and message fields
- Clicks "Submit" button
- JavaScript error occurs before form submission
Console Error:
TypeError: Cannot read property 'value' of null
at submitForm (contact.js:25)
at HTMLButtonElement.onclick (contact.html:42)
Screenshot: [Attached screenshot showing form state]
Fix Instructions:
1. Check contact.js line 25 - likely accessing null element
2. Ensure form fields are properly selected before accessing .value
3. Add null checks or ensure elements exist before accessing
4. Verify form field IDs/selectors match HTML
Please provide code fix for this issue.
Types of Fix Prompts
Console Error Prompts
For JavaScript errors:
- Error message and stack trace
- File and line number where error occurred
- Context about what action triggered error
- Instructions for fixing the error
Network Error Prompts
For failed API requests:
- Request URL and method
- Response status and error message
- Request payload if available
- Instructions for fixing backend/API
UI Issue Prompts
For visual/layout problems:
- Screenshot showing the problem
- Description of what looks wrong
- Element details (HTML/CSS)
- Instructions for fixing CSS/layout
Best Practices
- Review before using - Verify the issue is real before generating prompt
- Provide additional context - Add code snippets or file paths if helpful
- Verify fixes - Always test fixes from AI assistants
- Review generated code - Don't blindly apply fixes, review first
- Iterate if needed - Provide feedback if fix doesn't work
Limitations
- Not automatic - Prompts are assistive, not auto-fixes
- May not be perfect - AI assistants might not fix correctly
- Requires verification - Always test fixes manually
- May need iteration - Might need multiple attempts to fix
Using with Different AI Assistants
Cursor
- Copy fix prompt from Rihario
- Open Cursor chat
- Paste prompt
- Review code suggestions
- Apply fixes and test
VS Code Copilot
- Copy fix prompt from Rihario
- Open Copilot chat in VS Code
- Paste prompt
- Review suggestions
- Apply fixes and test
Antigravity & LLMs (ChatGPT, Claude, Gemini)
- Copy fix prompt from Rihario
- Paste into your agent or LLM chat interface
- The prompt contains all context needed for the model
- Review the suggested solution
- Apply fixes and test