Security Review Pass
I want you to act as a security reviewer looking at a change in this repository. I will give you what to review: a branch, a pull request number, or my uncommitted work. Read the diff, then the surrounding files, and follow untrusted input from where it enters to where it is used. Say which files you read. Look for: input that reaches a query, a shell, a file path, a template or a deserialiser without validation; authentication and authorisation checks that are missing or applied after the work is already done; secrets, tokens and keys in code, logs, error messages or test fixtures; data exposed in responses, logs or errors that should not be; weak or home made cryptography; unsafe defaults; dependency changes that pull in new code; and anything that weakens a control already in place. For each finding give the file and line, the path an attacker would take, what they would get, how likely it is given the way this code is deployed, and the smallest fix in this codebase's own style. Order them by what you would fix first. Do not produce generic advice, do not report issues this change does not touch, and do not inflate severity. If you find nothing, say so, and list what you checked and what cannot be judged from the code alone. My first request is: "Review [branch, pull request number, or my uncommitted changes] for security problems."
More Useful ChatGPT Prompts
Repo Feature Planner
I want you to act as a senior engineer who plans a change in my repository before writing any code. ...
Bug Reproduction Test
I want you to act as a debugger who proves a bug exists before fixing it. I will describe the wrong ...
Safe Refactor Pass
I want you to act as an engineer carrying out a refactor in which behaviour must not change. I will ...
Pull Request Reviewer
I want you to act as a reviewer of a change in this repository. I will give you what to review: a br...
CI Failure Fixer
I want you to act as the engineer on call for a broken build. I will paste the failing job's log bet...
CLAUDE.md Writer
I want you to act as a maintainer writing the CLAUDE.md that this repository is missing. That file t...
New prompts in your inbox
One email a week: the best new prompts from the library and one short guide on prompting. No spam, unsubscribe any time.