/cometchat-skills:cometchat-react-v7-featuresfrom cometchat-skills
Enables specific CometChat features in a React v7 app — reactions, polls, stickers, mentions, translation, link preview, smart replies, calls, push notifications, moderation. Uses a features.json oracle to look up enablement steps and wire them.
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: the feature existence oracle is
features.json(pack root). A feature a user asks for MUST be anidthere — if it's not listed, it does not exist; do not invent it. Exact enablement steps + current dashboard nav + config keys: FETCH from the feature'sdocs_topic(docs flag dashboard paths as fragile). UI component names come from theweb-v7catalog. Status: oracle curated from live docs 2026-07-29; entries marked VERIFY need confirming before shipping enablement steps.
cometchat-react-v7-core — install, credentials, init→login→render, provider. This skill ASSUMES it.cometchat-react-v7-components — the component catalog features render through.The user wants to turn ON a specific capability: "add reactions", "enable polls", "turn on smart replies", "add push notifications", "enable message translation", "add calling", "add moderation".
Core setup done (credentials + init/login). Most features add no package; voice-video-calls needs the separate calls package.
features.json. Match the request to a feature id. Not listed → tell the user it isn't an available feature (don't invent one).category + enablement:
default / auto → the SDK-side capability is on, but check needs_stitching first. If needs_stitching: true, the drop-in renders a default-ON affordance that is INERT/partial until the host wires it — you MUST either stitch it (callback + companion panel/component) or hide it; never leave it dead-ending (see the "Default-on affordances" pitfall). Otherwise nothing to enable — point at the ui_components if they want to surface/customize it.extension + dashboard-extension → enable the extension, then wire the client. Two ways to enable: (a) through the CometChat MCP — cometchat_set_feature flips the dashboard toggle (cometchat_list_features shows current state; check confirmed in the result); OR (b) manually in the CometChat Dashboard → Extensions. Offer the MCP (faster), fall back to the dashboard. The MCP only flips the toggle — YOU still wire the client component/prop. FETCH the current dashboard steps from docs_topic — do not bake the path.ai → enable via dashboard-toggle (AI User Copilot) AND wire the code prop — NOT zero-code (AUDIT-009). The toggle can be flipped through the CometChat MCP too — cometchat_set_feature (an AI feature first needs an OpenAI key on the app: cometchat_set_openai_key, only with a key the user gives you). Then wire the props: The copilot props DEFAULT TO OFF, so nothing appears until you set them: smart-reply → showSmartReplies on CometChatMessageList (default false; renders in the list FOOTER, not the composer); conversation-starter → showConversationStarters on CometChatMessageList (default false); conversation-summary → showConversationSummaryButton + onSummaryClick on CometChatMessageHeader (default false). These are needs_stitching:true. Only ai-assistant renders a distinct component (CometChatAIAssistantChat). Plan-gating is often 'unknown' — verify, don't assert.package-install (calls) → install the separate calls package (FETCH the exact coordinate/version from docs_topic), then wire the ui_components.cometchat-react-v7-core/references/docs-map.md → SDK docs (the llms.txt index → the feature's page → its AI-Integration-Quick-Reference accordion for the method signatures; e.g. AI agents → CometChat.addAIAssistantListener(...)). This is the UI-Kit-first / SDK-fallback rule (RULES.md) — don't skip the feature and don't hand-roll what the SDK already exposes.dashboard-only (moderation) → configured ENTIRELY in the dashboard; emit ZERO moderation UI code (AUDIT-078). Its ui_components (CometChatModerationView / CometChatFlagMessageDialog) are AUTO-RENDERED / INTERNAL, NOT host-wired: the kit auto-shows the moderation footer for blocked/pending messages (CometChatMessageList hideModerationView defaults false = shown), and the message list already ships a built-in "Report message" option that opens the flag dialog internally. So do NOT hand-roll a custom Report option (plugin getOptions) and do NOT mount CometChatFlagMessageDialog yourself — that duplicates the built-in. The only work is in the Dashboard: set up the Rules Engine (auto block/flag on send) + turn ON Report Message / Report User; the kit then surfaces everything with no code. (Rules Engine is not a classic extension: with the account tools connected, turn its existing rules on or off with cometchat_list_moderation_rules / cometchat_set_moderation_rule; new rules and anything else are dashboard steps for the user.)ui_components (they exist in the web-v7 catalog); fetch exact props from each component's .md twin (cometchat-react-v7-core/references/docs-map.md). If the feature is a whole TASK with an end-to-end guide (check the docs-map "Task guides (recipes)" section — e.g. group chat, search, threads, new-chat, message-privately, block/unblock), BUILD FROM the guide and COMPARE your implementation against it for completeness — then apply the hardening deltas on top (docs-maximal; docs-map). No matching guide? → wire the ui_components the normal way (above) + fetch props; the guide is an enhancement, not required.ai/e2e-encryption/moderation entry) must be confirmed against live docs for plan-gating and exact slugs before you emit steps.v7 replaces v6's CometChatMessageTemplate with plugins. A custom message type is an object implementing CometChatMessagePlugin (id, messageTypes, messageCategories, renderBubble), registered on the provider. The plugins prop is MERGED with defaultPlugins internally — pass ONLY your extras; use removePlugins to override a built-in type.
import { CometChatProvider } from "@cometchat/chat-uikit-react";
import type { CometChatMessagePlugin } from "@cometchat/chat-uikit-react";
const productCardPlugin: CometChatMessagePlugin = {
id: "product-card",
messageTypes: ["product_card"], // your custom SDK message type
messageCategories: ["custom"],
renderBubble: (message) => <div className="product-card">{message.getSender().getName()}</div>,
};
<CometChatProvider plugins={[productCardPlugin]}>
<div>{/* your chat UI */}</div>
</CometChatProvider>
CometChatProviderREQUIRESchildren. Optional plugin-interface hooks:getOptions,getLastMessagePreview,renderHeaderView/renderFooterView,getTextFormatters. This is provider-level config — there's no standalone screen to render.
The default text plugin already applies @mentions, URLs, and markdown. Add CUSTOM formatting by subclassing the abstract CometChatTextFormatter (id + getRegex() + format()) and passing it via the textFormatters prop on CometChatMessageComposer (input) and the bubble components — it is NOT a prop on CometChatMessageList. The built-in formatters (CometChatMentionsFormatter, CometChatUrlFormatter, CometChatMarkdownFormatter, CometChatRichTextFormatter) have no-arg constructors.
import { CometChatMessageComposer, CometChatTextFormatter } from "@cometchat/chat-uikit-react";
class HashtagFormatter extends CometChatTextFormatter {
readonly id = "hashtag-formatter";
getRegex() { return /#(\w+)/g; }
format(text: string) { return text.replace(this.getRegex(), '<span class="hashtag">#$1</span>'); }
}
<CometChatMessageComposer textFormatters={[new HashtagFormatter()]} />
The message LIST ignores these props — its text bubbles use the text plugin's
getTextFormatters()(default markdown + mentions + URL). To format hashtags in the list too, override that method via the provider:plugins={[{ ...CometChatTextPlugin, getTextFormatters: () => [new CometChatMarkdownFormatter(), new CometChatMentionsFormatter(), new CometChatUrlFormatter(), new HashtagFormatter()] }]}(provider plugins precede the defaults, so it wins; verified vs 7.1.0). RTE toolbar ≠textFormatters(AUDIT-051). The rich-text editor TOOLBAR (bold/italic/underline/lists/links buttons in the composer) is a SEPARATE feature: toggle it with theenableRichTextEditorPROP onCometChatMessageComposer—<CometChatMessageComposer enableRichTextEditor />— a prop, NOT a component swap. (There is noCometChatCompactMessageComposerin v7 — that was a v6 phantom.)textFormattersabove is for CUSTOM inline formatters (hashtags, @mentions, custom markup); they're orthogonal and can be used together. (No dashboard toggle — the skill sets theenableRichTextEditorprop directly.)
Calls now has its own skill — cometchat-react-v7-calls. For "add voice/video calling", route there: it bakes the install (@cometchat/calls-sdk-javascript@5, not bundled), the calling-on switch (uiKit:{callsSDK:{}} on CometChatUIKit.initFromSettings — the initFromSettings equivalent of the classic setCallingEnabled(true)), the root CometChatIncomingCall wiring, 1:1-rings-vs-group-joins, and the gotchas (idle-timeout in ms, zero-dimension call surface, Next.js SSR + webpack fallback, no group-ring, HTTPS/getUserMedia).
Push notifications → the cometchat-react-v7-push skill (thin + docs-first: it fetches CometChat's notifications docs and bakes the hardening deltas + SDK symbols). Route "add push" there — do NOT re-derive push here (single source).
features.json needs_stitching: true). Some drop-ins render a live-looking control BY DEFAULT that no-ops until the host wires it — do NOT treat these as "already on, nothing to do":
CometChatConversations search bar (showSearchBar default true) only client-side-filters already-loaded conversation names — it is NOT real search. Wire onSearchBarClicked → open CometChatSearch, or hide it with showSearchBar={false}. (Real search may also need a Dashboard toggle — VERIFY.)CometChatMessageList thread-reply indicator / "Reply in Thread" no-ops until onThreadRepliesClick opens a thread panel (CometChatThreadHeader + CometChatMessageList parentMessageId + CometChatMessageComposer parentMessageId) — wire it or hide with hideReplyInThreadOption.contracts.json minimum (e.g. group details without ban/kick/scope) — always cover the full min_capabilities (deterministic minimum, same every prompt).features.json (phantom feature) — the #1 hallucination here.getOptions) or mount CometChatModerationView/CometChatFlagMessageDialog yourself — that duplicates the built-in. Emit ZERO moderation UI code; the only work is the Dashboard Rules Engine + Report Message/User toggles.The enabled feature actually works in the running app (reactions appear, a poll sends, smart replies show, etc.) and any Dashboard toggle it needs is ON. If it renders empty, the extension/feature likely isn't enabled in the CometChat Dashboard.
Close (after it builds): end with the shared 3-option selectable menu and WAIT for the pick — (1) add another feature (suggest a few not-yet-wired) · (2) customize theming · (3) test it manually (stop; let the user check). Same contract as the cometchat-react-v7-core close (RULES.md §19).
What SKILL.md sets; muted values are Claude Code's defaults
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