segment

Installation
SKILL.md

tdx Segment - CDP Child Segment Management

Segment Creation Workflow

Process one segment at a time. For each segment:

  1. Create the YAML file
  2. Validate with tdx sg validate <file>
  3. 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
  4. Preview with preview_segment tool — get user approval before proceeding
  5. 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>
Installs
3
GitHub Stars
19
First Seen
Mar 30, 2026
segment — treasure-data/td-skills