Tell the AI who it should act as. Example: “You are a technical writer” or “You are a data analyst.”
Give background information to guide the AI. Example: “This task is about documenting internal APIs for a project.”
Clearly state what you want the AI to do. Example: “Generate API documentation including parameters, return types, and examples.”
Define tone, structure, and limits. Example: “Use Markdown with headings, bullet points, and code blocks.”
Show the AI exactly what the output should look like. Example: Include a sample function and the expected documentation output.