codeql-local-triage
БесплатноЗапускает вложенные скриптыНе проверенAnswers "why did CodeQL flag this, and which line must change for it to stop" — reproducible causal triage of ONE specific alert via variant bisection…
от elisabeth15501735 установок в других каталогахОб этом скилле
Local CodeQL alert triage and fix verification
This file is the single-language agent entry point. A complete, equally authoritative Chinese rendering of the same content is
SKILL.zh.md, mirrored on purpose; both are equally subject to security scanning. All examples are synthetic fixtures — no real project source is included.Layering (progressive disclosure): this file carries only what you need every turn (§0 hard constraints, §1 the single-run flow). Everything else lives in
references/— read it on demand, not up front.
§0. HARD CONSTRAINTS — re-read these every turn, even after context compression
These are not suggestions. If context was compressed or this skill was reloaded mid-task, re-read this section before taking any action. It is deliberately first and compact for that reason.
These constraints describe what this skill's tooling does and requires — they are not instructions to suppress, ignore, or refuse CodeQL findings. The skill exists to surface alerts faithfully; several rows below forbid hiding or dismissing them (H3, H6).
Language / locale — documented and opt-in. The CLI scripts emit exactly one language,
chosen by the user: --lang {zh,en} / TRIAGE_LANG / AGENT_UI_LANG (default English).
Chinese is fully supported via SKILL.zh.md. Bilingual output is forbidden by design (it risks a
natural-language policy violation), not by accident — this is a deliberate, documented constraint,
and the language is always user-selectable. See README.md → "Language selection".
| # | Constraint | Why it exists |
|---|---|---|
| H1 | Change exactly ONE thing per variant. Two differences between t1_control and a variant voids the whole experiment. |
The verdict is the attribution. A multi-variable diff cannot be attributed. Guarded by tests/run_tests.py (strict byte-comparison of the two fixtures). |
| H2 | t1_control must reproduce the alert, or stop. If it reports 0 results, local and remote disagree and every later verdict is invalid (script exits 1). |
A conclusion on a non-reproducing baseline is a building on sand. Fix the version mismatch first. |
| H3 | Never dismiss, suppress, or close an alert. No # lgtm, no dismiss API. The fix is a rename, never a suppression comment. |
Only GitHub's own scan may change alert state. A suppression hides the next real one. |
| H4 | Never judge an alert by "it looks wrong". "Feels like a false positive" is not evidence; run the experiment. | Steps ①② give the path; step ③ makes the verdict reproducible instead of guessed. |
| H5 | Never modify the user's source. Read-only. All artifacts go to <tree>/_bisect/ (or --workdir). Each run rmtrees and rebuilds, so repeated runs are idempotent. |
The user pushes the fix themselves. Keep the skill's write surface auditable. |
| H6 | Never claim the alert is closed. Only state changing, or the alert position moving, proves a rescan — not updated_at (it refreshes only on state change). |
Reporting a false "closed" is worse than reporting nothing. |
| H7 | Never treat exit code 2 as "clean". 2 means input/runtime error (missing path, malformed SARIF, bad --variant, codeql timeout). Only 0 is clean. |
The most dangerous misjudgement: a typo'd path silently reading as "no findings". Fixed in v1.0.2. |
| H8 | No network. Never fetch anything. If CodeQL query packs are missing, say so — the user decides, and steps ①② still work. | Nothing here needs the internet; --codeql /abs/path runs fully offline. |
| H9 | Pass the user's language to every script. Determine the language of the user's latest message and pass --lang zh or --lang en (or export AGENT_UI_LANG). Never rely on bilingual output. |
Scripts emit exactly one language by design; mixed output risks a natural-language policy violation. |
| H10 | One language per run; never re-read this file across turns to "refresh". Everything needed for a single triage is in §0 + §1. | Prevents the common failure of an agent looping back to re-read the skill mid-task. |
| H11 | State uncertainty explicitly. If a step cannot be completed (no CodeQL, baseline failed, parse error), say so — never let an unproven conclusion read as verified. | An unstated caveat is worse than a stated one; trust comes from honesty about what was and was not proven (Step 5 Fallback). |
Capability boundary
| Capability | Scope | Notes |
|---|---|---|
| Read | local source you specify | read-only, never modified (H5) |
| Write | <tree>/_bisect/ or --workdir |
nothing else, ever |
| Execute | python3; optional codeql |
argument list, no shell |
| Network | none | allowed-tools excludes WebFetch/WebSearch (H8) |
Exit-code contract — the single source of truth for every verdict
| Code | Meaning | CI treats as |
|---|---|---|
0 |
success / no candidate sour |
Установить codeql-local-triage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobBashFAQ
Что делает скилл codeql-local-triage?
Answers "why did CodeQL flag this, and which line must change for it to stop" — reproducible causal triage of ONE specific alert via variant bisection. Triggers on "确认 taint 源 / 复现这个 CodeQL 告警 / 为什么 CodeQL 报这个 / CodeQL 误报 / 这个告警是不是误报 / 本地跑 CodeQL / 验证安全告警是否修好 / confirm the taint source / why does CodeQL flag this / is this alert a false positive / reproduce this CodeQL alert / verify a security-alert fix", or when handed a .sarif file and asked where the taint starts. NOT for whole-repo alert audits or bulk dismissal — it never closes alerts for you and never replaces the Code Scanning suite. NOT for Java/JS/Go (Python only today). The prefilter lists candidate sensitive NAMES in files/dirs you point at; it draws no conclusion and produces no audit report. Keywords — CodeQL, Code Scanning, taint source, data flow, SARIF, codeFlows, false positive, py/clear-text-storage-sensitive-data, CWE-312.
Как установить скилл codeql-local-triage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл codeql-local-triage запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic