codeql

codeql is a skill for Claude Code from ulises-jeremias/agent-toolkit. It costs 52 tokens per session (2,557 once invoked), scanned A, original, MIT.

An operational workflow for CodeQL, a tool that analyzes source code for security problems by tracing how data moves through a program. It covers setup, scans, SARIF findings, fixes, and verification.

In plain words
What is it for?
Use it to configure and run CodeQL, inspect rule and data-flow evidence, triage alerts, apply fixes, and re-run focused checks.
Why use it?
It separates semantic security analysis from broad linting, making vulnerability findings easier to investigate and confirm.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-toolkit-complete plugin — 106 skills shipped together

Good fit Use it to configure and run CodeQL, inspect rule and data-flow evidence, triage alerts, apply fixes, and re-run focused checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ulises-jeremias/agent-toolkit/codeql
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ulises-jeremias/agent-toolkit --skill codeql
Clone the repo
git clone --depth 1 https://github.com/ulises-jeremias/agent-toolkit

Made for: Claude Code.

Or install agent-toolkit-complete, the plugin that ships this one along with the rest of its 106 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codeql

README.md
[![agentmods](https://agentmods.dev/badge/skills/ulises-jeremias/agent-toolkit/codeql/github.svg)](https://agentmods.dev/skills/ulises-jeremias/agent-toolkit/codeql)
Your own site
<a href="https://agentmods.dev/skills/ulises-jeremias/agent-toolkit/codeql"><img src="https://agentmods.dev/badge/skills/ulises-jeremias/agent-toolkit/codeql/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codeql

Your own site · 80×15
<a href="https://agentmods.dev/skills/ulises-jeremias/agent-toolkit/codeql"><img src="https://agentmods.dev/badge/skills/ulises-jeremias/agent-toolkit/codeql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,557 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 89
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.02557
Opus 5.5 $0.00021 $0.01023
Sonnet 5.5 $0.00010 $0.00511
Haiku 4.5 $0.00005 $0.00256

Measured 1mo ago against content hash cad085cedc79, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codeql scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agent-toolkit-complete/.github/skills/codeql/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CodeQL — Operational Security Analysis Workflow

Help coding agents operate CodeQL, not just explain syntax. Covers discovery of existing setup, config review, scan execution/inspection, SARIF triage with evidence discipline, remediation, and targeted re-validation.

Sources: GitHub Docs Code Scanning with CodeQL (2026-08-12, https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql), CodeQL CLI (github/codeql MIT, CLI binaries separate), github/codeql-action (https://github.com/github/codeql-action), and this repo's .github/workflows/codeql.yml (Analyze Python via codeql-action/init@v4 + analyze@v4).

Relationship to MegaLinter:

  • MegaLinter: broad linting/formatting/static quality orchestration (50+ linters, Docker-based, .mega-linter.yml, fast feedback on style, config, IaC).
  • CodeQL: semantic security analysis / dataflow / vulnerability classes (source→sink taint, e.g., python/sql-injection, js/xss, SARIF alerts).
  • Neither replaces the other. Composition: code-quality / secure-delivery → { MegaLinter, CodeQL } without a giant orchestrator.

When to use

  • Repo has or needs CodeQL code scanning (.github/workflows/codeql.yml, codeql-action, SARIF alerts)
  • Need to triage a CodeQL alert (security tab, SARIF file, CI log) with evidence
  • Need to fix a finding and re-validate
  • Workflow failing (timeout, OOM, build failure for compiled languages, config error)
  • Need custom query / query-pack guidance (when to write vs reuse)

Modes (one skill, contextual)

Mode Trigger What it does
SETUP / CONFIG REVIEW No CodeQL workflow, or outdated codeql-action version, or new language to add Inspect .github/workflows/codeql.yml, languages:, queries:, paths:, paths-ignore:, schedule, permissions (security-events: write); recommend init@v4/analyze@v4 (or codeql-action latest), language matrix, build-mode for compiled (manual/autobuild/none)
FINDING TRIAGE SARIF file, alert URL, or Run CodeQL log with failure Parse SARIF (runs[].tool.driver.rules[], runs[].results[]), map ruleId → query help, extract locations[0].physicalLocation, codeFlows (source→sink), message.text, level/category, partialFingerprints; produce evidence table
REMEDIATION Triaged finding with fix needed Propose minimal fix (sanitize, parameterized query, escape), show diff, reference query docs, note confidence/severity, and how to suppress via // lgtm[…] or codeql-config.yml only when justified (ask before suppress)
WORKFLOW TROUBLESHOOTING analyze job failed, no alerts, or out of memory Check codeql-action logs, AUTOBUILD vs manual build, ram: / threads:, debug: true, upload-sarif fallback, category duplication
CUSTOM QUERY Need to detect a repo-specific pattern beyond standard packs Guide when to reuse security-and-quality vs security-extended vs write custom QL (pack codeql/<lang>-queries), use codeql pack create + codeql query run locally, test with codeql test run

Read the full file on GitHub · 107 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 107 lines · 52 tokens per session scan A cad085cedc79

Subscribe to this mod's changes

codeql is a skill published in the GitHub repository ulises-jeremias/agent-toolkit (19 stars, last pushed 2d ago), licensed MIT. It adds 52 tokens to every session and 2,557 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

verify

Fact-check claims encountered during reading — dates, names, events, citations. Use when encountering historical facts or disputed claims.

yha9806/academic-writing-toolkit · 26 tokens

skillnote

Self-hosted skill registry for OpenClaw. Stores procedures your team writes (name, description, body), syncs them to disk before each task, and collects which-helped/which-failed signals from the agent so the registry improves over time.

luna-prompts/skillnote · 54 tokens

platform-setup

Set up, verify, and troubleshoot Katalon True Platform/TestOps MCP connectivity for any AI coding agent. Use when you need to install or configure the Katalon MCP server, connect to a Katalon platform account, verify available Katalon MCP tools, diagnose missing authentication or repository access, confirm…

katalon-labs/true-skills · 110 tokens

vibeflow-quick

Fast-tracks small tasks into a prompt pack in one command. Skips discover, generates an ephemeral spec in memory. Use for well-defined planned tasks that fit in ≤4 files — not for an observed defect with reproducible evidence (that's the vibeflow-hotfix skill).

pe-menezes/vibeflow · 63 tokens

pr-alignment-loop

Iterate a PR to its final form by running two opposing reviewer droids (reviewer-robustness and reviewer-minimalist) in a bounded back-and-forth loop. The main orchestrator synthesizes their feedback, makes edits, runs tests, and stops when both approve, on stagnation, or after 3 rounds. Use when the user asks to…

nikships/skills-registry · 122 tokens

publish-website

Publish a website to Porkbun Secure Static Hosting. Use when the user asks you to build, create, update or put live a website, landing page or placeholder page for a domain they have at Porkbun, mentions Porkbun hosting or static hosting, or asks how to upload site files to Porkbun.

oborseth/Porkbun-MCP · 65 tokens