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.
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/semgrepRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/waybarrios/opencode-power-pack /tmp/opencode-power-pack && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/opencode-power-pack/skills/semgrep ~/.gemini/antigravity-cli/skills/semgrepAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
