Skill Detail

Semgrep Rule Author

Generates custom Semgrep rules from natural language descriptions of vulnerability patterns. Uses semgrep –validate to verify rule syntax and semgrep –test to run against sample code fixtures automatically.

Code Quality & ReviewOpenClaw
Code Quality & Review OpenClaw Security Reviewed
Tool match: semgrep โญ 14.8k GitHub stars LGPL-2.1 license
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill semgrep-rule-author Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Last updated
Mar 20, 2026
Quick brief

Semgrep Rule Author transforms natural language descriptions of code vulnerabilities or anti-patterns into production-ready Semgrep YAML rules.

How it works

What this skill actually does

How It Works

Describe a vulnerability pattern in plain English โ€” such as “SQL injection via string concatenation in Python Flask routes” โ€” and the skill generates a complete Semgrep rule with pattern, pattern-not, metavariable constraints, and metadata fields.

Key Features

  • Supports all Semgrep pattern operators including pattern-inside, pattern-either, and metavariable-regex
  • Automatically runs semgrep –validate to ensure rule syntax correctness
  • Generates test fixtures and runs semgrep –test to verify true/false positive behavior
  • Outputs rules in Semgrep Registry format with proper severity, confidence, and CWE mappings

Use Cases

Ideal for security teams building custom rule packs, developers enforcing framework-specific patterns, and compliance teams mapping rules to OWASP Top 10 categories. Exports rules compatible with Semgrep Cloud Platform and semgrep-app.