data-sdk-integration

data-sdk-integration is a skill for Claude Code, Codex from reopt-ai/reopt-skills. It costs 98 tokens per session (1,532 once invoked), scanned A, original, MIT.

A workflow for adding product-event tracking to a consumer app with the reopt Data SDK. It covers deciding what user actions matter, defining typed event records, respecting consent, sending events from browsers or servers, and checking the live results.

In plain words
What is it for?
Use it to plan funnels, add event calls, maintain an analytics catalogue as code, test tracking, and verify that events arrive correctly.
Why use it?
It removes the guesswork and inconsistency that can make product analytics unreliable. It also helps prevent tracking without consent or creating duplicate event definitions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to plan funnels, add event calls, maintain an analytics catalogue as code, test tracking, and verify that events arrive correctly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/reopt-ai/reopt-skills/data-sdk-integration
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 reopt-ai/reopt-skills --skill data-sdk-integration
Clone the repo
git clone --depth 1 https://github.com/reopt-ai/reopt-skills

Made for: Claude Code, Codex.

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 data-sdk-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/reopt-ai/reopt-skills/data-sdk-integration/github.svg)](https://agentmods.dev/skills/reopt-ai/reopt-skills/data-sdk-integration)
Your own site
<a href="https://agentmods.dev/skills/reopt-ai/reopt-skills/data-sdk-integration"><img src="https://agentmods.dev/badge/skills/reopt-ai/reopt-skills/data-sdk-integration/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 data-sdk-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/reopt-ai/reopt-skills/data-sdk-integration"><img src="https://agentmods.dev/badge/skills/reopt-ai/reopt-skills/data-sdk-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,532 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.00098 $0.01532
Opus 5.5 $0.00039 $0.00613
Sonnet 5.5 $0.00020 $0.00306
Haiku 4.5 $0.00010 $0.00153

Measured 27d ago against content hash bcf4ead51d33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-sdk-integration 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 27d 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.

skills/data-sdk-integration/SKILL.md · 123 lines

How it starts

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

reopt Data SDK Integration

Load data-sdk-install first; this skill owns product instrumentation after transport setup.

1. Establish the real baseline

  1. Inspect the framework, package manager, routes, auth/session model, existing analytics providers, event helpers, consent owner, server-confirmed outcomes, and tests. Preserve useful existing contracts instead of creating a parallel taxonomy.
  2. Read installed client/server READMEs before choosing APIs. Use data-event-catalog when the work includes catalogue files, synchronization, or generated event types. Never import the deprecated @reopt-ai/data-sdk.
  3. Identify the Data project and credentials. Do not invent IDs, commit live placeholders, or provision remote resources without user authorization. Missing credentials go back to the user through the data-sdk-install checklist, never to another agent session; instrument fail-open meanwhile.

2. Write the measurement plan before call sites

  • Start from decisions: acquisition, activation, engagement, completion, retention, sharing, and qualified conversion. Define a short funnel for each journey and state what question every event answers.
  • Use stable snake_case names and properties. Prefer durable IDs, enums, booleans, counts, durations, and bounded categories; reject free text, full URLs with sensitive query parameters, direct PII, and high-cardinality rollup keys.
  • Record attempts and outcomes separately. Emit authoritative outcomes only after the server or durable store confirms them. A *_result event carrying success and failure is for diagnosis; the conversion is a separate success-only event, emitted from exactly one place (prefer the server).
  • Give page views, web vitals, and lifecycle events one owner to prevent duplicates.

3. Make the contract executable

  1. Create or extend one typed event registry containing description, required properties, conversion intent, and useful dimensions. Validate before delivery in development and cover required-property rules with tests.
  2. Build one privacy sanitizer and event-envelope builder. Fan the same payload to existing providers and remove provider-only fields at adapter boundaries.
  3. Segment definitions are not part of this flow. The published contract (@reopt-ai/data-contract/segment, v2 since contract 0.12.0) exposes no create surface on any client or CLI because a definition needs catalogue validation — they are authored in the console. Design event names and properties so the five attribute scopes (event, profile, device, session, first_touch) and the eleven criterion kinds can address them.
  4. Use data-event-catalog to persist the event/attribute metadata, reconcile it with the server, and generate event types. Connect those types to the shared track() wrapper; keep required properties and runtime validation in the consumer contract above.

Read the full file on GitHub · 123 lines

Files

What ships with it

2 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. 27d ago Changed · +15 lines bcf4ead51d33
  2. 28d ago Changed · -6 lines · -4 tokens per session edeb2a164b64
  3. 2mo ago Changed · +8 lines e84b8d39d162
  4. 3mo ago First seen · 106 lines · 102 tokens per session scan A df5e332492f8

Subscribe to this mod's changes

data-sdk-integration is a skill published in the GitHub repository reopt-ai/reopt-skills (1 stars, last pushed 28d ago), licensed MIT. It adds 98 tokens to every session and 1,532 once invoked, about $0.0004 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-09-05.

Related

data-sdk-integration compared with skills from other repositories

data-sdk-integration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
data-sdk-integrationreopt-ai/reopt-skillsSkill128d agoMITA98Claude Code, Codex
idea-refineaddyosmani/agent-skillsSkill123k3d agoMITA75Claude Code
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.7k5d agoMITA69Claude Code
chinese-documentationjnMetaCode/superpowers-zhSkill8.7k5d agoMITA62Claude Code
subagent-driven-developmentjnMetaCode/superpowers-zhSkill8.7k5d agoMITA21Claude Code
create-slack-appslackapi/slack-skills-pluginSkill177yesterdayMITA101Claude Code
skill-trigger-auditorAlexZio00/sovereign-skillsSkill1605d agoMITA38Claude Code, Codex