スキル一覧に戻る
treasure-data

parent-segment

by treasure-data

Treasure Data Skills for Claude Code

6🍴 4📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


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

IssueSolution
Low join match ratetdx ps preview --master and --attribute to compare keys
Workflow failstdx ps validate --master, --attribute, --behavior
  • segment - Child segments using parent segment data
  • tdx-basic - Core CLI operations

Resources

スコア

総合スコア

45/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です