semgrep-rule-creator

Create test-driven Semgrep rules for security vulnerabilities and code patterns.

1|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/jakubciszak/family-plan --skill semgrep-rule-creator-jakubciszak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semgrep-rule-creator
Source: https://github.com/jakubciszak/family-plan/tree/main/.claude/skills/external/semgrep-rule-creator/skills/semgrep-rule-creator
Command: npx skills add https://github.com/jakubciszak/family-plan --skill semgrep-rule-creator-jakubciszak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create production-grade Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. This skill guides you through a structured, test-driven approach to writing precise Semgrep rules, with best practices for taint-mode and pattern-based detections.

Core Features & Use Cases

  • Guided, end-to-end workflow from problem analysis to rule validation, enabling rapid, repeatable Semgrep rule creation.
  • Emphasis on writing focused, test-backed rules that minimize false positives and support taint-mode data-flow tracking.
  • Use cases include detecting security vulnerabilities, enforcing coding standards, and building custom static analyses tailored to a codebase.

Quick Start

Define a new Semgrep rule-id in its directory, write tests first, then run semgrep --test to verify all tests pass.

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 custom Semgrep rules to detect security vulnerabilities?

Semgrep rule creation follows a structured, test-driven workflow from problem analysis to rule validation, requiring test files and explicit guidelines to detect security vulnerabilities and bug patterns while minimizing false positives.

What is the best way to test Semgrep rules before deploying them?

The best way to test Semgrep rules is by defining a rule-id in its directory, writing test files first, and then running semgrep --test to verify that all pattern-based detections and taint-mode data-flow checks pass.

How does taint-mode data-flow tracking work in Semgrep rule writing?

Taint-mode in Semgrep rule writing tracks data-flow to detect security vulnerabilities by tracing untrusted input across code paths, validated through test-driven rule creation with explicit guidelines and test files.

Can I use Semgrep rules to enforce coding standards and custom static analysis?

Yes, you can use Semgrep rules to enforce coding standards and build custom static analyses tailored to a codebase by applying pattern-based detections to identify specific bug patterns across software projects.

Why do my Semgrep rules have high false positives when scanning code?

High false positives in Semgrep rules often occur when rules lack a structured, test-driven approach; writing focused rules with test files and validating with semgrep --test minimizes inaccurate pattern-based detections.