Purpose
This Trail of Bits Skill runs a workflow around the Semgrep CLI; it is not the Semgrep engine. It identifies languages, selects rulesets, proposes a scan plan, and organizes findings for review. The standard workflow asks for plan approval and offers a full scan or a focus on important findings.
When to use it
It suits multilingual repositories and teams that need to know which rules ran, which scans failed, and which findings need human review. It belongs to the static-analysis plugin alongside other analysis Skills. Installing that plugin does not install the required Semgrep CLI.
Example
Imagine a service with a Python API and TypeScript frontend. Ask for rules and scope for both, approve the plan, then examine scans.json and SARIF output. Failed or skipped scans should remain visible rather than count as clean results. This is a hypothetical workflow, not a scan performed by this site.
Limitations
Rules and static analysis cannot cover every business-logic flaw. Semgrep OSS lacks the Pro cross-file dataflow capability; advanced features require the appropriate tooling and license. Third-party rules need network access and judgment about their quality and relevance. Disabling scan metrics in the workflow does not remove all external communication.
Installation
The README’s Codex commands below install static-analysis, not a plugin named semgrep. Prepare the Semgrep CLI separately; the workflow also uses shell scripts and uv for result processing. Claude Code users can follow the README’s marketplace and plugin menu route. Then explicitly request the semgrep Skill.
codex plugin marketplace add trailofbits/skills
codex plugin add static-analysis@trailofbits