← Reddit

I got tired of Claude giving shallow "review my code" feedback, so I put together a set of review prompts (open source)

Reddit · dcarrero · July 4, 2026
A set of open source code review prompts was created to improve Claude's ability to identify critical security and infrastructure issues that default reviews overlook. The prompts employ explicit checklists (OWASP, CWE, WCAG), input source-to-sink tracing, and require Claude to output severity levels with exact locations and fixes across security, performance, accessibility, and infrastructure domains. These prompts serve as a complementary layer to existing linting tools, incorporating clarifying questions to reduce uncertainty in code analysis.

Detailed Analysis

A developer's frustration with generic AI code review has produced a practical, open-source solution that highlights a broader pattern in how technical users are learning to work with Claude. The core complaint is familiar to anyone who has used large language models for code review: default prompts like "review this code" tend to surface cosmetic issues—variable naming, missing error handling—while missing substantive problems like SQL injection vulnerabilities or containers running with root privileges. The developer's response was to build a curated set of "master prompts" published on GitHub under an MIT license, each engineered to force Claude into a more rigorous review posture by assigning it a specific role, an explicit checklist grounded in established standards like OWASP and CWE, and instructions to trace data flow from input source to sink rather than pattern-match on surface syntax.

The structure of these prompts reveals a deeper understanding of how to extract better performance from Claude and similar models. Rather than relying on a single generic instruction, the toolkit breaks review into specialized domains—security, performance, accessibility, code quality—with additional stack-specific modules for Docker, Kubernetes, Terraform, and Bash. Each prompt also requires Claude to output findings with severity ratings, exact file/line locations, and copy-ready fixes, transforming vague feedback into actionable output. Perhaps most notably, the prompts instruct Claude to ask up to three clarifying questions before rendering judgment, a technique that reduces the model's tendency to guess at context it doesn't have—context like intended architecture, threat model, or deployment environment that dramatically changes what counts as a legitimate finding.

This matters because it exposes a persistent gap between raw model capability and practical utility. Claude and its peers are technically capable of identifying complex security flaws, but the quality of output is heavily gated by prompt engineering—a burden that falls on individual users to solve repeatedly and inconsistently. The developer's explicit framing of the toolkit as a complement to, not a replacement for, static analysis tools like tfsec, Checkov, and gitleaks reflects a mature view of where LLM-based review adds value: catching contextual, cross-file, or business-logic issues that pattern-based linters structurally cannot see, while leaving deterministic vulnerability scanning to purpose-built tools.

The broader trend here is the rapid emergence of a prompt-engineering ecosystem growing up around foundation models like Claude, filling gaps that the underlying products haven't yet addressed natively. As Anthropic and competitors push Claude toward more agentic coding workflows—exemplified by tools like Claude Code—there's growing demand for domain-specific scaffolding that turns a general-purpose assistant into a specialized reviewer, tester, or auditor. Open-source, community-driven prompt libraries like this one function as a stopgap and a signal to model providers about where default behavior falls short. They also underscore an unresolved tension the poster raises directly: whether AI-assisted review is a genuine addition to security posture or simply another layer of noise that teams must learn to calibrate, trust selectively, and verify against traditional tooling.

Read original article →