It helps to write out the prompt in a seperate text editor so you can edit it and try to desribe what the input is, and what output you want as well as try to describe and catch likely or iteratively observed issues.
You try a gamut of sample inputs and observe where its going awry? Describe the error to it and see what it does