/install codeql-skill
CodeQL Security Audit Skill
Three independent modes — identify which one the user needs and run the corresponding script.
| User Intent | Mode | Script |
|---|---|---|
| Scan a repo / create a DB / generate SARIF | [SCAN] | scripts/scan.sh |
| Read SARIF / triage vulns / generate report | [AUDIT] | scripts/audit.py |
| Optimize or debug a .ql query file | [TUNE] | scripts/tune.py |
[SCAN]
bash scripts/scan.sh \x3Crepo_path> [language] [output.sarif]
# language: java | javascript | python | cpp | auto (default)
The script handles: language detection → build command selection → CodeQL DB creation → security suite scan → SARIF output.
For writing custom queries, refer to the relevant language reference:
references/lang-java.md / lang-javascript.md / lang-python.md / lang-cpp.md
[AUDIT]
python3 scripts/audit.py \x3Cresults.sarif> --output exp.md
The script handles: SARIF parsing → attack surface inventory → vuln family grouping → source→sink evidence chain extraction → exp.md output.
Claude's responsibility (what the script cannot do):
- Manually assess
[SUSPICIOUS]entries with no data flow — determine if they are real vulnerabilities - Write POC requests based on business context
- Provide concrete remediation code
[TUNE]
python3 scripts/tune.py \x3Cquery.ql>
The script outputs a tuning checklist covering seven checks: coverage, false positives, performance, and metadata completeness.
Claude's responsibility (what the script cannot do):
- Rewrite source / sink / sanitizer logic based on checklist findings
- Debug queries with no results or unexpected output — refer to
references/debugging.md
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install codeql-skill - After installation, invoke the skill by name or use
/codeql-skill - Provide required inputs per the skill's parameter spec and get structured output
What is codeql-skill?
CodeQL security audit pipeline: static scanning, SARIF triage, and QL query optimization. Trigger on: CodeQL, .ql, .sarif, taint tracking, source→sink, LGTM,... It is an AI Agent Skill for Claude Code / OpenClaw, with 340 downloads so far.
How do I install codeql-skill?
Run "/install codeql-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is codeql-skill free?
Yes, codeql-skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does codeql-skill support?
codeql-skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created codeql-skill?
It is built and maintained by k2-l (@k2-l); the current version is v1.0.0.