identify-top-key-values
БесплатноБез исполняемых скриптовНе проверенAnalyze RT event tables to identify the most common values for stitching keys. Use when inspecting what ID values are actually flowing into RT 2.0, debugging…
от treasure-data★ 23 звезды на GitHubОб этом скилле
Identify Top Key Values
This skill is used to inspect the actual data flowing into RT 2.0 event tables and analyze the distribution of stitching key values. It helps debug ID stitching issues by showing the most common values for each configured stitching key, including nulls and empty values that might cause problems. This is what's seen in plazma and may not be different than what the rt system ignores by configuration.
Use this skill when you want to understand:
- What ID values are actually present in your event data
- Distribution patterns of stitching keys
- Data quality issues (nulls, test values, invalid formats)
Requirements
In order to analyze key values we need:
- Parent segment ID - The RT-enabled parent segment to inspect
- Correctly configured tdx CLI or Treasure Data MCP server (@treasuredata/mcp-server)
- API key with database access to query the event tables
- Existing RT configuration with event tables and stitching keys configured
Process
This skill will:
- Inspect RT configuration to get event tables and stitching keys
- Generate dynamic query based on configured keys
- Analyze recent data (default: last 3 hours) for distribution patterns
- Show top values including nulls and potentially problematic values
Getting RT Configuration
First, inspect the current RT configuration to understand what to analyze:
# Get RT configuration via CDP API
tdx api "/audiences/<parent_segment_id>/realtime_setting" --type cdp --method GET
# Example response:
# {
# "keyColumns": [
# { "name": "td_client_id" }
# ],
# "eventTables": [
# { "database": "engage_in_app_message", "table": "be_users" }
# ],
# "status": "ok"
# }
Core Query Template
Based on your RT configuration, generate a query like this example for parent segment 508396:
RT Configuration:
- eventTables:
engage_in_app_message.be_users - keyColumns:
td_client_id
-- Most common values in last 3 hours (including nulls/empties)
SELECT
key_name,
value,
event_count
FROM (
SELECT 'td_client_id' as key_name, td_client_id as value, COUNT(*) as event_count
FROM engage_in_app_message.be_users
WHERE td_interval(time, '-3h/now')
GROUP BY td_client_id
)
ORDER BY event_count DESC
LIMIT 100;
Related Skills
- rt-config-id-stitching: Configure stitching keys and exclude patterns
- rt-config-setup: View current RT configuration
- id-graph-canonical-id-size: Analyze resulting canonical ID groups
- id-graph-ids-to-canonical-id: Check for over-stitching issues
Установить identify-top-key-values в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл identify-top-key-values?
Analyze RT event tables to identify the most common values for stitching keys. Use when inspecting what ID values are actually flowing into RT 2.0, debugging unexpected stitching behavior, or checking for data quality issues like nulls or empty stitching keys.
Как установить скилл identify-top-key-values?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл identify-top-key-values запускает скрипты?
Нет, скилл состоит только из инструкций (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