Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

identity

БесплатноБез исполняемых скриптовНе проверен

Query identity change logs (id_changes, validation_failures) to explore profile creation, merging, evictions, and validation errors

treasure-dataот treasure-data★ 23 звезды на GitHub16 установок в других каталогах

Об этом скилле

Identity

This skill is used when the user asks about identity stitching, id stitching, or wants to explore real time profiles. It involves querying two tables: id_changes (identity graph changes) and validation_failures (rejected key/value pairs). Both are updated by the application as events are processed.

Treasure Data's real time service includes creation and management of real time profiles. Profiles are updated based on a stream of event records that contain one or more "id stitching key" properties. The identity of a profile consists of both an internal Rid (real time Id) and one or more stitching keys. The system creates new profiles when the keys are all unique. It updates a profile when a new key is found that was not previously associated with other keys in the record. It can also stitch multiple profiles together when we find that keys in the record exist in two or more existing profiles. We combine the profiles together and the rid with the earliest date is the kept whilst the other profiles are merged and deleted.

Each profile can hold at most 200 associations (IDs + merged profiles). When an incoming event would push a profile past that limit, the lowest-priority associations are evicted to make room and a profile_ids_evicted row is written to id_changes recording what was removed.

Key/value pairs on incoming events that fail validation (wrong type, empty, not in config, case mismatch, failed regex, in invalid_texts) are excluded from stitching and logged to validation_failures. The event is still processed — validation never blocks live traffic.

Description

Requirements

In order to query the identity logs we must know the parent segment the customer is interested in. A customer may have a number of parent segments so we must ask them to provide the one they are interested in before making a query. A segment ID will be a numeric value like 411671.

The user must also have a correctly configured tdx-skill or the Treasure Data mcp server (@treasuredata/mcp-server) to enable the database lookup.

In addition the api key with appropriate access to the database table should be available and configured.

Database

The database name contains the parent segment ID and has this format cdp_audience_394649_rt. This is where you can plug in the parent segment the user gives in the request.

Personalization-path logging

Identity logging on the event-processing path is enabled for every instance and requires no opt-in. Logging on the personalization request path is off by default. Customer Support enables it per instance when needed for an investigation.

id_changes table

The id_changes log table is always called id_changes and is in the Parent Segment real time database. Each row records one change to the identity graph.

Schema

The id_changes table has the following schema. The format of the schema below is:

column name, type, description time, int, unix timestamp of when the record was logged. Filter with TD_INTERVAL or TD_TIME_RANGE. event_type, string, always "id" for rows in this table. reactor_instance_id, string, the real-time instance that emitted the row. Useful for customer support to identify which instance processed the event. profile_change_type, string, the kind of identity change. One of: "profile_added", "profile_updated_by_stitching", "profile_deleted_by_stitching", or "profile_ids_evicted". See below for details. current_rid, string, the profile the change happened on, as a UUID v7 string. For example 0199f0ad-13b8-7c3d-9fab-b5fb14ebe7cc current_id_attributes, array of strings, the IDs carried by the triggering event that were not already on the profile, as keyname:value strings. For example ["customer_id:3001", "email:[email protected]"]. Populated on profile_added, profile_updated_by_stitching, and profile_ids_evicted rows. NULL on profile_deleted_by_stitching rows. key_values, string, the profile's full association set after the change, comma-separated. For example "customer_id:3001,email:[email protected],td_client_id:abc123". Populated on profile_added and profile_updated_by_stitching rows. NULL on profile_deleted_by_stitching and profile_ids_evicted rows. merged_rids, array of strings, the profiles absorbed into current_rid by a merge. Populated on profile_updated_by_stitching rows when a merge occurred. Empty array or NULL otherwise. For example ["019a9e30-8407-76ff-a67b-b1576b72cf12"] evicted_ids, string, a JSON array of the IDs removed from the profile to stay within the 200-association limit. Populated only on profile_ids_evicted rows. NULL on every other row. For example ["td_client_id:old_cookie_1","td_client_id:old_cookie_2"] td_rt_tracking_id, string, the tracking ID from the originating event when the event carried one. Otherwise null. Use this column to trace a single event across id_changes, validation_failures, and activations tables.

Profile change types

profile_added: The event matched no existing profile, so a new one was c

Полный SKILL.md на GitHub

Установить identity в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл identity?

Query identity change logs (id_changes, validation_failures) to explore profile creation, merging, evictions, and validation errors

Как установить скилл identity?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл identity запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить identity с