·semgrep-rule-creator
!

semgrep-rule-creator

trailofbits/skills

Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections.

471Installs·8Trend·@trailofbits

Installation

$npx skills add https://github.com/trailofbits/skills --skill semgrep-rule-creator

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.

View raw

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