parent-segment
Manages CDP parent segments using `tdx ps` commands with YAML configs. Covers master tables, attributes, behaviors, `tdx ps validate` for join validation, `tdx ps preview` for data preview, and schedule configuration (daily/hourly/cron). Use when creating customer master tables, validating join match rates, or troubleshooting parent segment workflows.
When & Why to Use This Skill
This Claude skill provides a comprehensive interface for managing Customer Data Platform (CDP) parent segments using the `tdx` CLI and YAML configurations. It streamlines the entire lifecycle of data orchestration—from defining master tables and attributes to validating complex joins and setting up automated processing schedules. By automating technical commands, it helps users maintain a robust 'Customer 360' view with high data integrity and minimal manual overhead.
Use Cases
- Customer 360 Integration: Efficiently create and manage master customer tables by defining filters and sourcing data from multiple CDP databases.
- Data Validation and QA: Use the `validate` and `preview` functions to check join match rates between master tables and behavioral attributes, ensuring data accuracy before pushing to production.
- Automated Workflow Scheduling: Configure and deploy daily, hourly, or custom cron schedules for segment updates to ensure marketing and analytics teams always have access to fresh data.
- Technical Troubleshooting: Quickly diagnose and resolve workflow failures by inspecting specific attributes or behaviors using targeted CLI commands and YAML adjustments.
| name | parent-segment |
|---|---|
| description | Manages CDP parent segments using `tdx ps` commands with YAML configs. Covers master tables, attributes, behaviors, `tdx ps validate` for join validation, `tdx ps preview` for data preview, and schedule configuration (daily/hourly/cron). Use when creating customer master tables, validating join match rates, or troubleshooting parent segment workflows. |
tdx Parent-Segment - CDP Parent Segment Management
Core Commands
tdx ps list # List parent segments
tdx ps pull "Customer 360" # Pull to YAML (sets context)
tdx ps push # Push changes
tdx ps validate # Validate all
tdx ps validate --attribute "User Profile" # Validate specific attribute
tdx ps preview --enriched # Preview joined data
tdx ps run # Push and run workflow
tdx ps fields # List segmentation fields
YAML Configuration
name: "Customer 360"
master:
database: cdp_db
table: customers
filters: # Optional: max 2 filters
- column: status
values: ["active"]
schedule:
type: daily # none | hourly | daily | weekly | cron
time: "03:00:00"
timezone: "America/Los_Angeles"
attributes:
- name: "User Profile"
source:
database: cdp_db
table: user_profiles
join:
parent_key: user_id
child_key: customer_id
columns:
- column: age
type: number
behaviors:
- name: "Purchases"
source:
database: cdp_db
table: purchase_events
join:
parent_key: user_id
child_key: customer_id
columns:
- column: amount
type: number
Common Issues
| Issue | Solution |
|---|---|
| Low join match rate | tdx ps preview --master and --attribute to compare keys |
| Workflow fails | tdx ps validate --master, --attribute, --behavior |
Related Skills
- segment - Child segments using parent segment data
- tdx-basic - Core CLI operations