segment
Installation
SKILL.md
tdx Segment - CDP Child Segment Management
Segment Creation Workflow
Process one segment at a time. For each segment:
- Create the YAML file
- Validate with
tdx sg validate <file> - Count check — run
tdx sg sql --path <file> | tdx query -and verify count > 0- If count is 0, the rule is too restrictive — revise before proceeding
- Preview with
preview_segmenttool — get user approval before proceeding - Push with
tdx sg push -y "<file>"— always specify the file path explicitly
Never batch multiple segments in validate or push operations.
After push succeeds, display the Console link:
https://console.treasuredata.com/app/audiences/<parent_id>/segments/<segment_id>