Karakuri
← All Skills

Selected external · Single Skill

Trail of Bits semgrep — Plan and interpret Semgrep scans

Learn how the Trail of Bits semgrep Skill selects rules, plans scans, and organizes findings without confusing the Skill with the scanner.

Purpose
Software development
Platforms
Claude Code · Codex
Original author / maintainer
Trail of Bits
License
CC-BY-SA-4.0
Added here
Guide updated
Not updated since publication
Source checked
View original project ↗

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

References

Back to the Skills directory