optimization-sdk-sync

optimization-sdk-sync is a skill for Claude Code from contentful/skills. It costs 64 tokens per session (1,967 once invoked), scanned A, original, MIT.

A procedure for updating implementation references for Contentful’s Optimization SDK, which helps applications use personalization features, from verified upstream code and documentation.

In plain words
What is it for?
Use it when the Optimization SDK or its documentation changes, or when checking whether Contentful personalization references are outdated across supported JavaScript runtimes.
Why use it?
It keeps agent guidance aligned with current SDK behavior while preserving older guidance unless compatibility evidence requires a change.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 local-skills/skills/skill-authoring/scripts/quick_validate.py local-skills/skills/optimization-sdk-sync.

Part of the contentful plugin — 12 skills shipped together

Good fit Use it when the Optimization SDK or its documentation changes, or when checking whether Contentful personalization references are outdated across supported JavaScript runtimes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/contentful/skills
agentmods
npx agentmods add skills/contentful/skills/optimization-sdk-sync

Made for: Claude Code.

Or install contentful, the plugin that ships this one along with the rest of its 12 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 optimization-sdk-sync

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/contentful/skills/optimization-sdk-sync"><img src="https://agentmods.dev/badge/skills/contentful/skills/optimization-sdk-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,967 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 210
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00064 $0.01967
Opus 5.5 $0.00026 $0.00787
Sonnet 5.5 $0.00013 $0.00393
Haiku 4.5 $0.00006 $0.00197

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

Security

Grade A, and why

optimization-sdk-sync 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.

local-skills/skills/optimization-sdk-sync/SKILL.md · 227 lines

How it starts

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

Optimization SDK Sync

Update the modern Optimization SDK knowledge in contentful-personalization from a verified upstream revision. Optimize the result for an agent solving implementation tasks: concise, explicit, runtime-specific, and grounded in public API and maintained examples.

Do not copy upstream guides wholesale. Treat this as a knowledge compilation workflow.

Scope

This skill owns modern @contentful/optimization* guidance. Preserve legacy @ninetailed/* guidance unless upstream evidence requires a compatibility correction.

Supported runtime references:

  • shared concepts and behavior
  • React Web
  • Next.js App Router
  • Next.js Pages Router
  • browser Web
  • Node.js
  • React Native

Do not synthesize iOS or Android guidance until upstream provides equivalent knowledge-base facts, public API declarations, and guide blueprints.

Source resolution

Use the public repository by default:

https://github.com/contentful/optimization.git

Resolve sources in this order:

  1. An explicit local path supplied by the user.
  2. An existing reusable clone at .docs/optimization-sdk-sync/repository.
  3. A fresh clone of the official HTTPS repository into that cache.

The cache is repo-local working state for the sync process. It is not committed or distributed. Reusing it avoids cloning the public repository on every run while still allowing the skill to fetch and inspect an exact upstream commit.

For the default remote flow:

  1. Inspect the managed cache's origin and worktree status before checkout.
  2. Verify origin is exactly the official HTTPS repository before fetching.
  3. If the origin differs or the cache has local changes, do not repoint, reset, delete, or clean it. Stop and report the conflict, or use a separately approved clean cache.
  4. Fetch the requested ref, defaulting to main.
  5. Resolve it to a full immutable commit SHA.
  6. Inspect a detached checkout of that SHA. Do not use git pull or merge upstream history.

For an explicit local path:

Read the full file on GitHub · 227 lines

Files

What ships with it

1 file 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. 2mo ago First seen · 227 lines · 64 tokens per session scan A e38de362a179

Subscribe to this mod's changes

optimization-sdk-sync is a skill published in the GitHub repository contentful/skills (40 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 1,967 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

Other skills, from other repositories

cloudflare-hygiene

Audit + harden + optimize live Cloudflare zones/domains - read-only sweep of each zone (SSL/TLS mode, HSTS, min TLS, TLS 1.3, Always-Use-HTTPS, Brotli, HTTP/3, 0-RTT, Early Hints, caching, security level, Bot Fight Mode, WAF, DNS proxy/TTL + SPF/DKIM/DMARC hygiene, DNSSEC) -> ok/attention/action report grouped by…

pivoshenko/pivoshenko.ai · 220 tokens

cf-cli

Cloudflare's official cf CLI (beta) for the public Cloudflare API and Workers projects. Use for finding and running Cloudflare commands from the terminal — sign-in and profiles, cf cli search, cf schema, cf deploy/dev/build, resource commands for DNS, zones, D1, KV, and R2 — and for choosing between cf and Wrangler in…

cloudflare/skills · 78 tokens

workers-best-practices

Cloudflare Workers best practices for production applications. Use when writing, reviewing, or configuring Workers.

cloudflare/skills · 25 tokens

find-journalists

Build a researched, fit-checked journalist list for a specific PR campaign. Prefer Medialyst's asynchronous media-list research workflow when available, with explicit approval before credit spend; otherwise produce a best-effort local list with only publicly listed, source-cited contacts.

elvisun/newsjack · 58 tokens

story-origin-check

Recover the first public timestamp and canonical major coverage for a newsjacking signal, then decide whether newer coverage is the same story, a different story, or a materially new development.

elvisun/newsjack · 40 tokens

ai-visibility-writing

Audit, question, suggest, or fact-preservingly revise a press release, blog post, contributed article, or expert explainer so AI answer systems can more easily retrieve, understand, quote, and cite its useful information. Use when someone asks for AI visibility, AI search, answer-engine, AEO, GEO, AI Overview, or…

elvisun/newsjack · 137 tokens