30-SECOND BRIEF
What it does—and when it fits
Semgrep is Trail of Bits' approval-gated security scan workflow. It detects languages, proposes exact official and third-party rulesets, disables telemetry, runs approved scans in batches, and merges auditable results into SARIF while recording failures and skipped coverage.
INSTALL BY AGENT
Choose your Agent
Paths come from official Agent docs or the universal installer behind skills.sh. Compatibility still follows this Skill's record.
.claude/skills/semgrep/~/.claude/skills/semgrep/Use project scope for team sharing and personal scope across repositories. The installer defaults to project scope; add -g for personal scope.
npx skills add trailofbits/skills --skill semgrep --agent claude-codeClaude Code discovers custom Skill folders automatically at project or personal scope.
View path evidence ↗TYPICAL WORKFLOW
A practical workflow
Plan the scan
Detect languages and choose full or important-only coverage.
Approve exact rulesets
Show target, engine, mode, and every ruleset before execution.
Merge auditable output
Preserve raw scans and report failed, skipped, or empty coverage.
THE TRADEOFFS
Advantages and tradeoffs
Notable strengths
- Telemetry-off commands and an explicit plan reduce accidental source disclosure.
- Combines fast multi-language rules with optional cross-file Pro analysis.
Limitations
- Requires Semgrep and network access for registry or third-party rules; Pro-only cross-file analysis may be unavailable.
- Ruleset coverage is not proof of application security and partial failures can create blind spots.
BEST FIT
Who it is for
Security teams needing a controlled first-pass code scan
Developers producing reviewable SARIF before code review
BEFORE YOU USE IT
Risks to review before use
Third-party rules and source exposure
The workflow may clone external rules and optional engines can communicate with services. Review the plan, keep metrics off, and do not scan sensitive code with unapproved network access.
SECURITY
What the permission profile means
- Verify every command retains --metrics=off and the approved target scope.
- Report failed and skipped rulesets instead of presenting a partial scan as clean.
Not a security certification. External ratings are attributed references. SkillSignal has not independently executed or security-reviewed this Skill.
INSIDE THE PACKAGE
Indexed files
TAGS
Original SkillSignal editorial profile grounded in Trail of Bits commit 9b281335, checked 2026-08-20; not independently executed or security-certified.