codeql

Run CodeQL static analysis to detect security vulnerabilities across multiple programming languages.

5|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/lidge-jun/cli-jaw-skills --skill codeql-lidge-jun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codeql
Source: https://github.com/lidge-jun/cli-jaw-skills/tree/main/static-analysis/skills/codeql
Command: npx skills add https://github.com/lidge-jun/cli-jaw-skills --skill codeql-lidge-jun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of finding security vulnerabilities in codebases by performing deep static analysis using CodeQL, identifying complex issues that traditional linters might miss.

Core Features & Use Cases

  • Static Analysis: Runs CodeQL to detect security flaws using interprocedural data flow and taint tracking.
  • Multi-language Support: Works with Python, JavaScript/TypeScript, Go, Java/Kotlin, C/C++, C#, Ruby, and Swift.
  • Workflow Automation: Guides users through building CodeQL databases, creating data extensions for custom APIs, and running analysis.
  • Use Case: Secure your application by running a comprehensive security scan that identifies potential SQL injection, cross-site scripting (XSS), and other critical vulnerabilities before deployment.

Quick Start

Scan the current codebase for security vulnerabilities using CodeQL.

Frequently Asked Questions about codeql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find security vulnerabilities using static analysis?

Static analysis finds security vulnerabilities by running CodeQL to perform interprocedural data flow and taint tracking across your codebase. This process automates database creation and query execution to detect complex security flaws like SQL injection and cross-site scripting (XSS).

Does CodeQL work with Python and JavaScript code scanning?

CodeQL code scanning supports Python and JavaScript, alongside Go, Java, Kotlin, C, C++, C#, Ruby, and Swift. It performs deep data flow analysis across these interpreted and compiled languages to identify security threats before deployment.

What is taint tracking and how does it detect SQL injection?

Taint tracking detects SQL injection by tracing how untrusted user input flows through application code to reach sensitive operations. CodeQL uses interprocedural data flow analysis to map this propagation path and identify where unsafe inputs execute vulnerable database queries.

How do I build a CodeQL database for my codebase?

Building a CodeQL database involves running an automated workflow that indexes your source files and extracts relational data for analysis. This Skill guides you through the database creation process and helps generate data extensions for any custom APIs you use.

Can I use CodeQL to secure my application before deployment?

You can secure your application before deployment by running a comprehensive CodeQL scan with configurable rulesets and threat models. This identifies potential security vulnerabilities early, allowing you to remediate critical issues during development rather than after release.

What is the best way to analyze custom APIs for security flaws?

The best way to analyze custom APIs for security flaws is to generate data extensions that teach CodeQL about your proprietary functions. This extends the static analysis to cover custom data flow sources and sinks, ensuring accurate taint tracking across your unique codebase.