gh-code-scanning

gh-code-scanning is a skill for Claude Code, Codex from Peter-N91/hve-squad-mcp. It costs 24 tokens per session (2,886 once invoked), scanned A, original, MIT.

A tool that retrieves GitHub code-scanning alerts with the GitHub command-line tool and groups them by analysis tool and rule. Code scanning automatically checks source code for known security problems.

In plain words
What is it for?
It helps triage open security alerts in a repository and see which scanners and rules produce them.
Why use it?
It provides a command-line way to review alerts that are not available through the default tool connection, while checking required setup and access.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps triage open security alerts in a repository and see which scanners and rules produce them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peter-n91/hve-squad-mcp/gh-code-scanning
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 Peter-N91/hve-squad-mcp --skill gh-code-scanning
Clone the repo
git clone --depth 1 https://github.com/Peter-N91/hve-squad-mcp

Made for: Claude Code, 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 gh-code-scanning

README.md
[![agentmods](https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/gh-code-scanning/github.svg)](https://agentmods.dev/skills/peter-n91/hve-squad-mcp/gh-code-scanning)
Your own site
<a href="https://agentmods.dev/skills/peter-n91/hve-squad-mcp/gh-code-scanning"><img src="https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/gh-code-scanning/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 gh-code-scanning

Your own site · 80×15
<a href="https://agentmods.dev/skills/peter-n91/hve-squad-mcp/gh-code-scanning"><img src="https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/gh-code-scanning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,886 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.
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.00024 $0.02886
Opus 5.5 $0.00010 $0.01154
Sonnet 5.5 $0.00005 $0.00577
Haiku 4.5 $0.00002 $0.00289

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

Security

Grade A, and why

gh-code-scanning 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 5d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/get-code-scanning-alerts.sh, scripts/Get-CodeScanningAlerts.ps1, tests/Get-CodeScanningAlerts.Tests.ps1), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

host/upstream-runtime/.github/skills/security/gh-code-scanning/SKILL.md · 249 lines

How it starts

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

GitHub Code Scanning Skill

Overview

GitHub code scanning alerts are produced by static analysis tools such as CodeQL and Scorecard and surfaced in the GitHub Security tab. The GitHub Security tab is not accessible through the default MCP toolset, so this skill provides scripts for all read operations.

Prerequisites

Requirement Details
pwsh PowerShell 7+; install from https://learn.microsoft.com/powershell
gh CLI Installed and on PATH; install from https://cli.github.com
Auth Run gh auth login or set GH_TOKEN; requires security_events scope
Scope security_events for private repos; public_repo for public-only

The repo scope also satisfies security_events. The gh CLI handles authentication automatically; no explicit token passing is needed in commands.

Get-CodeScanningAlerts.ps1 validates both prerequisites at startup and aborts with a targeted error message if either check fails.

Quick Start

Run this command to get a grouped summary of open code scanning alerts, sorted by frequency. This is the recommended first command when triaging a repository's code scanning posture.

pwsh scripts/Get-CodeScanningAlerts.ps1 -Owner "{owner}" -Repo "{repo}" -OutputFormat Json

This returns a JSON array of alert groups sorted by occurrence count, descending. Always use -OutputFormat Json when consuming results programmatically.

Parameters Reference

Parameter Type Required Default Description
-Owner String Yes GitHub organization or user that owns the repository
-Repo String Yes Repository name
-OutputFormat String No Table Output format: agents must always use Json for programmatic consumption; GroupedJson is accepted as an alias for Json
-Branch String No main Branch to scope alert results
-IncludeDismissedStillDetected Switch No Also report dismissed alerts that are still detected on the branch, as groups with Kind set to dismissed-still-detected

Read the full file on GitHub · 249 lines

Files

What ships with it

4 files 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. 5d ago First seen · 249 lines · 24 tokens per session scan A d1a7e81a6296

Subscribe to this mod's changes

gh-code-scanning is a skill published in the GitHub repository Peter-N91/hve-squad-mcp (3 stars, last pushed 2d ago), licensed MIT. It adds 24 tokens to every session and 2,886 once invoked, about $0.0001 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-11-26.

Related

gh-code-scanning compared with skills from other repositories

gh-code-scanning next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gh-code-scanningPeter-N91/hve-squad-mcpSkill32d agoMITA24Claude Code, Codex
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.2ktodayMITA18Claude Code
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5k2d agoMITA65Claude Code
revdiff-planumputun/revdiffSkill9742d agoMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex