Agent skill · marketing growth · jeremylongshore
posthog-data-handling
Implement consent-aware PostHog collection, PII minimization, masking, retention, and deletion workflows. Use when analytics must satisfy a documented privacy or data-governance requirement. Trigger with "PostHog privacy", "PostHog PII", or "PostHog GDPR".
Why this skill is useful
Provides specific implementation patterns for GDPR compliance and PII handling with PostHog that the AI wouldn't reliably generate on its own.
What it needs
Requires posthog-js, posthog-node installed locally. Requires posthog account access. About 5k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
PostHog Data Handling Overview Privacy-safe analytics with PostHog. Covers property sanitization to strip PII before events leave the browser, consent-based tracking (opt-in/opt-out), GDPR data subject access requests and deletion, and PostHog's built-in privacy controls (IP masking, session recording masking). Prerequisites PostHog project with current privacy, retention, and deletion capabilities verified for its deployment model posthog-js and/or posthog-node installed Privacy policy covering analytics data collection Cookie consent mechanism (e.g., CookieConsent banner) Authentication Browser capture uses the public project token; do not treat it as a secret or grant it private API access. Subject-access, export, and deletion operations use a least-privilege personal API key or OAuth token against the private regional API host. Load private credentials from a server-side secret manager, redact them from logs, and never expose them through client bundles or analytics properties. Confirm the target project ID and US or EU region before any destructive privacy operation. Instructions Tool discipline Use Read to inspect the relevant configuration and implementation before proposing changes. Use Write only for a new, explicitly requested artifact inside the target project. Use Edit for minimal changes to existing project files after the evidence pass. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/posthog-data-handling