Install
openclaw skills install @zw008/compliance-aiopsUse this skill whenever the user needs compliance evidence from the audit trails their governed AIops agents already write — mapping AI-agent infra-ops activity to HIPAA §164.312, PCI-DSS v4.0, SOC 2 TSC, or GDPR controls, producing a change-approval report, a gap analysis, an exceptions/anomaly report, or a hash-chain-sealed, tamper-evident evidence bundle. Always use this skill for "compliance evidence", "HIPAA / PCI-DSS / SOC 2 / GDPR evidence", "audit trail report", "coverage for control X", "which controls are we short on / gap analysis", "who approved this change / change-management evidence", "denied or errored ops / anomaly evidence", "seal / sign an evidence bundle", "prove this bundle wasn't altered", or "detect deleted audit rows". Do NOT use to scan or operate infrastructure and do NOT treat it as a GRC platform — it reads the local audit databases the OTHER AIops-tools write and converts them to evidence; for platform operations use those other AIops-tools. Evidence, not certification. Reads sibling audit trails read-only; no external API, no network, no platform credentials. Fully offline and deterministic.
openclaw skills install @zw008/compliance-aiopsDisclaimer: Community-maintained open-source project, not affiliated with, endorsed by, or sponsored by any framework body or GRC vendor. HIPAA, PCI-DSS, SOC 2, GDPR and OSCAL are referenced descriptively; trademarks belong to their owners. Source at github.com/AIops-tools/Compliance-AIops under the MIT license.
Governed compliance-evidence tooling — 19 MCP tools. It reads the audit
trails your governed AIops agents already write (~/.<tool>-aiops/audit.db, one
shared audit_log schema, discovered via ~/.*-aiops/audit.db) read-only,
and turns that activity into framework-mapped, hash-chain-sealed compliance
evidence. It does not scan infrastructure and does not replace a GRC
platform.
Standalone: the governance harness is bundled (
compliance_aiops.governance). Not a platform wrapper — no external API, no network, no platform credentials. Evidence, not certification; fully offline and deterministic.
| Group | Tools | Count | Read/Write |
|---|---|---|---|
| Audit reads | list_audit_sources, query_audit_events, activity_timeline | 3 | read |
| Framework mapping | list_frameworks, coverage_summary, control_evidence, gap_analysis | 4 | read |
| Assurance reports | approval_report, exceptions_report | 2 | read |
| Integrity | verify_source_chain, verify_bundle, list_bundles, bundle_schedule_hint, oscal_assessment_results | 5 | read |
| Artifacts | generate_evidence_bundle (low), export_bundle (low), sign_bundle (medium) | 3 | write (no external mutation) |
| Undo | undo_list, undo_apply | 2 | undo |
| Framework | Sample controls (strength) |
|---|---|
| HIPAA §164.312 | 164.312(b) Audit controls (strong), 164.312(a)(1) Access control (strong), 164.312(c)(1) Integrity (strong) |
| PCI-DSS v4.0 | 10.2 Audit log content (strong), 10.3 Protect audit logs (strong), 7-8 Least privilege / authn (partial) |
| SOC 2 TSC | CC6.1 Logical access (strong), CC7.2 Monitoring (strong), CC8.1 Change management (strong) |
| GDPR | Art.30 Records of processing (partial), Art.32 Security of processing (strong) |
| ISO/IEC 27001:2022 (Annex A) | A.5.15 Access control (strong), A.5.16 Identity mgmt (strong), A.5.18 Access rights (partial), A.8.2 Privileged access (partial), A.8.15 Logging (strong), A.8.16 Monitoring (strong), A.8.32 Change management (strong) |
| 等保2.0 (DJCP L3) GB/T 22239-2019 三级 | 8.1.5.4 安全审计 (strong), 8.1.4.2 访问控制 (partial), 8.1.5 安全管理中心/集中审计 (strong) |
Audit trails prove operating effectiveness strongly but control design /
configuration only partially — each control is labelled strong or partial,
and gap_analysis surfaces the caveat rather than overclaiming.
uv tool install compliance-aiops
compliance-aiops init # discover sibling ~/.*-aiops/audit.db, set org name, optional signing key
compliance-aiops doctor # which sibling audit DBs are present/readable
coverage_summary)control_evidence)gap_analysis)approval_report)exceptions_report)generate_evidence_bundle,
sign_bundle) and later prove it wasn't altered (verify_bundle)verify_source_chain)Do NOT use to scan or operate infrastructure, or as a GRC platform. It reads the audit DBs the other AIops-tools write; for platform operations use those other AIops-tools.
| If the user wants… | Use |
|---|---|
| Compliance evidence from existing AIops audit trails | compliance-aiops (this skill) |
| To actually operate a platform (VMs, storage, clusters, network, …) | the relevant platform AIops-tools skill |
| OT / industrial edge (Modbus, OPC-UA, PLC) | the industrial-aiops line |
| A full GRC platform / policy management | out of scope — this is evidence, not GRC |
compliance-aiops doctor → confirm the source audit trails are discoverable
and readable before you promise a delivery datecompliance-aiops report sources (MCP: list_audit_sources) → which sibling
audit trails were found, and the event count and date range in each. If a
source you expected is missing, the bundle would be silently incomplete —
fix discovery firstcompliance-aiops report coverage soc2 → confirm CC8.1 is actually covered by
the evidence you have, before generating anythingcompliance-aiops report approvals → the high-risk write operations with
their named approver and rationale — this is the population CC8.1 is asking
aboutcompliance-aiops bundle generate soc2 --since 2026-07-01 --until 2026-10-01 --sign
→ a hash-chain-sealed bundle under ~/.compliance-aiops/bundles/compliance-aiops bundle export <path> --format markdown → the
auditor-facing report (also json / csv)report coverage shows CC8.1 thin, do not generate
anyway and hope — run workflow 2 first and hand the auditor the honest gap
statement. A bundle asserts what the audit trail contains; it cannot
manufacture evidence that was never recorded.compliance-aiops report sources → establish the evidence base and its date
coverage; a gap caused by a missing source is a different problem from a
gap caused by missing activitycompliance-aiops report gaps hipaa (also pci_dss, soc2, gdpr) →
controls with no or weak evidence, each with an honest caveat and a
remediation suggestioncompliance-aiops report exceptions → the operations that ran without an
approver or rationale — usually the fastest-to-fix category of gapcontrol_evidence (MCP) to see the
reproducible query behind the coverage number, so the figure can be
defended rather than merely quotedcompliance-aiops report coverage <framework> again after remediation to
confirm the gap actually closedlist_frameworks does not carry the framework or
control the auditor named, say so — this tool maps to HIPAA / PCI-DSS /
SOC 2 / GDPR and does not silently substitute a near-miss control.compliance-aiops bundle list → locate the bundle and its recorded
chainHeadcompliance-aiops bundle verify <path> → re-derives the hash chain, compares
it to the seal's chainHead, and checks the optional signaturechainHead — regenerate
and compare to prove reproducibilitychainHead out-of-band (ticket, email to the auditor, WORM
store) at delivery time; that out-of-band copy is what makes later
verification meaningfulverify_source_chain (MCP) on each source → returns the source chain head and
flags row-id gaps, a sign that rows were deleted from that audit.dbchainHead mismatch or a row-id gap means the evidence
is not trustworthy — escalate, and treat the source audit.db as the
system of record. Do not re-seal a fresh bundle to make the mismatch go away;
the tool is tamper-evident, not tamper-proof, and its whole value is that
it reports this rather than papering over it.This tool ships no scheduler; it emits a cron line for you to install.
compliance-aiops report sources → confirm the sources you want sealed are
discoverable from the account cron will run as (a common failure: cron sees a
different $HOME)compliance-aiops bundle schedule soc2 --cron "0 2 * * 1" --period 7d --sign
(MCP: bundle_schedule_hint) → returns a cronLine plus the exact
non-interactive command. It writes nothing.cronLine into crontab -e, e.g.
0 2 * * 1 compliance-aiops bundle generate soc2 --period 7d --signCOMPLIANCE_AIOPS_MASTER_PASSWORD in the cron environment so the
signing key unlocks non-interactively — never inline the real password in the
crontabcompliance-aiops bundle list and
bundle verify the newest bundle to confirm the unattended path really worksCOMPLIANCE_AIOPS_HOME
not being set in cron's environment, so sources resolve elsewhere. Verify by
running the emitted command by hand with a clean environment before trusting
the schedule.The skill reads audit trails and writes evidence bundles and records what it does; it does not decide whether producing or signing a bundle is permitted. That is your agent's judgement, or the filesystem permissions of the account it runs as. There is no read-only switch, policy file, or approval gate.
~/.compliance-aiops/audit.db (relocatable via COMPLIANCE_AIOPS_HOME): params, result, status, duration, and the risk tier. The CLI writes the same row the MCP path does.~/.compliance-aiops/bundles/.COMPLIANCE_AUDIT_APPROVED_BY / COMPLIANCE_AUDIT_RATIONALE are optional annotations recorded on the audit row (who/why); they are never required and never block.audit.db remains the system
of record.references/capabilities.md — full tool → inputs → returns referencereferences/cli-reference.md — CLI command referencereferences/setup-guide.md — source discovery, org name, optional signing key, integrity notes