Semgrep

Runs static code analysis with customizable rulesets to detect security vulnerabilities across multiple languages.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/zzw4257/security-skills --skill semgrep-zzw4257
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Semgrep
Source: https://github.com/zzw4257/security-skills/tree/main/skills/semgrep
Command: npx skills add https://github.com/zzw4257/security-skills --skill semgrep-zzw4257

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for efficient and customizable static code analysis to identify security vulnerabilities and enforce coding standards early in the development lifecycle.

Core Features & Use Cases

  • Customizable Rules: Define and use custom rules to detect specific security flaws or anti-patterns.
  • Broad Language Support: Analyzes code across multiple programming languages.
  • Use Case: Integrate Semgrep into your CI/CD pipeline to automatically scan code changes for common vulnerabilities like SQL injection or insecure deserialization before they reach production.

Quick Start

Use the semgrep skill to scan the current directory for security vulnerabilities.

Frequently Asked Questions about Semgrep

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

FAQPage Schema
How do I scan my code for security vulnerabilities using static analysis?

Static analysis scans your code to detect security vulnerabilities by applying customizable rulesets across multiple languages. You can run it directly in your current directory to identify flaws like SQL injection or insecure deserialization early in the development lifecycle.

Can I enforce secure coding standards automatically in a CI/CD pipeline?

Yes, you can enforce secure coding standards in a CI/CD pipeline by integrating static analysis to automatically scan code changes. This triggers targeted security checks and policy enforcement before vulnerable code reaches production.

How do I write customizable rules to detect specific security flaws or anti-patterns?

You can define and apply customizable rulesets to detect specific security flaws or anti-patterns in your codebase. This allows for targeted static code analysis and policy enforcement tailored to your project's unique security requirements.

Do I need to install any binary to perform static code analysis for vulnerabilities?

Yes, you need the semgrep binary installed and accessible in your system's PATH to perform static code analysis. This requirement allows the underlying engine to execute customizable rulesets and detect vulnerabilities across multiple languages.

What types of vulnerabilities can static analysis detect in my source code?

Static analysis detects common security vulnerabilities like SQL injection and insecure deserialization, alongside enforcing broader coding standards. It identifies these issues by applying customizable rulesets to your source code across multiple programming languages.