Reviews a snippet or diff across correctness, security, performance, readability, idiom and error handling, then returns prioritized fixes with before/after code and a rationale for each.
Version 1 · 4 variables · 3 required
Fill in the values below — the customized prompt updates as you type. marks a required value.
Used for the code fences and to pick idiomatic conventions, e.g. TypeScript, Python, Go, Rust. Default: TypeScript
For example: function, class, module, pull request diff. Default: function
What the code is meant to do, how hot the path is, and any constraint the reviewer should know about.
Paste the snippet or unified diff. One function or hunk gives sharper results than a whole file.
Fill in Code or diff to copy the customized prompt.
Showing all 1 public result from Claude Opus 5 on version 1.
Contributor notes: Illustrative example — not an actual model run. Written to show the shape of a good answer so the prompt can be judged before you spend a call on it. Attribution: adapted from https://github.com/danielmiessler/fabric by danielmiessler, licensed MIT. Source file: https://github.com/danielmiessler/fabric/blob/main/data/patterns/review_code/system.md
1 public result from 1 model
Reports go to moderators and are never shown publicly.
Turns a project idea into a complete scaffold: a summary, build steps, directory structure, the purpose of each file, commented source for every file, a setup script and a README.
fix(auth)!: reject refresh tokens issued before a password change Refresh tokens were validated only against their signature and expiry, so a token minted before a password reset stayed usable for its full thirty-day lifetime. Anyone holding a captured token kept access after the account owner rotated their credentials, which is precisely the scenario a password reset is meant to close. The user row now carries credentials_changed_at, and verifyRefreshToken compares the token's iat claim again
Generates a Conventional Commits message from a diff or a plain description, picking the right type and scope, using imperative mood, and flagging breaking changes correctly.
**Summary** Rate limiting for the public search endpoint moves from a per-process in-memory counter to a shared Redis counter, so the limit now applies across all application instances rather than per instance. **Files Changed** - `src/middleware/rate_limit.py` — replaces the module-level `defaultdict` with a Redis-backed sliding window. - `src/config.py` — adds `REDIS_URL` and `SEARCH_RATE_LIMIT_PER_MINUTE`, both required at startup. - `tests/test_rate_limit.py` — new tests covering the wind
Turns raw git diff output into a structured PR description covering summary, files changed, significant code, reasoning, project impact, a test plan and reviewer notes.
Oldest first · one level of replies
Sign in to join the discussion. Share what you learned or made with this prompt.
No comments yet
Be the first to share how this prompt worked for you.