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 id-graph-ids-to-canonical-idgit 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/id-graph-ids-to-canonical-id)<a href="https://agentmods.dev/skills/treasure-data/td-skills/id-graph-ids-to-canonical-id"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/id-graph-ids-to-canonical-id/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/id-graph-ids-to-canonical-id"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/id-graph-ids-to-canonical-id.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.00047 | $0.00408 |
| Opus 5.5 | $0.00019 | $0.00163 |
| Sonnet 5.5 | $0.00009 | $0.00082 |
| Haiku 4.5 | $0.00005 | $0.00041 |
Grade A, and why
id-graph-ids-to-canonical-id 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.
What it actually says
ID Graph - IDs to Canonical ID
Detect over-stitching by finding individual IDs that appear across multiple canonical ID groups.
Requirements
- Parent segment ID with RT 2.0 enabled
Database
The database name contains the parent segment ID and has this format cdp_audience_411671. This is where you can plug in the parent segment the user gives in the request.
ids_updated table
The ID graph table is typically called ids_updated and is in the Parent Segment real time database. This table contains the canonical ID mappings created by RT 2.0's ID stitching process.
Schema
The ids_updated table has the following key columns:
- canonical_id, string, the canonical identifier for a group of stitched IDs
- id_set, array(string), array of individual identifiers that belong to this canonical group
Core Query
The main query to identify individual IDs mapping to multiple canonical IDs:
WITH flattened_ids AS (
SELECT
canonical_id,
individual_id
FROM cdp_audience_<parent_segment_id>.ids_updated
CROSS JOIN UNNEST(id_set) AS t(individual_id)
WHERE td_interval(time, '-7d') -- Avoid full table scan
),
id_counts AS (
SELECT
individual_id,
COUNT(DISTINCT canonical_id) as canonical_count,
ARRAY_AGG(DISTINCT canonical_id) as canonical_ids
FROM flattened_ids
GROUP BY individual_id
)
SELECT
individual_id,
canonical_count,
canonical_ids
FROM id_counts
WHERE canonical_count > 1 -- Only show over-stitching cases
ORDER BY canonical_count DESC, individual_id
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 · 58 lines · 47 tokens per session scan A 923e8c454fc2
id-graph-ids-to-canonical-id is a skill published in the GitHub repository treasure-data/td-skills (22 stars, last pushed 5d ago), licensed Apache-2.0. It adds 47 tokens to every session and 408 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.
id-graph-ids-to-canonical-id compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| id-graph-ids-to-canonical-idtreasure-data/td-skills | Skill | 22 | 5d ago | Apache-2.0 | A | 47 | Claude Code |
| systematic-debuggingopen-metadata/OpenMetadata | Skill | 16k | today | Apache-2.0 | A | 37 | Claude Code |
| log-error-digestzebbern/claude-code-guide | Skill | 4.7k | 3d ago | MIT | A | 71 | Claude Code, Codex |
| incident-response-incident-responsermyndharis/antigravity-skills | Skill | 2.0k | 2d ago | MIT | A | 36 | Claude Code, Codex |
| cwv-optimizeradobe/skills | Skill | 322 | today | Apache-2.0 | A | 112 | Claude Code |
| ci-fixersipyourdrink-ltd/bernstein | Skill | 1.2k | today | Apache-2.0 | A | 15 | Claude Code, Codex |
| diagnosing-missing-recordingsPostHog/posthog | Skill | 41k | today | none | A | 76 | Claude Code, Codex |