agentleFS
dtsongdtsong/agentic-council/skills/guardian-compliance-review/SKILL.md

compliance-review

Skill0 starsChanged 6 months agoApache-2.0View on GitHub

Use when reviewing proposed features and data flows against GDPR, CCPA, HIPAA, and other privacy regulations. Covers regulatory applicability, PII data flow mapping, consent mechanism assessment, retention policies, and right-to-deletion compliance. Do not use for data sensitivity tiering (use data-classification) or audit logging design (use audit-trail-design).

5 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, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No user-provided values are used in commands or file paths.

    line 36
  2. Distinctive:

    Do backups respect retention limits, or do they create shadow copies?

    line 83
  3. Distinctive:

    Verify that data subject rights are technically implementable:

    line 87

“Common” is measured: kept by at least 6 in 10 of the 4 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 Review

Purpose

Assess proposed features and data flows against applicable privacy regulations, identify compliance gaps, and produce actionable remediation plans.

Scope Constraints

Reads feature proposals, data flow descriptions, consent flows, and regulatory requirements for compliance analysis. Does not implement fixes, modify application code, or access production data stores.

Inputs

  • Feature description or proposal being analyzed
  • Data elements collected, processed, or stored
  • User-facing consent flows and privacy notices
  • Third-party integrations and data sharing arrangements
  • Target jurisdictions and applicable regulations

Input Sanitization

No user-provided values are used in commands or file paths. All inputs are treated as read-only analysis targets.

Procedure

Progress Checklist

  • Step 1: Identify applicable regulations
  • Step 2: Map data flows for PII
  • Step 3: Assess consent mechanisms
  • Step 4: Evaluate data retention policies
  • Step 5: Check right-to-deletion compliance
  • Step 6: Design audit trail requirements

Step 1: Identify Applicable Regulations

Determine which regulatory frameworks apply based on user base, data types, and jurisdictions. Map each regulation to its key obligations:

  • GDPR (EU/EEA): Lawful basis, consent, right to access/erasure/portability, DPIAs, breach notification
  • CCPA/CPRA (California): Right to know, right to delete, right to opt-out, data sale restrictions
  • HIPAA (US health): PHI safeguards, minimum necessary standard, BAAs
  • SOC2: Security, availability, processing integrity, confidentiality, privacy trust principles
  • PCI-DSS: Cardholder data protection, network segmentation, access controls

Step 2: Map Data Flows for PII

Trace every data element through its lifecycle. For each element, document:

  • Collection point: Where and how is it gathered? (form, API, third-party sync)
  • Lawful basis: What legal ground justifies processing? (consent, contract, legitimate interest)
  • Storage location: Where does it live? (database, cache, logs, backups, third-party)
  • Processing purposes: What is it used for? (core feature, analytics, marketing, ML training)
  • Sharing: Who else receives it? (sub-processors, analytics vendors, ad networks)
  • Retention: How long is it kept? (active use, archival, legal hold)

Step 3: Assess Consent Mechanisms

Evaluate whether consent collection meets regulatory standards:

  • Is consent freely given, specific, informed, and unambiguous?
  • Are consent purposes granular (not bundled)?
  • Can users withdraw consent as easily as they gave it?
  • Is consent recorded with timestamp, version, and scope?
  • Are pre-checked boxes or dark patterns avoided?
  • Is there a mechanism for parental consent if minors are in scope?

Step 4: Evaluate Data Retention Policies

For each data category, assess:

  • Is there a defined retention period with documented justification?
  • Does the retention period align with the lawful basis? (consent-based data must be deletable)
  • Are automated deletion/anonymization processes in place?
  • Do backups respect retention limits, or do they create shadow copies?
  • Are legal hold requirements accounted for without overriding general deletion?

Step 5: Check Right-to-Deletion Compliance

Verify that data subject rights are technically implementable:

  • Can all PII for a given user be located across all systems?
  • Does deletion cascade to backups, caches, logs, and third-party systems?
  • Is soft-delete distinguished from hard-delete, and is hard-delete available?
  • Can deletion be completed within regulatory timeframes (e.g., 30 days for GDPR)?
  • Are there documented exceptions (legal obligations, legitimate interest overrides)?

Step 6: Design Audit Trail Requirements

Specify what must be logged for compliance evidence:

  • Consent events (granted, modified, withdrawn) with full context
  • Data access events (who accessed what PII, when, for what purpose)
  • Deletion/anonymization events (request received, processing, confirmation)
  • Breach-related events (detection, assessment, notification timeline)
  • Policy changes (consent text updates, retention policy modifications)

Compaction resilience: If context was lost during a long session, re-read the Inputs section to reconstruct what system is being analyzed, check the Progress Checklist for completed steps, then resume from the earliest incomplete step.

Output Format

Regulatory Applicability Matrix

RegulationApplies?Key ObligationsCurrent Status
GDPRYes/No/Partial[Obligations]Compliant / Gap / Unknown
CCPAYes/No/Partial[Obligations]Compliant / Gap / Unknown
............

Data Flow Map

[User] → [Collection Point] → [Processing Service] → [Data Store]
                                      ↓
                              [Third-Party / Sub-processor]

PII Elements: [list]
Lawful Basis: [basis per element]
Retention: [period per element]

Compliance Gap Analysis

AreaRequirementCurrent StateGapSeverityRemediation
ConsentGranular opt-inBundled consentNon-compliantMandatorySplit consent by purpose
RetentionDefined periodsNo expiry setNon-compliantMandatoryImplement TTL per data category
..................

Severity Key

  • Mandatory: Regulatory requirement — must fix before launch or risk enforcement action
  • Strongly Recommended: Best practice that significantly reduces risk — fix in current sprint
  • Advisory: Improvement that strengthens posture — schedule for next iteration

Handoff

  • Hand off audit logging requirements to audit-trail-design for detailed event catalog and schema design.
  • Hand off data sensitivity tiering to data-classification if PII elements need formal classification and handling requirements.

Quality Checks

  • All applicable regulations are identified with specific articles/sections referenced
  • Every PII element has a documented lawful basis for processing
  • Consent mechanisms meet the "freely given, specific, informed, unambiguous" standard
  • Data retention periods are defined and justified for every data category
  • Right-to-deletion path covers all storage locations including backups and caches
  • Third-party data sharing is documented with DPA/contractual coverage
  • Audit trail requirements cover consent, access, deletion, and breach events
  • Gap analysis includes specific, actionable remediation for every finding

Evolution Notes

<!-- Observations appended after each use -->

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.