Do a code security check

A ready-to-use “Programming” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.

Prompt template
Review the code below from a security standpoint: 1) check for common vulnerabilities (injection, XSS, privilege escalation, secret leakage, insecure dependency usage); 2) list issues ranked by severity; 3) attach fixed code for each; 4) explain how to verify the fix.

Code:
```
paste the code
```

How to use this prompt

  1. Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.

Recommended tool: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing