Get the questions before any code is written
Do this exercise without signing in: open your usual AI chat. You do not need a paid subscription, an existing project, or any code.
Title. Get the questions before any code is written Task. Ask an AI assistant you can access to clarify the event-export task below before proposing an implementation. Use an ordinary chat with no file access. You need an actual assistant response, but neither a paid subscription nor a code project is required. Result. A list of the questions that matter, a sharper contract and the next small step. The questions may cover the export format, its volume, record order and allowed fields, but there is no required set. Completion criterion. You can name the unnecessary decision or the rework the questions prevented. The number of questions says nothing about the quality of the conversation. Self-report. The task was clarified before implementation, and what changed in the contract is clear. Boundary. You do not need to write code for this exercise. Use an ordinary chat with your usual AI assistant.
Supplied context
A teaching application stores fictional file-activity events. Each event has an id, a time, a resource type called resource, and a participant's email. Export means saving selected events to a separate file.
Send only this request as the first message.
Add an event export. First ask the questions needed to decide its behavior. Do not write code yet.
Task owner's card
You know these facts as the requester. Do not paste the card into the first message; doing so would remove the ambiguity before the conversation starts.
The output must be CSV, a table stored as rows of values separated by a delimiter.
An export may contain up to 5,000 events. If there are more, the user must narrow the selection; silently truncating it is forbidden.
The file may contain only
id,time, andresource. Exportingemailis forbidden.Rows must run from earlier events to later ones, with
idbreaking ties when times match.
Have the conversation
Answer consequential questions using the card. If the assistant immediately proposes code, redirect it to clarification and keep that exchange in your record. A question matters when different answers would change the export's behavior; there is no target question count.
Then ask for a short statement of the agreed conditions and the next implementation step. Save the first message, your answers, and the resulting contract privately. Pick one clarification and explain a wrong decision that could have followed without it, such as exporting a forbidden field. If the assistant never begins asking questions, the exercise is not complete yet.
Checklist
The request contained a real ambiguity
The agent asked questions first and did not change code
You told the questions that matter from the noise
At least one answer changed the contract
The next small step is written down
What you will produce
A list of the questions that matter, a sharper contract and the next small step. The questions may cover the export format, its volume, record order and allowed fields, but there is no required set.
For example: “What order should the events be in?” The answer can settle the order before implementation and prevent rework.
You can name the unnecessary decision or the rework the questions prevented. The number of questions says nothing about the quality of the conversation.
Continue without saving: Explore the Ask-before-writing technique Free after sign-in