semgrep

Run Semgrep static analysis to detect vulnerabilities and bugs across codebases.

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/Ramprasad4121/srp --skill semgrep-ramprasad4121
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semgrep
Source: https://github.com/Ramprasad4121/srp/tree/main/skills-repos/trailofbits/plugins/static-analysis/skills/semgrep
Command: npx skills add https://github.com/Ramprasad4121/srp --skill semgrep-ramprasad4121

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the process of scanning codebases for security vulnerabilities and bugs using the Semgrep static analysis tool, ensuring code quality and security.

Core Features & Use Cases

  • Automated Security Audits: Runs comprehensive Semgrep scans to identify potential security flaws.
  • Parallel Scanning: Utilizes subagents to scan multi-language codebases concurrently for faster results.
  • Mode Selection: Supports "Run all" for full coverage or "Important only" for high-confidence security findings.
  • Use Case: When asked to audit a new smart contract for vulnerabilities, this Skill will automatically detect the languages, select appropriate rulesets, and perform a thorough security scan.

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 a multi-language codebase for security vulnerabilities?

Static analysis identifies security vulnerabilities and bugs by scanning source code without executing it. Semgrep performs this across multiple languages, using configurable rulesets to detect potential security flaws automatically.

Can I run a security audit that focuses only on high-confidence findings?

Yes, you can focus on high-confidence findings by selecting the "Important only" scan mode. This restricts the static analysis output to critical security vulnerabilities instead of returning all possible code quality and bug findings.

Do I need Semgrep Pro for cross-file taint analysis?

Semgrep Pro is required for enhanced cross-file taint analysis. The standard Semgrep CLI installation is required for basic scans, but the Pro engine provides advanced cross-file capabilities for deeper vulnerability detection.

What is the best way to audit a new smart contract for vulnerabilities?

The best way to audit a new smart contract for vulnerabilities is to use automated static analysis. This approach automatically detects the contract language, selects appropriate security rulesets, and performs a thorough scan to identify potential flaws.

How does parallel scanning work for multi-language codebases?

Parallel scanning works for multi-language codebases by utilizing subagents to scan different parts of the code concurrently. This processes multiple languages simultaneously, resulting in faster vulnerability detection and code quality analysis.