semgrep-rule-creator

Write and validate Semgrep rules for security pattern detection.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/dakshrawat298-gif/SOL-ALPHA-GUARDIAN --skill semgrep-rule-creator-dakshrawat298-gif
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semgrep-rule-creator
Source: https://github.com/dakshrawat298-gif/SOL-ALPHA-GUARDIAN/tree/main/packages/skills/skills/semgrep-rule-creator
Command: npx skills add https://github.com/dakshrawat298-gif/SOL-ALPHA-GUARDIAN --skill semgrep-rule-creator-dakshrawat298-gif

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers write and validate Semgrep rules to detect security vulnerabilities and enforce coding standards across codebases.

Core Features & Use Cases

  • Custom Rule Creation: Write project-specific Semgrep rules including taint tracking and pattern-based detections.
  • Rule Porting & Testing: Convert detection logic from other tools to Semgrep and test rules against sample code.
  • Organizational Standards: Define organization-wide rule templates to ensure consistency and reduce false positives.

Quick Start

Create a taint-tracking Semgrep rule that flags data flowing from user input sources to sensitive sinks.

Frequently Asked Questions about semgrep-rule-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a Semgrep rule for taint tracking?

To write a Semgrep rule for taint tracking, you define a YAML configuration specifying source patterns where user input enters and sink patterns where sensitive data is used. This skill helps generate and validate these custom taint-mode rules.

What is the best way to detect organization-specific security patterns in code?

The best way to detect organization-specific security patterns is by creating custom Semgrep rules tailored to your codebase. This approach enforces coding standards and reduces false positives compared to generic static-analysis tools.

Can I convert detection logic from other static-analysis tools to Semgrep?

Yes, you can port detection logic from other static-analysis tools to Semgrep by rewriting the pattern matching rules into Semgrep's YAML syntax. This skill supports rule porting and testing against sample code to ensure accuracy.

Do I need to know YAML to create custom pattern-detection rules?

Yes, familiarity with YAML rule definitions is required because Semgrep relies on YAML syntax to configure patterns, taint mode, and custom security rule templates for static code analysis.

How do I validate custom Semgrep rules against sample code?

You validate custom Semgrep rules by running them against sample code snippets to verify pattern detection accuracy and identify false positives. This skill supports testing workflows to refine your rule logic.