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

run-semgrep

Skill by ClearMeasureLabs

Runs the SemGrep static analysis scan on a codebase from native Windows PowerShell and summarizes findings by severity. Built for security audits, vulnerability scans, and checks for SQL injection or hardcoded secrets.

  • Score 52
  • 5 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install run-semgrep

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ClearMeasureLabs/bootcamp-palermo-workorders /tmp/bootcamp-palermo-workorders && mkdir -p ~/.claude/skills && cp -r /tmp/bootcamp-palermo-workorders/.claude/skills/run-semgrep ~/.claude/skills/run-semgrep

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

Step-by-step: install run-semgrep in Claude Code

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

About

This skill runs the SemGrep static analysis tool against a codebase and summarizes the findings by severity, from ERROR to WARNING to INFO. It is driven by a PowerShell script, driver.ps1, which bootstraps SemGrep through uvx and installs uv with winget if it is missing. The default rulesets are p/csharp, p/security-audit and p/secrets.

The skill is for running security scans on a C# repository on native Windows, without WSL, Docker or a Python install. Output lists path, line, rule id, CWE and message for each finding, and raw JSON is saved for detail. The source also documents a known baseline finding and C# parser gaps that can leave some files only partly analyzed.

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

What it can do

  • Full repo scanScans the whole repository with the default rulesets for security and secrets.
  • Scoped scanScans a single directory or file using the ScanPath option.
  • Ruleset overrideReplaces the default rulesets with ones you specify, such as p/csharp.
  • Severity summaryGroups findings into ERROR, WARNING and INFO with path, line, rule id and CWE.
  • Gating exit codeWith FailOnFindings, exits 1 when ERROR-severity findings exist.
  • Parse error listingLists files SemGrep could not fully parse, so gaps in coverage are visible.
  • Raw JSON outputSaves full SemGrep JSON with messages, CWE and OWASP metadata and code snippets.

What you need

  • Windows with PowerShell
  • Network access to fetch rulesets from the SemGrep registry
  • uv, which the driver installs via winget if missing
  • No Python install required

Try asking

  • Run semgrep on this repo and summarize the findings by severity
  • Scan src/UI for security issues using the p/csharp ruleset
  • Check this codebase for SQL injection and hardcoded secrets

Good to know

  • C# 12 primary constructors cause partial parsing errors in many files.
  • SemGrep exits 0 even when findings exist unless FailOnFindings is set.
  • The source says it should not be run through WSL Ubuntu 20.04 because of wheel compatibility.
  • A clean scan does not prove that files with parse errors are free of issues.

Security check

C
  • Downloads a script from the internet and runs itIn .claude/skills/run-semgrep/SKILL.md: irm https://astral.sh/uv/install.ps1 | iex

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

Alternatives to run-semgrep

All alternatives →

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

run-semgrep: common questions

Does this skill need Python installed?

No. The source says SemGrep runs through uvx, which brings its own interpreter, so no system Python is needed.

How long does a full scan take?

The source says about 1 to 2 minutes for the full repo of roughly 820 files, and the first run can take up to 5 minutes while it downloads packages.

Why does the scan report an ERROR finding in SqlExecuter.cs?

The source describes it as a known baseline: test infrastructure that runs caller-supplied SQL by design, flagged under CWE-89.

How do I install run-semgrep?

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

Is run-semgrep free?

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

Is run-semgrep safe to use?

It scores 52 of 100. Grades: maintenance A, licence A, quality C. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to run-semgrep?

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

run-semgrep Install

Add to stack

Loading.