---
name: "semgrep"
description: "Runs a Semgrep security scan over a codebase: detects languages, selects rulesets, presents the plan for explicit approval, then runs every approved ruleset through scripts/run-scans.sh, which batches the semgrep processes and writes scans.json, and merges the output to SARIF. Supports two scan modes, \"run all\" for full ruleset coverage and \"important only\" for security findings at medium-to-high confidence and impact. Uses Semgrep Pro for cross-file taint analysis when it is available. Use when asked to scan code for vulnerabilities, run a security audit with Semgrep, find bugs, or perform static analysis. For the same scan without the approval gate, use the /static-analysis:semgrep-scan workflow."
version: "196a907"
license: "CC-BY-SA-4.0"
difficulty: null
est_time: null
agents: ["claude", "cursor", "codex", "kiro", "copilot", "gemini"]
requires: []
declared_permissions: ["allowed-tools: Bash Read Glob AskUserQuestion TaskCreate TaskList TaskUpdate"]
source: "https://github.com/trailofbits/skills/tree/196a9073ab10d35bacf111f945e02c00b2c6883a/plugins/static-analysis/skills/semgrep"
commit: "196a9073ab10d35bacf111f945e02c00b2c6883a"
scan_state: "not_scanned"
demo: false
---

# semgrep


> TASFT note (not part of the skill): Share-alike license: adaptations must use the same license. Attribution: trailofbits, https://github.com/trailofbits/skills/tree/196a9073ab10d35bacf111f945e02c00b2c6883a/plugins/static-analysis/skills/semgrep. License file: https://github.com/trailofbits/skills/blob/196a9073ab10d35bacf111f945e02c00b2c6883a/LICENSE.
