update-codeql-query-dataflow-cpp

Migrate C/C++ CodeQL queries from DataFlow v1 to v2 API.

30|3|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/advanced-security/codeql-development-mcp-server --skill update-codeql-query-dataflow-cpp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-codeql-query-dataflow-cpp
Source: https://github.com/advanced-security/codeql-development-mcp-server/tree/main/.github/skills/update-codeql-query-dataflow-cpp
Command: npx skills add https://github.com/advanced-security/codeql-development-mcp-server --skill update-codeql-query-dataflow-cpp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides teams through migrating CodeQL queries for C/C++ from the legacy v1 language-specific dataflow library to the new v2 shared, modular dataflow API, enabling safer, more maintainable queries.

Core Features & Use Cases

  • Migrate query configurations from DataFlow::Configuration to DataFlow::ConfigSig modules for C/C++.
  • Instantiate flow using modules (e.g., MyFlow) and adapt path queries to the v2 API.
  • Validate equivalence with test-driven development to ensure identical results before and after migration.

Quick Start

Provide your legacy v1 C/C++ dataflow query and associated tests to begin the v2 migration workflow.

Frequently Asked Questions about update-codeql-query-dataflow-cpp

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

FAQPage Schema
How do I migrate C++ CodeQL dataflow queries to the v2 API?

Migrating C++ CodeQL dataflow queries involves transitioning from DataFlow::Configuration to DataFlow::ConfigSig modules, instantiating flow using modules like MyFlow, and adapting path queries to the v2 API syntax.

What is the difference between v1 and v2 CodeQL dataflow API for C/C++?

The v1 CodeQL dataflow API uses a legacy language-specific library, whereas the v2 API introduces a shared, modular architecture using DataFlow::ConfigSig and module-based flow for safer, more maintainable C/C++ queries.

How do I validate CodeQL query results after migrating to the v2 dataflow API?

Validate CodeQL query migration results using test-driven development to ensure identical test outcomes before and after updating to the v2 dataflow API, guaranteeing query equivalence.

Does the v2 CodeQL dataflow API support TaintTracking for C/C++?

Yes, the v2 CodeQL dataflow API satisfies integration patterns with TaintTracking for C/C++, allowing modular configurations to incorporate taint-tracking alongside MyFlow::PathNode and flowPath queries.

What do I need to provide to start migrating my CodeQL dataflow queries?

To start migrating CodeQL dataflow queries, you need to provide your legacy v1 C/C++ dataflow query and its associated tests to begin the v2 migration workflow and verify equivalence.

Why should I update my C++ CodeQL queries to use modular dataflow?

Updating C++ CodeQL queries to the modular v2 dataflow API enables safer, more maintainable queries by replacing the legacy v1 language-specific library with a shared, modular architecture.