codeql

Run CodeQL static analysis to detect security vulnerabilities and data flow issues.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/monmacllcapp/skill-forks --skill codeql-monmacllcapp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: codeql
Source: https://github.com/monmacllcapp/skill-forks/tree/main/skills/security/plugins/static-analysis/skills/codeql
Command: npx skills add https://github.com/monmacllcapp/skill-forks --skill codeql-monmacllcapp

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the detection of security vulnerabilities and complex bugs in codebases by performing deep static analysis, going beyond simple pattern matching to understand data flow and interprocedural logic.

Core Features & Use Cases

  • Vulnerability Detection: Identifies security flaws like SQL injection, cross-site scripting, and more using CodeQL's powerful query engine.
  • Data Flow & Taint Tracking: Traces the flow of untrusted data through the codebase to pinpoint potential security risks.
  • Custom Querying: Enables the creation and execution of custom CodeQL queries for specific security needs or domain-specific checks.
  • CI/CD Integration: Provides guidance on integrating CodeQL analysis into automated build and deployment pipelines.
  • Use Case: Analyze a new feature branch for potential security vulnerabilities before merging it into the main codebase, ensuring a more secure release.

Quick Start

Use the codeql skill to create a database for the current project's Python code and then run the extended security analysis queries.

Frequently Asked Questions about codeql

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

FAQPage Schema
How do I detect security vulnerabilities using static analysis in my CI/CD pipeline?▼

Data flow analysis traces how untrusted data moves through your codebase to pinpoint security risks. This skill uses CodeQL to perform interprocedural taint tracking, going beyond simple pattern matching to understand complex logic and identify vulnerabilities.

What do I need to run CodeQL analysis on a compiled language project?▼

To run CodeQL static analysis on compiled languages, you need the CodeQL CLI installed and your project must be buildable. The analysis requires a successful build to create the database needed for deep code inspection.

Can I write custom queries to find specific security issues in my code?▼

Yes, you can create and execute custom CodeQL queries to perform domain-specific security checks. This allows you to target specific vulnerabilities or logic flaws beyond standard static analysis rules.

When should I use taint tracking for vulnerability detection instead of simple pattern matching?▼

Use taint tracking when you need to trace untrusted data flow across interprocedural boundaries to find complex security vulnerabilities. Unlike simple pattern matching, CodeQL data flow analysis uncovers deep risks by understanding how data moves through your codebase.

Does static analysis work on both compiled and interpreted programming languages?▼

Yes, CodeQL static analysis supports both compiled and interpreted languages. For compiled languages, the project must be buildable to generate the analysis database, while interpreted languages like Python can be analyzed directly.