security-gates

security-gates is a skill for Claude Code from HermeticOrmus/LibreSecOps-Claude-Code. It costs 55 tokens per session (2,194 once invoked), scanned A, original, MIT.

A security gate is a checkpoint in a CI/CD pipeline—the automated process that builds, tests, and releases software—where security findings decide whether work proceeds, warns, or is only recorded.

In plain words
What is it for?
Use it to define blocking, warning, and tracking rules for security findings in pull requests, builds, or deployments.
Why use it?
Security scanners can produce findings without saying what should block a release. Gates turn those findings into consistent decisions based on severity or other thresholds.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/diff-sarif.py \.

Part of the devsecops-pipelines plugin — 2 skills, 2 commands, 2 agents shipped together

Good fit Use it to define blocking, warning, and tracking rules for security findings in pull requests, builds, or deployments.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreSecOps-Claude-Code
agentmods
npx agentmods add skills/hermeticormus/libresecops-claude-code/security-gates

Made for: Claude Code.

Or install devsecops-pipelines, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 2 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/hermeticormus/libresecops-claude-code/security-gates/github.svg)](https://agentmods.dev/skills/hermeticormus/libresecops-claude-code/security-gates)
Your own site
<a href="https://agentmods.dev/skills/hermeticormus/libresecops-claude-code/security-gates"><img src="https://agentmods.dev/badge/skills/hermeticormus/libresecops-claude-code/security-gates/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 security-gates

Your own site · 80×15
<a href="https://agentmods.dev/skills/hermeticormus/libresecops-claude-code/security-gates"><img src="https://agentmods.dev/badge/skills/hermeticormus/libresecops-claude-code/security-gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,194 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.00055 $0.02194
Opus 5.5 $0.00022 $0.00878
Sonnet 5.5 $0.00011 $0.00439
Haiku 4.5 $0.00006 $0.00219

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

Security

Grade A, and why

security-gates 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 1mo 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.

plugins/devsecops-pipelines/skills/security-gates/SKILL.md · 253 lines

How it starts

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

Security Gates

Quality gate definitions, threshold configuration, and the decision framework for when to break the build versus when to warn.

Knowledge Base

What is a Security Gate

A security gate is a decision point in a CI/CD pipeline where security findings are evaluated against defined thresholds to determine if the build should proceed, warn, or fail. Gates are the enforcement mechanism that turns security scanning from informational noise into actionable workflow.

Gate Types

Hard Gate (Block): The pipeline fails. The PR cannot be merged, the artifact cannot be deployed. Reserved for findings that represent unacceptable risk.

Soft Gate (Warn): The pipeline succeeds, but findings are surfaced prominently -- in PR comments, dashboard alerts, or Slack notifications. Used for findings that need attention but should not block velocity.

Log Gate (Track): Findings are recorded for metrics and trending but not surfaced to developers in real time. Used for low-severity findings and baseline tracking.

The Gate Paradox

Too strict: Developers route around security (force-merge, disable checks, move to unprotected branches). Too loose: Vulnerabilities ship to production. The goal is a gate configuration that developers perceive as fair, consistent, and actionable.

Patterns

Pattern 1: Severity-Based Gate Matrix

The most common approach. Gate decisions based on finding severity.

# gate-config.yml -- conceptual, implemented per-tool
gates:
  sast:
    block:
      - severity: critical
        confidence: high
      - severity: high
        confidence: high
        new_only: true  # Only block on NEW high findings
    warn:
      - severity: high
        confidence: medium
      - severity: medium
    log:
      - severity: low
      - severity: info

  sca:
    block:
      - severity: critical
        fix_available: true    # Only block if there's a fix
      - cisa_kev: true         # Block any actively exploited vuln
    warn:
      - severity: critical
        fix_available: false   # No fix yet -- track closely
      - severity: high
    log:
      - severity: medium
      - severity: low

  secrets:
    block:
      - any: true              # Any secret detection blocks
    exceptions:
      - pattern: "example_*"   # Test/example values allowed
      - path: "test/**"        # Test fixtures may contain fake secrets

  container:
    block:
      - severity: critical
        fix_available: true
    warn:
      - severity: critical
        fix_available: false
      - severity: high
    log:
      - severity: medium
      - severity: low

  iac:
    block:
      - severity: critical     # Public buckets, unencrypted data stores
    warn:
      - severity: high
    log:
      - severity: medium
      - severity: low

Read the full file on GitHub · 253 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. 1mo ago Changed · +5 lines · +55 tokens per session cb8f392e0f4f
  2. 3mo ago First seen · 248 lines · 0 tokens per session scan A c72f677f7719

Subscribe to this mod's changes

security-gates is a skill published in the GitHub repository HermeticOrmus/LibreSecOps-Claude-Code (4 stars, last pushed 1mo ago), licensed MIT. It adds 55 tokens to every session and 2,194 once invoked, about $0.0002 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-08-31.

Related

security-gates compared with skills from other repositories

security-gates next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-gatesHermeticOrmus/LibreSecOps-Claude-CodeSkill41mo agoMITA55Claude Code
implementing-devsecops-security-scanningxalgorix/xalgorixSkill1.5ktodayApache-2.0A109Claude Code, Codex
building-devsecops-pipeline-with-gitlab-cixalgorix/xalgorixSkill1.5ktodayApache-2.0A43Claude Code, Codex
integrating-dast-with-owasp-zap-in-pipelinexalgorix/xalgorixSkill1.5ktodayApache-2.0A76Claude Code, Codex
integrating-dast-with-owasp-zap-in-pipelineadriannoes/awesome-agentic-aiSkill1082d agoMITA76Claude Code, Codex
building-devsecops-pipeline-with-gitlab-ciadriannoes/awesome-agentic-aiSkill1082d agoMITA43Claude Code, Codex
building-devsecops-pipeline-with-gitlab-ci26zl/cybersec-toolkitSkill1134d agoMITA101Claude Code