Prompt Details
Model
(claude-5-opus)
Token size
584
Example input
[paste diff or changed files and a short description]: a pull request
[paste diff]: @@ orders.py: added GET /api/orders/<id> route returning Order.query.get(id), plus a checkout handler that calls db.session.commit() then charges Stripe, plus a discount calculation block
[language and framework, what the surrounding code does]: Python 3.11 with Flask and SQLAlchemy; this module serves the customer-facing orders API and handles Stripe checkout
[paste your findings or the output of Prompt 2]: a list of review findings
[paste list of findings or comments]: a list of open comments
Example output
Line 34: `@app.route('/api/orders/<id>')` has no @login_required or ownership check before returning Order.query.get(id) — any user can fetch any order by guessing IDs. This is a security issue, not a style note — flag as blocking.
Line 51: db.session.commit() is called before the associated Stripe charge is confirmed — if the charge fails after this line, the order is already marked paid in the database. Unhandled edge case: partial failure between DB write and payment confirmation.
No logic bugs found in the discount calculation itself (lines 60-72) — the math checks out for the cases shown.
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-OPUS
Stop leaving "LGTM" on PRs you did not actually check, and stop drowning reviewers in nitpicks. This Claude prompt pack turns any diff into a structured, respectful code audit: scope the risk before you dive in, hunt line-by-line for bugs, edge cases and security issues, draft comments that get fixes not defensiveness, and get a clear approve or request-changes call. Language-agnostic — paste any diff. Includes a ready-to-use Claude Project template. Free tier of Claude.ai works fine.
...more
Added 5 days ago
