{
  "slug": "semgrep",
  "title": "semgrep",
  "summary": "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.",
  "type": null,
  "category": "tech",
  "difficulty": null,
  "est_time": null,
  "agents": [
    "claude",
    "cursor",
    "codex",
    "kiro",
    "copilot",
    "gemini"
  ],
  "requires": [],
  "output": "",
  "steps": [],
  "declared_permissions": [
    "allowed-tools: Bash Read Glob AskUserQuestion TaskCreate TaskList TaskUpdate"
  ],
  "audience_note": null,
  "license": "CC-BY-SA-4.0",
  "license_url": "https://github.com/trailofbits/skills/blob/196a9073ab10d35bacf111f945e02c00b2c6883a/LICENSE",
  "share_alike": {
    "notice": "Share-alike license: adaptations must use the same license.",
    "attribution": {
      "owner": "trailofbits",
      "url": "https://github.com/trailofbits/skills/tree/196a9073ab10d35bacf111f945e02c00b2c6883a/plugins/static-analysis/skills/semgrep"
    },
    "written_by": "TASFT"
  },
  "version": "196a907",
  "updated_at": "2026-10-23",
  "source": {
    "url": "https://github.com/trailofbits/skills/tree/196a9073ab10d35bacf111f945e02c00b2c6883a/plugins/static-analysis/skills/semgrep",
    "commit_sha": "196a9073ab10d35bacf111f945e02c00b2c6883a"
  },
  "trust": {
    "scan_state": "not_scanned",
    "creator_verified": false,
    "last_checked_at": "2026-11-24T00:00:00Z",
    "contains_scripts": true
  },
  "install": {
    "claude": "gh skill install trailofbits/skills plugins/static-analysis/skills/semgrep --agent claude-code --pin 196a9073ab10d35bacf111f945e02c00b2c6883a",
    "cursor": "gh skill install trailofbits/skills plugins/static-analysis/skills/semgrep --agent cursor --pin 196a9073ab10d35bacf111f945e02c00b2c6883a",
    "codex": "gh skill install trailofbits/skills plugins/static-analysis/skills/semgrep --agent codex --pin 196a9073ab10d35bacf111f945e02c00b2c6883a",
    "kiro": "gh skill install trailofbits/skills plugins/static-analysis/skills/semgrep --agent kiro-cli --pin 196a9073ab10d35bacf111f945e02c00b2c6883a",
    "copilot": "gh skill install trailofbits/skills plugins/static-analysis/skills/semgrep --agent github-copilot --pin 196a9073ab10d35bacf111f945e02c00b2c6883a",
    "gemini": "gh skill install trailofbits/skills plugins/static-analysis/skills/semgrep --agent gemini-cli --pin 196a9073ab10d35bacf111f945e02c00b2c6883a"
  },
  "demo": false,
  "url": "https://thereaskillforthat.dev/skill/semgrep"
}