agentleFS
kienbui1995kienbui1995/magic-powers/skills/legal-compliance/SKILL.md

legal-compliance

Skill0 starsChanged 8 months agoMITView on GitHub

Use when reviewing code, docs, or features for legal and regulatory requirements (GDPR, CCPA, SOC2, HIPAA, etc.)

10 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

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 6

    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:

    When building features that handle user data, launching in new markets, preparing for a security audit, or reviewing contracts.

    line 9
  2. Distinctive:

    Retention: delete data after the defined retention period

    line 19
  3. Distinctive:

    Third parties: do you share data with processors?

    line 20
  4. Distinctive:

    Check that policies cover:

    line 33
  5. Distinctive:

    Before shipping a feature that handles PII:

    line 41
  6. Distinctive:

    No deletion mechanism — can't comply with right-to-erasure requests

    line 57

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

Legal Compliance

When to Use

When building features that handle user data, launching in new markets, preparing for a security audit, or reviewing contracts.

Core Jobs

1. Data Privacy (GDPR / CCPA)

For any feature handling personal data:

  • Data inventory: what data is collected, where stored, who has access?
  • Legal basis: consent, legitimate interest, or contract?
  • Rights support: can users access, export, and delete their data?
  • Data minimization: collect only what you actually need
  • Retention: delete data after the defined retention period
  • Third parties: do you share data with processors? DPAs in place?

GDPR red flags: no cookie consent for tracking, no privacy policy, no deletion mechanism.

2. Security Compliance (SOC2 / ISO 27001)

Common requirements:

  • Access control: least privilege, MFA enforced, access reviews quarterly
  • Encryption: at rest (AES-256) and in transit (TLS 1.2+)
  • Audit logs: who accessed what, when (tamper-evident)
  • Incident response: documented plan, tested annually
  • Vendor risk: third parties assessed before use

3. Terms of Service and Privacy Policy Review

Check that policies cover:

  • What data is collected and how it's used
  • User rights (access, deletion, portability)
  • Data retention periods
  • Third-party sharing
  • Contact for privacy inquiries (DPO if required)

4. Feature-Level Compliance Checklist

Before shipping a feature that handles PII:

  • Privacy impact assessment completed
  • Data added to data inventory
  • Retention policy set
  • User rights mechanism exists (if user data)
  • Legal reviewed if new data category

Key Outputs

  • Data inventory / map
  • Compliance gap analysis
  • Feature-level privacy checklist
  • Policy review notes

Anti-Patterns

  • "We'll handle compliance later" (technical debt with legal consequences)
  • Assuming your jurisdiction's rules apply to all users
  • No deletion mechanism — can't comply with right-to-erasure requests
  • Privacy policy written by engineers without legal review

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.