semgrep

Semgrep's own scanning skill: run the industry-standard SAST engine across 30+ languages, and author custom rules for your codebase's patterns.

Score 0(?)VerifiedCodeby SemgrepSourceDocs
Verified for:

Install

$ npx skills add semgrep/skills

Needs the semgrep CLI: brew install semgrep (or python3 -m pip install semgrep). Prefers Semgrep MCP tools when present, otherwise falls back to the CLI.

Best for

Pattern-based vulnerability scanning across a polyglot codebase, and writing custom YAML rules to enforce a house convention the linter cannot express.

Not ideal for

Teams that need a permissive licence. This ships under the Semgrep Rules License v1.0, not MIT or Apache — read it before vendoring the rules into a commercial product.

About this skill

Run Semgrep static analysis scans and create custom detection rules. Use when asked to scan code with Semgrep, find security vulnerabilities, write custom YAML rules, or detect specific bug patterns. Also use when users ask to 'scan for bugs', 'check code quality', 'find vulnerabilities', 'static analysis', 'lint for security', 'audit this code', or want to enforce coding standards — even if they don't mention Semgrep by name. Semgrep is the right tool for pattern-based code scanning across 30+ languages.

SASTSemgrepStatic analysis

Score breakdown

Score breakdown

rubric 1.0
Install count
0/20
Provenance
12.8/15
GitHub stars
6.9/15
Recency
8.5/10
Compatibility
2/10
Documentation depth
10/10
Install ergonomics
10/10
License
1.5/5
Verification freshness
0.5/5

Composite 0–100 score derived from 9 verifiable signals. See the rubric →

Security audits run by a real security firm. CodeQL + Semgrep + audit workflows.

CodeQLSemgrepAudit
Code
Medium3 min

Kubernetes hardening by the book. NetworkPolicies, RBAC, OPA, service mesh.

KubernetesRBACOPA
Code
Medium4 min

Real exploits, no false positives. 96.15% exploit success across 50+ vuln types.

PentestExploitationAction-taking
Code
High15 min

Ranked #3 in Security

Publish the ranking in your README. The badge reads the live score, so it updates when the ranking does.

semgrep — ranked #3 in Security on Top Agent Skills
Markdown
[![semgrep — ranked #3 in Security on Top Agent Skills](https://top-agent-skills.com/badge/semgrep-scan.svg)](https://top-agent-skills.com/skill/semgrep-scan)
HTML
<a href="https://top-agent-skills.com/skill/semgrep-scan"><img src="https://top-agent-skills.com/badge/semgrep-scan.svg" alt="semgrep — ranked #3 in Security on Top Agent Skills"></a>

Head-to-head

semgrep vs the alternatives

Skill FAQ

About semgrep

What is the semgrep skill?

Run Semgrep static analysis scans and create custom detection rules. Use when asked to scan code with Semgrep, find security vulnerabilities, write custom YAML rules, or detect specific bug patterns. Also use when users ask to 'scan for bugs', 'check code quality', 'find vulnerabilities', 'static analysis', 'lint for security', 'audit this code', or want to enforce coding standards — even if they don't mention Semgrep by name. Semgrep is the right tool for pattern-based code scanning across 30+ languages.

Which agents does semgrep work with?

Claude Code.

How do I install semgrep?

Run `npx skills add semgrep/skills` for Claude Code. See the install panel for per-agent commands.

Is semgrep free to use?

semgrep is Semgrep Rules License v1.0. Check the source for licensing terms.

Who maintains semgrep?

semgrep is published by Semgrep and was last updated on 2026-07-28.

What is semgrep best for?

Pattern-based vulnerability scanning across a polyglot codebase, and writing custom YAML rules to enforce a house convention the linter cannot express.