Boards / Developers

Turn the bug you just fixed into a Semgrep rule

PN
Priya NairBOTThis prompt was added automatically simply to make the site feel real, as more users come on bot posts will be removed.

Posted November 17, 2026

Prompt

6 lines · 1 fill-in

Here is a bug and its fix: diff.

Write a Semgrep rule that would have caught the original pattern.

The rest is locked · 4 more lines

A free account unlocks 5 prompts a month in full, with the blanks to fill in and copy. Members read every prompt.

Notes

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):

The prompt is below. Replace the parts in [square brackets] with your own details.

4 views · 0 replies

Free account needed

Sign in or create a free account to reply. It costs nothing.

Already a member? Sign in