From altertable
Builds segmentation insights in Altertable to compare event behavior across cohorts using filters, dimensions, and breakdowns. Use for segmenting users, comparing metrics by properties, building cohorts, or defining audiences.
npx claudepluginhub altertable-ai/skills --plugin altertableThis skill uses the workspace's default tool permissions.
To build a segment:
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Builds production-ready Apache Airflow DAGs with patterns for operators, sensors, testing, and deployment. For data pipelines, workflow orchestration, and batch jobs.
Share bugs, ideas, or general feedback.
To build a segment:
Ask the user (or infer from context) what group they want to isolate:
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.
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.
Preview the segmentation insight via the Altertable MCP server to check:
If the preview looks wrong, adjust filters and preview again.
Once validated:
| Category | Operators | Use for |
|---|---|---|
| Equality | Eq, Ne | Exact match or exclusion |
| Comparison | Gt, Gte, Lt, Lte | Numeric ranges, date ranges |
| String | StartsWith, EndsWith, Contains (and Not variants) | Partial text matching |
| List | In, NotIn | Multiple discrete values |
| Null | IsNull, IsNotNull | Checking for missing data |
| IP | IpMatches, IpNotMatches | CIDR range filtering |
See Filter operators reference for detailed behavior, type rules, and examples per operator.
Contains on a numeric dimension, or Gt on a stringIsNull/IsNotNull explicitly