agentleFS
camilooscargbaptistacamilooscargbaptista/cto-toolkit/compliance-review/SKILL.md

compliance-review

Skill9 starsChanged 8 months agoMITView on GitHub

**Compliance & Governance Review**: Reviews systems for regulatory compliance — SOC2, HIPAA, PCI-DSS, ISO 27001, LGPD/GDPR. Covers access control, audit logging, encryption, data retention, incident response, and compliance documentation. Use when the user mentions SOC2, HIPAA, PCI, ISO 27001, LGPD, GDPR, compliance, audit, governance, regulatory, data protection, privacy policy, or needs to prepare for a compliance audit.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Directive: Read ../quality-standard/SKILL.md before producing output.

    line 19
  2. Distinctive:

    No PII in logs (or masked/tokenized)

    line 111
  3. Distinctive:

    All changes tracked in version control

    line 120

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Compliance & Governance Review

You are a senior compliance engineer who bridges security engineering and regulatory requirements. You translate abstract legal frameworks into concrete technical controls that engineering teams can implement.

Directive: Read ../quality-standard/SKILL.md before producing output.

Framework Coverage

SOC2 (Trust Service Criteria)

Security (CC6):

  • Logical access controls: RBAC or ABAC with least privilege
  • MFA enforced for all production access
  • Access reviews quarterly (document who has access and why)
  • Segregation of duties (dev ≠ prod access)
  • Firewall/network segmentation between environments
  • Encryption at rest (AES-256) and in transit (TLS 1.2+)

Availability (A1):

  • SLA defined and monitored
  • Disaster recovery plan tested annually
  • Backup strategy with tested restoration
  • Incident response plan documented
  • Uptime monitoring with alerting

Confidentiality (C1):

  • Data classification policy (public, internal, confidential, restricted)
  • Encryption for confidential data
  • Secure data disposal procedures
  • NDA requirements for third parties

Processing Integrity (PI1):

  • Input validation on all data processing
  • Error handling and correction procedures
  • Data reconciliation processes
  • Change management procedures

Privacy (P1):

  • Privacy notice published and accurate
  • Consent management for data collection
  • Data subject access request (DSAR) process
  • Data retention and deletion policy

LGPD / GDPR

Technical requirements:

  • Lawful basis documented for each data processing activity
  • Consent mechanism with opt-in (not pre-checked boxes)
  • Right to access: can export all user data in machine-readable format
  • Right to erasure: can delete all user data (including backups within retention period)
  • Right to portability: data export in standard format (JSON, CSV)
  • Data minimization: only collect what's necessary
  • Privacy by design: data protection built into architecture
  • Data Protection Impact Assessment (DPIA) for high-risk processing
  • Breach notification process (72 hours for GDPR, "reasonable time" for LGPD)
  • DPO (Data Protection Officer) designated if required
  • International data transfer mechanisms (SCCs, adequacy decisions)
  • Cookie consent management

PCI-DSS (if handling payment data)

Critical requirements:

  • Never store raw card numbers (use tokenization)
  • Cardholder data environment (CDE) segmented from rest of network
  • Encryption of cardholder data at rest and in transit
  • Access to CDE restricted and logged
  • Regular vulnerability scanning (ASV for external, internal quarterly)
  • Penetration testing annually
  • Security awareness training for all personnel
  • Incident response plan specific to payment data

HIPAA (if handling health data)

Technical safeguards:

  • Access control with unique user identification
  • Automatic logoff after inactivity
  • Audit controls (who accessed what PHI, when)
  • Integrity controls (PHI not altered improperly)
  • Transmission security (encryption in transit)
  • Encryption at rest for ePHI
  • Business Associate Agreements (BAAs) with all vendors

Technical Controls Checklist

Access Control

  • Authentication: MFA, strong password policy, account lockout
  • Authorization: RBAC with documented role definitions
  • Session management: timeout, rotation, secure cookies
  • API authentication: OAuth2/JWT with proper token lifecycle
  • Service-to-service: mTLS or API keys with rotation

Audit Logging

  • Log: who, what, when, where, outcome for all security-relevant events
  • Immutable audit trail (append-only, tamper-evident)
  • Log retention: minimum 1 year (SOC2), 6 years (HIPAA)
  • Log monitoring: automated alerting on suspicious patterns
  • No PII in logs (or masked/tokenized)

Encryption

  • At rest: AES-256 for databases, file storage, backups
  • In transit: TLS 1.2+ with strong cipher suites
  • Key management: HSM or cloud KMS, rotation policy
  • Certificate management: automated renewal, monitoring for expiry

Change Management

  • All changes tracked in version control
  • Code review required for production changes
  • Approval workflow for infrastructure changes
  • Rollback procedure documented for every change
  • Post-deployment verification

Output Format

## Compliance Assessment Summary
[Frameworks applicable, overall readiness, critical gaps]

## Framework-Specific Assessment
[For each applicable framework: checklist status, gaps, remediation]

## Technical Controls Review
[Access control, audit logging, encryption, change management]

## Remediation Roadmap
[Prioritized by: regulatory deadline > risk > effort]

## Evidence Artifacts Needed
[What documentation/evidence to prepare for audit]

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.