Turn a coding task into an AI assistant prompt
Turns a rough coding task into one precise prompt for an AI coding assistant, with constraints, the files involved and a way to check the result.
Task:
Write one clear prompt that I can give to an AI coding assistant for the task below.
Context:
My stack is [language and framework]. The task is [rough description of the task]. The files involved are [file or folder names]. The assistant works inside my repository.
Rules:
- The prompt states the goal, the files to read first, the constraints and how I will check the result.
- Include an instruction to read the relevant code before changing it, and to explain any destructive command (delete, force push, drop) before running it.
- Include an instruction never to ask for secrets or keys and never to print them.
- Keep the prompt under 180 words and ask me one question first if the task is too vague to write it.
Result:
The finished prompt in a single block, ready to paste. Add one sentence naming the part most likely to need your edits.