Skip to content
Back to skills

Sast Rule Compiler Semgrep

ASecurity

Compiles and validates custom Semgrep SAST rules using the semgrep-core engine. Tests pattern matching against sample codebases and generates rule performance benchmarks with p/ci rulesets.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 2, 2026
ai-agentsgorailsdockergitsecurityperformance

Works with

  • cli

Security analysis

A100/100

Scanned June 2, 2026

npx -y skills add agentskillexchange/skills --skill sast-rule-compiler-semgrep --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sast Rule Compiler Semgrep?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sast Rule Compiler Semgrep
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-sast-rule-compiler-semgrep/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-sast-rule-compiler-semgrep)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "SAST Rule Compiler for Semgrep"
slug: "sast-rule-compiler-semgrep"
description: "Compiles and validates custom Semgrep SAST rules using the semgrep-core engine. Tests pattern matching against sample codebases and generates rule performance benchmarks with p/ci rulesets."
github_stars: 14802
verification: "security_reviewed"
source: "https://github.com/semgrep/semgrep"
category: "Security & Verification"
framework: "Codex"
tool_ecosystem:
  github_repo: "semgrep/semgrep"
  github_stars: 14802
---

# SAST Rule Compiler for Semgrep

Compiles and validates custom Semgrep SAST rules using the semgrep-core engine. Tests pattern matching against sample codebases and generates rule performance benchmarks with p/ci rulesets.

## Installation

Use the upstream install or setup path that matches your environment:
- $ brew install semgrep
- $ docker run -it -v "${PWD}:/src" semgrep/semgrep semgrep login
- $ docker run -e SEMGREP_APP_TOKEN=<TOKEN> --rm -v "${PWD}:/src" semgrep/semgrep semgrep ci
- $ brew upgrade semgrep

Requirements and caveats from upstream:
- <a href="https://hub.docker.com/r/semgrep/semgrep">
- <img src="https://img.shields.io/docker/pulls/semgrep/semgrep.svg?style=flat-square" alt="Docker Pulls" />
- <img src="https://img.shields.io/docker/pulls/semgrep/semgrep.svg?style=flat-square" alt="Docker Pulls (Old)" />

Basic usage or getting-started notes:
- Semgrep is a fast, open-source, static analysis tool that searches code, finds bugs, and enforces secure guardrails and coding standards. Semgrep [supports 30+ languages](#language-support) and can run in an IDE, as a...
- [From the Semgrep AppSec Platform](#option-1-getting-started-from-the-semgrep-appsec-platform-recommended)
- [From the CLI](#option-2-getting-started-from-the-cli)

- Source: https://github.com/semgrep/semgrep
- Extracted from upstream docs: https://raw.githubusercontent.com/semgrep/semgrep/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/sast-rule-compiler-semgrep/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.