Skip to content
OpenSmartRoute
Skillv1.0.0

compliance-testing

Regulatory compliance testing for GDPR, CCPA, HIPAA, SOC2, PCI-DSS and industry-specific regulations. Use when ensuring legal compliance, preparing for audits, or handling sensitive data.

by David-Li0406(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from David-Li0406/meta-skill-evloving (skill-flow/data/skills-refined-36k/skillsmp/compliance-testing/SKILL.md). Install upstream with npx skills add David-Li0406/meta-skill-evloving --skill compliance-testing. Copyright stays with the author.

Compliance Testing

<default_to_action> When validating regulatory compliance:

  1. IDENTIFY applicable regulations (GDPR, HIPAA, PCI-DSS, etc.)
  2. MAP requirements to testable controls
  3. TEST data rights (access, erasure, portability)
  4. VERIFY encryption and access logging
  5. GENERATE audit-ready reports with evidence

Quick Compliance Checklist:

  • Data subject rights work (access, delete, export)
  • PII is encrypted at rest and in transit
  • Access to sensitive data is logged
  • Consent is tracked with timestamps
  • Payment card data not stored (only tokenized)

Critical Success Factors:

  • Non-compliance = €20M or 4% revenue (GDPR)
  • Audit trail everything
  • Test continuously, not just before audits </default_to_action>

Quick Reference Card

When to Use

  • Legal compliance requirements
  • Before security audits
  • Handling PII/PHI/PCI data
  • Entering new markets (EU, CA, healthcare)

Major Regulations

Regulation Scope Key Focus
GDPR EU data Privacy rights, consent
CCPA California Consumer data rights
HIPAA Healthcare PHI protection
PCI-DSS Payments Card data security
SOC2 SaaS Security controls

Penalties

Regulation Maximum Fine
GDPR €20M or 4% revenue
HIPAA $1.5M per violation
PCI-DSS $100k/month
CCPA $7,500 per violation

GDPR Compliance Testing

// Test data subject rights
test('user can request their data', async () => {
  const response = await api.post('/data-export', { userId });

  expect(response.status).toBe(200);
  expect(response.data.downloadUrl).toBeDefined();

  const data = await downloadFile(response.data.downloadUrl);
  expect(data).toHaveProperty('profile');
  expect(data).toHaveProperty('orders');
});

test('user can delete their account', async () => {
  await api.delete(`/users/${userId}`);

  // All personal data deleted
  expect(await db.users.findOne({ id: userId })).toBeNull();
  expect(await db.orders.find({ userId })).toHaveLength(0);

  // Audit log retained (legal requirement)
  expect(await db.auditLogs.find({ userId })).toBeDefined();
});

test('consent is tracked', async () => {
  await api.post('/consent', {
    userId, type: 'marketing', granted: true,
    timestamp: new Date(), ipAddress: '192.168.1.1'
  });

  const consent = await db.consents.findOne({ userId, type: 'marketing' });
  expect(consent.timestamp).toBeDefined();
  expect(consent.ipAddress).toBeDefined();
});

HIPAA Compliance Testing

// Test PHI security
test('PHI is encrypted at rest', async () => {
  const patient = await db.patients.create({
    ssn: '123-45-6789',
    medicalHistory: 'Diabetes'
  });

  const raw = await db.raw('SELECT * FROM patients WHERE id = ?', patient.id);
  expect(raw.ssn).not.toBe('123-45-6789'); // Should be encrypted
});

test('access to PHI is logged', async () => {
  await api.get('/patients/123', {
    headers: { 'User-Id': 'doctor456' }
  });

  const auditLog = await db.auditLogs.findOne({
    resourceType: 'patient',
    resourceId: '123',
    userId: 'doctor456'
  });

  expect(auditLog.action).toBe('read');
  expect(auditLog.timestamp).toBeDefined();
});

PCI-DSS Compliance Testing

// Test payment card handling
test('credit card numbers not stored', async () => {
  await api.post('/payment', {
    cardNumber: '4242424242424242',
    expiry: '12/25', cvv: '123'
  });

  const payment = await db.payments.findOne({ /* ... */ });
  expect(payment.cardNumber).toBeUndefined();
  expect(payment.last4).toBe('4242'); // Only last 4
  expect(payment.tokenId).toBeDefined(); // Token from gateway
});

test('CVV never stored', async () => {
  const payments = await db.raw('SELECT * FROM payments');
  const hasCVV = payments.some(p =>
    JSON.stringify(p).toLowerCase().includes('cvv')
  );
  expect(hasCVV).toBe(false);
});

Agent-Driven Compliance

// Comprehensive compliance validation
await Task("Compliance Validation", {
  regulations: ['GDPR', 'PCI-DSS'],
  scope: 'full-application',
  generateAuditReport: true
}, "qe-security-scanner");

// Returns:
// {
//   gdpr: { compliant: true, controls: 12, passed: 12 },
//   pciDss: { compliant: false, controls: 8, passed: 7 },
//   violations: [{ control: 'card-storage', severity: 'critical' }],
//   auditReport: 'compliance-audit-2025-12-02.pdf'
// }

Agent Coordination Hints

Memory Namespace

aqe/compliance-testing/
├── regulations/*        - Regulation requirements
├── controls/*           - Control test results
├── audit-reports/*      - Generated audit reports
└── violations/*         - Compliance violations

Fleet Coordination

const complianceFleet = await FleetManager.coordinate({
  strategy: 'compliance-validation',
  agents: [
    'qe-security-scanner',   // Scan for vulnerabilities
    'qe-test-executor',      // Execute compliance tests
    'qe-quality-gate'        // Block non-compliant releases
  ],
  topology: 'sequential'
});

Related Skills


Remember

Compliance is mandatory, not optional. Fines are severe: GDPR up to €20M or 4% of revenue, HIPAA up to $1.5M per violation. But beyond fines, non-compliance damages reputation and user trust.

Audit trail everything. Every access to sensitive data, every consent, every deletion must be logged with timestamps and user IDs.

With Agents: Agents validate compliance requirements continuously, detect violations early, and generate audit-ready reports. Catch compliance issues in development, not in audits.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/david-li0406-meta-skill-evloving-compliance-testing/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

david-li0406-meta-skill-evloving-compliance-testing.ocm.jsonjson
{
  "ocm": "1",
  "id": "david-li0406-meta-skill-evloving-compliance-testing",
  "kind": "skill",
  "name": "compliance-testing",
  "description": "Regulatory compliance testing for GDPR, CCPA, HIPAA, SOC2, PCI-DSS and industry-specific regulations. Use when ensuring legal compliance, preparing for audits, or handling sensitive data.",
  "publisher": "David-Li0406",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "legal"
    ],
    "tags": [
      "skill-md",
      "compliance",
      "gdpr",
      "hipaa",
      "pci-dss",
      "ccpa",
      "soc2",
      "privacy",
      "audit",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Regulatory compliance testing for GDPR, CCPA, HIPAA, SOC2, PCI-DSS and industry-specific regulations. Use when ensuring legal compliance, preparing for audits, or handling sensitive data."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/David-Li0406/meta-skill-evloving",
      "path": "skill-flow/data/skills-refined-36k/skillsmp/compliance-testing/SKILL.md",
      "ref": "ca3a335628981df10c36e00cb9850df2c247ab9a",
      "url": "https://github.com/David-Li0406/meta-skill-evloving/blob/ca3a335628981df10c36e00cb9850df2c247ab9a/skill-flow/data/skills-refined-36k/skillsmp/compliance-testing/SKILL.md",
      "key": "David-Li0406/meta-skill-evloving/skill-flow/data/skills-refined-36k/skillsmp/compliance-testing/SKILL.md"
    }
  },
  "instructions": "# Compliance Testing\n\n<default_to_action>\nWhen validating regulatory compliance:\n1. IDENTIFY applicable regulations (GDPR, HIPAA, PCI-DSS, etc.)\n2. MAP requirements to testable controls\n3. TEST data rights (access, erasure, portability)\n4. VERIFY encryption and access logging\n5. GENERATE audit-ready reports with evidence\n\n**Quick Compliance Checklist:**\n- Data subject rights work (access, delete, export)\n- PII is encrypted at rest and in transit\n- Access to sensitive data is logged\n- Consent is tracked with timestamps\n- Payment card data not stored (only tokenized)\n\n**Critical Success Factors:",
  "cost": {
    "context_tokens": 1480
  }
}

Fetch it by URL: GET /api/v1/registry/david-li0406-meta-skill-evloving-compliance-testing/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.