Describe Edge Cases
When asking Claude to add error handling, specify exactly which cases to handle and what the behavior should be. 'Add error handling' is vague. 'Throw an Error with message X when Y happens' gives Claude a clear implementation target.
Where you'll practice this
2 Promptles scenarios teach this principle directly. Each one drops you into a real engineering ticket and asks you to write the prompt you'd send to Claude Code.
Handle the Edge Case
You have a `divide` function in `math.js` that takes two numbers and returns the result of dividing the first by the second. Currently, it doesn't handle the case where the divisor is zero, which causes a runtime error in your app.
The Form Builder
You need an internal HTML page called `onboarding.html` with a form that collects customer onboarding information: company name (required, min 2 characters), contact email (required, must be valid email), plan tier (required, dropdown with options: Starter, Growth, Enterprise),…