Skillquality 0.45

building-segments

Builds segmentation insights with filters, dimensions, and breakdowns. Use when segmenting users, comparing event metrics by properties, building cohorts, or defining audiences.

Price
free
Protocol
skill
Verified
no

What it does

Building Segments

Quick Start

To build a segment:

  1. Clarify what user group the user wants to isolate
  2. Select events/metrics and aggregation to compare across segments
  3. Identify breakdown dimensions and filters from available semantic models
  4. Preview the segmentation insight via the Altertable MCP server to validate
  5. Create the segmentation insight (or segmentation insight discovery to save and share it)

When to Use This Skill

  • User asks to define a cohort or audience
  • Comparing user groups (e.g., free vs paid, active vs churned)
  • Comparing event behavior across properties (e.g., feature usage by plan, region, device)
  • Filtering a population for deeper analysis
  • Building a segment as input for a funnel, retention, or other insight

Core Workflow

Step 1: Understand the Objective

Ask the user (or infer from context) what group they want to isolate:

  • Who are my most valuable users?
  • Which users are at risk of churning?
  • Who should receive this campaign?

Step 2: Identify Available Dimensions

List semantic models and get connection details via the Altertable MCP server to discover which dimensions and traits are available for filtering. Match the user's criteria to actual dimension names.

Step 3: Build the Segment Definition

A segmentation setup typically includes:

segment:
  name: segment-name
  description: Human-readable description
  event_definitions:
    - event: "event_name"
  aggregation_mode: Count
  primary_dimension_ref:
    source: source-slug
    name: dimension-name
  breakdowns:
    - source: source-slug
      name: plan_type
  filters:
    - dimension: dimension-name
      operator: Eq
      value: "value"

All filters use AND logic -- every condition must be true.

Step 4: Preview and Validate

Preview the segmentation insight via the Altertable MCP server to check:

  • Is the segment size reasonable? (not zero, not everyone)
  • Do the results match the user's expectation?
  • Are edge cases handled (NULLs, test accounts)?

If the preview looks wrong, adjust filters and preview again.

Step 5: Create the Insight

Once validated:

  • Create a segmentation insight to save the segment as a chart
  • Or create a segmentation insight discovery to save it as a discovery that flows through the approval workflow

Filter Operators

CategoryOperatorsUse for
EqualityEq, NeExact match or exclusion
ComparisonGt, Gte, Lt, LteNumeric ranges, date ranges
StringStartsWith, EndsWith, Contains (and Not variants)Partial text matching
ListIn, NotInMultiple discrete values
NullIsNull, IsNotNullChecking for missing data
IPIpMatches, IpNotMatchesCIDR range filtering

See Filter operators reference for detailed behavior, type rules, and examples per operator.

Common Pitfalls

  • Not previewing before creating -- always preview to catch filter mistakes before saving
  • Using wrong operator for the type -- e.g., Contains on a numeric dimension, or Gt on a string
  • Forgetting NULL handling -- equality operators don't match NULL; use IsNull/IsNotNull explicitly
  • Overly broad segments -- if the segment includes most users, the filters are likely too loose
  • Missing exclusion criteria -- always consider whether test accounts, internal users, or bots should be excluded
  • Not checking dimension names -- list semantic models to confirm exact dimension names before building filters

Reference Files

  • Filter operators - Read for detailed operator behavior, type rules, NULL semantics, and combining patterns
  • Dimension references - Read for dimension types, source-qualified references, JSON paths, and join behavior
  • Cohort patterns - Read for ready-made segment definitions (lifecycle, value, subscription, behavioral, risk cohorts)

Capabilities

skillsource-altertable-aiskill-building-segmentstopic-agent-skillstopic-ai-agentstopic-altertable

Install

Installnpx skills add altertable-ai/skills
Transportskills-sh
Protocolskill

Quality

0.45/ 1.00

deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 7 github stars · SKILL.md body (4,048 chars)

Provenance

Indexed fromgithub
Enriched2026-05-18 19:14:19Z · deterministic:skill-github:v1 · v1
First seen2026-05-18
Last seen2026-05-18

Agent access