What makes a coding prompt good?
Before the templates, the principles that make all of them work:
**Give the model the real code, not a description of it.** Paste the function, the error, the schema. Models reason far better over concrete artifacts than over paraphrases.
**State constraints explicitly.** Language version, framework, allowed dependencies, style guide, and especially what must not change. Unstated constraints get violated.
**Define done.** "It compiles and the existing tests pass" or "matches this signature" or "returns this exact JSON." A clear acceptance criterion is what separates a usable answer from a plausible one.
**Ask for a plan on big changes.** For anything non-trivial, ask the model to outline its approach before writing code so you can correct course cheaply.