/sendbird-client:setup [new-app] [--product chat|uikit|calls]from Sendbird Client Plugin
Wizard to create a new app with Sendbird or integrate Sendbird into the current project. In an empty folder it starts the app from the plugin's own starter, reads what to build from the request, uses defaults for the rest, and asks only whether to build the chat screens with UIKit and which platform when the request does not say; in an existing project it detects platform, host, package manager, lifecycle, and products, installs the SDK, inserts init + connect, and scaffolds a first screen. Use when the customer asks to make a new chat app or chat web page with Sendbird (Chat SDK or UIKit), for example "sendbirdChat으로 채팅웹 만들어줘" in an empty folder, when starting a Sendbird integration, when running first-time setup, or when the customer asks to move a hard-coded App ID into configuration. It writes the customer's app code; it does not create a Sendbird app (the one in the Sendbird Dashboard that has an App ID), so a request such as "Sendbird에 새 애플리케이션 만들어 줘" is not for this skill.
Ships in Sendbird Client Plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A request to create a Sendbird app itself (the Sendbird Dashboard app that gets an App ID, for example "Sendbird에 새 애플리케이션 만들어 줘" or "create a new Sendbird application"), not app code, is not setup: change nothing, run no detection, and say that this plugin writes app code and does not create Sendbird apps. When the session lists a Sendbird CLI plugin skill, use that skill for it; otherwise point to the Sendbird Dashboard (do not guess a URL or a menu path). A request that names a platform, a project, or screens ("채팅 앱 만들어 줘", "a chat web page") is app code and stays here.
Interactive first-integration wizard.
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. Copying the starter ("New app" step 4) and writing profile.json and the run summary are this skill's own steps.
Before anything else, check every product the request names (chat, uikit, calls, desk, or live; a Sendbird product outside that list is not covered by this plugin, so change nothing for it and tell the customer) with bash "${CLAUDE_PLUGIN_ROOT}/tools/detection/resolve-products.sh" <project-dir> --check <product>, one run per product. A request that names Calls also names Chat, since an app with Calls always has Chat: check chat too, and when that check fails, decline the request the same way (never add Chat to a scope that leaves it out). Printing the scope without --check is not this check. When it exits 1, change nothing and hand nothing to an agent: say what it printed. Only for "out of configured scope" add that SENDBIRD_PRODUCTS or enabledProducts in .sendbird-client/profile.json sets the scope; for "not available on this host" give the reason it printed and never suggest those settings, which cannot change it; a non-interactive run ends with status: "declined".
bash "${CLAUDE_PLUGIN_ROOT}/tools/detection/detect.sh" <project-dir> every time. Resolve platform, host, packageManager, deploymentTarget, lifecycle, products. If any Tier-1 fact is unknown or host is hybrid, ASK the customer once — never guess.app_id: env SENDBIRD_APP_ID > .sendbird-client/profile.json (appId field) > sendbird.json (app_id, written by the Sendbird CLI) > the Sendbird CLI > ask. The first that has a value wins, so a conflict needs no question: when SENDBIRD_APP_ID and profile.json hold different App IDs, take the SENDBIRD_APP_ID value without asking and say so in one line. Whatever its source (SENDBIRD_APP_ID, sendbird.json, the Sendbird CLI, the request, or the customer's answer), persist the App ID you use as appId in .sendbird-client/profile.json before the hand-off, keeping the fields detect.sh wrote: jq --arg a <app-id> '.appId = $a' .sendbird-client/profile.json > .sendbird-client/profile.json.tmp && mv .sendbird-client/profile.json.tmp .sendbird-client/profile.json. Then it is asked only once per project — App IDs are not secret. profile.json is the plugin's own record; how the app's code reads the App ID stays the agent's choice (step 3). NEVER store session/access tokens anywhere (tokens stay in env at runtime).
bash "${CLAUDE_PLUGIN_ROOT}/tools/detection/resolve-app-id.sh" <project-dir>. It checks SENDBIRD_APP_ID, the profile's appId, and then sendbird.json, in the order above, and prints {"from":"env"}, {"from":"profile"}, {"from":"sendbird-json"}, or {"from":"missing"}, never the value. Ask for the App ID only when it prints missing and the Sendbird CLI gives none (next bullet). Whether the App ID is there is decided by that from value alone: never by reading profile.json or the environment yourself and judging the value (an all-zero or example-looking App ID that the tool reports as profile or env is set, and is not asked for again). Do not decide it is missing from printenv SENDBIRD_APP_ID alone: a profile that already has appId answers it. When you need the value, read it from the source it names (printenv SENDBIRD_APP_ID, jq -r .appId .sendbird-client/profile.json, or jq -r .app_id sendbird.json).missing and the Sendbird CLI is installed (command -v sendbird finds it), get the App ID through the CLI before asking. Run sendbird --json profile and read result.app_id and result.environment. With an App ID and environment prod, use that application without asking again: the customer already chose it in the CLI. Say in one line which App ID is used and that it came from the CLI, so the customer can ask for another. With environment staging, do not use it: the apps this plugin writes connect to the default production hosts, so say that and go on to ask. With no App ID in the profile, run sendbird --json app list and let the customer pick one Sendbird app by its app_name (each result has app_name and app_id); when the command fails with E_AUTH, ask the customer to run sendbird auth login and then continue. Once an App ID is chosen this way, run sendbird project init --yes --app-id <app-id> in the project folder, so the CLI and this plugin use the same application. Without the CLI, or when it gives no App ID, ask for it. A non-interactive run never picks from app list for the customer: it returns the app-id question (New app step 3).SENDBIRD_* variables are set, list names only with env | sed -n 's/^\(SENDBIRD_[A-Z0-9_]*\)=.*/\1/p' (a token such as SENDBIRD_API_TOKEN may be among them). Read each value you need with its own printenv <NAME>: macOS printenv reads only the first name, so printenv SENDBIRD_NONINTERACTIVE SENDBIRD_APP_ID never shows the App ID.sendbird-ios-agent / sendbird-android-agent / sendbird-js-agent) for code edits. Pass the customer's request and the detected facts. Leave the install and the App ID mechanism to the agent, which follows docs/AGENT_CONTRACT.md section 3, and keep its choices on those when it returns.templates/<platform>/<host>/<product>/.
Podfile; never create one or run pod install on a fresh/SPM project.knowledge/curated/<platform>/cross-cutting/migration.md when they agree.docs/AGENT_CONTRACT.md section 6 lists: the changed files, each section 4 check as pass, fail, or not run, the symbol-to-source table, and a product-specific next-step checklist. When the request named no SDK, say which one was used (UIKit or the Chat SDK) and why. End the answer text by suggesting /sendbird-client:verify-integration to check the integration and /sendbird-client:run-check to build and launch the app; only suggest them, this skill does not build or launch the app. In a non-interactive run, list both under nextSteps and the checks under checks.Use this when the request is to create a new app, or the project folder is empty (detection finds no platform). The app starts from the catalog starter in step 4, never from a project generator such as npm create vite, create-react-app, or create-next-app: the starters already have the sign-in code (onLoginSucceeded, onLogout) that the rest of setup fills in.
${CLAUDE_PLUGIN_ROOT}/core/catalog.json. Drop options whose product is outside the active scope (resolve-products.sh), and drop a question with no options left. Skip a question whose when does not match the answers so far; a when on a multi answer matches when any chosen option is listed (products=chat,calls matches "when": { "products": ["chat"] }). A question with one option left is not asked: that option is its answer (for example products when the scope has Chat but not Calls, or chat-ui when UIKit is out of scope). Leave out a question with "offered": false; that feature is not offered in new-app setup for now. If the request itself names that feature (for example in notes), build it as usual, unless its product is not supported yet (resolve-products.sh --check <product> reports not supported yet); that product is declined, never built.chat-ui=chat-sdk (and chat in products) when it names the Chat SDK and not UIKit, for example "Chat SDK", "sendbirdChat", "SendbirdChat", "@sendbird/chat", --product chat, "without UIKit", or "UIKit 없이".chat-ui=uikit (and chat in products) when it names UIKit, for example "UIKit" or --product uikit.products: the products it names: chat for a chat app, chat screens, or messaging, and calls for voice or video calls or --product calls. calls always comes with chat: there is no Calls-only app, so a request for calls alone gets products=chat,calls, and the answer says in one line that the app has Chat too (Chat already passed the scope check at the top of this skill; when it did not, the request was declined there).chat= answer puts chat in products, and a calls= answer puts calls and chat in products.platform: the platform it names. A web app or web page is platform=react, for example "web", "web page", "웹", "채팅웹", "웹 페이지", or "React" (not React Native); "React Native" is react-native, "iOS" or "iPhone" is ios, and "Android" is android. Do not return the platform question when the request names one of these, also in a non-interactive run whose answers: leave platform out.answers: value wins over what the message implies.default in the catalog takes it without asking (products=chat, chat=channel-list,conversation, and with Calls calls=voice-call,video-call), and notes stays empty. Only a question marked "ask": true whose when holds is asked: chat-ui (build the chat screens with Sendbird UIKit, which has ready-made chat screens, or as the customer's own screens on the Chat SDK), platform, and then ios-ui or android-ui for the platform chosen. Never ask again a question the customer already answered earlier in this conversation. The report (step 5) says in one line which answers were defaults, so the customer can ask for something else."ask": true questions that are left with AskUserQuestion (in Codex, request_user_input when it is listed), using the catalog's question text and option labels as written (translated into the customer's language if needed). With neither tool, or when request_user_input returns no answer, ask in your reply and stop until the customer answers; do not pick an answer for them. Ask chat-ui and platform together, then ios-ui or android-ui once the platform is known. Asking in your reply follows the same groups: one group per reply, then stop until the customer answers. Do not add, drop, or reword options.SENDBIRD_NONINTERACTIVE): read answers from the request, written as answers: products=chat,calls; chat-ui=uikit; platform=react; chat=channel-list,conversation; calls=voice-call; notes=.... An answer that is not a catalog option id is an error. When an "ask": true question that applies is not answered, change nothing and stop with status: "needs_input", returning only those questions, at once, in catalog order, each with its id, question, type, option ids as options, the option labels as labels (same order), and when when it has one, so the caller can ask them and run again once (with --resume it continues this session). Never return a question that has a default. Add the app-id question from step 3 when there is no App ID. The caller sees only the returned questions, so when a returned question's when names a question the request already answers (or a one-option question), drop that condition when it holds, and leave the question out when it does not. When SENDBIRD_LOCALE is set (a language such as ko or ja), write question and labels in that language; never translate id, options, or when, since the caller passes answers back by option id.resolve-app-id.sh, an App ID the request gives, then the Sendbird CLI when it is installed). Interactive: ask for it now when resolve-app-id.sh prints missing and neither the request nor the CLI gives one. Ask in a reply that first shows the plan, so the customer sees what the App ID is for and is not asked anything after it: a short list of the platform and host, Chat SDK or UIKit screens, the products and the screens from step 2 (each default marked as a default), and the starter this run copies. Then ask for the App ID, say where it is (the application's App ID in the Sendbird Dashboard), and say that the run goes on as soon as it is given, or with another answer to change the plan. Ask the step 2 questions that are left before it, so this reply is the last question. Once the customer gives the App ID, go on with step 4 without asking again. Non-interactive: when none has it (the CLI's selected prod application counts; a list to pick from does not), change nothing (no starter, no profile) and stop with status: "needs_input" and one question with id app-id that asks for it through SENDBIRD_APP_ID.starters in the catalog (platform, or platform/<ios-ui|android-ui>) from ${CLAUDE_PLUGIN_ROOT}/ into the project folder, then initialize git if the folder is not a repository. Leave out every _README.md: it is the plugin's note for you (read it in the plugin folder), not a file of the customer's app.
templates/starters/react-native already has its ios/ and android/ native projects (React Native 0.87.1, made with the React Native CLI; see its _README.md), so the app runs on a simulator or emulator. Copy them with the rest; never report native folders as missing, and never make them again. Its ios/Podfile is React Native's own CocoaPods setup, not a Sendbird iOS SDK install, so the SPM-first rule does not apply to it. This run does not install pods: running on iOS (cd ios && pod install, then npm run ios) is part of the device or simulator run.products and chat-ui answers from step 2 (which already read the SDK the request names):
chat-ui=chat-sdk: copy only the catalog starter above and build every screen on the Chat SDK: never start from templates/starters-bp/ (its screens are UIKit) and never install a UIKit package. On React, give the screens the stable test ids that templates/js/react/chat/_README.md names (sb_channel_list, sb_message_input, and the others), so a later run check finds them. On React Native, every screen with a message input at the bottom (the conversation, a thread) has templates/js/react-native/chat/KeyboardAvoidingScreen.tsx as its root, so the keyboard does not cover the input (knowledge/curated/js/hosts/react-native.md "Keyboard over the message input"). Tell the customer the app uses the Chat SDK without UIKit.chat-ui=uikit: start from ${CLAUDE_PLUGIN_ROOT}/templates/starters-bp/<host>/ instead (react, react-native, ios-uikit, ios-swiftui, android-view, android-compose): sign-in, connect, channel list, channel screen, and sign-out are already wired there. Read that folder's _README.md first, keep the practices listed in templates/starters-bp/BEST_PRACTICES.md, and keep the starter's code as it is when adding to it: every BPxx marker line stays, and so does its session handler (BP04, the token refresh hook), which contract section 3's rule on session handlers does not remove. Tell the customer which starter was used. starters-bp/react-native also has its ios/ and android/ native projects (React Native 0.87.1, the same native projects as the plain starter plus the native setup UIKit's modules need); the same rules apply. It starts without push until the customer adds their Firebase project files (a manualSteps entry). On every host, put each item of the "Not included" section of BEST_PRACTICES.md (push credentials and the notification permission prompt, a token server) under manualSteps, and keep the starter's other dependency versions as it pins them: do not upgrade them or run npm audit fix. The Sendbird packages are the exception: for each one the starter pins (its _README.md lists them), look up the newest version in the same major with bash "${CLAUDE_PLUGIN_ROOT}/tools/local-sdk/latest-version.sh" <npm|spm|maven> <name> --major <the pinned major> and use its latestInMajor when it is newer. Move every Sendbird package of the starter in the same run, so a UIKit package and the Chat SDK it pairs with stay together. This run does not build the project (contract section 3), so on JS the install is the check: when the install with those versions fails, put every Sendbird package back to the version the starter pins, install again, and say why in one line. When a lookup fails, keep the pinned versions. On iOS and Android nothing resolves the packages in this run, so the report names each Sendbird package with the version used and the starter's pinned version to go back to if the first build fails.appId in .sendbird-client/profile.json..env.local, which the starters ignore in .gitignore; never to .env), then the platform agent implements sign-in and connect in the starter's onLoginSucceeded and onLogout and, when the starter has no sign-in screen, adds one: a user ID text field and a sign-in button shown on the first screen itself (not behind another button or in an alert), with the field empty (no prefilled or example ID), whose button calls onLoginSucceeded with the typed ID. The app never signs in a fixed user ID at launch, also when the request names one user (for example a seller ID, which is the other side of the chat), and the sign-in screen is built in this run, never left to the customer as a to-do; then every chosen feature, and shows each on screen. Install packages as the agent contract requires. This run does not build the project (contract section 3); the answer may say so once in its text, never as a manualSteps entry. With chat-ui=chat-sdk, the brief tells the platform agent to type-check the screens it wrote once they are written: bash "${CLAUDE_PLUGIN_ROOT}/tools/verify/check-written.sh" <project-dir> <every .ts, .tsx, .kt, .java, and .swift file written>, fix the errors it lists in those files, and run it again, up to three runs (contract section 3, "Type-check the Chat SDK screens you wrote"). Report its last result as the check typecheck (pass, fail, or not run with its reason, plus its tool and seconds). The UIKit path (chat-ui=uikit, templates/starters-bp/) does not run it, except on React and React Native: there the brief tells the agent to run it on every .ts and .tsx file it wrote or changed in the starter (contract section 3, "Type-check the TypeScript you wrote on the UIKit path too").core/schemas/run-summary.schema.json, with skill: "setup") to the path in SENDBIRD_RUN_SUMMARY_FILE when it is set, in both modes, so the caller can read the result after the session ends. List the answers used under steps, marking the ones that were defaults.knowledge/curated/<platform>/setup.md (iOS is SPM-first).knowledge/curated/<platform>/products/<product>.md (chat/uikit/calls — all populated; iOS snippets build-verified, JS type-checked).templates/ios/uikit/{chat/InitConnect.swift, uikit/SetupUIKit.swift, calls/SetupCalls.swift} and the matching templates/android/view/..., templates/js/react/..., templates/js/react-native/... files (each _README.md documents splice steps).notes): images and files, edit and delete, unread counts, typing indicator, and read receipts have verified files on every host under templates/<platform>/<host>/chat/ (feature table in skills/add-feature/SKILL.md; splice steps in that folder's _README.md).--product calls, or the catalog calls answers voice-call and video-call): templates/<platform>/<host>/calls/. Its _README.md lists the install, the camera and microphone permissions (Info.plist usage strings, Android runtime permissions, the browser prompt), initialize at startup, authenticate in onLoginSucceeded after the Chat connect, deauthenticate in onLogout, and a call screen that dials a user ID and accepts or declines a ringing call. React has that screen ready: templates/js/react/calls/DirectCallPanel.tsx. On iOS, Android, and React Native, incoming calls need push even while the app is open (the iOS and Android Authentication docs, "WebSocket"); dialing out does not. Push needs VoIP or FCM credentials in the Sendbird Dashboard and a real device, so list it under manualSteps and point to /sendbird-client:calls-incoming. The web SDK receives calls while its WebSocket is connected. Calls manualSteps hold only the steps in the product file's "Manual steps" section (App ID, a token server when the app uses tokens, push credentials); no Calls doc has a Sendbird Dashboard step that enables Calls, so never write one._README.md under templates explains the verified interop path — no host-native SDK API exists; do not invent one.The platform agent emits only verified API (from knowledge/curated, customer-local SDK, the public mirror, or sendbird.com/docs), citing each symbol. If a needed API can't be verified, it says "I don't know — here's what I checked" and stops. No invented SDK calls.
What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/add-featureAdd a Sendbird feature to the project (channel, message, reaction, thread, typing, file, push, call, and more). Use when the customer wants to add a specific Sendbird capability to existing code./auth-recipesGenerate correct Sendbird connection/session code — direct connect, session-token issue/refresh, multi-device, reauth, safe logout — for the detected platform/host. Auth is part of Chat. Use when the customer asks about authentication, session tokens, or login/logout flows./calls-incomingMake Sendbird Calls ring (on iOS, Android, and React Native new incoming calls arrive only through push, even while the app is open, and also in the background or after the app was closed), and fix common in-call audio and video problems — iOS PushKit with CallKit, Android FCM with a call notification, React Native native push, and web media and WebSocket checks. Use when an app that already uses Sendbird Calls misses incoming calls, crashes on a VoIP push, or has no audio or video during a call.sendbird-client@sendbird is listed by sendbird/sendbird-plugins — review the source before installing
npx claudepluginhub sendbird/sendbird-plugins --plugin sendbird-clientOther plugins' skills for the same job