Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

semgrep

Skill by waybarrios

Runs Semgrep static analysis across a codebase for security audits. It detects languages, asks for approval of the scan plan, and merges results into a SARIF file. Semgrep Pro can be used for cross-file taint analysis.

  • Score 72
  • 562 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install semgrep

Built from the published package, never by AI.

git clone --depth 1 https://github.com/waybarrios/opencode-power-pack /tmp/opencode-power-pack && mkdir -p ~/.claude/skills && cp -r /tmp/opencode-power-pack/skills/semgrep ~/.claude/skills/semgrep

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install semgrep in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The Semgrep skill runs a Semgrep static analysis scan over a codebase. It detects languages and checks whether Semgrep Pro is available. It then presents the exact rulesets and scan mode for approval before scanning. Scans run per language and category, in parallel when the host supports subagents, and results are merged into a single SARIF file.

Third-party rulesets from Trail of Bits, 0xdea, and Decurity are included for matching languages. Scan modes are run all or important only, the latter filtering to security findings with medium or high confidence and impact. The skill is meant for security audits, first-pass static analysis, and scanning for known bug patterns. It uses --metrics=off on every command to avoid telemetry.

Written from the project's SKILL.md and checked against it.

What it can do

  • Language detectionDetects the languages in a codebase and reports file counts.
  • Semgrep Pro checkChecks whether Semgrep Pro is available for cross-file taint tracking.
  • Scan plan approvalPresents rulesets, target, engine and mode, and waits for explicit approval before scanning.
  • Parallel scanningRuns per-language scans concurrently when the host supports subagent delegation.
  • Third-party rulesetsIncludes Trail of Bits, 0xdea and Decurity rules for matching languages.
  • Important-only modeFilters results to security findings with medium or high confidence and impact.
  • SARIF mergeMerges raw scan output into results/results.sarif in the output directory.
  • Results summaryReports findings with a severity and category breakdown.

What you need

  • Semgrep CLI
  • uv, to run the merge script
  • Semgrep Pro license (optional, for cross-file analysis)

Try asking

  • Run a Semgrep security scan on this repository
  • Scan this codebase with Semgrep in important only mode
  • Use Semgrep to find vulnerabilities and merge the results into SARIF

Good to know

  • OSS mode cannot track data flow across files.
  • Pro mode runs cross-file analysis with -j 1, which is slower per ruleset.
  • The scan plan must be approved by the user before any scan starts.
  • Not for binary analysis or for creating custom Semgrep rules.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/semgrep/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to semgrep

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

semgrep: common questions

Does this skill require Semgrep Pro?

No. Semgrep Pro is optional and adds cross-file taint tracking and inter-procedural analysis. Without it, the scan runs in OSS mode.

Where are the scan results saved?

Raw per-scan output goes to the raw directory, and the merged output is written to results/results.sarif in the output directory.

Does the skill send telemetry to Semgrep?

Every semgrep command includes --metrics=off, which the source says prevents Semgrep from sending telemetry during security audits.

How do I install semgrep?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is semgrep free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is semgrep safe to use?

It scores 72 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to semgrep?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

semgrep Install

Add to stack

Loading.