cometchat-react-v7-core

cometchat-react-v7-core is a skill for Claude Code from cometchat/cometchat-skills. It costs 94 tokens per session (5,057 once invoked), scanned A, original, MIT.

An end-to-end guide for adding CometChat chat to a React app. It covers installing the chat packages, configuring credentials, logging users in, and displaying a conversation and message interface.

In plain words
What is it for?
It helps create the core chat surface with conversation and message panes, connect it to CometChat, and prepare the app for users, groups, threads, searches, and calls.
Why use it?
It removes the uncertainty around the basic setup sequence needed before other chat features can work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cometchat-skills plugin — 98 skills, 1 MCP server shipped together

Good fit It helps create the core chat surface with conversation and message panes, connect it to CometChat, and prepare the app for users, groups, threads, searches, and calls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cometchat/cometchat-skills/cometchat-react-v7-core
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cometchat/cometchat-skills --skill cometchat-react-v7-core
Clone the repo
git clone --depth 1 https://github.com/cometchat/cometchat-skills

Made for: Claude Code.

Or install cometchat-skills, the plugin that ships this one along with the rest of its 98 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cometchat-react-v7-core

README.md
[![agentmods](https://agentmods.dev/badge/skills/cometchat/cometchat-skills/cometchat-react-v7-core/github.svg)](https://agentmods.dev/skills/cometchat/cometchat-skills/cometchat-react-v7-core)
Your own site
<a href="https://agentmods.dev/skills/cometchat/cometchat-skills/cometchat-react-v7-core"><img src="https://agentmods.dev/badge/skills/cometchat/cometchat-skills/cometchat-react-v7-core/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cometchat-react-v7-core

Your own site · 80×15
<a href="https://agentmods.dev/skills/cometchat/cometchat-skills/cometchat-react-v7-core"><img src="https://agentmods.dev/badge/skills/cometchat/cometchat-skills/cometchat-react-v7-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,057 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.05057
Opus 5.5 $0.00038 $0.02023
Sonnet 5.5 $0.00019 $0.01011
Haiku 4.5 $0.00009 $0.00506

Measured 22d ago against content hash 0cb8261c427f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cometchat-react-v7-core scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cometchat-react-v7-core/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ground truth: @cometchat/chat-uikit-react@7 + @cometchat/chat-sdk-javascript@^4.1.9. Symbols sourced from live v7 docs. This file is the THIN map loaded every run; deep detail is in references/* loaded ONLY when the task needs it. Anything marked [v7-verify] is a v6 carry-over to confirm against v7 docs/catalog before shipping.

Use this skill when

"add chat to my React app", "set up CometChat credentials", "integrate CometChat in React", "show a conversations + messages UI", "build a full chat app". An unscoped "add chat" means a production-ready core chat surface (a CometChatConversations list ↔ a message pane, wrapped in CometChatErrorBoundary, sized, affordances wired-or-hidden, mobile collapse) — NOT a bare two-pane demo, and NOT the whole combined app. See the golden path below. It grows on request (users/groups/calls tabs, a details/thread/search side panel, calls) to the full combined app — that recipe lives in cometchat-react-v7-placement.

Install

npm i @cometchat/chat-uikit-react@7 @cometchat/chat-sdk-javascript@4 dompurify (keep the @7/@4 major pins — a bare install resolves to latest and can pull the wrong major). dompurify is required by the kit — the docs install includes it. Voice/video calling also needs @cometchat/calls-sdk-javascript (see cometchat-react-v7-features).

Setup & credentials (essentials — full detail: references/setup-credentials.md)

  1. Detect React + bundler (Vite→VITE_, CRA→REACT_APP_, Next→NEXT_PUBLIC_/.env.local). Reuse existing .cometchat/env if present (skip re-setup).
  2. version_conflict — STOP if a non-v7 UI Kit is installed; reconcile first (never mix majors — RULES.md).
  3. Credentials — OFFER the dashboard fetch FIRST, default to it (never silently "paste it yourself", never defer to a "to finish, add them yourself" TODO — AUDIT-039). Reuse existing .cometchat/env if present (skip). Else offer both, defaulting to fetch: (a) account fetch (recommended) through the CometChat MCP — cometchat_whoami, pick an EXISTING app (cometchat_list_apps; never auto-create), cometchat_get_app_credentials returns the creds plus ready env lines (it writes no file); (b) manual paste — Dashboard → Credentials (dev-only Auth Key). Then the SKILL writes the framework env (§4) — the MCP only returns values; framework detection, env-writing, and codegen are the SKILL's job (AUDIT-059). Ask & wait if the user must choose or the MCP isn't connected. Full flow: references/setup-credentials.md.
  4. Write env (correct prefix), gitignore it, never echo the Auth Key. Prod → server-side auth token, not the Auth Key.
  5. Authorize = init() + login() resolve; auth error usually means wrong Region.

Read the full file on GitHub · 102 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago Changed 0cb8261c427f
  2. 2mo ago Changed af83b1c4b11b
  3. 2mo ago First seen · 102 lines · 94 tokens per session scan A dbe91e42b735

Subscribe to this mod's changes

cometchat-react-v7-core is a skill published in the GitHub repository cometchat/cometchat-skills (184 stars, last pushed 22d ago), licensed MIT. It adds 94 tokens to every session and 5,057 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

cometchat-react-v7-core compared with skills from other repositories

cometchat-react-v7-core next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cometchat-react-v7-corecometchat/cometchat-skillsSkill18422d agoMITA94Claude Code
vercel-react-best-practicescalesthio/OpenMontageSkill86k4d agoAGPL-3.0A67Claude Code, Codex
vercel-react-native-skillsfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A57Claude Code
heroui-migrationfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A56Claude Code
frontendcode-yeongyu/oh-my-openagentSkill71ktodaynoneA79Claude Code, Codex
vercel-react-best-practicescoco-research/cocoSkill369todayApache-2.0A35Claude Code, Codex
21st-ui21st-dev/magic-mcpSkill6.9k2mo agoISCA63Claude Code