본문으로 건너뛰기
cccskills
무료GitHub에 공개

compliance-gdpr-privacy-expert

Expert guide for Data Privacy, GDPR, CCPA, and PDPA compliance. Covers consent management, data retention, privacy-by-design, and audit trails / Panduan kepatuhan Privasi Data, GDPR, dan PDPA.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구SentryDatadog
설치 방법 보기

포함된 파일(1)

  • SKILL.md7.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Data Privacy & Compliance Expert (GDPR, CCPA & UU PDP 2026)

English | Bahasa Indonesia


<a name="english"></a>

English

Orchestration & Integration

  • Database & Data Retention: database-orm-expert, saas-multi-tenant, saas-billing
  • Identity & Access Revocation: authentication-identity-expert, zero-trust-secret-vault
  • Logging & Error Redaction: logging-error-tracking-expert, data-telemetry-expert
  • Security & Red Teaming: autonomous-red-teamer, prompt-injection-firewall, rate-limit-abuse-prevention
  • Lifecycle & Governance: production-ready-hardener, brainstorming, zero-to-prod-orchestrator, session-memory-manager

Description

Production engineering guide for regulatory data privacy and compliance across GDPR (EU), CCPA/CPRA (California), and UU PDP No. 27/2022 (Indonesia). Covers technical patterns for PII (Personally Identifiable Information) encryption at rest, cascading data anonymization (Right to be Forgotten while retaining immutable financial ledgers for tax authorities), consent state machines, and automated logger redaction.

Trigger Conditions

  • Storing customer PII (names, emails, physical addresses, phone numbers, IP addresses, national IDs).
  • Implementing compliant cookie consent banners with opt-in tracking scripts.
  • Handling data deletion and export requests (Right to Access and Right to be Forgotten).
  • Sanitizing logging pipelines to prevent accidental PII leakage to Datadog, Axiom, or Sentry.

Cascading PII Anonymization Routine (TypeScript / PostgreSQL)

Erases personal identity while preserving aggregate transaction integrity for accounting compliance:

// src/services/privacy-compliance.ts
import { db } from '@/lib/db';
import { sql } from 'drizzle-orm';
import crypto from 'node:crypto';

export async function processRightToBeForgotten(userId: string): Promise<void> {
  await db.transaction(async (tx) => {
    // 1. Generate irreversible cryptographic pseudo-identifier
    const pseudoHash = crypto.createHash('sha256').update(`${userId}-${process.env.PEPPER_SECRET}`).digest('hex').slice(0, 16);
    const anonymizedEmail = `deleted-${pseudoHash}@anonymized.internal`;

    // 2. Anonymize user record: scrub sensitive fields
    await tx.execute(sql`
      UPDATE users
      SET 
        name = 'Anonymized Customer',
        email = ${anonymizedEmail},
        phone_number = NULL,
        billing_address = NULL,
        ip_address = '0.0.0.0',
        is_anonymized = TRUE,
        anonymized_at = NOW()
      WHERE id = ${userId}
    `);

    // 3. Scrub profile sessions and third-party provider tokens
    await tx.execute(sql`DELETE FROM user_sessions WHERE user_id = ${userId}`);
    await tx.execute(sql`DELETE FROM oauth_accounts WHERE user_id = ${userId}`);

    // 4. Log compliance audit trail (immutable record of the erasure action)
    await tx.execute(sql`
      INSERT INTO privacy_audit_logs (id, action, target_pseudo_id, executed_at)
      VALUES (gen_random_uuid(), 'RIGHT_TO_BE_FORGOTTEN_EXECUTED', ${pseudoHash}, NOW())
    `);
  });
}

Pino Logger Automated PII Redaction Configuration

// src/lib/logger.ts
import pino from 'pino';

export const logger = pino({
  level: process.env.LOG_LEVEL || 'info',
  redact: {
    paths: [
      'email',
      'password',
      'token',
      'creditCard',
      'authorization',
      '*.email',
      '*.password',
      'req.headers.authorization',
      'req.headers.cookie',
    ],
    censor: '[REDACTED_PII]',
  },
});

