Context and a criterion
The model has to know when to stop.
A useful request answers three questions. Where are we: the language, the file, a constraint already agreed. What to do: one change. How we will know it is done: a test, a sample input and output, a ban on touching anything else. Without a criterion the model stops when the text gets long, not when the task is solved.
Context is not the company's whole history. It is whatever the piece cannot be solved without. "This is an HTTP handler in Go, the error is returned to the caller, a panic will not do. Write parsing for the age field. Empty and negative are errors, 18 and above is fine." Here you have a place, a rule and a sign of done.
Adjectives work badly. "Make it clean and grown-up" means something different to every model: extra interfaces, comments on half the file, a new framework. Replace adjectives with bans and examples. "No new dependencies. No comments that repeat the code. Names like in the neighbouring function."
The definition of done will be useful to you later, not just to the model. It is what you will check the answer against. If you could not say in the request what success looks like, you have not set the task yet yourself. Write the criterion first, then open the chat.
Practice
When a task is set
Which request is ready to take to the chat?
- Do it well
- Here is the rule, an example and a ban on touching neighbouring files
- Improve the project
- Like the big companies do
A weak word
Which word tells the model almost nothing: clean, test or signature?
Three parts of a request
Select what is worth including.
- Which file to change
- Make it pretty
- Which example must pass
- Invent a database schema