mukul975/privacy-data-protection-skills

data-inventory-mapping

- Builds comprehensive data inventory per GDPR Art.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/mukul975/privacy-data-protection-skills --skill data-inventory-mapping

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Data Inventory and Mapping for Classification

Overview

A data inventory is the foundational artefact for privacy compliance, providing a structured catalogue of all personal data processing activities across the organisation. GDPR Article 30 mandates that controllers maintain Records of Processing Activities (RoPA) containing specific fields including categories of personal data, purposes of processing, categories of recipients, and transfers to third countries. This skill focuses on building the data inventory that feeds into the RoPA, with emphasis on system-by-system discovery, data flow mapping, classification linkage, and legal basis assignment per data category.

Art. 30 Required Content for Controllers — Art. 30(1)

Required FieldDescriptionClassification Relevance
(a) Controller identityName and contact details of controller, joint controller, representative, DPOAdministrative — not classification-dependent
(b) Purposes of processingSpecific purpose for each processing activityPurpose determines applicable lawful basis and drives classification-to-handling mapping
(c) Categories of data subjectsTypes of individuals whose data is processed (customers, employees, applicants)Data subject category affects applicable protections (e.g., children, employees)
(d) Categories of personal dataTypes of personal data processed per activityDirect output of data classification — personal, special category, criminal
(e) Categories of recipientsWho receives the data, including processorsDetermines transfer and sharing controls
(f) Transfers to third countriesInternational transfers and safeguard mechanismsTriggers Chapter V compliance requirements
(g) Retention periodsEnvisaged time limits for erasure of different categoriesClassification tier drives retention policy
(h) Security measuresGeneral description of Art. 32 technical and organisational measuresClassification tier determines security control level

Data Inventory Construction Methodology

Phase 1: System Discovery (Weeks 1-3)

Step 1: Enterprise Application Inventory

Build a complete list of systems that process personal data:

Discovery MethodSourcesOutput
IT asset management systemCMDB, ServiceNow, LansweeperRegistered applications and servers
Procurement recordsVendor contracts, SaaS subscriptions, licence managementThird-party systems processing data
Network traffic analysisFirewall logs, proxy logs, DNS queriesUndocumented data flows to external services
Shadow IT discoveryCloud access security broker (CASB) logs, expense reports for SaaS toolsUnauthorised or unknown applications
Department interviewsBusiness unit leads, data stewardsDepartmental tools and local databases

Vanguard Financial Services — System Inventory Example

SystemTypeDepartmentData SubjectsClassification Priority
Salesforce CRMSaaSSales, Customer ServiceCustomers, prospectsTier 1
Workday HRSaaSHuman ResourcesEmployees, candidatesTier 1
ADP GlobalViewSaaSPayrollEmployeesTier 1
Oracle Data WarehouseOn-premisesData EngineeringAll subjectsTier 1
SharePoint OnlineSaaSAll departmentsAll subjectsTier 1
NICE ActimizeOn-premisesComplianceCustomers, counterpartiesTier 1
HID Global AccessOn-premisesFacilitiesEmployees, contractorsTier 2
Cority Occ HealthSaaSOccupational HealthEmployeesTier 2
Bloomberg TerminalSaaSTradingCounterpartiesTier 2
Microsoft TeamsSaaSAll departmentsEmployees, external contactsTier 2
Adobe AnalyticsSaaSMarketingWebsite visitorsTier 2
ServiceNow ITSMSaaSITEmployeesTier 3
Confluence WikiSaaSEngineeringEmployeesTier 3

Phase 2: Data Element Mapping (Weeks 3-6)

For each system, document every data element:

Step 2: Schema Extraction

  • Structured databases: Extract schema metadata (table names, column names, data types) via SQL metadata queries or data catalogue APIs
  • SaaS applications: Use API documentation to enumerate data objects and fields
  • Unstructured repositories: Catalogue document types and their typical personal data content
  • Automated discovery: Deploy scanning tools to identify PII in all repositories (see auto-data-discovery skill)

Step 3: Data Element Classification

For each data element, assign:

  • Personal data classification: PERSONALDIRECT, PERSONALINDIRECT, SPECIALCATEGORY, CRIMINALART10, PSEUDONYMISED, ANONYMISED, NON_PERSONAL (see personal-data-test skill)
  • Classification tier: Public, Internal, Confidential, Restricted (see classification-policy skill)
  • Art. 6 lawful basis: The legal basis for processing this element for each stated purpose
  • Art. 9(2) condition: If special category, the specific processing condition

Phase 3: Data Flow Mapping (Weeks 6-9)

Step 4: Intra-System Data Flows

Document how data moves within the organisation:

Customer Onboarding Data Flow — Vanguard Financial Services

Customer ──[web form]──► Salesforce CRM
                              │
                    ┌─────────┼──────────┐
                    ▼         ▼          ▼
              Oracle DW   SharePoint   Email (welcome)
              (analytics) (documents)  (notifications)
                    │
                    ▼
              Adobe Analytics
              (web behaviour)

Step 5: External Data Flows (Third-Party Sharing)

Document all data sharing with external parties:

