Back to skills

semgrep-rule-creator

security

Creates custom Semgrep rules for detecting security vulnerabilities and code patterns. Guides you through a test-first workflow: write tests, analyze the AST, write the rule, iterate until all tests p

Setup & Installation

npx skills add https://github.com/trailofbits/semgrep-rule-creator --skill semgrep-rule-creator
or paste the link and ask your coding assistant to install it
https://github.com/trailofbits/semgrep-rule-creator
View on GitHub

What This Skill Does

Creates custom Semgrep rules for detecting security vulnerabilities and code patterns. Guides you through a test-first workflow: write tests, analyze the AST, write the rule, iterate until all tests pass. Supports both pattern matching and taint mode for data flow analysis. Hand-writing Semgrep rules without guidance leads to overly broad patterns with high false positives — this skill enforces AST analysis, mandatory test cases including safe variants, and taint mode selection to produce rules that actually work in production.

When to use it

  • Working with semgrep rule creator functionality
  • Implementing semgrep rule creator features
  • Debugging semgrep rule creator related issues