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.
npx skills add treasure-data/td-skills --skill identify-top-key-valuesgit clone --depth 1 https://github.com/treasure-data/td-skillsWrote 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.
[](https://agentmods.dev/skills/treasure-data/td-skills/identify-top-key-values)<a href="https://agentmods.dev/skills/treasure-data/td-skills/identify-top-key-values"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/identify-top-key-values/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.
<a href="https://agentmods.dev/skills/treasure-data/td-skills/identify-top-key-values"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/identify-top-key-values.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.00682 |
| Opus 5.5 | $0.00022 | $0.00273 |
| Sonnet 5.5 | $0.00011 | $0.00136 |
| Haiku 4.5 | $0.00005 | $0.00068 |
Grade A, and why
identify-top-key-values 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.
How it starts
The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on 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;
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.
- 2mo ago First seen · 80 lines · 54 tokens per session scan A 1ab0b7c00d7f
identify-top-key-values is a skill published in the GitHub repository treasure-data/td-skills (22 stars, last pushed 5d ago), licensed Apache-2.0. It adds 54 tokens to every session and 682 once invoked, about $0.0002 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.
identify-top-key-values compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| identify-top-key-valuestreasure-data/td-skills | Skill | 22 | 5d ago | Apache-2.0 | A | 54 | Claude Code |
| imagegenopenai/codex | Skill | 134k | today | Apache-2.0 | A | 113 | Codex |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | 3d ago | MIT | A | 200 | Claude Code, Codex |
| playwright-climicrosoft/playwright | Skill | 100k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 394k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 315k | 6d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |