compliance-check

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

A command for assessing a system against a named security or privacy framework and producing a report of the differences.

In plain words
What is it for?
Use it to assess readiness for SOC 2, GDPR, PCI DSS, HIPAA, ISO 27001, or NIST requirements and map existing security measures to them.
Why use it?
It clarifies which systems, data, processes, and controls are covered before showing what needs attention for an audit or customer review.

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-check
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-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/compliance-check.svg)](https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/compliance-check)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/compliance-check"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/compliance-check.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 989 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.00989
Opus 5 $0.00000 $0.00495
Sonnet 5 $0.00000 $0.00198
Haiku 4.5 $0.00000 $0.00099

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

Security

Grade A, and why

compliance-check 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 5d 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-check.md · 127 lines

How it starts

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

/compliance-check

Assess a system against a specified compliance framework and produce a gap analysis report.

Trigger

Use this command when:

  • Preparing for a compliance audit (SOC 2, ISO 27001, PCI DSS, etc.)
  • Evaluating compliance posture of a new or existing system
  • Determining which controls need to be implemented for a specific framework
  • Mapping existing security controls to framework requirements
  • Assessing readiness for a customer security questionnaire

Input

Required:

  • Framework: soc2, gdpr, pci-dss, hipaa, iso27001, nist-800-53, nist-csf

Optional:

  • Scope: Description of in-scope systems, data types, and processes
  • Profile/Level: For frameworks with tiers (NIST 800-53: Low/Moderate/High, ISO 27001: specific Annex A controls)
  • Existing controls: Description of security measures already in place
  • Exclusions: Controls known to be not applicable with justification

Process

Step 1: Scope Definition

  1. Identify the systems, data, and processes in scope for the framework
  2. Determine the applicable profile or tier level
  3. For PCI DSS: determine the cardholder data environment (CDE) boundaries
  4. For GDPR: identify personal data processing activities and legal bases
  5. For HIPAA: identify covered entities, business associates, and ePHI flows
  6. Document scope boundaries and exclusions with justifications

Step 2: Control Inventory

Based on the framework, enumerate all applicable controls:

SOC 2 (Trust Service Criteria):

  • CC1: Control Environment (7 criteria)
  • CC2: Communication and Information (3 criteria)
  • CC3: Risk Assessment (4 criteria)
  • CC4: Monitoring Activities (2 criteria)
  • CC5: Control Activities (3 criteria)
  • CC6: Logical and Physical Access Controls (8 criteria)
  • CC7: System Operations (5 criteria)
  • CC8: Change Management (1 criterion)
  • CC9: Risk Mitigation (2 criteria)
  • Plus criteria for selected additional categories (Availability, Processing Integrity, Confidentiality, Privacy)

Read the full file on GitHub · 127 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. 5d ago First seen · 127 lines · 0 tokens per session scan A 642603b09a72

Subscribe to this mod's changes

compliance-check 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 989 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.