optimization-sdk-sync
БесплатноБез исполняемых скриптовНе проверенSynchronize the Contentful Optimization SDK's public API, behavior, and implementation guidance into concise, runtime-specific references for the…
от contentful★ 43 звезды на 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:
- An explicit local path supplied by the user.
- An existing reusable clone at
.docs/optimization-sdk-sync/repository. - 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:
- Inspect the managed cache's origin and worktree status before checkout.
- Verify
originis exactly the official HTTPS repository before fetching. - 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.
- Fetch the requested ref, defaulting to
main. - Resolve it to a full immutable commit SHA.
- Inspect a detached checkout of that SHA. Do not use
git pullor merge upstream history.
For an explicit local path:
- Resolve and record
HEAD. - Record the origin URL when present.
- If tracked or untracked files are present, treat the run as preview-only unless the user explicitly asks to use dirty state.
- Never edit, clean, stash, reset, or otherwise mutate the source repository.
Read repository policy first
Before interpreting upstream files, read every applicable AGENTS.md from the repository root down to each source directory. Follow upstream-generated-file and validation rules.
Evidence hierarchy
Use all four evidence layers. Knowledge-base facts and types alone are not sufficient for complete agent guidance.
- Knowledge base — behavioral contracts, caveats, lifecycle, architecture, platform differences, and source pointers under
documentation/internal/sdk-knowledge/. - Public exports and types — exact import paths, names, signatures, option shapes, return values, and deprecations under
packages/. - Guide blueprints — task coverage, prerequisite ordering, validation expectations, and troubleshooting branches under
documentation/authoring/blueprints/. - Maintained implementations and public docs — canonical composition, file boundaries, realistic usage, edge cases, and completeness checks.
Resolve conflicts using the most authoritative source for the claim:
- exact API shape: public exports and types
- behavioral semantics: knowledge-base fact backed by its source pointer
- implementation topology: maintained first-party implementation
- task completeness: blueprint
- public wording: public docs, only after checking the layers above
Never infer an API from prose when an exported type or implementation is available.
Treat repository knowledge and guide validators as structural integrity gates. They verify pointers, templates, links, and planned structure; they do not prove that two valid sources agree semantically. When a knowledge fact conflicts with an exported public type, record the discrepancy and follow the public type for downstream API guidance.
Validate upstream inputs
From the resolved checkout, run the repository's documented dependency setup if required, then:
pnpm knowledge:check
pnpm guides:check
Record each result as passed, failed, or blocked. A sandbox, dependency, or runtime restriction
is blocked, not failed, but both are non-passing. Stop authoritative downstream writes unless
both checks pass; report the immutable SHA, command, status, and concrete failure or blocking reason.
Determine the delta
Read src/skills/contentful-personalization/optimization-sdk-sync.json when it exists. Compare its previous upstream SHA with the newly resolved SHA.
Use the changed-file set to prioritize inspection, but always revalidate:
- public entry points and declarations for affected packages
- fact files that point to changed code
- affected blueprints
- maintained examples referenced by those facts or blueprints
A file delta narrows review; it never
Установить optimization-sdk-sync в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл optimization-sdk-sync?
Synchronize the Contentful Optimization SDK's public API, behavior, and implementation guidance into concise, runtime-specific references for the contentful-personalization skill. Use when the optimization repository or SDK documentation changes, when modern SDK guidance appears stale, or when validating that the skill matches an immutable upstream revision.
Как установить скилл optimization-sdk-sync?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл optimization-sdk-sync запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic