feat(tdx-skills): add CDP consent & preference management skill - #94
Open
adher-code wants to merge 2 commits into
Open
feat(tdx-skills): add CDP consent & preference management skill#94adher-code wants to merge 2 commits into
adher-code wants to merge 2 commits into
Conversation
Add comprehensive consent management skill for GDPR/CCPA compliance using Treasure Data's native CDP capabilities. ## Features - **Consent Data Modeling**: Parent segment attributes pattern for unified customer profile with consent preferences - **Consent Collection**: TD JavaScript SDK integration with Consent Manager API - **Privacy-Aware Segmentation**: 8 ready-to-use segment patterns filtering by consent status and GDPR 24-month expiry - **Activation Compliance**: Pre-activation validation workflows using Digdag - **DSAR Workflows**: Complete implementation for data export, deletion, and rectification (GDPR Articles 15-17) ## Skill Structure - SKILL.md (472 lines, under 500 limit) - 4 working examples (parent segment, segments, preference center, DSAR) - 2 templates (table DDL, compliance workflow) - 4 reference guides (consent categories, DSAR, SDK integration, audit queries) - Automated validation script (test-skill.sh) - 3 testing guides for contributors ## TD-Specific Implementation Uses Treasure Data native capabilities: - Parent segment attributes (not separate consent database) - TD JS SDK Consent Manager (not OneTrust/external CMP) - tdx CLI for segment management - td_interval() for time-based filtering - Trust for CDP enforcement layer ## Testing All tests passed: - ✅ Structure validation (18/18 checks) - ✅ Core functionality (5/5 test cases) - ✅ File references verified - ✅ TD-specific patterns validated - ✅ Manual testing in Claude Code ## Public Contribution Value Publicly shareable skill that demonstrates: - Privacy-first CDP architecture - GDPR/CCPA compliance best practices - No proprietary TD internals exposed - Educational value for privacy implementation Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add comprehensive consent management skill for GDPR/CCPA compliance using Treasure Data's native CDP capabilities.
Features
Skill Structure
TD-Specific Implementation
Uses Treasure Data native capabilities:
Testing
All tests passed:
Public Contribution Value
Publicly shareable skill that demonstrates: