Agent skill

Cometchat React V7 Production

by cometchat in cometchat/cometchat-skills

Ship a CometChat React v7 integration safely — server-minted auth tokens instead of the Auth Key, correct env prefixes per bundler, bundle hygiene, and a pre-launch checklist.

MITAuto-check: notesBackend & APIs

Install Cometchat React V7 Production

skills CLI
$ npx skills add cometchat/cometchat-skills --skill cometchat-react-v7-production -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cometchat/cometchat-skills cometchat-react-v7-production --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cometchat/cometchat-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cometchat-react-v7-production .claude/skills/cometchat-react-v7-production && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cometchat-react-v7-production
GitHub stars
129
Token cost
~1.6k tokens
SKILL.md length
716 words
Files
1
Skills in repo
97
Repo updated
First seen
Licence
MIT

At a glance

Ship a CometChat React v7 integration safely — server-minted auth tokens instead of the Auth Key, correct env prefixes per bundler, bundle hygiene, and a pre-launch checklist.

  • Works in 4 steps: Your app authenticates the user (your… → Your server calls CometChat's REST API… → The server returns the token to the… → …
  • Tasks that involve Product launch strategy
  • SKILL.md covers Companion skills (read first), Use this skill when, The one thing that matters and The production login flow, plus 5 more sections
  • Calls npm

What it does

Cometchat React V7 Production is an agent skill from cometchat/cometchat-skills. Ship a CometChat React v7 integration safely — server-minted auth tokens instead of the Auth Key, correct env prefixes per bundler, bundle hygiene, and a pre-launch checklist. Triggers: 'is this production ready', 'auth token instead of auth key react', 'secure my cometchat react setup', 'production build config react', 'going live checklist react', 'harden cometchat before launch'.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: @cometchat/chat-uikit-react ^7 (7.1.x–7.2.x verified); React 18–19; Vite / Next.js / CRA / React Router / Astro

It sits in Backend & APIs, covering Product launch strategy. It works with CometChat and React. The repository describes itself as: Add CometChat chat & messaging and voice & video calls to any React, Next.js, React Native, Angular, Android, iOS, or Flutter project through your AI coding agent. Works with… The licence is MIT.

When your agent uses it

  • Tasks that involve Product launch strategy

Example prompts

  • “is this production ready”
  • “auth token instead of auth key react”
  • “secure my cometchat react setup”
  • “/cometchat-react-v7-production”

Requirements

  • Compatibility (from SKILL.md): @cometchat/chat-uikit-react ^7 (7.1.x–7.2.x verified); React 18–19; Vite / Next.js / CRA / React Router / Astro

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Your app authenticates the user (your own auth — CometChat is not an identity provider).
  2. Your server calls CometChat's REST API with the REST API Key to mint an auth token for that user's UID ({DOCS_BASE}/rest-api/auth-tokens).
  3. The server returns the token to the browser over an authenticated request.
  4. The app calls loginWithAuthToken(token).

What it can do on your machine

Read from SKILL.md and the folder at commit 911b108. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    @cometchat/chat-uikit-react ^7 (7.1.x–7.2.x verified); React 18–19; Vite / Next.js / CRA / React Router / Astro

    From compatibility in the SKILL.md frontmatter.

Context cost

Cometchat React V7 Production loads about 1.6k tokens when it runs. Until then it costs about 104 tokens; SKILL.md has 716 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~104
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:49
    s`): Vite `VITE_`, Next `NEXT_PUBLIC_` (`.env.local`), CRA `REACT_APP_`, Astro `PUBLIC_`. App ID and Region are not secr
  • NoteMentions a .env fileSKILL.md:53
    Run that in CI — a stray `.env` or a wrong prefix ships the key silently.
  • NoteMentions a .env fileSKILL.md:69
    [ ] Correct env prefix for the bundler; `.env` gitignored

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cometchat/cometchat-skills at commit 911b108, republished under its MIT licence (© cometchat). 716 words, ~1,576 tokens.

Download SKILL.mdSave it as .claude/skills/cometchat-react-v7-production/SKILL.md (or your agent's skills folder).
name
cometchat-react-v7-production
description
Ship a CometChat React v7 integration safely — server-minted auth tokens instead of the Auth Key, correct env prefixes per bundler, bundle hygiene, and a pre-launch checklist. Triggers: 'is this production ready', 'auth token instead of auth key react', 'secure my cometchat react setup', 'production build config react', 'going live checklist react', 'harden cometchat before launch'.
compatibility
@cometchat/chat-uikit-react ^7 (7.1.x–7.2.x verified); React 18–19; Vite / Next.js / CRA / React Router / Astro
license
MIT
metadata.author
CometChat
metadata.version
1.0.0
metadata.tags
cometchat react v7 production security auth-token hardening deployment

Ground truth: @cometchat/chat-uikit-react@7. The auth-token / login API is FETCHED from the docs via cometchat-react-v7-core/references/docs-map.md (/ui-kit/react/integration-react + the JS SDK auth pages); the REST auth-token endpoint is {DOCS_BASE}/rest-api/auth-tokens. The React UI Kit docs have no single production-hardening page — this checklist is the pack's own guidance from RULES.md §4 (Credentials) + what the kit ships, labelled as such, not presented as documented. Tracked DOCS GAP.

Companion skills (read first)

  • cometchat-react-v7-core — references/setup-credentials.md + references/lifecycle.md cover the dev credential flow this replaces and the init→login→render order.
  • cometchat-react-v7-patterns — the per-bundler env prefix + build specifics referenced below.
  • 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.

Use this skill when

Moving off the development setup: going live, a security review, or "is this safe to ship."

The one thing that matters

Never ship the Auth Key in the browser bundle.

The Auth Key can mint a session for any user in your app. Every VITE_/NEXT_PUBLIC_/REACT_APP_/PUBLIC_-prefixed value is compiled into JavaScript your users download — so an Auth Key there is public. Anyone can read it, log in as any UID, and read every conversation.

DevelopmentProduction
LoginCometChatUIKit.login(uid)CometChatUIKit.loginWithAuthToken(token)
Auth Keyin the client envabsent from the bundle
Token sourcen/ayour backend, per authenticated user
REST API Keynever client-sideserver only

The production login flow

  1. Your app authenticates the user (your own auth — CometChat is not an identity provider).
  2. Your server calls CometChat's REST API with the REST API Key to mint an auth token for that user's UID ({DOCS_BASE}/rest-api/auth-tokens).
  3. The server returns the token to the browser over an authenticated request.
  4. The app calls loginWithAuthToken(token).
tsx
// the endpoint derives the UID from the SERVER session — never from a query param
const res = await fetch("/api/cometchat-token", { credentials: "include" });
const { authToken } = await res.json();
await CometChatUIKit.loginWithAuthToken(authToken);

Accepting ?uid= (or any client-supplied UID) lets a caller impersonate anyone. The UID must come from the server-side session.

Env prefix — do NOT ship the key

Init reads the Auth Key from the client env in development. Production must set it empty and log in with a token instead. The prefix is bundler-specific (cometchat-react-v7-patterns): Vite VITE_, Next NEXT_PUBLIC_ (.env.local), CRA REACT_APP_, Astro PUBLIC_. App ID and Region are not secrets — they identify the app; the Auth Key is the secret. Grep the built bundle to be certain:

bash
npm run build && grep -rll "<your-auth-key>" dist/ build/ .next/ 2>/dev/null && echo "LEAK" || echo "clean"

Run that in CI — a stray .env or a wrong prefix ships the key silently.

Show full SKILL.md (300 more words)Show less

Also before launch

  • Users are created server-side, as part of your signup — not from the browser (no createUser with the Auth Key in client code).
  • Log out properly: await CometChatUIKit.logout(), then clear derived React state and unregister push tokens (cometchat-react-v7-push).
  • HTTPS everywhere — required for calls (getUserMedia) and push.
  • Pin the kit to an exact or ~ range so a minor cannot change component behaviour under you.
  • Keep CometChatErrorBoundary wrapping the surface so a render error shows a fallback, not a white screen (it is not the initializer — init/login still run first).
  • SSR/StrictMode: guard init+login so React 18/19 StrictMode's double-invoke does not race two logins (cometchat-react-v7-patterns); never init during SSR — gate on the client.
  • Region must match the dashboard app in every build.
  • Enable dashboard extensions/AI on the PRODUCTION app, not just dev.

Pre-launch checklist

  • Auth Key absent from the production bundle (grep-verified in CI)
  • loginWithAuthToken in production; UID from the server session
  • REST API Key server-side only
  • Correct env prefix for the bundler; .env gitignored
  • HTTPS, valid certificate
  • Logout clears session, React state and push tokens
  • Kit version pinned; CometChatErrorBoundary in place
  • Dashboard extensions/AI enabled for the production app
  • Tested against the production app's credentials

Common pitfalls

  1. Auth Key in the production bundle — the critical one; wrong env prefix is the usual cause.
  2. Token endpoint trusting a client-supplied UID — impersonation.
  3. Init/login run during SSR or twice under StrictMode — races and "already logged in" errors.
  4. Dashboard configured on the dev app only — features silently missing in production.
  5. No logout teardown — the next user inherits the session or the push token.

Verify it works

Production build contains no Auth Key (grep) · login works via token · a tampered UID is rejected by the server · logout fully clears · calls and push work over HTTPS · features enabled on the production app.

© cometchat, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/cometchat-react-v7-production of cometchat/cometchat-skills.

Open the folder on GitHubat commit 911b108

Compare with similar skills

Cometchat React V7 Production next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cometchat React V7 Production compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cometchat React V7 Production this skillcometchat/cometchat-skills129—~1.6kAutomated safety check: NotesMIT
Web3authWeb3Auth/web3auth-examples144—~1.4kAutomated safety check: PassMIT
Add Channel Connect Buttonnovuhq/novu40k—~1.6kAutomated safety check: PassCustom licence
Rsc Data Optimizerjulianromli/opencode-template1441 repos~805Automated safety check: PassNone
Modern Short VideoMarve10s/Better-Fullstack752—~1.8kAutomated safety check: NotesMIT
Phantom Connect SDKsendaifun/skills130—~1.3kAutomated safety check: PassMIT

Similar skills

  • Web3auth

    Web3Auth/web3auth-examples

    Integrates MetaMask Embedded Wallets (Web3Auth) for non-custodial wallets via social login or custom JWT (Firebase, Auth0, Cognito).

    144 GitHub stars~1.4k tokensUpdated 4 days ago
    Backend & APIsAuto-check passed
  • Build a new channel Connect button (e.g. An agent skill from novuhq/novu.

    40k GitHub stars~1.6k tokensUpdated today
    Backend & APIsAuto-check passed
  • Rsc Data Optimizer

    julianromli/opencode-template

    Optimize Next.js App Router data fetching by converting slow client-side fetching to fast server-side fetching using React Server Components (RSC).

    144 GitHub starsUsed in 1 repo~805 tokens
    Backend & APIsAuto-check passed
  • Modern Short Video

    Marve10s/Better-Fullstack

    Create modern product launch/pitch videos using Remotion. An agent skill from Marve10s/Better-Fullstack.

    752 GitHub stars~1.8k tokensUpdated yesterday
    Media & CreativeAuto-check: notes
  • Phantom Connect SDK

    sendaifun/skills

    Integrates Phantom wallet connection, social login, and transaction signing into React, React Native, or vanilla JS apps on Solana.

    130 GitHub stars~1.3k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • SaaS Mvp Launcher

    sickn33/agentic-awesome-skills

    A skill your agent uses when planning or building a SaaS MVP from scratch.

    47k GitHub starsUsed in 2 repos~1.9k tokens
    Backend & APIsAuto-check: notes

More from cometchat/cometchat-skills

All 97 skills in this repo
  • CometChat Android Calls SDK v5

    cometchat/cometchat-skills

    Adds voice and video calling to an Android app in Kotlin with the headless CometChat Calls SDK v5, covering meeting-style rooms, 1:1 ringing calls, call logs and recording.

    129 GitHub stars~5.2k tokensUpdated 2 days ago
    Auto-check passed
  • CometChat Android v5 Headless SDK

    cometchat/cometchat-skills

    Builds chat on Android with your own UI against the headless CometChat Chat SDK v5, covering install, Jetifier conflicts, credentials and init-before-login ordering.

    129 GitHub stars~4k tokensUpdated 2 days ago
    Auto-check passed
  • CometChat Angular Component Picker

    cometchat/cometchat-skills

    Picks and customizes CometChat's Angular UI Kit components by their verified component list, exact input and output event names, and the surfaces that have no kit component at all.

    129 GitHub stars~2.6k tokensUpdated 2 days ago
    Auto-check passed
  • CometChat Angular Features

    cometchat/cometchat-skills

    Enables or builds CometChat features such as polls, reactions, smart replies and pinned messages in an Angular app, first classifying how much client code each one needs.

    129 GitHub stars~2.6k tokensUpdated 2 days ago
    Auto-check passed
  • CometChat Angular Chat Placement

    cometchat/cometchat-skills

    Decides where CometChat chat UI goes in an Angular app: a dedicated route, a dashboard panel, a support widget or the full multi-pane app, with thread and search panels.

    129 GitHub stars~2.2k tokensUpdated 2 days ago
    Auto-check passed
  • Cometchat iOS V5 SDK

    cometchat/cometchat-skills

    Add voice & video calling to any iOS app FROM SCRATCH with the headless CometChat Calls SDK v5 (CometChatCallsSDK, via Swift Package Manager) — no UI Kit.

    129 GitHub stars~5.2k tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Cometchat React V7 Production

What does Cometchat React V7 Production do?

Ship a CometChat React v7 integration safely — server-minted auth tokens instead of the Auth Key, correct env prefixes per bundler, bundle hygiene, and a pre-launch checklist. Cometchat React V7 Production is an agent skill from cometchat/cometchat-skills. Ship a CometChat React v7 integration safely — server-minted auth tokens instead of the Auth Key, correct env prefixes per bundler, bundle hygiene, and a pre-launch checklist.

When should I use Cometchat React V7 Production?

Cometchat React V7 Production fits situations like: tasks that involve Product launch strategy.

How do I install Cometchat React V7 Production in Claude Code?

Run `npx skills add cometchat/cometchat-skills --skill cometchat-react-v7-production -a claude-code`. Or copy the skill folder (skills/cometchat-react-v7-production in cometchat/cometchat-skills) into .claude/skills/cometchat-react-v7-production in your project. Claude Code loads it when a task matches its description.

How do I install Cometchat React V7 Production in Codex?

Run `npx skills add cometchat/cometchat-skills --skill cometchat-react-v7-production -a codex`. Or copy the skill folder (skills/cometchat-react-v7-production in cometchat/cometchat-skills) into .agents/skills/cometchat-react-v7-production in your project. Codex loads it when a task matches its description.

Can I use Cometchat React V7 Production in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cometchat/cometchat-skills --skill cometchat-react-v7-production -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cometchat-react-v7-production, .gemini/skills/cometchat-react-v7-production, .github/skills/cometchat-react-v7-production and .opencode/skills/cometchat-react-v7-production in your project.

What does Cometchat React V7 Production need to run?

Going by SKILL.md and its folder, Cometchat React V7 Production needs the command-line tools its instructions call (npm). Compatibility (from SKILL.md): @cometchat/chat-uikit-react ^7 (7.1.x–7.2.x verified); React 18–19; Vite / Next.js / CRA / React Router / Astro.

Does Cometchat React V7 Production access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Cometchat React V7 Production safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Cometchat React V7 Production use?

Cometchat React V7 Production is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cometchat React V7 Production use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cometchat React V7 Production?

Skills that share tags, products or a category with Cometchat React V7 Production: Web3auth (Web3Auth/web3auth-examples, 144 stars), Add Channel Connect Button (novuhq/novu, 40k stars), Rsc Data Optimizer (julianromli/opencode-template, 144 stars) and Modern Short Video (Marve10s/Better-Fullstack, 752 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cometchat React V7 Production?

cometchat (a GitHub organization) maintains it in cometchat/cometchat-skills, which has 129 GitHub stars. The repository holds 97 skills in this directory. The repository was last updated on October 5, 2026.

Source: cometchat/cometchat-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.