The best static-analysis rules come from your own incidents. Also worth a look: the Trail of Bits skill for Semgrep, which teaches an agent to run it properly.
Sources (GitHub star counts checked on 3 Dec 2026):
- Semgrep: 18k+ stars
- Trail of Bits skills: semgrep: repo has 8.6k+ stars, maintained by a well-known security firm
The prompt is below. Replace the parts in [square brackets] with your own details.