evaluating-sdk-internal-updates
БесплатноЗапускает вложенные скриптыНе проверенEvaluates a bitwarden/clients "Update sdk-internal to" PR against the sdk-internal commit range for compile-time and runtime breaking changes, maps affected…
от bitwarden★ 14 360 звёзд на GitHubОб этом скилле
Evaluating sdk-internal Updates
Identify both compile-time and runtime breaks before fixing anything — fixing the first break found is not finishing. Steps 4-7 cover the entire commit range, step 8 reports it, and step 9 starts only after that.
This SDK is the boundary where Protected Data becomes Vault Data. A fix must not send a decrypted value to an API service, log one, or move a decrypt out of the SDK into TypeScript. .claude/CLAUDE.md forbids new encryption logic in this repo, so a bump that appears to require some is a finding to report, not a fix to write. Security definitions.
Identify
Binding surface facts specific to this SDK: the pin is two npm versions in the root package.json, @bitwarden/sdk-internal and @bitwarden/commercial-sdk-internal, always the same string — npm run lint:sdk-internal-versions fails if they differ. The version encodes no commit; the sdk-internal SHA lives in VERSION inside the tarball. Nothing generated is committed, here or upstream: the API record is bitwarden_wasm_internal.d.ts inside the published package, whose root and node/ copies are byte-identical, and bitwarden_wasm_internal_bg.wasm.d.ts is raw ABI and never a finding.
The annotations behind this surface are #[wasm_bindgen] and derive(..., Tsify). #[uniffi::export] is mobile-only and largely disjoint, so a uniffi sweep under-reports this surface badly. Serde attributes are part of the emitted type: rename, rename_all, skip and Option changes alter the .d.ts with no Rust signature change, and a features = ["wasm"] edit in crates/bitwarden-wasm-internal/Cargo.toml adds or removes types wholesale. Enum members are wire values (CipherType.Login = 1); a renumbering compiles clean at every call site and corrupts data.
Most classes have a private constructor() and are reachable only through a parent client accessor (sdk.user_crypto_management()), so a renamed accessor breaks callers with the class itself unchanged. tsconfig.base.json sets skipLibCheck: true, so only call sites are checked. bitwarden_license/bit-common/src/platform/sdk/sdk-alias.d.ts re-exports the commercial package under the @bitwarden/sdk-internal module name and ESLint forbids importing it directly, so call sites grep identically for both packages.
gh pr diff <PR> -R bitwarden/clients -- package.json→ the old and new version.- Locate the
bitwarden/sdk-internalclone in a sibling directory —../sdk-internal, where CI places it. If there is none, stop and tell the user it is a required prerequisite for this skill; do not clone it yourself. - Read the baseline type check. In CI it has already run and the prompt names its log; grep it for
error TSand treat that as this step's output. Do not run it. Locally,npm run test:types. Note any failure and continue — a clean run rules out compile breaks only where the baseline looks, and step 7 is where it does not look. node .claude/skills/evaluating-sdk-internal-updates/sdk-surface-diff.mjs <old-version> <new-version>, then again with--commercial. It prints RANGE (including the sdk-internal SHA pair step 5 needs), REMOVED, ADDED and MUTATED, keyed per member: a class method, interface property and enum member each get their ownOwner.memberentry. In ADDED, only a pre-existing owner is a break — a new non-optional property on an existing interface breaks every construction site.git -C ../sdk-internal log --reverse --oneline <old-sha>..<new-sha>, thenshoweach commit. Classify per hunk, not per commit — a commit with one additive headline change can still carry a second, unrelated breaking hunk. A hunk that only touches a macro invocation does not show the surface; read the macro's definition before classifying it. This is also what explains a property the step 4 diff shows renamed or gone.- For every symbol from step 4,
git grep -n '<Symbol>'from the repo root for the bare name — no module list and no import-prefix filter, since everything arrives as a plain@bitwarden/sdk-internalimport and both apps andbitwarden_licenseconsume it. Usegit grep, notgrep -r, which also searchesnode_modules/@bitwarden/*sdk-internal/and reports the bindings themselves as call sites. A surface change stays a candidate until a call site makes it a finding. - Three sets of call sites step 3 does not cover. Read each one the range touches.
apps/andbitwarden_license/get no dedicatedtscleg and ride only ontsc-strict, which filters by file, so an ordinary type error inside a@ts-strict-ignorefile is discarded:git grep -l '@bitwarden/sdk-internal' -- 'apps/**' 'bitwarden_license/**', then check that file list for@ts-strict-ignorewith theGreptool rather than piping intoxargs, which carries no grant of its own.- The root
tsconfig.jsonexcludes app spec files but notbitwarden_licenseones, so `gi
Установить evaluating-sdk-internal-updates в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(node .claude/skills/evaluating-sdk-internal-updates/sdk-surface-diff.mjs *)Bash(npm run test:types)Bash(npm run lint:fix)Bash(npm test -- *)Bash(npx prettier *)Bash(gh pr diff:*)Bash(gh pr view:*)Bash(git -C * log *)Bash(git -C * show *)Bash(git grep:*)Bash(git add:*)Bash(git commit:*)Bash(grep:*)ReadGrepGlobEditWriteSkill(writing-client-code)Skill(bitwarden-delivery-tools:committing-changes)Вложенные файлы
FAQ
Что делает скилл evaluating-sdk-internal-updates?
Evaluates a bitwarden/clients "Update sdk-internal to" PR against the sdk-internal commit range for compile-time and runtime breaking changes, maps affected symbols to TypeScript call sites, and applies clear in-scope fixes. Use when reviewing an SDK bump PR, an @bitwarden/sdk-internal version change in package.json, or triaging sdk-internal breaking changes. Requires a sibling `bitwarden/sdk-internal` clone.
Как установить скилл evaluating-sdk-internal-updates?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл evaluating-sdk-internal-updates запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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