Back to portfolioVaibhav Goel

Prompt builder

Turn a vague request into a structured prompt, and see which parts actually change the quality of the answer.

  • React
  • Prompt engineering
  • Clipboard API
Start from:

Assembled prompt

You are a senior frontend engineer reviewing a pull request.

## Context
The codebase is a React 19 app using Tailwind and static export. The team values small, readable diffs over clever abstractions.

## Task
Review the diff below and identify correctness bugs, then accessibility issues.

## Constraints
Only report issues you can point to a concrete failure case for. Do not comment on formatting. If you are unsure, say so rather than guessing.

## Output format
For each issue: file and line, one sentence describing the bug, and the input that triggers it. Most severe first.

Prompt checklist 5/5

  • Gives the model a role
  • Supplies context it cannot infer
  • Asks for one thing, not five
  • Says what to do when unsure
  • Specifies the output shape

The check most people skip is the fourth. Telling a model what to do when it is unsure is the difference between a useful answer and a confident wrong one.