rt-personalization-validation

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

A validator for Real-Time Personalization entity data before it is sent to the creation API. It checks the payload, the data structure sent to the service, for common errors.

In plain words
What is it for?
Use it during the personalization setup process before creating an entity, or when reviewing personalization payloads.
Why use it?
It helps catch invalid or empty data before an API request fails. Use it especially when the API reports that an attribute payload is blank.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

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

Good fit Use it during the personalization setup process before creating an entity, or when reviewing personalization payloads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/treasure-data/td-skills/rt-personalization-validation
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-validation
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-validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/treasure-data/td-skills/rt-personalization-validation/github.svg)](https://agentmods.dev/skills/treasure-data/td-skills/rt-personalization-validation)
Your own site
<a href="https://agentmods.dev/skills/treasure-data/td-skills/rt-personalization-validation"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/rt-personalization-validation/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-validation

Your own site · 80×15
<a href="https://agentmods.dev/skills/treasure-data/td-skills/rt-personalization-validation"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/rt-personalization-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,598 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00066 $0.02598
Opus 5.5 $0.00026 $0.01039
Sonnet 5.5 $0.00013 $0.00520
Haiku 4.5 $0.00007 $0.00260

Measured 2mo ago against content hash 575fa3b44b63, 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-validation scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

realtime-skills/rt-personalization-validation/SKILL.md · 370 lines

How it starts

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

RT Personalization Entity Validation

Validates personalization entity payloads and provides error-free templates.

When to Use This Skill

Proactive Validation (REQUIRED)

During rt-setup-personalization workflow at Step 9c:

  • MUST be invoked BEFORE making the personalization entity creation API call
  • Validates the complete payload JSON with actual values (not placeholders)
  • Prevents common API errors by catching issues before submission
  • This is a mandatory workflow step, not optional

Reactive Validation (Debugging)

After encountering API errors:

  • When seeing "Attribute payload can't be blank" errors
  • When personalization creation fails with validation errors
  • When reviewing existing personalization configurations
  • When troubleshooting payload structure issues

Critical Validation Rules

Rule #1: Empty Arrays Cause Errors

The #1 cause of "Attribute payload can't be blank" errors:

// ❌ FAILS - Empty arrays trigger validation errors
"stringBuilder": []
"attributePayload": []

// ✅ WORKS - Use null instead
"stringBuilder": null
"attributePayload": null
Value Result
null or omitted ✅ OK - skips validation
[] (empty array) ❌ ERROR - "can't be blank"

Rule #2: At Least One Payload Required

Section definition must include at least ONE of:

  • attributePayload (with content)
  • stringBuilder (with content)
  • catalogPayload (with content, feature-flagged)

All three cannot be null/empty simultaneously.

Rule #3: Misleading Error Messages

The API reports errors incorrectly:

Error: "sections[0].payload.node_id.definition.attribute_payload": ["Attribute payload can't be blank"]

Actual cause: stringBuilder: [] (empty array) Reported cause: attribute_payload (misleading)

Always check stringBuilder first when seeing "can't be blank" errors.


Field Validation Rules

attributePayload

Field Validation
outputName Required, max 256 chars, unique across all payload types
realtimeAttributeId Required, must exist in CDP cache
subAttributeIdentifier Required for ListAttribute/SlidingCounterAttribute only

Read the full file on GitHub · 370 lines

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 · 370 lines · 66 tokens per session scan A 575fa3b44b63

Subscribe to this mod's changes

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

Related

rt-personalization-validation compared with skills from other repositories

rt-personalization-validation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rt-personalization-validationtreasure-data/td-skillsSkill225d agoApache-2.0A66Claude 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