data-sdk-review

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

A read-only review of how a project connects to reopt Data SDK packages, which collect and deliver product-usage data. It checks package setup, credentials, server and browser boundaries, user identity, consent, delivery, and development tools.

In plain words
What is it for?
Use it to audit an existing reopt analytics integration and receive a report without changing code, dependencies, environment files, or agent markers.
Why use it?
It helps find unsafe secrets, incompatible package versions, incorrect server/browser usage, and tracking or delivery problems before they cause trouble.

Skill for Claude CodeCodex

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

Good fit Use it to audit an existing reopt analytics integration and receive a report without changing code, dependencies, environment files, or agent markers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/reopt-ai/reopt-skills/data-sdk-review
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-review
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-review

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/reopt-ai/reopt-skills/data-sdk-review"><img src="https://agentmods.dev/badge/skills/reopt-ai/reopt-skills/data-sdk-review.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 2,835 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.02835
Opus 5.5 $0.00039 $0.01134
Sonnet 5.5 $0.00020 $0.00567
Haiku 4.5 $0.00010 $0.00283

Measured 27d ago against content hash cd88ba4f9335, 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-review 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-review/SKILL.md · 71 lines

How it starts

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

reopt Data SDK Review

Read-only by default. Inspect and report; do not edit code, dependencies, env files, or agent markers unless the user explicitly asks for fixes.

Step 1 — Ground the review

  1. Detect installed versions and every import of @reopt-ai/data-sdk* / @reopt-ai/data-contract, plus any reopt-data CLI call in build scripts and which package provides that bin (@reopt-ai/data-cli, or the server package's bin that existed only through 0.4.x).
  2. Read the installed client/server/devtool READMEs (and the data-cli README when it is installed) before judging behavior. Supported floor: client/server 0.2.0, optional devtool 0.2.0, contract 0.7.0; verified against client 0.9.0, server 0.10.0, contract 0.17.0, devtool 0.3.0, data-cli 0.2.0, adapter 0.2.4. A 0.1.x client is a finding when the project relies on error tracking: it sends flat $exception_* keys only.
  3. Read the existing <!-- BEGIN:reopt/data-sdk-agent-rules --> block when present; otherwise use this skill's byte-identical agent-rules.md fallback as review guidance. A missing block is informational in a read-only review.

Step 2 — Review categories

  • Packages — versions below the supported floor, client/server version skew, invalid entrypoint for the runtime, any import of the deprecated @reopt-ai/data-sdk meta-package, server >= 0.5.0 with a build script still calling the server bin (no @reopt-ai/data-cli dev dependency), data-cli on a Node < 22 CI image, @reopt-ai/data-adapter-apps-in-toss whose required @reopt-ai/data-sdk-client peer range does not cover the installed client (0.2.2 stops at ^0.6.0; 0.2.3 adds ^0.7.0 || ^0.8.0; 0.2.4 adds ^0.9.0; a pair that only installs through --legacy-peer-deps, overrides or an ignored pnpm peer warning is a finding) or with reopt auto-capture left on beside Toss Analytics, a client 0.7.0 or server 0.8.0 still in place (the page-hide flush and waitUntil regressions are fixed in client 0.8.0 / server 0.9.0), or a script invoking a reopt-data subcommand the installed version lacks (0.1.0 has no login, account, segment *, org usage, sourcemap list|delete|*-platform, Project-as-Code group, catalogue v2 or --with-types; 0.2.0 has them all, but its platform commands exit 4 without the optional @reopt-ai/brandapp-sdk@^4.7.0-rc.6 + @better-auth/core peers).
  • Secrets — clientSecret, REOPT_DATA_ORG_KEY or REOPT_DATA_API_KEY in NEXT_PUBLIC_*, client components, RSC props, logs, fixtures, source control, browser-visible devtools, or a runtime env that only catalogue/source-map CI needs; an env file holding them that is not gitignored; a Preview/staging build wired to production keys.
  • Lifecycle — createReopt() inside a request/component, duplicate clients, fire-and-forget Node work, missing flush() / close(), treating a client ≥ 0.7.0 flush() result of skipped (another tab owns delivery) as a failure or retrying it in a loop.
  • Next boundary — server package in client code, functions crossing RSC props, getBootstrap() under use cache / request cache, bootstrap invented instead of null.
  • Proxy — /ingest omitted from matcher, wrong prefix/origin, open custom rewrite, reopt before redirect/tenant routing, dropped existing response headers/cookies.
  • Page capture — ReoptPageView plus manual pageview, unbounded dynamic paths, missing web-vitals/path context where intended.
  • Outcomes — a conversion event that also records failures, the same conversion emitted from both browser and server, an outbox eventId minted per attempt instead of stored or derived from the business key, outbox delivery that ignores the consent recorded with the row.
  • Identity — hand-built cookie names, write-key mismatch, trusted browser profile/session id, logout without reset(), delayed conversions losing deviceId, a server ≥ 0.8.0 getProfileId that returns null for signed-in users while the code expects the browser identify() cookie to attribute server events.
  • Consent — external manager uses persist: false without synchronizing the proxy cookie, opt-out retains identity, server events ignore the request decision.
  • Session replay — on client < 0.5.0 any sessionReplay config, setConsent("replay", …) or flushReplay() is a defect (replay ships from 0.5.0). On 0.5.0+: "replay" in consent.categories without defaultConsent: false, an "accept all" path calling setAllConsent(true), recording enabled without a separate visitor decision, flushReplay imported from the package root, bypassed masks or block selectors, public-asset manifests holding visitor uploads / avatars / personalized or authenticated files, replay bodies or the reopt-replay-token grant in logs, and no consent-revocation or reset test. Judge support by the installed version, not the README heading (it still says "npm release pending").
  • Error tracking — capture.exceptionRateLimit: false in production (or the key placed at the config root, where it is silently ignored); addExceptionStep imported from the package root instead of called on the client instance; captureException in loops/retries or with credentials, tokens, or PII in properties, breadcrumb data, or step messages; a client-computed group id instead of a fingerprint suggestion; beforeCapture that can throw; onRequestError missing where server tracking exists (or its multi-project resolve returning credentials without the matching writeKey); release hand-typed or absent while regressions are expected (on the server, a release key passed to createOnRequestError does nothing — it needs beforeCapture returning $release_id); maps uploaded by map filename instead of chunk URL, --url-prefix not matching the served asset origin, sourcemap inject running after upload, a CI gate that treats only exit 1 (not 6, partial failure) as failure, or browser source maps published without a decision recorded (no --delete-after-upload and no explicit choice).
  • Catalogue — use data-event-catalog for requested remediation; in this read-only audit, check for reopt-data.events.json committed without its reopt-data.events.lock.json; event push --apply --force in CI; event verify absent from CI while the file is the declared truth; conversion: true on events that are not business outcomes; high-cardinality keys in rollupProperties; a track() wrapper that ignores the event types output while the project generates it.
  • AI telemetry (server 0.6.0+ ./ai) — captureContent: true without a recorded decision, or captureErrorMessages left on where provider/tool errors echo prompts or tool input.
  • Quota — code that treats a 429 quota_exceeded (or a deferred[] row, client 0.7.0+) as a permanent disable or drops the batch, or that conflates it with the rate_limited 429. The transport preserves the batch and does not trip the circuit breaker; honor Retry-After (up to an hour). An organization that exhausts its monthly data points is rejected until the next month, and the rejection threshold is the purchased quota plus any platform-granted grace, so a warning banner at 80% or 100% is not the same line as the hard stop.
  • Privacy & delivery (client 0.9.0+ / server 0.10.0+) — searchParamsAllowList listing ids, tokens, emails or other personal keys; on < 0.9.0, automatic page views on routes whose query carries secrets with no sanitized manual page view; a privacy.beforePersist that is async, non-deterministic, throws or depends on mutable state; relying on the built-in filter as a PII detector for custom property names; delivery snapshots or devtool output logged next to event payloads; a hand-written /ingest proxy that forwards site cookies / Authorization, forwards more than the three ingest paths, or drops the reopt-sdk header; render-time use of useReoptClient() that assumes non-null, or a pre-commit queued: true treated as delivery; a quota hold (from client 0.8.0 nothing sends until Retry-After) treated as a hang and worked around with a new client.
  • Fail-open — analytics errors break checkout/render/auth, while application validation or authorization incorrectly fails open.
  • Devtool/testing — forced production devtool, raw batches exposed publicly, tests mock ingest before checking the SDK-built payload, no accepted-batch or roundtrip evidence.

Read the full file on GitHub · 71 lines

Files

What ships with it

3 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 · +1 lines cd88ba4f9335
  2. 28d ago Changed · +2 lines 1c8150b2954a
  3. 2mo ago Changed · +3 lines 0d12556fdb9e
  4. 2mo ago Changed · +1 lines 5421490d6232
  5. 3mo ago Changed · +5 lines · +29 tokens per session 1d63b39e290b
  6. 3mo ago First seen · 59 lines · 69 tokens per session scan A a5797e48954b

Subscribe to this mod's changes

data-sdk-review 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 2,835 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-08-31.

Related

data-sdk-review compared with skills from other repositories

data-sdk-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
data-sdk-reviewreopt-ai/reopt-skillsSkill128d agoMITA98Claude Code, Codex
code-review-and-qualityaddyosmani/agent-skillsSkill123k3d agoMITA81Claude Code
code-simplificationaddyosmani/agent-skillsSkill123k3d agoMITA87Claude Code
doubt-driven-developmentaddyosmani/agent-skillsSkill123k3d agoMITA96Claude Code
chinese-code-reviewjnMetaCode/superpowers-zhSkill8.7k5d agoMITA62Claude Code
receiving-code-reviewjnMetaCode/superpowers-zhSkill8.7k5d agoMITA50Claude Code
requesting-code-reviewjnMetaCode/superpowers-zhSkill8.7k5d agoMITA24Claude Code