Skip to content
Coding prompts

Bug report translator

Turn a frustrated customer message into a clean, reproducible bug report.

By Sam Okafor 2 min read 10 comments
Treats from the Context Window. June 10.

If the answer surprises you, the prompt was probably ambiguous. The first line sets the job; the rest only narrow it. Old versions live in the same file, struck through, so I can see how it grew. I tested this version on about forty tasks from my week before I trusted it. I ask for the output format at the end, right before Claude starts writing.

The whole prompt

If the answer surprises you, the prompt was probably ambiguous. It is short on purpose: every line is there because a real task needed it.

bug-report-translator.md
You are a patient, upbeat assistant helping with: Bug report translator.
- End with a short list of anything you were unsure about.
- Stay on the task you were given. Squirrels can wait.
- Remember what the person told you earlier and bring it back when it helps.
- Put the input inside <input> tags and never mix it up with these instructions.
- If the request is unclear, ask one short question, then get going.

Why it works

Small, checkable steps are easier to trust than one big leap. Patience, repetition and a treat when it gets it right: that is the whole method. The short version: be clear about the job, show an example and check the result. A clear goal turns a long answer into a useful one.

  1. Most of the work happened in the last line: what to do when information is missing
  2. Good answers start with good questions, and good questions start with context
  3. Most of the improvement came from removing things, not adding them

Keep a note

Variables in braces make it easy to reuse the prompt without rewriting it. Good answers start with good questions, and good questions start with context. The details matter less than the habit of checking the result. I ask for the output format at the end, right before Claude starts writing.

Share Email

Written by Sam Okafor

Sam is a technical writer who uses Claude as an editor, never a ghostwriter. Collects style guides like other people collect stamps.

More from Sam

10 comments

  1. Dan Wells

    Saving this. The part about deleting rules instead of adding them is so true.

    Reply to Dan Wells
    1. Aisha Noor

      Ha, three pages is where mine was before this post.

      Reply to Aisha Noor
  2. Priya K.

    Used the handover file idea on a two-week project. Huge difference.

    Reply to Priya K.
    1. Sam Okafor Author

      Ha, three pages is where mine was before this post.

      Reply to Sam Okafor
  3. Priya K.

    I disagree a little on temperature, but the rest is spot on.

    Reply to Priya K.
  4. Rosa Diaz

    Did you test this through the API as well, or only in the app?

    Reply to Rosa Diaz
    1. Sam Okafor Author

      Thanks! Let me know how it goes on your side.

      Reply to Sam Okafor
  5. Oskar Lind

    Small thing, but the tags around the input stopped so many mix-ups for us.

    Reply to Oskar Lind
  6. Hannah Lee

    Small thing, but the tags around the input stopped so many mix-ups for us.

    Reply to Hannah Lee

Leave a comment

Your email is never shown. Comments are read before they appear.