Skip to content
Back to skills

Explain Error

ASecurity

Explain a Sendbird error code or message — its meaning, common triggers, and a fix — across any product/platform, citing the verified error table. Use when the customer hits a Sendbird error code or exception. When opening or loading a channel fails with 400201 or 400108, use diagnose-channel instead; for a build, bundler, or package-install error, or an error from two copies of a Sendbird package, use fix-build.

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

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add sendbird/sendbird-client-plugin --skill explain-error --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Explain Error?

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

Security grade badge for Explain Error
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sendbird-explain-error/badge)](https://www.skillsdirectory.com/skills/sendbird-explain-error)

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: explain-error
description: Explain a Sendbird error code or message — its meaning, common triggers, and a fix — across any product/platform, citing the verified error table. Use when the customer hits a Sendbird error code or exception. When opening or loading a channel fails with 400201 or 400108, use diagnose-channel instead; for a build, bundler, or package-install error, or an error from two copies of a Sendbird package, use fix-build.
argument-hint: "<code-or-message>"
allowed-tools: Read, Bash, Grep, Glob, WebFetch, Agent
---

# /sendbird-client:explain-error

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.
A look-up (what a code means, its triggers, the documented fix) needs no agent and changes no file. When the customer asks for code inspection or a code change, 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.

Detect the customer's platform and installed SDK version before interpreting a numeric code. Never carry a symbol or description from one platform's error enum to another platform.

Map an error to meaning + fix (Intent A — lookup).

## Steps
1. Run `bash "${CLAUDE_PLUGIN_ROOT}/tools/detection/detect.sh" <project-dir>` and keep the platform and installed SDK version. Only when it finds no project, ask which platform (in a non-interactive run, cover each platform's table instead).
2. Look up the code in the verified table `knowledge/curated/<platform>/cross-cutting/errors.md`, and read every section of that file that names the code, not only its table row (for example a connection error code also has the "Diagnosing connection failures" section): its fix is the one to give. Interpret it only with the detected platform and resolved SDK version because the same number can map to a different symbol or description on another platform.
3. For triggers and fixes, and for a symptom with no code ("push never arrives", "channel missing from the list"), check `knowledge/curated/<platform>/cross-cutting/troubleshooting.md`: symptom, cause, and fix from solved public cases, each fix re-checked against the pinned SDK. Entries marked community were resolved by users, not Sendbird staff; say so when you use one.
4. If the code isn't in the curated table: check `${CLAUDE_PLUGIN_ROOT}/knowledge/imports/<platform>/<product>/error-codes.md` when present, else read the customer-local SDK error enum via `bash "${CLAUDE_PLUGIN_ROOT}/tools/local-sdk/read-surface.sh" <project> <product> [resolved-version]`, else search version-matched official docs.
5. Report in the order `docs/AGENT_CONTRACT.md` section 6 "Write for the customer" gives for a problem: first what went wrong in one or two plain sentences that name no code or symbol (for 400302 on iOS: the app connected without a valid token, so Sendbird refused the connection), then at most three next steps as a numbered list, then the details: code, the detected platform's symbol (e.g. in an iOS project, 400302 = `accessTokenNotValid`), meaning, common triggers, fix (codegen handed to the platform agent for in-scope products), related docs link — all cited. Cite the curated `errors.md` row and the `troubleshooting.md` entry you used as `knowledge/curated/<platform>/cross-cutting/<file>.md` with the line or heading, before any link; a link that the entry cites (a public source file, a community case) may follow it but never replaces it, and cite a page only when you read it in this run. Name only the detected platform's symbol; add other platforms' names only when the customer asks for them. Change no file in this step: write the fix only when the customer asks for it or confirms it, through the platform agent as the top of this skill says. This skill is read-only, so a run whose request does not ask for the fix ends with `status: "completed"`: put the offered code change under `nextSteps` and add no `apply-fix` or other question (`docs/AGENT_CONTRACT.md` section 7). Session-expiry codes route to `products/auth.md` refresh patterns. Rate-limit and plan-quota codes (for example 500910): give the back-off fix from `errors.md`, then point to the pricing page and the Sendbird Dashboard as `knowledge/curated/common/pricing-quotas.md` says; never state a limit number.
   Every fix step carries its own citation: the public page that the `errors.md` or `troubleshooting.md` line it comes from gives (the `https://sendbird.com/docs/...` page or `sendbird/*` source file next to it), and that line or heading itself only when it gives no such page (`docs/AGENT_CONTRACT.md` "Cite the curated entry"); the customer can open the page, not the plugin's files. Leave out general advice no source gives (for example "switch between Wi-Fi and cellular" or "restart the app"); an uncited tip is not part of the answer, even as an extra.

## No-Fabrication
Only report error codes/meanings present in a verified source. If the code isn't found, say "not found in <searched sources>" and suggest the docs — never invent a meaning. The same holds for a constant name: when it is not in the verified table, the next step you offer is a source check (`read-surface.sh` on the customer's installed SDK, or the place where they saw the name). Whether their compiler, IDE autocomplete, or a test call accepts the name is not a way to verify it.

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.