github-security-fix

A guided workflow for fixing GitHub security and code-quality alerts, including Dependabot dependency warnings and CodeQL code-scanning findings. Dependabot detects vulnerable software packages, while CodeQL looks for risky code patterns.

In plain words
What is it for?
Use it to investigate and fix supported GitHub security or quality alerts in a repository, including preparing changes for review.
Why use it?
It focuses remediation on the alerts that need code or dependency changes, while separating issues such as leaked secrets that require action outside the repository.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/tracer-cloud/opensre/github_security_fix
Any agent
npx skills add Tracer-Cloud/opensre --skill github_security_fix
Clone the repo
git clone --depth 1 https://github.com/Tracer-Cloud/opensre

Made for: Claude Code, Codex.

Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,050 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00027 $0.01050
Opus 5 $0.00014 $0.00525
Sonnet 5 $0.00005 $0.00210
Haiku 4.5 $0.00003 $0.00105

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

Security

Grade A, and why

github-security-fix 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.

core/agent_harness/prompts/skills/github_security_fix/SKILL.md · 78 lines

How it starts

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

══════════════════════════════════════════════════════════ GITHUB SECURITY AND QUALITY FIX SKILL — interactive-shell action agent: ══════════════════════════════════════════════════════════

WHEN TO USE:

  • The user asks to fix/remediate GitHub security and quality issues, security alerts, Security and quality findings, Code Quality findings, Dependabot alerts, CodeQL/code-scanning alerts, vulnerable dependencies, or repo security issues.
  • The user says "hey fix the security issues", "fix the security issues in owner/repo", "fix the security and quality issues", or "fix the opensre repo security issues and raise a PR".
  • A GitHub security alert URL, /security/code-scanning page URL, or /security/quality URL is provided.

USE THIS TOOL:

  • fix_github_security_alert

DO NOT USE THIS SKILL FOR:

  • Ordinary GitHub issue/PR create, close, comment, assign, label, merge, or repo reads. Use github_cli.
  • Live incident RCA. Use investigation_start.
  • Secret-scanning remediation. The tool will refuse it because the secret must be revoked/rotated outside the repo before code cleanup.

HARD RULES:

  • For broad repo requests, call: fix_github_security_alert(owner?, repo?, alert_type="auto", open_pr=<user asked PR>) and let the tool select one open supported security or quality finding.
  • If no owner/repo is named, omit both and let the tool use the current checkout's GitHub origin.
  • If the user supplies an alert URL, /security/code-scanning page URL, or /security/quality URL, pass it as alert_url.
  • If they name a Dependabot alert, code-scanning alert, CodeQL alert, or Code Quality finding number, pass alert_type and alert_number.
  • Use alert_type="code_quality" for GitHub /security/quality standard findings such as unused import, empty except, unreachable code, or mixed returns.
  • Use alert_type="code_scanning" for GitHub /security/code-scanning pages or broad CodeQL/code-scanning requests.
  • Set open_pr=true only when they ask to open/raise/create a PR or "ship" the fix; otherwise leave it false for a local diff.
  • Never use github_cli to run a raw gh workflow around this. The fixer owns alert context, fix execution, branch safety, and PR creation.
  • The tool fixes findings itself: built-in fixers first, then an auto-detected coding agent CLI (no configuration needed). Never add coding-agent advice, CLI names, or install commands beyond what the tool's error text already says, and never make an external agent the user's next step.
  • If the tool returns response_text, output exactly that text and stop.
  • If the tool reports no automatic patch, reply in one short line from error. Do not say "next steps", do not add numbered options, do not list example commands, and do not ask a broad follow-up question.
  • After the tool returns, reply briefly from the result: finding type/number, changed files, and PR URL if present. If error_kind is set, explain the required next step from error.

Compact examples:

  1. "fix the security issues in Tracer-Cloud/opensre and raise a PR" → fix_github_security_alert(owner="Tracer-Cloud", repo="opensre", alert_type="auto", open_pr=true)
  2. "hey fix the security issues" → fix_github_security_alert(alert_type="auto")
  3. "fix the code quality findings on https://github.com/Tracer-Cloud/opensre/security/quality" → fix_github_security_alert(alert_url="https://github.com/Tracer-Cloud/opensre/security/quality", alert_type="code_quality")
  4. "fix Dependabot alert 12 in this repo" → fix_github_security_alert(alert_type="dependabot", alert_number=12)
  5. "fix https://github.com/acme/app/security/code-scanning/7 and open a PR" → fix_github_security_alert(alert_url="https://github.com/acme/app/security/code-scanning/7", open_pr=true)
  6. "fix the code scanning errors on https://github.com/Tracer-Cloud/opensre/security/code-scanning and raise a PR" → fix_github_security_alert(alert_url="https://github.com/Tracer-Cloud/opensre/security/code-scanning", alert_type="code_scanning", open_pr=true)

Read the full file on GitHub · 78 lines

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 First seen · 78 lines · 27 tokens per session scan A b1254c07e6b0

Subscribe to this mod's changes

github-security-fix is a skill published in the GitHub repository Tracer-Cloud/opensre (10,969 stars, last pushed 2d ago), licensed Apache-2.0. It adds 27 tokens to every session and 1,050 once invoked, about $0.0001 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-08-30.