compliance-gap

compliance-gap is a command for Claude Code from HermeticOrmus/LibreSecOps-Claude-Code. It costs 23 tokens per session (1,202 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 for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the compliance-frameworks plugin — 2 skills, 2 commands, 2 agents shipped together

Good fit Use it to prepare for an audit, plan remediation, prioritize security work, or compare requirements across several frameworks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libresecops-claude-code/compliance-gap
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/HermeticOrmus/LibreSecOps-Claude-Code

Made for: Claude Code.

Or install compliance-frameworks, 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 compliance-gap

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/compliance-gap/github.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/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 compliance-gap

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 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,202 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.00023 $0.01202
Opus 5.5 $0.00009 $0.00481
Sonnet 5.5 $0.00005 $0.00240
Haiku 4.5 $0.00002 $0.00120

Measured 1mo ago against content hash ab31bb64e8d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/compliance-frameworks/commands/compliance-gap.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 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 · 139 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 · +23 tokens per session ab31bb64e8d2
  2. 3mo 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 1mo ago), licensed MIT. It adds 23 tokens to every session and 1,202 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-08-31.

Related

compliance-gap compared with commands from other repositories

compliance-gap next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
compliance-gapHermeticOrmus/LibreSecOps-Claude-CodeCommand41mo agoMITA23Claude Code
scopeelementalsouls/Claude-BugHunterCommand28kyesterdayMITA63Claude Code
sicario.controlsdfirs1car1o/sicario-specCommand511d agoMITA0Claude Code
sicario.evidencedfirs1car1o/sicario-specCommand511d agoMITA0Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code
analyzegithub/spec-kitCommand153k3d agoMITA26Claude Code