aps-doc-master-segment
БесплатноБез исполняемых скриптовНе проверенGenerate Confluence-ready technical documentation for CDP Parent Segments. Produces structured docs covering attribute schemas, behavior definitions, star…
Об этом скилле
APS Master Segment Documentation Expert
Specialized skill for generating comprehensive documentation for CDP Master Segment (Parent Segment) configurations with complete attribute and behavior analysis.
When to Use This Skill
Use this skill when:
- Documenting CDP Master Segment (Parent Segment) configurations
- Creating documentation for customer 360 parent segments
- Documenting segment attributes and behavior tables
- Generating star schema documentation for CDP audiences
Example requests:
"Document the master segment configuration for segment ID 1035571"
"Create parent segment documentation for customers master segment"
"Document CDP audience segment with database cdp_audience_1234567"
🚨 MANDATORY: Database Access Required
WITHOUT database access = NO documentation. Period.
Two Methods to Access CDP Database:
Method 1: TD MCP Server (Preferred)
If TD MCP server is configured:
Use MCP tools to query CDP database:
- mcp__treasuredata__* tools for database operations
Method 2: tdx CLI (Fallback)
If TD MCP is NOT configured, use tdx-basic skill:
# Use tdx commands to query database
tdx use database cdp_audience_<master_segment_id>
tdx tables
tdx describe <table_name>
Required Inputs:
- Master Segment ID (e.g., 1035571) OR Master Segment Name
- Master Segment Database (format:
cdp_audience_<master_segment_id>) - Master Table Name (typically the primary fact table)
Before proceeding:
- Check if TD MCP server is available (look for mcp__treasuredata__* tools)
- If TD MCP NOT available, use tdx-basic skill with Bash tool
- Confirm master segment database exists
- Query table schemas using available method
- STOP if cannot access database
Documentation MUST contain:
- Real table names from actual CDP database
- Actual column schemas from master and attribute tables
- Real behavior table structures
- Working SQL examples from actual schema
NO generic placeholders. Only real, extracted data from TD MCP.
REQUIRED Documentation Template
Follow this EXACT structure (analyzed from production examples):
# Parent Segment Configuration: {Master Segment Name}
**Last Updated:** {date}
**Master Segment ID:** {master_segment_id}
**Database:** {database_name}
**Master Table:** {master_table_name}
---
## Executive Summary
{Brief description of the parent segment purpose and business value}
### Key Metrics
* **Total Attributes:** {X} customer profile fields
* **Behavior Tables:** {Y} event tracking tables
* **Data Sources:** {List primary data sources}
* **Total Behavior Columns:** {Z} detailed event properties
---
## Architecture Overview
### Star Schema Data Model
{Describe star schema with master table as central fact table}
{ASCII diagram showing:
- Master table (center) with primary key
- Attribute tables (1:1 relationship) connected via foreign key
- Behavior tables (1:many relationship) connected via foreign key
- Clear cardinality indicators}
### Key Relationships:
* **Master Table (Fact):** {database}.{master_table} - One record per unique entity
* **Primary Key:** {primary_key_column} - Unique identifier
* **Foreign Key:** All attribute and behavior tables join via {primary_key_column}
* **Cardinality:**
* Master to Attributes: **1:1** (one entity = one attribute record)
* Master to Behaviors: **1:Many** (one entity = many event records)
### Master Table Structure
* **Database:** {database_name}
* **Primary Table:** {master_table_name}
* **Primary Key:** {primary_key_column}
* **Total Fields:** {N} fields directly in master table
* **Related Attribute Tables:**
{List all attribute tables discovered from database}
### Behavior Tables (Event Streams)
{List all behavior tables with column counts}
**Note:** CDP automatically adds the `behavior_` prefix to all behavior table names in the audience database.
### Data Integration
{List source systems detected from table schemas or metadata}
---
## {Entity} Attributes ({Total} Fields)
{Group attributes by logical category - analyze from actual schema}
### {Category Number}. {Category Name} ({X} fields)
{Examples of categories based on actual data:
- Core Identity & Contact Information
- Address & Location
- Transaction & Purchase Behavior
- Customer Lifecycle & Engagement
- Email Marketing Engagement
- SMS Marketing Engagement
- Web & Digital Engagement
- Customer Preferences & Interests}
| Attribute Name | Data Type | Source | Business Use |
| --- | --- | --- | --- |
| {column_name} | {data_type} | {table}.{column} | {inferred business purpose} |
{Repeat for all attributes in category}
---
{Repeat for each category}
---
## Behavior Tables ({N} Event Streams)
### {Number}. {Behavior Table Display Name} ({X} columns)
**Table:** {behavior_table_name}
**Purpose:** {Inferred from table name and schema}
| Column Name | Data Type | Description |
| --- | --- | --- |
| {column_name} | {data_type}
Установить aps-doc-master-segment в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл aps-doc-master-segment?
Generate Confluence-ready technical documentation for CDP Parent Segments. Produces structured docs covering attribute schemas, behavior definitions, star schema relationships, and data lineage. Use when you need to write docs, create specs, or explain parent segment architecture.
Как установить скилл aps-doc-master-segment?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aps-doc-master-segment запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic