notion-data-handling

Featured

Implement data handling, PII protection, and GDPR/CCPA compliance for Notion integrations. Use when handling sensitive data from Notion pages, implementing data redaction, or ensuring compliance with privacy regulations. Trigger with phrases like "notion data", "notion PII", "notion GDPR", "notion data retention", "notion privacy", "notion CCPA".

AI & Automation 2,249 stars 312 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Notion Data Handling ## Overview Handle sensitive data correctly when integrating with Notion: detect PII in page properties and block content, redact sensitive fields before logging or exporting, minimize data exposure with `filter_properties`, and implement GDPR/CCPA compliance patterns including right-of-access exports, right-of-deletion (archive or field clearing), and retention-based archival with audit logging. ## Prerequisites - `@notionhq/client` v2+ installed (`npm install @notionhq/client`) - Python alternative: `notion-client` (`pip install notion-client`) - Understanding of which Notion databases contain personal data - Audit logging infrastructure (structured logs, SIEM, or Notion audit database) - Legal guidance on applicable regulations (GDPR, CCPA, HIPAA, etc.) ## Instructions ### Step 1: PII Detection in Notion Content Notion pages can contain PII in any property type. Scan systematically: ```typescript import { Client } from '@notionhq/client'; import type { PageObjectResponse } from '@notionhq/client/build/src/api-endpoints'; const notion = new Client({ auth: process.env.NOTION_TOKEN }); // PII pattern matchers const PII_PATTERNS = [ { type: 'email', pattern: /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g }, { type: 'phone_us', pattern: /\b\d{3}[-.]?\d{3}[-.]?\d{4}\b/g }, { type: 'phone_intl', pattern: /\+\d{1,3}[-.\s]?\d{4,14}/g }, { type: 'ssn', pattern: /\b\d{3}-\d{2}-\d{4}\b/g }, { type: 'credit_card', pattern: /\b...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Related Skills