david-li0406/meta-skill-evloving/validate-segment

Claude Code and agent skill by david-li0406/meta-skill-evloving

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Validates CDP segment YAML configurations against the TD CDP API specification. Use when reviewing segment rules for correctness, checking operator types and values, or troubleshooting segment configuration errors before pushing to Treasure Data.

Install

npx vskill@latest install david-li0406/meta-skill-evloving/validate-segment

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry/validate-segment.

Segment YAML Validation

bash
tdx sg validate # Validate all YAML files locally
tdx sg validate path/to/segment.yml # Validate specific file
tdx sg push --dry-run # Preview changes before push

Required Structure

yaml
name: string
kind: batch # batch | realtime | funnel_stage
rule:
type: And # And | Or
conditions:
- type: Value
attribute: field_name
operator:
type: OperatorType
value: ...

Operators Quick Reference

TypeValueNotes
Equal, NotEqualsingle value
Greater, GreaterEqual, Less, LessEqualnumber
In, NotInarray["US", "CA"]
Contain, StartWith, EndWitharray["@gmail.com"]
Regexpstringregex pattern
IsNull(none)
TimeWithinPast, TimeWithinNextnumber + unitvalue: 30, unit: day
include, excludesegment namereuse existing segment

Time Units (Singular Form Only)

year | quarter | month | week | day | hour | minute | second

Common mistake: days → day, months → month

Behavior Aggregation Structure

yaml
# Behavior condition with aggregation
- type: Value
attribute: field_name # Or "" for pure count
operator:
type: GreaterEqual
value: 1
aggregation:
type: Count # Count | Sum | Avg | Min | Max
source: behavior_name # Behavior from parent segment

Required fields: aggregation.type and source must both be present

Related Skills

  • segment - Full segment management

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/david-li0406/meta-skill-evloving/validate-segment/badge)](https://verified-skill.com/skills/david-li0406/meta-skill-evloving/validate-segment)

Something wrong with this skill or its page? Tell us.