rt-personalization

rt-personalization is a skill for Claude Code from treasure-data/td-skills. It costs 72 tokens per session (5,305 once invoked), scanned A, original, Apache-2.0.

A creator for Real-Time Personalization services and entities that return personalized responses through an API. A service is the configured endpoint, while an entity contains the personalization data definition.

In plain words
What is it for?
Use it after Real-Time configuration is complete to create a personalization service and deploy its entity with a defined response payload.
Why use it?
It brings the service configuration and the actual personalization entity into one setup task. This avoids creating only one part of the required configuration.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the realtime-skills plugin — 18 skills shipped together

Good fit Use it after Real-Time configuration is complete to create a personalization service and deploy its entity with a defined response payload.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/treasure-data/td-skills/rt-personalization
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add treasure-data/td-skills --skill rt-personalization
Clone the repo
git clone --depth 1 https://github.com/treasure-data/td-skills

Made for: Claude Code.

Or install realtime-skills, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rt-personalization

README.md
[![agentmods](https://agentmods.dev/badge/skills/treasure-data/td-skills/rt-personalization/github.svg)](https://agentmods.dev/skills/treasure-data/td-skills/rt-personalization)
Your own site
<a href="https://agentmods.dev/skills/treasure-data/td-skills/rt-personalization"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/rt-personalization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rt-personalization

Your own site · 80×15
<a href="https://agentmods.dev/skills/treasure-data/td-skills/rt-personalization"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/rt-personalization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,305 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.05305
Opus 5.5 $0.00029 $0.02122
Sonnet 5.5 $0.00014 $0.01061
Haiku 4.5 $0.00007 $0.00530

Measured 2mo ago against content hash 5540ba4a1470, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rt-personalization scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

RESPONSE=$(curl -s -w "\n%{http_code}" \
realtime-skills/rt-personalization/SKILL.md · 697 lines

How it starts

The opening of the file, as written. The whole thing — 697 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RT 2.0 Personalization - Service and Entity Creation

Creates complete RT personalization: service configuration + Personalization entity with payload deployed to Console.

Prerequisites

  • RT configuration complete (rt-config skill or rt-setup-personalization orchestrator)
  • RT status: "ok"
  • Key events created
  • RT attributes configured
  • Parent segment folder exists
  • TD_API_KEY environment variable set

Two-Step Creation Process

Step 1: Create Personalization Service (YAML workflow)

  • Defines sections, criteria, attributes
  • Pushed via tdx ps push
  • Creates service configuration

Step 2: Create Personalization Entity (API workflow)

  • Creates actual Personalization in Console
  • Defines entry criteria (key event)
  • Defines payload (response attributes)
  • Visible in TD Console UI

Both steps required for complete personalization setup.

Migration from Previous Version

If you previously created a personalization service (before this update):

The old skill only created the service configuration (Step 1). The entity (Step 2) was missing, making personalization invisible in Console.

Check if Entity Exists

# Detect region
REGION=$(tdx config get endpoint 2>/dev/null | grep -o '[a-z][a-z][0-9][0-9]' | head -1)
REGION="${REGION:-us01}"

# List existing personalizations
RESPONSE=$(curl -s -w "\n%{http_code}" \
  "https://api-cdp.treasuredata.com/entities/parent_segments/<ps_id>/realtime_personalizations" \
  -H "Authorization: TD1 ${TD_API_KEY}")

HTTP_CODE=$(echo "$RESPONSE" | tail -n1)
BODY=$(echo "$RESPONSE" | sed '$d')

if [ "$HTTP_CODE" = "200" ]; then
  echo "$BODY" | jq '.data[] | {id, name}'
else
  echo "❌ Failed to list personalizations (HTTP $HTTP_CODE)"
  echo "$BODY" | jq '.errors[]? | .detail' 2>/dev/null || echo "$BODY"
fi

If Entity is Missing

Option 1: Run Step 2 Only (Recommended)

  • Skip Step 1 (service already exists)
  • Follow Step 2 (sections 2a-2e) to create entity

Option 2: Recreate Everything

  1. Delete old service: tdx ps pz delete <ps_id> <service_name>
  2. Run complete skill (Step 1 + Step 2)

Read the full file on GitHub · 697 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 697 lines · 72 tokens per session scan A 5540ba4a1470

Subscribe to this mod's changes

rt-personalization is a skill published in the GitHub repository treasure-data/td-skills (22 stars, last pushed 5d ago), licensed Apache-2.0. It adds 72 tokens to every session and 5,305 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

rt-personalization compared with skills from other repositories

rt-personalization next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rt-personalizationtreasure-data/td-skillsSkill225d agoApache-2.0A72Claude Code
mem0-oss-to-platformmem0ai/mem0Skill69k3d agoApache-2.0A217Claude Code, Codex
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2ktodayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.2ktodayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.0ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill573todayMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill254todayMITA106Claude Code