Skill: Semgrep Rule Creator
by Trail of Bits
Trail of Bits' skill for writing production-quality Semgrep rules — pattern design, taint mode for data-flow bugs, and mandatory test-driven validation.
Trail of Bits' CodeQL skill: build databases, run taint-tracking and data-flow queries across eight languages, and model project-specific sources and sinks.
The CodeQL half of Trail of Bits' static-analysis toolkit, written up as an agent skill so a coding assistant can actually drive a SAST scan instead of describing one.
CodeQL is the heavyweight of open static analysis — interprocedural taint tracking and data-flow analysis rather than pattern matching — and its cost is operational complexity: you must build a database, pick query packs, and interpret SARIF. This skill encodes that workflow. It covers database creation for Python, JavaScript and TypeScript, Go, Java and Kotlin, C and C++, C#, Ruby and Swift; two scan modes (a broad security-and-quality plus security-experimental run, and a high-precision "important only" pass); query-pack selection across the standard, Trail of Bits and community packs; and SARIF or CSV output.
The part worth having is data extension models. Out of the box CodeQL only knows the sources and sinks of frameworks it ships models for, so a scan of a codebase with its own request layer or its own database wrapper silently misses the flows that matter. The skill walks through writing project-specific extensions so those paths become visible.
It draws on Trail of Bits' CodeQL Testing Handbook and hands off explicitly: use the companion semgrep skill for fast single-file pattern matching or when a compiled language cannot be built, and the sarif-parsing skill when SARIF already exists and only needs processing. Authored by Axel Mierczuk and Paweł Płatek.
Once installed, ask your agent something like:
Build a CodeQL database for this Go service and run a high-precision security scan, adding data extension models for our internal HTTP router.
The instructions your agent loads, as published by Trail of Bits.
by Trail of Bits
Trail of Bits' skill for writing production-quality Semgrep rules — pattern design, taint mode for data-flow bugs, and mandatory test-driven validation.
CodeQL, Semgrep and SARIF static-analysis toolkit from Trail of Bits: taint tracking, fast pattern scans and merged, deduplicated security findings for coding agents.
by Trail of Bits
Finds secrets left in memory in C, C++ and Rust — including wipes the compiler deleted — and requires IR or assembly evidence before calling one optimized away.
by Trail of Bits
Compiles cryptographic code and reads the emitted assembly for variable-time instructions, then triages which flagged operations actually touch secrets.