/cometchat-skills:cometchat-react-native-productionfrom cometchat-skills
Hardens a CometChat React Native app for production by replacing the Auth Key with server-minted auth tokens, explaining mobile bundle secrets, and enforcing release-build checks and logout hygiene.
Ships in cometchat-skills. 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.
Ground truth:
@cometchat/chat-uikit-react-native@5+catalogs/rn-sdk-v4.json. Docs:/ui-kit/react-native/react-native-cli-integration·/sdk/react-native/authentication-overview.
cometchat-react-native-core — install, provider chain, init→login→render. Assumed, not repeated here.cometchat-security — the enterprise auth model this client-side hardening plugs into: wiring your IdP / SSO into the token flow (your IdP → your server → mint the CometChat auth token; CometChat is not an IdP), token expiry/refresh + re-login, RBAC roles + group (SBAC) scopes, and Auth Key vs auth token vs REST API Key. Load it for a security review or any SSO question.None beyond core, plus a backend endpoint you control for minting tokens.
login({ uid }) uses the Auth Key, which can create and impersonate any user in your app. Fine on
your laptop; unacceptable in a shipped binary.
This is the part web developers get wrong. A React Native bundle is not a server. .env files,
react-native-config, Constants.expoConfig, obfuscation, ProGuard — all of them end up readable in
the shipped app. Anyone can unzip an IPA or APK.
"Hide the Auth Key in an env var" is not a mitigation. Remove it.
import { CometChatUIKit } from "@cometchat/chat-uikit-react-native";
// your backend authenticates the user, then mints a short-lived CometChat
// auth token for that UID and returns it
const authToken: string = await fetchAuthTokenFromYourBackend();
await CometChatUIKit.login({ authToken });
The client never sees the Auth Key. The token is per-user, short-lived and revocable.
UIKitSettings.authKey is only needed for the login({ uid }) path — a production build should not
carry it at all.
CometChat.createUser needs the Auth Key, so it is a backend call made when your own signup
completes. A client that can create users can create any user.
CometChatUIKit.logout() on sign-out, and unregister the push token first (see the push skill)
— otherwise the device keeps receiving the previous user's notifications. On a shared device that is
a privacy incident, not a bug.
react-native-gesture-handler import-ordering crash (bare-patterns).catalogs/rn-sdk-v4.json / rn-v5.json.npm run verify:fences:rn-v5 is green.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cometchat, react-native, production-security, auth-token, release-build
npx claudepluginhub cometchat/cometchat-skills --plugin cometchat-skills98 skills in this plugin
/cometchatEntry point for any CometChat task on any platform. Detects the framework + UI Kit version (React, Angular, iOS, Android, React Native, Flutter), then routes to that family's skills — for a NEW integration or a change to an existing one. Triggers: 'add chat', 'add cometchat', 'add chat to my app', 'add calling', 'change something in my chat', 'my chat is already set up', 'add a feature to the chat', 'add chat to my android app', 'integrate cometchat android', 'add chat to my ios app', 'integrate cometchat ios', 'add chat to my swift app', 'migrate my app to cometchat', 'migrate from sendbird', 'migrate from getstream / stream', 'replace sendbird / stream chat with cometchat', 'build a <app> clone', 'make a chat app like <app>', 'make it look and work like <app>'./cometchat-a11yKeep a CometChat integration accessible — the UI Kit is designed targeting WCAG 2.1 AA with keyboard navigation (verify per component in its docs; full conformance still needs manual testing), and this skill makes sure the HOST app doesn't break that, covering contrast, focus, screen-reader context, reduced motion, RTL, and calls accessibility. Cross-family. Triggers: 'is cometchat accessible', 'WCAG / 508 / ADA compliance', 'screen reader support', 'keyboard navigation', 'a11y audit', 'accessible chat', 'contrast/focus issues in chat'.Other plugins' skills for the same job