compliance-gap

compliance-gap is a command for coding agents from HermeticOrmus/LibreSecOps-Claude-Code. It costs 0 tokens per session (1,161 once invoked), scanned A, original, MIT.

A command for finding differences between current security practices and the requirements of a compliance framework, such as SOC 2 or ISO 27001.

In plain words
What is it for?
Use it to prepare for an audit, plan remediation, prioritize security work, or compare requirements across several frameworks.
Why use it?
It turns a broad compliance problem into specific missing, incomplete, or ineffective controls and helps decide what to fix first.

Command

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 commands/hermeticormus/libresecops-claude-code/compliance-gap
Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreSecOps-Claude-Code

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 compliance-gap

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/compliance-gap.svg)](https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/compliance-gap)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/compliance-gap"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/compliance-gap.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,161 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.00000 $0.01161
Opus 5 $0.00000 $0.00580
Sonnet 5 $0.00000 $0.00232
Haiku 4.5 $0.00000 $0.00116

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

Security

Grade A, and why

compliance-gap 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 4d 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/compliance-frameworks/commands/compliance-gap.md · 134 lines

How it starts

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

/compliance-gap

Identify specific compliance gaps between current state and framework requirements, with prioritized remediation roadmap.

Trigger

Use this command when:

  • A compliance assessment has identified gaps that need remediation planning
  • Preparing a remediation project plan before an upcoming audit
  • Prioritizing security investments based on compliance requirements
  • A customer or partner requires specific compliance certifications and you need to identify the work required

Input

Required:

  • Framework: Target compliance framework
  • Current state: Description of existing security controls, policies, and practices

Optional:

  • Audit date: When the audit is scheduled (drives priority and timeline)
  • Budget/resources: Available budget and team capacity (drives feasibility)
  • Previous assessment: Results of prior compliance assessment for delta tracking
  • Multi-framework: Additional frameworks to map gaps against (enables efficient multi-framework remediation)

Process

Step 1: Gap Identification

For each framework requirement, determine the gap type:

Gap Type Description Example
Missing Control No control exists to address the requirement No vulnerability scanning program
Incomplete Control Control exists but doesn't fully meet the requirement Access reviews happen but not quarterly
Undocumented Control Control exists and works but has no documentation Backup process works but no policy exists
Missing Evidence Control exists and is documented but evidence isn't collected MFA is enforced but no enrollment reports are generated
Stale Evidence Evidence exists but is outdated Last penetration test was 18 months ago

Step 2: Risk Assessment per Gap

For each gap, assess:

  • Audit risk: Likelihood the auditor will test this control and the consequence of failure (exception, qualified opinion, material weakness)
  • Security risk: Does this gap represent an actual security weakness or just a documentation gap?
  • Business risk: Could this gap affect customer trust, contracts, or regulatory standing?

Read the full file on GitHub · 134 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. 4d ago First seen · 134 lines · 0 tokens per session scan A 942e1436cdc9

Subscribe to this mod's changes

compliance-gap is a command published in the GitHub repository HermeticOrmus/LibreSecOps-Claude-Code (4 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,161 tokens. 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.