The 3 Golden Privacy Invariants

  1. Never Hard Delete Financial Invoices: Tax laws require preserving transaction records for 5-10 years. Anonymize the customer's PII, but keep the currency amounts, timestamps, and VAT records intact.
  2. Prior Consent for Tracking Scripts: Do NOT load Google Analytics, Meta Pixel, or third-party cookies until the user has actively opted in. Default to blocked.
  3. Encryption at Rest: Columns containing sensitive national IDs (KTP/NIK/SSN) or phone numbers must be encrypted using AES-256-GCM before database insertion.

<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Integrasi Orkestrasi

  • Database & Retensi Data: database-orm-expert, saas-multi-tenant, saas-billing
  • Identitas & Pencabutan Akses: authentication-identity-expert, zero-trust-secret-vault
  • Logging & Redaksi Error: logging-error-tracking-expert, data-telemetry-expert
  • Keamanan & Red Teaming: autonomous-red-teamer, prompt-injection-firewall, rate-limit-abuse-prevention
  • Siklus Hidup & Tata Kelola: production-ready-hardener, brainstorming, zero-to-prod-orchestrator, session-memory-manager

Deskripsi

Panduan rekayasa produksi untuk kepatuhan regulasi privasi data global dan nasional, termasuk GDPR (Uni Eropa), CCPA (California), dan UU No. 27 Tahun 2022 tentang Pelindungan Data Pribadi (UU PDP Indonesia). Mencakup enkripsi data pribadi (PII) saat tersimpan (at rest), anonimisasi berjenjang untuk pemenuhan hak penghapusan data tanpa merusak pembukuan keuangan perpajakan, manajemen persetujuan cookie (opt-in), serta sensor otomatis pada sistem logging.

Kondisi Pemicu

  • Menyimpan data pribadi pengguna (Nama, NIK/KTP, Email, Nomor Telepon, Alamat, Alamat IP).
  • Mengimplementasikan banner persetujuan privasi dan pelacak pihak ketiga (Tracking Pixels).
  • Menjalankan permintaan penghapusan akun (Hak untuk Dilupakan / Right to be Forgotten).
  • Mencegah kebocoran data sensitif ke layanan monitor eksternal seperti Datadog, Axiom, atau Sentry.

Skema Database Persetujuan Pengguna (UU PDP Compliant)

-- Tabel pencatatan riwayat persetujuan (Consent Audit Trail)
CREATE TABLE IF NOT EXISTS user_privacy_consents (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
  consent_type VARCHAR(64) NOT NULL, -- 'MARKETING', 'ANALYTICS', 'TERMS_OF_SERVICE'
  is_granted BOOLEAN NOT NULL DEFAULT FALSE,
  policy_version VARCHAR(16) NOT NULL, -- misal 'v2.1'
  ip_address VARCHAR(45) NOT NULL,
  granted_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);

CREATE INDEX idx_user_consents ON user_privacy_consents (user_id, consent_type);

3 Hukum Utama Kepatuhan Privasi Data

  1. Pemisahan Data Transaksi dan Identitas: UU Perpajakan mewajibkan penyimpanan bukti transaksi selama bertahun-tahun. Ketika pengguna meminta dihapus, anonimkan data identitas mereka (ganti menjadi anonim), namun pertahankan catatan nominal transaksi.
  2. Opt-in Sebelum Pelacakan: Skrip pelacak analitik dilarang berjalan sebelum pengguna mengklik tombol "Setuju" secara eksplisit.
  3. Sensor Log Otomatis: Pastikan pustaka logger (Pino/Winston) menyensor kata kunci sensitif (password, email, token) agar tidak tersimpan sebagai teks biasa pada log server.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1122026년 10월 22일 업데이트

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Fast (Composer 2.5, Grok 4.7/4.6) to Medium (Gemini 4 Argon, GPT-5.6 Sol, Claude Opus 5.5) and High (Claude Sonnet 5.5, Claude Fable 5.1, Muse Wonder) / Panduan ahli untuk kaskade dan routing model cerdas.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1122026년 10월 22일 업데이트

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1122026년 10월 22일 업데이트

Master guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan utama komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1122026년 10월 22일 업데이트

Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1122026년 10월 22일 업데이트

Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1122026년 10월 22일 업데이트

roedyrustam의 스킬 모두 보기

이 스킬의 문제 신고