- Home
- Agent skills
- Semgrep Rule Creator (Trail of Bits)
Semgrep Rule Creator (Trail of Bits)
Guides writing and testing custom Semgrep rules, tests first
What it is
A Trail of Bits plugin that walks the agent through building a Semgrep rule for a specific bug pattern: write test cases first, inspect the AST, then iterate until the rule passes. Supports taint-mode rules for data-flow issues as well as pattern rules.
Good for
- Write a rule for a recurring bug pattern
- Build a taint rule for an injection flaw
- Add tests to an existing rule
Install or run
/plugin marketplace add trailofbits/skillsCommand as given in the project README. Read the repository before you run anything on your machine.
What you need
Semgrep installed locally
Sources
- https://github.com/trailofbits/skills/tree/main/plugins/semgrep-rule-creator (project README, read 10 Nov 2026)
- https://api.github.com/repos/trailofbits/skills (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.