gh-security-review

gh-security-review is a command for Claude Code from synaptiai/synapti-marketplace. It costs 13 tokens per session (3,184 once invoked), scanned A, original, Apache-2.0.

A security check for the changes on the current Git branch before they are uploaded or merged.

In plain words
What is it for?
Use it to review a code difference and receive findings with file and line locations, CWE references, severity levels, and suggested fixes.
Why use it?
It helps find exposed secrets, unsafe handling of user input, missing access checks, data leaks, and vulnerable third-party packages before release.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the gh-workflow plugin — 4 skills, 5 commands shipped together

Good fit Use it to review a code difference and receive findings with file and line locations, CWE references, severity levels, and suggested fixes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/synaptiai/synapti-marketplace/gh-security-review
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.

Clone the repo
git clone --depth 1 https://github.com/synaptiai/synapti-marketplace

Made for: Claude Code.

Or install gh-workflow, the plugin that ships this one along with the rest of its 4 skills, 5 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-security-review/github.svg)](https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-security-review)
Your own site
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-security-review"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-security-review/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-security-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-security-review"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-security-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,184 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00013 $0.03184
Opus 5 $0.00006 $0.01592
Sonnet 5 $0.00003 $0.00637
Haiku 4.5 $0.00001 $0.00318

Measured yesterday against content hash 80dbd5cc754a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gh-security-review scanned grade A with 1 finding 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 yesterday.

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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

'(exec|spawn|system|popen|subprocess|child_process|os\.system|eval\()' 2>/dev/null
plugins/gh-workflow/commands/gh-security-review.md · 371 lines

How it starts

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

Security Review

Dedicated security review of current branch changes. Scans for secrets, injection vectors, auth gaps, data exposure, and dependency vulnerabilities.

Tool Usage: This workflow uses the AskUserQuestion tool for severity confirmation and remediation decisions, and TaskCreate/TaskUpdate for tracking findings.

Contract

GOAL: Identify all security-relevant issues in current diff with actionable findings. Testable: every finding has a CWE reference and file:line location.

CONSTRAINTS:

  • Must check for hardcoded secrets in every review
  • Must analyze injection vectors for any user-input handling code
  • All findings must include file:line references
  • Never auto-fix security issues without user approval

FORMAT: P1/P2/P3 findings table with CWE references, file:line locations, and suggested fixes.

FAILURE CONDITIONS (output is unacceptable if any apply):

  • Completed without checking for hardcoded secrets
  • Injection vectors not analyzed for code handling user input
  • Findings lack file:line references
  • CWE references missing from findings
  • Security issues auto-fixed without user approval
  • Review completed without scanning dependency vulnerabilities (when package manager exists)

Phase 1: Scope Detection

Execute in parallel:

  1. Get the diff to review:

    DEFAULT_BRANCH=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')
    git diff origin/$DEFAULT_BRANCH..HEAD --name-only
    
  2. Get full diff content:

    git diff origin/$DEFAULT_BRANCH..HEAD
    
  3. Detect tech stack for targeted scans:

    ls pyproject.toml package.json go.mod Cargo.toml Gemfile 2>/dev/null
    
  4. Check for security-relevant config files:

    ls .env* *.pem *.key *.cert docker-compose*.yml Dockerfile 2>/dev/null
    

Read the full file on GitHub · 371 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. yesterday First seen · 371 lines · 13 tokens per session scan A 80dbd5cc754a

Subscribe to this mod's changes

gh-security-review is a command published in the GitHub repository synaptiai/synapti-marketplace (6 stars, last pushed today), licensed Apache-2.0. It adds 13 tokens to every session and 3,184 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.