codeql-security-analysis

codeql-security-analysis is a skill for Codex from OutlineDriven/outline-driven-development. It costs 41 tokens per session (1,311 once invoked), scanned A, original, Apache-2.0.

A security-analysis workflow built around CodeQL, a tool that searches source code for risky data flows and code patterns.

In plain words
What is it for?
Use it to build or reuse a CodeQL database, define project-specific data sources and destinations, run queries, and produce SARIF results.
Why use it?
It provides repeatable evidence about which parts of a project were analyzed and records findings in SARIF, a standard security-report format.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to build or reuse a CodeQL database, define project-specific data sources and destinations, run queries, and produce SARIF results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/codeql-security-analysis
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 OutlineDriven/outline-driven-development --skill codeql-security-analysis
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/outline-driven-development

Made for: Codex.

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-security-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/codeql-security-analysis/github.svg)](https://agentmods.dev/skills/outlinedriven/outline-driven-development/codeql-security-analysis)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/codeql-security-analysis"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/codeql-security-analysis/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-security-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/codeql-security-analysis"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/codeql-security-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,311 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 pass 7 Sept 2026
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.00041 $0.01311
Opus 5 $0.00020 $0.00656
Sonnet 5 $0.00008 $0.00262
Haiku 4.5 $0.00004 $0.00131

Measured 2d ago against content hash bd2ead9126a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

codeql-security-analysis 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 2d 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.

.devin/skills/codeql-security-analysis/SKILL.md · 54 lines

How it starts

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

CodeQL security analysis

Contract

Field Bound contract
Trigger User asks to build or reuse a CodeQL database, run CodeQL security analysis, perform interprocedural taint/data-flow analysis, or model project-specific sources and sinks.
Authority Reversible local: writes only a dedicated CodeQL output directory, an optional target-project dependency or query-pack install performed with explicit user authority, a built or reused database, and CodeQL execution logs, data extensions, suites, and SARIF results; rollback is deleting the output directory. No remote mutation. Never mutate the target project source.
Side effect Creates a dedicated CodeQL output directory, may install target-project dependencies or query packs with user authority, builds a database, executes CodeQL, and writes logs, extensions, suites, and SARIF results.
Done The selected database resolves and passes the applicable quality gate; the explicit query suite resolves nonzero; analysis completes; raw and final SARIF, ruleset selections, and build evidence are present; skipped coverage and zero findings are explained.

Inputs

Required:

  • Target project root path.
  • Primary language(s) to analyze, or an existing reusable CodeQL database path.

Optional but needed when applicable:

  • Build command for compiled languages (the real build must run under CodeQL extraction).
  • Explicit query suite or ruleset selection.
  • Project-specific source and sink models to author as CodeQL data extensions.
  • Output directory path; defaults to a dedicated directory under the project root.
  • User authority for any target-project dependency or query-pack installation.

Procedure

  1. Create a dedicated output directory (for example <project-root>/.codeql-out); every database, log, data extension, suite, and SARIF artifact lands there. Do not write anywhere else. Done when: the output directory exists and no artifact is written outside it.
  2. Resolve or build the database. If a reusable database path is supplied, resolve it with codeql database resolve and confirm it targets the requested language. Otherwise build with codeql database create using the project's real build command for compiled languages, or source-only --overwrite extraction for interpreted languages. Record the exact build command and its exit status as build evidence in the output directory. Done when: the database resolves or builds and build evidence is recorded.
  3. Run the applicable quality gate. Inspect extraction warnings and source-file coverage with codeql database resolve and source-location inspection. If the database fails the gate (missing source files, zero extracted files, build errors, or unresolved language), stop and report the failure class; do not proceed to analysis. Done when: the database passes the quality gate or the failure class is reported and the skill stops.
  4. Select an explicit query suite or ruleset and resolve it with codeql resolve queries --queries=<suite>. Confirm the resolved query count is nonzero. If it resolves to zero queries, stop and report the suite path. Done when: the query suite resolves nonzero or the zero-query suite path is reported.
  5. If the user asks to model project-specific sources and sinks, author CodeQL data-extension YAML under the output directory and include it via --search-path or --additional-packs. Validate each extension against the CodeQL data-extension schema before use; reject invalid extensions and stop. Done when: all data extensions validate or an invalid extension is rejected.
  6. Run analysis with codeql database analyze <database> <suite> --format=sarif-latest --output=<output>/raw.sarif, passing any data-extension search path. Capture stdout and stderr as an analysis log in the output directory. Tune --threads to available cores and memory; prefer --threads=0 only when memory is sufficient. Done when: analysis completes and raw SARIF plus the analysis log are in the output directory.
  7. Post-process raw SARIF: de-duplicate results, apply severity filtering, attach the ruleset-selection metadata, and write final SARIF to the output directory. Record which ruleset and query suite were selected. Done when: final SARIF is written with ruleset metadata.
  8. Explain coverage. If findings are zero, or if any language or path was skipped (for example a language that was not built), state explicitly why. Never report a clean result without stating the coverage basis. Done when: zero findings or skipped coverage is explained with the coverage basis.
  9. Rollback path: to undo all side effects, delete the output directory. The target project source is never modified. Done when: the rollback path is stated and the target source is confirmed unmodified.

Read the full file on GitHub · 54 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. 2d ago Changed · -18 tokens per session bd2ead9126a4
  2. 5d ago First seen · 54 lines · 59 tokens per session scan A b277f45bbfab

Subscribe to this mod's changes

codeql-security-analysis is a skill published in the GitHub repository OutlineDriven/outline-driven-development (52 stars, last pushed 3d ago), licensed Apache-2.0. It adds 41 tokens to every session and 1,311 once invoked, about $0.0002 per session on Opus 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-09-03.