segment

Explain segment definitions across Datalayer repositories and BigQuery tables.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/cheductai/screen1-claude-kit --skill segment-cheductai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: segment
Source: https://github.com/cheductai/screen1-claude-kit/tree/main/skills/segment
Command: npx skills add https://github.com/cheductai/screen1-claude-kit --skill segment-cheductai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Segment definitions across the Datalayer platform can be complex, scattered across multiple repos and services, making it hard to understand, debug, and reuse them in reports and dashboards.

Core Features & Use Cases

  • Understand how segments are defined across datalayerapp-v2 and datalayerapp-v2-function-code.
  • Debug segment creation, rebuild, and reporting flows, including rule groups, condition types, and query generation.
  • Preview and validate segment queries, apply segments to reports (up to four per report), and monitor real-time updates via Pusher.

Quick Start

To explore a segment, ask the skill to explain its rule groups and resulting BigQuery queries. Validate a segment with the segment-testing endpoint, then check status in the Segments table and wait for real-time updates.

Frequently Asked Questions about segment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug segment definitions across multiple repositories?

You can debug segment definitions by examining rule groups and condition types across datalayerapp-v2 and datalayerapp-v2-function-code to understand how query generation works and locate logic errors.

How does segment query generation map to BigQuery tables?

Segment query generation translates rule groups and condition types into executable BigQuery queries that map directly to BigQuery tables for reporting and dashboard integration.

Can I preview and validate segment queries before applying them to reports?

Yes, you can preview and validate segment queries using the segment-testing endpoint, check execution status in the Segments table, and then apply up to four segments per report.

How do I monitor real-time segment rebuild updates?

You monitor real-time segment rebuild updates via Pusher interactions, which deliver live status notifications after triggering a segment rebuild or testing process.

Does segment caching work with Redis during report generation?

Yes, segment caching works with Redis interactions to store and retrieve processed segment data, optimizing report generation and chart integration performance.

What is the maximum number of segments I can apply to a single report?

You can apply up to four segments per report, allowing you to filter and compare data across multiple rule groups and condition types within your dashboard views.