Skip to content
Back to skills

Permissions Setup

ASecurity

Turn permission requirements into the right Sendbird layer — "users must not create channels", "only operators see the edit button", "freeze, mute, or ban from UIKit". Decides for each requirement whether it is a Sendbird app setting, a server-side Platform API job, or client code, links the docs for the first two, and writes only the client part (operator role checks, hiding or disabling UIKit actions, moderation calls). Use when the customer describes who may do what in chat.

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

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add sendbird/sendbird-client-plugin --skill permissions-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Permissions Setup?

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

Security grade badge for Permissions Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sendbird-permissions-setup/badge)](https://www.skillsdirectory.com/skills/sendbird-permissions-setup)

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: permissions-setup
description: Turn permission requirements into the right Sendbird layer — "users must not create channels", "only operators see the edit button", "freeze, mute, or ban from UIKit". Decides for each requirement whether it is a Sendbird app setting, a server-side Platform API job, or client code, links the docs for the first two, and writes only the client part (operator role checks, hiding or disabling UIKit actions, moderation calls). Use when the customer describes who may do what in chat.
argument-hint: "[requirements]"
allowed-tools: Read, Edit, Write, Bash, Grep, Glob, WebFetch, Agent
---

# /sendbird-client:permissions-setup

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.
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. 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"`.

## Steps
1. Run `bash "${CLAUDE_PLUGIN_ROOT}/tools/detection/detect.sh" <project-dir>` and resolve platform, host, products, and installed versions. Note whether the screens are UIKit or the app's own Chat SDK code.
2. Split the request into single requirements. Put each into exactly one layer, using the rules below. Before any Edit or Write, show the customer a table with one row per requirement: the requirement, its layer (Sendbird app setting, server, or client), and the source. Say in the answer what each matching rule below states, with its source: blocked channel creation fails with 400108; UIKit moderation starts from the host's UIKit moderation page in `core/docs-index.json`, linked before any custom code; promoting a member to operator is a client call.
3. Sendbird app setting: name the setting, link the official docs page (find it in `${CLAUDE_PLUGIN_ROOT}/core/docs-index.json`), and never describe Sendbird Dashboard click paths. If no docs page names the setting and a curated entry says Sendbird support changes it, say that.
4. Server or Platform API: say that this plugin writes client code only and does not generate server or Platform API code, name what the server must do in one sentence, and link the Platform API overview (https://sendbird.com/docs/chat/platform-api/v3/overview) or a more specific page you have opened and checked.
5. Client: write the code through the platform agent, from the curated sections below. A client check only changes what the UI offers; it is not a security boundary. Say so whenever a requirement is really about preventing an action, and pair it with the setting or server item that enforces it.
6. Before you finish, follow each screen that used a control you removed or hid, and make sure a member can still reach it the way the requirement allows. Removing the only path into a channel screen leaves the app unusable even though every rule is met.
7. Check the result by reading the project (docs/AGENT_CONTRACT.md section 4; this run does not build, contract section 3) and end the answer with one line per requirement: done in code (with file:line), handed to Sendbird app settings, or handed to the server.

| Requirement | Layer | Source |
| --- | --- | --- |
| Users must not create channels from the app; channels are created by our backend | Sendbird app setting plus server: Sendbird can block channel creation from the SDK, and channels are then created through the Platform API. With the block on, client creation fails with 400108. Remove or hide create-channel UI in the client as well, and keep a way into the channels the backend creates: if the create action was the app's only way to open a channel, replace it with the current user's channel list (a channel collection or a my-channel list query) or with opening a channel by its URL, so members still reach those channels. | `knowledge/curated/ios/cross-cutting/troubleshooting.md` "Creating a channel from the app fails with 400108" (staff answer in its second case); `knowledge/curated/<platform>/products/chat.md` "Create and list group channels" |
| Only operators may freeze, mute, or ban; members see no moderation UI | Client: check the current user's role in the channel, call the moderation APIs only for operators, and hide the actions otherwise. Promoting a member to operator is a client call too. | `knowledge/curated/<platform>/products/chat.md` "Moderation (ban, mute, block, freeze)" and "Invite members and manage operators" |
| Only operators see an edit or settings button | Client: same role check, used to hide or disable the control. iOS UIKit shows the moderation row only to operators by default, and the docs show how to change the settings rows and the member list header. | `knowledge/curated/ios/products/uikit.md` "Channel settings and member list"; `knowledge/curated/<platform>/products/chat.md` "Moderation (ban, mute, block, freeze)" |
| Freeze, mute, or ban from UIKit screens | Client: UIKit's channel settings already include moderation for operators. Link the UIKit moderation docs page for the host from `core/docs-index.json` before writing custom calls. | UIKit moderation pages in `core/docs-index.json`; the community case https://community.sendbird.com/t/how-to-freeze-channel-mute-member-ban-member-via-react-ui-kit/4506 (staff pointed to the UIKit channel settings) |
| Turn off the message input for some users | Client: UIKit already disables the input for a frozen channel or a muted user; for your own rule, follow the host's input section. | `knowledge/curated/js/products/uikit.md` (React Native message input), `knowledge/curated/android/products/uikit.md` "Message input: attachment menu, extra buttons, enabled state (View host)", `knowledge/curated/android/hosts/compose.md` "Message input: attachment menu and enabled state" |
| Only operators may delete (or edit) messages | Client: check the current user's role in the channel and leave the delete (or edit) item out of the message menu for everyone else. Hiding the item is not enforcement: no curated source names a Sendbird app setting that limits deleting to operators, so say that the setting could not be verified instead of naming one, and that a rule other clients cannot bypass needs the customer's server. | `knowledge/curated/<platform>/products/chat.md` "Moderation (ban, mute, block, freeze)" (role check); menus: `knowledge/curated/js/products/uikit.md` "Message menu items", `knowledge/curated/ios/products/uikit.md` "Message list: order, menus, and taps", `knowledge/curated/android/products/uikit.md` "Message menu and message taps (View host)" |
| Members must not see messages from before they joined | Sendbird app setting (chat history). | `knowledge/curated/<platform>/cross-cutting/troubleshooting.md` "Messages sent before a user joined are missing"; docs: the "Invite users as members" page for the platform in `core/docs-index.json` |
| Keep a group channel after every member leaves | Sendbird app setting that Sendbird support changes; no client code keeps an empty channel. | `knowledge/curated/<platform>/cross-cutting/troubleshooting.md` "A group channel disappears after every member leaves" |
| Anything about issuing tokens, creating users, or bulk moderation from an admin tool | Server or Platform API; out of scope for this plugin, which writes client code only. | https://sendbird.com/docs/chat/platform-api/v3/overview |

When a requirement fits no row, decide the layer from a cited source or say that the layer could not be verified and ask; do not assume that a setting exists.

## Wired knowledge (populated and cited)
- `knowledge/curated/<platform>/products/chat.md` "Moderation (ban, mute, block, freeze)" — operator-only actions, role check, mute and freeze state, block for any user, moderation events.
- `knowledge/curated/<platform>/products/chat.md` "Invite members and manage operators" — adding and removing operators.
- `knowledge/curated/<platform>/products/chat.md` "Create and list group channels" — listing the current user's channels, the path that replaces in-app creation.
- `knowledge/curated/<platform>/products/uikit.md` and `knowledge/curated/<platform>/hosts/*.md` — settings rows, member list header, message input enabled state.
- `knowledge/curated/<platform>/cross-cutting/troubleshooting.md` and `errors.md` — what a blocked action returns (400108).

## No-Fabrication
Never invent a Sendbird app setting, a Sendbird Dashboard path, a role name, or a Platform API endpoint. Name a setting only when a cited curated entry or docs page names it; otherwise say that the setting could not be verified. Generate only client code, and only with APIs from the cited sections or the installed SDK surface.

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.