Sender SystemRecipientData CategoriesTransfer MechanismLegal Safeguard
Salesforce CRMSalesforce Inc. (processor)Customer personal dataSaaS hostingStandard Contractual Clauses (2021/914)
Workday HRWorkday Inc. (processor)Employee personal + special categorySaaS hostingEU-US Data Privacy Framework
ADP PayrollHMRC (statutory recipient)Employee financial dataSecure file transferLegal obligation Art. 6(1)(c)
NICE ActimizeNCA (statutory recipient)Customer AML data (Art. 10)SAR Online portalLegal obligation POCA 2002
Oracle DWDeloitte (auditor)Anonymised financial dataEncrypted file transferJoint controller agreement

Phase 4: Legal Basis and Purpose Mapping (Weeks 9-11)

Step 6: Purpose-Basis Matrix

For each processing activity, map data categories to purposes and legal bases:

Processing ActivityData CategoryPurposeArt. 6 BasisArt. 9(2) / Art. 10
Customer account managementName, email, address, account numberContract performanceArt. 6(1)(b)N/A
KYC identity verificationName, DOB, ID documents, addressLegal obligation (MLR 2017)Art. 6(1)(c)N/A
Employee payrollName, NINO, bank details, salaryContract performanceArt. 6(1)(b)N/A
Employee diversity monitoringEthnicity, sexual orientationEquality monitoringArt. 6(1)(a) / 6(1)(c)Art. 9(2)(a) / 9(2)(b)
Building access controlFingerprint templatePhysical securityArt. 6(1)(f)Art. 9(2)(a)
AML monitoringTransaction patterns, SAR dataLegal obligation (POCA 2002)Art. 6(1)(c)Art. 10 — DPA Sch.1 Pt.2 para 10
Website analyticsIP address, cookies, browsingLegitimate interestsArt. 6(1)(f)N/A
Marketing communicationsEmail, preferencesConsentArt. 6(1)(a)N/A

Phase 5: Documentation and Maintenance (Ongoing)

Step 7: Inventory Consolidation

Consolidate all discovery into the formal data inventory:

  • One record per data element per system
  • Cross-referenced to processing activities in the RoPA
  • Classification labels applied per element
  • Review dates set per classification tier

Step 8: Ongoing Maintenance

Maintenance ActivityFrequencyResponsible
Automated discovery scan reconciliationMonthlyPrivacy Engineering
New system onboarding inventoryPer new system deploymentSystem Owner + Privacy Analyst
Department data steward reviewQuarterlyData Stewards
Full inventory accuracy auditAnnuallyDPO
Classification reclassification reviewAnnually (borderline: 6-monthly)Privacy Analyst

Data Flow Diagram Standards

Notation Convention (Based on DFD Level 0/1)

SymbolMeaning
RectangleExternal entity (data subject, third party, regulator)
Rounded rectangleProcess (system or application)
Open rectangle (two parallel lines)Data store (database, file share)
ArrowData flow (labelled with data categories)
Dashed arrowOptional or conditional data flow
Red borderContains special category or criminal data
Blue borderInternational transfer

Enforcement Precedents

  • Österreichische Datenschutzbehörde (Austrian DPA) v Local Bakery Chain (2020): EUR 4,000 fine for failure to maintain Art. 30 records. The DPA noted that even small organisations must maintain processing records.
  • CNIL v Sergic (2019): EUR 400,000 fine, partly for inadequate data mapping — the controller could not demonstrate it knew where personal data was stored, leading to a data breach going undetected.
  • ICO v British Airways (2020): GBP 20 million fine, where inadequate data mapping contributed to delayed breach detection — the controller lacked visibility into personal data flows through its web infrastructure.

Integration Points

  • auto-data-discovery: Automated scanning feeds data elements into the inventory
  • personal-data-test: Classification decisions applied per data element in the inventory
  • special-category-data: Art. 9 data flagged and mapped to processing conditions
  • criminal-data-handling: Art. 10 data identified and mapped to national law authorisation
  • data-lineage-tracking: Lineage graphs extend the static inventory with dynamic flow information

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills
mukul975
社区

applying-privacy-design-patterns

- Systematic application of the eight privacy design patterns per Hoepman: minimize, hide, separate, abstract, inform, control, enforce, and demonstrate. Covers pattern selection methodology per processing activity, mapping to GDPR principles, and practical implementation guidance for privacy-by-design system architecture.

安装量
1
GitHub Stars
315
最近更新
3月16日
mukul975
社区

brazil-lgpd

- Guides compliance with Brazil's Lei Geral de Proteção de Dados (LGPD, Lei 13.709/2018). Covers the 10 lawful bases under Art. 7, DPO appointment, ANPD enforcement, data subject rights under Arts. 17-22, and international transfer mechanisms. Keywords: LGPD, Brazil data protection, ANPD, lawful bases, data subject rights, international transfers.

安装量
1
GitHub Stars
315
最近更新
3月16日
mukul975
社区

adequacy-assessment

- Guides assessment of third-country adequacy decisions under GDPR Article 45 for international data transfers. Covers the current EC adequacy decisions list, adequacy assessment criteria, partial adequacy handling, and monitoring of adequacy decision reviews. Keywords: adequacy decision, Article 45, third country, adequate protection, EC adequacy list.

安装量
1
GitHub Stars
295
最近更新
3月16日
mukul975
社区

age-gating-services

- Implements age-gating mechanisms for online services to restrict access based on user age. Covers hard gates versus soft gates, neutral age prompts, re-verification triggers, circumvention prevention, and regulatory requirements under GDPR, COPPA, UK Online Safety Act, and DSA. Keywords: age gate, age restriction, neutral prompt, children, online services, access control.

安装量
1
GitHub Stars
295
最近更新
3月16日