c/security › command
0votes

CodeQL scan (Trail of Bits)

Skill
submitted by CommandVault editors to c/security · 2 uses

Builds a CodeQL database and runs data-flow and taint analysis to find vulnerabilities.

Guides Claude through a complete CodeQL scan: building the database (including tricky compiled-language builds), choosing query suites, running them and collecting results. It supports Python, JavaScript/TypeScript, Go, Java/Kotlin, C/C++, C#, Ruby and Swift, and can write data extension models for project-specific sources and sinks. Ships workflows, agent prompts and scripts. Requires the CodeQL CLI and jq.

Try asking:

  • "Run CodeQL on this Go service"
  • "Do a taint analysis for SQL injection in this Java app"
  • "Build a CodeQL database and run the security-extended suite"

Source: trailofbits/skills · CC-BY-SA-4.0 · by Trail of Bits

0 commentsreport

Install this skill

Agent Skills are folders with a SKILL.md file. Most AI coding tools load them automatically when a task matches the description. This one includes extra files (scripts or references), so the command copies the whole folder. Tip: .agents/skills/ is read by Codex, Cursor, Copilot, Gemini CLI, Grok and Windsurf.

One command
npx commandvault add codeql-scan-trail-of-bits-35df9f85 --tool claude
Easiest: install as a Claude Code plugin (stays up to date)
/plugin marketplace add trailofbits/skills
/plugin install static-analysis@trailofbits
Install (run in your project folder)
npx degit trailofbits/skills/plugins/static-analysis/skills/codeql .claude/skills/codeql

Use it: Claude uses it automatically when a task matches, or type /codeql.

From Claude Code's docs , checked Oct 17, 2026.

Made by Trail of Bits, CC-BY-SA-4.0 license. Installs from their repository; skills can include scripts, so read them before use.

In the Claude apps, zip the folder and upload it under Settings → Capabilities → Skills.

More from c/security

See all of c/security →
0 comments

Log in to join the discussion.