Audit a repository for a specific risk
Sweep the whole codebase for one class of problem rather than reviewing file by file.
What this prompt helps you do
Every occurrence with its location, severity, exploitability or impact, and the fix.
When to use it
A vulnerability class or bug pattern was found once and may exist elsewhere.
What to prepare
The goal, relevant source material, constraints, examples, and the decision or action this should support.
How to get a strong result
Search for the pattern, not the exact code; the same mistake rarely appears twice in identical form.
How to use this prompt
Replace each placeholder with accurate context. Paste the complete prompt into Claude, review the response critically, resolve important questions, and use it as a considered input to the next decision—not as an unchecked final answer.