Topic 3 of 5 · 4 min read
Feedback on code, designs and slides
Goal: Write a review request for code, a design or slides that states the goal, the constraints and the issues to check.
A review request for non-text work needs three things: the goal, the constraints and the kind of issues you want found. Without them, the model comments on whatever is easiest to see.
Check yourself · 1 of 3
You ask a chatbot to review your slides. What should the request include besides the slides?
Why it matters
A model that looks at a script, a slide or a screenshot does not know what the thing is for. It cannot tell a quick prototype from something that goes live on Monday. So it falls back on general advice: add comments, use more white space, rename a variable. Some of that is fair. Most of it is not what you needed.
How to do it
- State the goal. What the work must do and for whom: "a script that renames photos by date, run once by me" or "a 6-slide pitch for a bank manager."
- State the constraints. Deadline, tools, brand rules, skill level of the audience, a page limit, a language version. The model cannot guess these.
- Name the issues to look for. For code: bugs, edge cases, security. For a design: contrast, hierarchy, readability on a phone. For slides: one message per slide, too much text, a missing ask. Naming the issues also lets you say what to ignore.
- Give the work in a form the model can read. Paste the code. For a design or slide, upload an image or export, and say what you cannot show, such as animations.
- Ask for severity. "Mark each issue as must-fix, should-fix or optional." This keeps the nitpicks away from the real problems.
Before and after
Before: Review my slides.
You get notes on font choice and a suggestion to add more images.
After: These 6 slides are a pitch to a bank manager who has 10 minutes. The goal is a yes to a 20,000 euro loan. Brand colours are fixed, so ignore colour. Check: does each slide make one point, is the ask clear, and is any slide too text-heavy to read on a projector? Mark each issue must-fix, should-fix or optional.
What goes wrong
- The model cannot run or see everything. It reads code but may not run it, so it can miss a bug or report one that is not there. Run the tests yourself. For images, it can misread small text.
- Style opinions as problems. Without the goal, taste is reported as an error. Constraints stop that.
- Private material. Do not paste secrets, client data or unreleased designs into a tool your employer has not approved. Check the rules first.
Examples
A code review request
Prompt: This Python script renames photos by their date taken. I run it once on a folder of about 2,000 JPEG files, on my own laptop. Look for bugs and cases where a file could be overwritten or lost. Ignore style. Mark each issue must-fix or optional. Code follows.
The reply flags that two photos taken in the same second would get the same name, and one would be overwritten. That is a must-fix.
A design review request
Prompt: Attached is a screenshot of my sign-up page. Most users are on phones in sunlight. Check: is the main button obvious, is any text hard to read, and is there anything a first-time user would not understand? Do not comment on the logo.
The reply says the grey hint text is too light for outdoors, which is the kind of issue the context asked for.
Key points
- State the goal and who the work is for, so the model can judge what matters.
- State constraints such as deadline, brand rules and audience, because the model cannot guess them.
- Name the kinds of issues to check and the ones to ignore.
- Ask for a severity label so real problems stand apart from taste.
- The model may not run code or read small text, so test and check by yourself.
Common mistakes
- Pasting work with no goal, and getting general style advice.
- Leaving out constraints such as brand rules or a deadline.
- Trusting a model's claim that code works without running it.
- Pasting secrets or client data into a tool that is not approved.
Check yourself · 2 of 3
A chatbot reviews your script and says there are no bugs. What is the best next step?
Check yourself · 3 of 3
You review a mobile app screen. Which request is most likely to give feedback you can use?
Practice items, not counted towards your mastery.
Start here
- Assigning AI: seven ways of using AI in class (One Useful Thing) (opens in a new tab)ArticleFree
Ethan Mollick's examples of using AI as a coach and giving it specific instructions, with their limits.
- Sycophancy in GPT-4o: what happened and what we're doing about it (OpenAI) (opens in a new tab)ArticleFree
A vendor admits an update made its chatbot too agreeable, which shows why praise needs checking.
- Towards Understanding Sycophancy in Language Models (opens in a new tab)PaperFree
The research paper showing that models tend to match a user's views and can be pushed off correct answers.
More for this topic
- How to do a code review: the reviewer's guide (Google Engineering Practices) (opens in a new tab)ArticleFree
Google's public checklist of what a reviewer looks at: design, functionality, complexity, tests and naming.
- Prompt engineering overview (Claude docs) (opens in a new tab)DocsFree
Anthropic's guide to writing clear instructions, including giving the model criteria and a role.