maxwellokumu/okaudit-claude-skills / data-privacy/data-inventory-mapper
data-inventory-mapper
VerifiedMap personal and sensitive data across systems so Claude can explain data flows, classifications, transfers, and privacy-relevant handling risks clearly.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 1.8 KB |
| SKILL.md | skill md | 1.6 KB |
| main.py | script | 12.5 KB |
| sample_input/data_inventory.csv | other | 1.3 KB |
| skill.yaml | config | 893 B |
README.md
View on GitHub# data-inventory-mapper
Reads a structured data inventory CSV and produces a Mermaid data flow diagram plus a comprehensive markdown summary. Highlights Special Category data (GDPR Article 9), missing legal bases, and retention coverage.
## Requirements
```
python-dotenv
```
## Usage
### Both diagram and summary (default)
```bash
python main.py --inventory sample_input/data_inventory.csv
```
### Mermaid diagram only
```bash
python main.py --inventory sample_input/data_inventory.csv --output mermaid
```
### Markdown summary only
```bash
python main.py --inventory sample_input/data_inventory.csv --output markdown
```
## CSV Format
Required columns: `system,data_type,classification,location,transfers_to,legal_basis,retention_period`
```csv
system,data_type,classification,location,transfers_to,legal_basis,retention_period
CRM,contact_details,Confidential,On-premise,Email Platform,legitimate_interests,3 years
HR System,health,Special_Category,Cloud (Azure),Payroll System,legal_obligation,7 years
```
## Classification Levels
`Public` | `Internal` | `Confidential` | `Restricted` | `Special_Category`
## Special Category Detection
Automatically flags records containing: health, medical, biometric, genetic, racial/ethnic origin, political opinions, religious beliefs, sexual orientation, criminal records, financial data, or children's data.
## Sample Output
```markdown
## Data Flow Diagram
```mermaid
flowchart LR
classDef special fill:#ff4444,color:#fff,stroke:#cc0000
CRM["CRM"]
HR_System["HR System"]
HR_System -->|"health"| Payroll_System
class HR_System special
```
## Data Inventory by Classification
### Special_Category (2 records)
| System | Data Type | Location | Legal Basis | Retention |
|--------|-----------|----------|-------------|-----------|
| **HR System** 🔴 | health | Cloud (Azure) | legal_obligation | 7 years |
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |