aps-doc-master-segment

Extract CDP Master Segment schema data and generate Markdown documentation.

21|24|Updated Oct 21, 2025
One-click install
npx skills add https://github.com/treasure-data/td-skills --skill aps-doc-master-segment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aps-doc-master-segment
Source: https://github.com/treasure-data/td-skills/tree/main/aps-doc-skills/master-segment
Command: npx skills add https://github.com/treasure-data/td-skills --skill aps-doc-master-segment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Documentation for CDP Master Segment (Parent Segment) configurations, star schema relationships, and attribute/behavior structures.

Core Features & Use Cases

  • Master/attribute/behavior table architectures
  • Star schema documentation and relationships
  • MCP vs. TDX-based access guidance

Quick Start

Document the master segment configuration for a given segment ID.

Frequently Asked Questions about aps-doc-master-segment

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

FAQPage Schema
How do I automate documentation for CDP master segment configurations?

Automate master segment documentation by extracting schema data directly from your CDP database. This Skill queries master and attribute tables, captures primary keys and star-schema relationships, and generates ready-to-publish Markdown documentation with real table names and SQL examples.

What star-schema relationships does this document for master segments?

Star-schema documentation captures how parent segments relate to attribute and behavior tables, including primary key mappings, table structures, and SQL join patterns that define the dimensional model around your CDP master segment configuration.

Do I need TD MCP or the tdx CLI to document master segments?

The Skill verifies database accessibility through either TD MCP or tdx CLI. Choose the access method that matches your environment; the Skill adapts to whichever connection method you have configured for querying your CDP database.

What data does this extract from master and attribute tables?

This extracts real table names, column schemas, primary keys, and behavioral attributes from your master segment configuration. It generates SQL examples that demonstrate the relationships between parent segments and their associated attribute and behavior dimensions.

Can this document multiple attribute and behavior table architectures?

Yes. The Skill handles complex master/attribute/behavior table architectures common in CDP setups, documenting each layer's structure, relationships, and how they connect within your star-schema model.