30-SECOND BRIEF
What it does—and when it fits
CodeQL is Trail of Bits' interprocedural security-analysis workflow for eight language families. It treats database extraction quality, project-specific data-flow models, explicit query suites, and zero-result investigation as required gates rather than optional cleanup.
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/codeql/~/.claude/skills/codeql/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 codeql --agent claude-codeClaude Code discovers custom Skill folders automatically at project or personal scope.
View path evidence ↗TYPICAL WORKFLOW
A practical workflow
Build a trustworthy database
Try supported build strategies and reject databases that extracted too little code.
Model project data flow
Add custom sources, sinks, and summaries for framework wrappers.
Run explicit suites
Preserve raw SARIF and verify the selected query set is non-empty.
THE TRADEOFFS
Advantages and tradeoffs
Notable strengths
- Quality gates reduce false clean results caused by empty extraction or silently filtered queries.
- Supports deep data-flow analysis across major compiled and interpreted languages.
Limitations
- Requires CodeQL, jq, uv, a buildable target, and potentially long database construction.
- Static analysis findings still require manual exploitability review and can miss runtime-only behavior.
BEST FIT
Who it is for
Application-security engineers scanning substantial repositories
Teams that need reproducible SARIF evidence rather than a quick pattern scan
BEFORE YOU USE IT
Risks to review before use
Build and scan side effects
Database creation executes project build commands and may download query packs. Use an isolated checkout, review build scripts, and keep credentials out of the scan environment.
SECURITY
What the permission profile means
- Run untrusted builds in a disposable sandbox with no production credentials.
- Treat zero findings as inconclusive until extraction and suite checks pass.
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.