Skip to content
Back to skills

Upgrade Sdk

ASecurity

Upgrade the Sendbird SDKs a project already uses to the newest release of the same major version. Reads the installed versions, looks up the newest published version in the registry, lists the deprecated APIs the project calls with the replacement the SDK names, and applies the version bump and the replacements only after the customer confirms. When the customer asks to move to a newer major version (for example Chat SDK v3 to v4), plans that move from the public migration guide, Chat SDK fir...

  • 20 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmenttypescriptgoswiftshellbashreactgitapi

Works with

  • claude code
  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 30, 2026

npx -y skills add sendbird/sendbird-client-plugin --skill upgrade-sdk --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Upgrade Sdk?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Upgrade Sdk
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sendbird-upgrade-sdk/badge)](https://www.skillsdirectory.com/skills/sendbird-upgrade-sdk)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: upgrade-sdk
description: Upgrade the Sendbird SDKs a project already uses to the newest release of the same major version. Reads the installed versions, looks up the newest published version in the registry, lists the deprecated APIs the project calls with the replacement the SDK names, and applies the version bump and the replacements only after the customer confirms. When the customer asks to move to a newer major version (for example Chat SDK v3 to v4), plans that move from the public migration guide, Chat SDK first. Use when the customer asks to update or upgrade their Sendbird SDKs.
argument-hint: "[product] [--apply]"
allowed-tools: Read, Edit, Write, Bash, Grep, Glob, WebFetch, Agent, AskUserQuestion
---

# /sendbird-client:upgrade-sdk

Resolve every plugin-owned path below from `${CLAUDE_PLUGIN_ROOT}`. Where that variable is empty (Codex does not set it for shell commands), the plugin root is the folder two levels above this SKILL.md. A shell command that only reads or checks files exits 0 when a file it looks for is missing (`if [ -f <file> ]; then cat <file>; fi`, or `|| true` after an optional read), and quotes separator lines (`echo '=== name'`: zsh, the default macOS shell, treats a word that starts with `=` as a command name). Otherwise a normal check is shown to the customer as a failed command.
Resolve the platform agent with `bash "${CLAUDE_PLUGIN_ROOT}/tools/routing/route-agent.sh" <project-dir> code`. Hand work to that agent by calling the `Agent` tool once with the agent as Claude Code lists it: this plugin's name, a colon, then the name the router printed (for example `sendbird-client:sendbird-ios-agent`). In Codex, which has no `Agent` tool, run that agent's launcher skill instead (for example `$sendbird-client:sendbird-ios-agent`) and start the agent only as that skill says; it sets the model and settings the agent needs. Do not do the agent's part yourself, even in a small project: write or edit no project source file in this session, before or after the hand-off, also when the customer confirms a change in a later turn. If the hand-off fails, say that this part was not done. When the agent reports, your final answer carries its changed files, every check line, and its symbol, source, and version table as the agent wrote them (`docs/AGENT_CONTRACT.md` section 6); shorten the wording only. In an answer in another language each check line still starts with the check's name as the agent wrote it (`- dependency: pass, package.json:12`); translate only the words after it.
Resolve the active product scope with `bash "${CLAUDE_PLUGIN_ROOT}/tools/detection/resolve-products.sh" <project-dir>` and leave out products outside it.

Upgrade within a major version, or to a newer major when the customer asks for one: read first, change files only after the customer says yes.

## Steps
1. **Installed versions.** Run `bash "${CLAUDE_PLUGIN_ROOT}/tools/detection/detect.sh" <project-dir>` and `bash "${CLAUDE_PLUGIN_ROOT}/tools/detection/resolve-products.sh" <project-dir>`. For each Sendbird package the project declares, record the declared version and the resolved one:
   - JS: `package.json` and the lockfile (`package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`). Package names: `knowledge/curated/js/setup.md` "Packages (npm)".
   - iOS: `Package.resolved` (or `project.yml` / the Xcode project's package references; `Podfile.lock` only when the project already uses CocoaPods). Package URLs: `knowledge/curated/ios/setup.md`.
   - Android: `app/build.gradle(.kts)` and `gradle/libs.versions.toml` when present. Coordinates and repositories: `knowledge/curated/android/setup.md`.
   If the project has no Sendbird package, say so and suggest `/sendbird-client:setup` instead.
2. **Newest published version.** For each package run `bash "${CLAUDE_PLUGIN_ROOT}/tools/local-sdk/latest-version.sh" <npm|spm|maven> <package> --major <installed major>` (`spm` takes the package's GitHub URL; `maven` takes the artifact, plus `--repo <url>` when `settings.gradle` declares a repository other than the default). Quote `latestInMajor`, `latest`, and `source` from its output. Never state a version from memory; if the lookup fails, report the error for that package and leave it out of the plan.
3. **Newer major.** When `latest` is a newer major than the installed one (for example Chat v3 to v4), read `knowledge/curated/<platform>/cross-cutting/migration.md` and quote the public guide it names for each package, with its URL, and its order of work. For a product it lists without a guide, say that no public migration guide exists.
   - The customer did not ask to change major: say that a newer major exists, that this run stays in the installed major, and name that guide. Continue with `latestInMajor` only.
   - The customer asked for the newer major (for example "v3에서 v4로 올려 줘", "move to the latest major"): do not decline. Plan the move from `migration.md`: Chat SDK first and UIKit after it, the package change it describes with the project's own package manager (a CocoaPods project stays on CocoaPods), and the renames it lists. Steps 4 and 5 do not apply across majors. Confirm as in step 6, then hand the plan to the platform agent once as in step 7; its "Old major versions" section does the change in the same order.
   When `latestInMajor` equals the installed version for every package and no major move was asked for, say the project is already on the newest release of its major version and stop.
4. **Platform rules for the target versions.** First read `knowledge/curated/<platform>/setup.md`, `knowledge/curated/<platform>/hosts/<host>.md`, and, when UIKit is installed, `knowledge/curated/<platform>/products/uikit.md`. Cite each rule you apply:
   - Android: UIKit pins the Chat SDK it was built with, and an explicit newer Chat SDK declaration in the app module overrides it (`knowledge/curated/android/setup.md` "Getting a newer Chat SDK under UIKit"). When UIKit moves, read the Chat version the target UIKit POM declares (`<repo>/com/sendbird/sdk/uikit/<version>/uikit-<version>.pom`) and keep any explicit Chat declaration at or above it.
   - JS: read what the target UIKit package declares for `@sendbird/chat` with `npm view <uikit package>@<target> dependencies peerDependencies`. React Native UIKit declares it as a peer dependency, so the app installs a matching `@sendbird/chat` itself (`knowledge/curated/js/hosts/react-native.md` "Version compatibility checklist"). Keep the app's own `@sendbird/chat` inside that range so one copy is installed. Never pass `--legacy-peer-deps` or `--force` (`docs/AGENT_CONTRACT.md` section 3).
   - iOS: Swift Package Manager resolves one version of `sendbird-chat-sdk-ios` for the whole app, so the Chat version must satisfy the minimum every Sendbird package declares (`knowledge/curated/ios/setup.md`, the shared-dependency table). Read the target UIKit `Package.swift` for its Chat minimum.
5. **Deprecated APIs the project calls.** For each installed product run `bash "${CLAUDE_PLUGIN_ROOT}/tools/local-sdk/deprecated-usage.sh" <project-dir> <product> [installed version]`. Android: run it again with the target version and `--download` to see what the target release deprecates. Each `DEPRECATED:` line gives the file, line, and the SDK's own deprecation text; the replacement is the API that text names. A line marked `(overloaded: check the call)` is a deprecated overload: open the call and keep it only when its arguments match the deprecated declaration. If the tool prints `NOT RUN: <reason>`, report the check as not run with that reason; never present it as "no deprecated APIs". If the SDK text names no replacement, say so instead of choosing one.
6. **Plan and confirmation.** Show one plan: a table of package, installed, target, and the registry source; the deprecated uses as `file:line → replacement`; the files that will change. Ask the customer once whether to apply it.
   - Non-interactive (`SENDBIRD_NONINTERACTIVE`): apply only when the request itself says to apply the upgrade (for example "apply", "go ahead", "update the files", "적용해 줘", or `--apply`). Asking for the upgrade is not that consent: "upgrade the SDK", "최신으로 올려 줘", or "올리고 deprecated API도 정리해 줘" start this skill and still end at the plan (docs/AGENT_CONTRACT.md section 7). Otherwise change nothing and stop with `status: "needs_input"` and one question, id `apply-upgrade`, options `yes` and `no`, whose text names each package's installed and target version.
7. **Apply (after a yes).** Call `Agent` once with the agent `route-agent.sh` returned, passing the plan:
   - bump each version with the project's package manager and its existing pin style (exact stays exact, a range stays a range), and update the lockfile (`npm install <package>@<version>` and the like);
   - replace each deprecated call with the replacement, verified in the target version's surface: `bash "${CLAUDE_PLUGIN_ROOT}/tools/local-sdk/read-surface.sh" <project-dir> <product> <target version>` after the install. A replacement whose return type or callback shape differs (for example a promise versus a request handler) is adapted at the call site without changing the signature of the app's own function;
   - run `deprecated-usage.sh` again with the target version and report what remains.
   This skill does not build the project. To build and launch it against the customer's Sendbird app, suggest `/sendbird-client:run-check`.
8. **Report.** The version table (before, after, source), changed files, each deprecated call and its replacement with the citation, checks not run with the reason, and any newer major left out. In a non-interactive run, end with the run summary (`core/schemas/run-summary.schema.json`, `skill: "upgrade-sdk"`).

## Wired knowledge
- Package names, coordinates, repositories: `knowledge/curated/<platform>/setup.md`.
- Major-version moves: `knowledge/curated/<platform>/cross-cutting/migration.md` — the public guide for each SDK, the order of work (Chat SDK first, then UIKit), the package change, and the renames.
- Android Chat under UIKit: `knowledge/curated/android/setup.md` "Getting a newer Chat SDK under UIKit".
- JS UIKit and Chat versions: `knowledge/curated/js/products/uikit.md`, `knowledge/curated/js/hosts/react-native.md` "Version compatibility checklist".
- iOS shared-dependency minimums: `knowledge/curated/ios/setup.md`.
- Tools: `tools/local-sdk/latest-version.sh` (registry lookup), `tools/local-sdk/deprecated-usage.sh` (deprecated calls, read from the SDK files; JS uses the TypeScript language service, iOS the installed `.swiftinterface`, Android the AAR), `tools/local-sdk/read-surface.sh` (target surface).

## No-Fabrication
Every version comes from the registry output of this run, cited with its source. Every replacement API comes from the SDK's own deprecation text, the target version's surface, or `migration.md`, cited; never invent a replacement or a migration step. If a fact cannot be verified, say "I don't know — here's what I checked" and leave that change out.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.