Concrete Examples of Good/Bad Prompts
Bug Fixing Examples
Bad Example
- No information about what the bug is
- No indication of where to look
- No description of expected vs. actual behavior
- OpenHands would have to guess what’s wrong
Good Example
- Specific file and line number
- Exact error message
- Clear expected vs. actual behavior
- Suggested approach for the fix
Feature Development Examples
Bad Example
- Scope is too large and undefined
- No details about authentication requirements
- No mention of existing code or patterns
- Could mean many different things
Good Example
- Specific, scoped feature
- Clear technical requirements
- Points to existing patterns to follow
- Defines what “done” looks like
Code Review Examples
Bad Example
- No code provided or referenced
- No indication of what to look for
- No context about the code’s purpose
- No criteria for the review
Good Example
- Clear scope and focus areas
- Important context provided
- Business implications explained
- Requested output format specified
Refactoring Examples
Bad Example
- “Better” is subjective and undefined
- No specific problems identified
- No goals for the refactoring
- No constraints or requirements
Good Example
- Specific problems identified
- Clear constraints and requirements
- Points to patterns to follow
- Measurable success criteria
Key Principles for Effective Instructions
Be Specific
Vague instructions produce vague results. Be concrete about:Provide Context
Help OpenHands understand the bigger picture:Set Clear Goals
Define what success looks like:Include Constraints
Specify what you can’t or won’t change:Common Pitfalls to Avoid
Vague Requirements
- ❌ Vague
- ✅ Specific
Missing Context
- ❌ No Context
- ✅ With Context
Unrealistic Expectations
- ❌ Unrealistic
- ✅ Realistic
Incomplete Information
- ❌ Incomplete
- ✅ Complete
Best Practices
Structure Your Instructions
Use clear structure for complex requests:Provide Examples
Show what you want through examples:Define Success Criteria
Be explicit about what “done” means:Iterate and Refine
Build on previous work:Quick Reference
The investment you make in writing clear instructions pays off in fewer iterations, better results, and less time debugging miscommunication. Take the extra minute to be specific.

