evaluating-sdk-internal-updates
БесплатноЗапускает вложенные скриптыНе проверенEvaluates a bitwarden/ios "Update SDK to" PR against the sdk-swift commit range for compile-time, runtime and serialization breaking changes, maps affected…
от bitwarden★ 748 звёзд на GitHubОб этом скилле
Evaluating sdk-internal Updates
Read the build before crawling, and survey the whole range before fixing anything. A failing build locates a compile break more precisely than any diff; the binding diff finds what compiles clean and breaks at runtime. Steps 3-8 complete before step 9 starts.
Identify
iOS pins a bitwarden/sdk-swift revision, not sdk-internal, and sdk-swift commits its generated UniFFI Swift. That is both the source iOS compiles against and the diffable record of the API change; use sdk-internal only to explain why something changed. Every crate flattens into one BitwardenSdk target, so a type moving between generated files is a Kotlin import break and an iOS no-op — never report one. The iOS-only hazard is the reverse: a new name colliding with an existing one. sdk-swift's main is months behind; releases live on unstable and v<version> tags.
gh pr diff <PR> -R bitwarden/ios→ the old and newrevision:lines inproject-common.yml. The SHA is an sdk-swift revision; the trailing comment is<semver>-<ci-run>-<sdk-internal-short-sha>. Take the pin from the PR diff or a fresh fetch, not from a localorigin/sdlc/sdk-updateref, which is long-lived and force-updated, so a stale copy shows a version no longer on the branch. A pure bump touches only that file andBitwarden.xcworkspace/xcshareddata/swiftpm/Package.resolved; that file's unchangedoriginHashand the untrackedBitwardenKit.xcodeproj/.../Package.resolvedare not findings.- Locate the sdk-swift clone in a sibling directory —
../sdk-swiftalongside this repo, which is where CI places it. If there is none, stop and tell the user it is a required prerequisite; do not clone it. sdk-internal (../sdk-internal) is optional, needed only for step 5. - Get a build of both apps. In CI the build has already run and the prompt names its log; grep that log with the filter below and treat the result as this step's output. Do not build. A cold build of both schemes exceeds the ceiling on a single command, so building here is not an option that merely costs time. Everything else in this step is the local path, and step 10 needs the invocation regardless. Every
xcodebuildinvocation in this skill — here and in step 10 — takes the same destination: CI exports_SIMULATOR_IDfor an already-booted simulator, and outside CI there is none, so substitutename=$(tr -d '\n' < .test-simulator-device-name),OS=$(tr -d '\n' < .test-simulator-ios-version)forid=$_SIMULATOR_IDin both blocks. Avoidgeneric/platform=iOS Simulator, which also builds x86_64 for no extra signal.
Repeat withxcrun xcodebuild build-for-testing -workspace Bitwarden.xcworkspace -scheme Bitwarden \ -configuration Debug -destination "platform=iOS Simulator,id=$_SIMULATOR_ID" \ -derivedDataPath build/DerivedData -parallelizeTargets \ -skipPackagePluginValidation -skipMacroValidation -quiet 2>&1 \ | grep -E '^=== | error:|BUILD|Undefined symbols|^ld:'-scheme Authenticator. Usebuild-for-testing, notbuild:BitwardenSdkMocksis reachable only from test targets, and a renamed protocol breaks there first. The filter carriesUndefined symbolsand^ld:because a link failure is reported by neithererror:norBUILD, and a symbol-level break is exactly what this skill exists to catch; on anyBUILD FAILEDwith no cause above it, read around the failure in the CI log, or re-run unfiltered locally. The CI log holds both schemes, each bracketed by=== <scheme> ===and=== <scheme> exit=<code> ===, which the^===alternation above keeps in the filtered view; those markers are how a build that ran clean is distinguished from one that never started, and-quietprints no success banner, so treat a missing pair as an error rather than as a pass../Scripts/bootstrap.shmust have run first: the.xcodeprojfiles are generated, and a stale one omits sources and reportscannot find 'X' in scope, which mimics an SDK break. Note any failure and continue — a clean build rules out compile breaks only. - From the repo root,
bash .claude/skills/evaluating-sdk-internal-updates/sdk-surface-diff.sh <sdk-swift-path> <old> <new>prints RANGE, REMOVED, ADDED and MUTATED. MUTATED compares type declaration lines only, so--declsis the only view of a signature change on any function or method, and--type <TypeName>the only view of a type's members or its initializer. A reordered record field appears in no section, since initializers are excluded and both sides of--declsare sorted; step 3's build is the only gate for it. Enum cases and protocol requirements take no access modifier, so they reach no section and no--declshunk either: a case added to an enum that already existed is visible only through--type, and adefault:clause at the call site hides it from step 3 as well, so run--typeagainst every enum and protocol the RANGE commits touch. ADDED lists<kind> <name>,
Установить evaluating-sdk-internal-updates в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(gh pr diff:*)Bash(xcrun xcodebuild *)Bash(bash .claude/skills/evaluating-sdk-internal-updates/sdk-surface-diff.sh *)Bash(git -C * diff *)Bash(git grep:*)Bash(grep:*)Bash(git add:*)Bash(git commit:*)ReadGrepGlobEditWriteSkill(implementing-ios-code)Skill(bitwarden-delivery-tools:committing-changes)Вложенные файлы
FAQ
Что делает скилл evaluating-sdk-internal-updates?
Evaluates a bitwarden/ios "Update SDK to" PR against the sdk-swift commit range for compile-time, runtime and serialization breaking changes, maps affected symbols to iOS call sites, and applies clear in-scope fixes. Use when reviewing an SDK bump PR, a BitwardenSdk revision change in project-common.yml, or triaging sdk-internal breaking changes.
Как установить скилл 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