semgrep-rule-creator
✓Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections.
Installation
SKILL.md
Create production-quality Semgrep rules with proper testing and validation.
Missing safe cases in tests - leads to undetected false positives:
This skill guides creation of Semgrep rules that detect security vulnerabilities and code patterns. Rules are created iteratively: analyze the problem, write tests first, analyze AST structure, write the rule, iterate until all tests pass, optimize the rule.
Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections. Source: trailofbits/skills.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/trailofbits/skills --skill semgrep-rule-creator- Source
- trailofbits/skills
- Category
- !Security
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is semgrep-rule-creator?
Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections. Source: trailofbits/skills.
How do I install semgrep-rule-creator?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/trailofbits/skills --skill semgrep-rule-creator Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/trailofbits/skills
Details
- Category
- !Security
- Source
- skills.sh
- First Seen
- 2026-02-01