Promptles
Errors

Include the Error Message

Always paste the exact error message when reporting a bug. The error text contains critical clues: the error type, the operation that failed, and often the exact location. 'It crashes' tells Claude nothing; the stack trace tells it everything.

Where you'll practice this

3 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.

  • The Stack Trace

    Your React app is crashing intermittently in production. The error log shows `TypeError: Cannot read properties of undefined (reading 'map')` in `components/UserList.tsx` at line 12. After investigating, you realize the `users` prop is sometimes `undefined` when the component…

  • Feed Diagnose the Repro

    A teammate just reported that the dashboard's CSV export is producing files with mangled UTF-8 characters — names like 'José' show up as 'José' when the file is opened in Excel. The bug ticket has a one-line description and nothing else. You want to run the team's `/diagnose`…

  • The Red Build

    Your CI just went red on a pull request. The `test` job failed during `npm ci` with an error about the lockfile being out of sync with `package.json`. You added a dependency locally but only committed `package.json`, not the updated `package-lock.json`. You want Claude Code to…

Other principles in Errors