diff --git a/agent-skills.mdx b/agent-skills.mdx index 9b3a3a166..0cdf4a67d 100644 --- a/agent-skills.mdx +++ b/agent-skills.mdx @@ -1,7 +1,7 @@ --- title: "Build CometChat with AI Agent Skills" sidebarTitle: "Agent Skills" -description: "Install the CometChat agent skills so your AI coding agent (Claude Code, Cursor, GitHub Copilot, Replit, and more) can add production-grade chat and calling to your React, Angular, React Native, iOS, Android, or Flutter app from natural-language prompts." +description: "Install the CometChat agent skills so your AI coding agent (30+ agents, including Claude Code, Cursor, GitHub Copilot, and Replit) can add production-grade chat and calling to your React, Angular, React Native, iOS, Android, or Flutter app from natural-language prompts." canonical: "https://www.cometchat.com/docs/agent-skills" --- @@ -65,8 +65,8 @@ npx @cometchat/skills add ``` It detects your platform, installs that platform's skills, and installs them for -**Claude Code** by default. It also connects the CometChat Docs MCP server (`cometchat-docs`) for -that agent; pass `--no-mcp` to skip it. In Claude Code, approve `cometchat-docs` +**Claude Code** by default. It also connects the CometChat MCP server (`cometchat`) for +that agent; pass `--no-mcp` to skip it. In Claude Code, approve `cometchat` when `claude` asks on first start in the project — until then `claude mcp list` shows it as *Pending approval*, and the skills fall back to the docs site. To install for a different agent, pass `--ide`: @@ -78,22 +78,36 @@ npx @cometchat/skills add --ide replit # Replit Agent → .agents/skills/ npx @cometchat/skills add --ide all # every supported agent ``` + +**Agent can't run commands?** Paste this to it. The file tells your agent how to install +the skills, connect the [CometChat MCP server](/mcp-server), and find the right docs: + +```text +Read https://www.cometchat.com/docs/skill.md and follow it to add CometChat to my app. +``` + + ### Supported agents -| Agent | Install with | -| --- | --- | -| Claude Code | `--ide claude` | -| Cursor | `--ide cursor` | -| Kiro | `--ide kiro` | -| Antigravity | `--ide antigravity` | -| GitHub Copilot | `--ide copilot` | -| Replit Agent | `--ide replit` | -| Codex | `--ide codex` | -| Gemini | `--ide gemini` | -| Windsurf | `--ide windsurf` | -| Cline | `--ide cline` | -| Continue | `--ide continue` | -| Aider | `--ide aider` | +CometChat Agent Skills work with **30+ AI coding agents**: 12 through the CometChat +installer and [22 more through the skills CLI](#more-agents-through-the-skills-cli). +The installer sets up these 12 directly. The last column shows where it connects the +[CometChat MCP server](/mcp-server) for each one: + +| Agent | Install with | MCP server | +| --- | --- | --- | +| Claude Code | `--ide claude` | `.mcp.json` | +| Cursor | `--ide cursor` | `.cursor/mcp.json` | +| Kiro | `--ide kiro` | `.kiro/settings/mcp.json` | +| Antigravity | `--ide antigravity` | `.agents/mcp_config.json` | +| GitHub Copilot | `--ide copilot` | `.vscode/mcp.json` | +| Replit Agent | `--ide replit` | Prints the steps to add it | +| Codex | `--ide codex` | `.codex/config.toml` | +| Gemini | `--ide gemini` | `.gemini/settings.json` | +| Windsurf | `--ide windsurf` | User-level config, if Windsurf is installed | +| Cline | `--ide cline` | User-level config, if Cline is installed | +| Continue | `--ide continue` | `.continue/mcpServers/cometchat.yaml` | +| Aider | `--ide aider` | Not supported | Claude Code, Kiro, and Replit get a native `SKILL.md` tree. The other agents get @@ -102,6 +116,48 @@ Code only) to install into your user-level `~/.claude/skills` instead of the project. +#### More agents through the skills CLI + +These agents read the open [Agent Skills](https://agentskills.io) format. Install +the pack for one of them with the [`skills` CLI](https://skills.sh) (Node.js +22.20+), passing the agent's value from the table: + +```bash +npx skills add cometchat/cometchat-skills -a opencode +``` + +| Agent | `-a` value | +| --- | --- | +| OpenCode | `opencode` | +| Amp | `amp` | +| Roo Code | `roo` | +| Kilo Code | `kilo` | +| Junie (JetBrains) | `junie` | +| Zed | `zed` | +| Warp | `warp` | +| Augment | `augment` | +| Goose | `goose` | +| Devin for Terminal | `devin` | +| OpenHands | `openhands` | +| Droid (Factory) | `droid` | +| Qwen Code | `qwen-code` | +| Trae | `trae` | +| Crush | `crush` | +| Mistral Vibe | `mistral-vibe` | +| Kimi Code CLI | `kimi-code-cli` | +| Rovo Dev | `rovodev` | +| Tabnine CLI | `tabnine-cli` | +| Grok Build | `grok` | +| Qoder | `qoder` | +| IBM Bob | `bob` | + +The skills CLI supports more agents than this table lists; see its +[full list of supported agents](https://github.com/vercel-labs/skills/blob/main/docs/agents.md). + +This route copies each skill's own folder only. It doesn't add the pack's shared +files (`RULES.md`, `peers.yaml`, `catalogs/`) or connect the MCP server. Connect the +[CometChat MCP server](/mcp-server) yourself so the skills can read the current docs. + ## Use it Open your project in your agent and prompt it: @@ -155,18 +211,21 @@ The page is written for agents. Using an agent without these skills? Give it the You usually don't have to paste your **App ID / Region / Auth Key** by hand. During the build, when the skill notices they're missing, it offers two paths and defaults to -fetching them from your dashboard: +fetching them from your account: + +- **Fetch from your account (recommended)**: the agent uses the + [CometChat MCP server](/mcp-server). It asks you to sign in to CometChat in your browser the + first time, lets you pick one of your **existing** apps (it never creates one unless you ask), + and gets that app's credentials. +- **Paste manually**: copy App ID, Region, and Auth Key from **Dashboard → Your + App → Credentials** if you'd rather not sign in. -- **Fetch from your dashboard (recommended)** — the skill runs the standalone - CometChat CLI for you, on demand: it opens the dashboard login in your - browser, lets you pick one of your **existing** apps, pulls the credentials, - and writes a neutral `.cometchat/config.json`. You can also [run the CLI yourself](/cli) - — it works on its own, in a script, or in CI. -- **Paste manually** — copy App ID, Region, and Auth Key from **Dashboard → Your - App → Credentials** if you'd rather not log in. +If your project already has them (in `.cometchat/config.json` or your env file), the skill reuses +them and skips this step. To write `.cometchat/config.json` from a terminal, a script, or CI, use the +[CometChat CLI](/cli). Either way, the **skill** then writes your platform's config from those -credentials — the CLI only fetches them and never touches your app code: +credentials. The MCP server only returns the values and never touches your app code: | Platform | Where the credentials go | | --- | --- | @@ -206,6 +265,9 @@ another platform's prompts. | --- | --- | | `cometchat` | Thin dispatcher — detect the platform and route | | `cometchat-onboarding` | Discover → understand → plan → approve (the front door) | +| `cometchat-migrate-from-sendbird` · `cometchat-migrate-from-getstream` · `cometchat-migrate-from-twilio` | Move an app off Sendbird, Stream Chat or Twilio Conversations | +| `cometchat-a11y` · `cometchat-i18n` · `cometchat-audit` · `cometchat-analytics` | Accessibility, localization, an integration audit and analytics, wired through your platform's skills | +| `cometchat-security` · `cometchat-compliance` · `cometchat-moderation` · `cometchat-self-host` | Server- and dashboard-side work that is the same on every platform | **Platform skills** @@ -215,10 +277,10 @@ per platform: | Platform | Skill prefix | Skills | | --- | --- | --- | -| React v7 | `cometchat-react-v7-` | `core` · `components` · `placement` · `customization` · `patterns` · `features` · `calls` · `push` · `migration` | +| React v7 | `cometchat-react-v7-` | `core` · `components` · `placement` · `customization` · `patterns` · `features` · `calls` · `push` · `production` · `testing` · `troubleshooting` · `migration` | | Angular v5 | `cometchat-angular-v5-` | `core` · `components` · `placement` · `customization` · `patterns` · `features` · `calls` · `push` · `production` · `testing` · `troubleshooting` · `migration` | | React Native v5 | `cometchat-react-native-` | `core` · `components` · `placement` · `customization` · `expo-patterns` · `bare-patterns` · `features` · `calls` · `push` · `production` · `testing` · `troubleshooting` · `migration` · `sdk` | -| iOS v5 | `cometchat-ios-` | `core` · `components` · `placement` · `customization` · `features` · `calls` · `push` · `migration` | +| iOS v5 | `cometchat-ios-` | `core` · `components` · `placement` · `customization` · `features` · `calls` · `push` · `production` · `testing` · `troubleshooting` · `migration` | | Android v6 | `cometchat-android-v6-` | `core` · `compose-components` · `compose-placement` · `compose-customization` · `kotlin-components` · `kotlin-placement` · `kotlin-customization` · `features` · `calls` · `push` · `production` · `testing` · `troubleshooting` · `builder-settings` · `events` · `extensions` · `migration` | | Flutter v6 | `cometchat-flutter-v6-` | `core` · `components` · `placement` · `customization` · `patterns` · `features` · `calls` · `push` · `production` · `testing` · `troubleshooting` · `events` · `migration` | @@ -269,8 +331,8 @@ What the task skills do: | `features` | Enable a feature — reactions · polls · AI · moderation · … | | `calls` | Voice / video calling with the UI Kit | | `push` | Push notifications (Notifications product) | -| `production` | Server-minted auth tokens · hardening before you ship (Angular, React Native, Android, Flutter) | -| `testing` · `troubleshooting` | Test an app that embeds CometChat · diagnose a broken integration (Angular, React Native, Android, Flutter) | +| `production` | Server-minted auth tokens · hardening before you ship | +| `testing` · `troubleshooting` | Test an app that embeds CometChat · diagnose a broken integration | | `migration` | Upgrade from the previous UI Kit major | ## Example prompts @@ -330,11 +392,9 @@ existing files — you don't have to know the component or prop names. ## Manage the skills - **Update** — re-run `npx @cometchat/skills add` to pull the latest skills; it overwrites the installed skill tree in place. -- **Inspect** — `npx @cometchat/skills list` lists the skills the pack ships, and `npx @cometchat/skills doctor` runs an environment health check. -- **Uninstall** — there's no uninstall command. Remove what `add` wrote for your agent: - - **The skill files** — `.claude/skills/cometchat*` (Claude Code), `.kiro/skills/cometchat*` (Kiro), `.agents/skills/cometchat*` (Replit), or `./.cometchat/skills` (every other agent). For Claude Code, Kiro, and Replit, also delete the shared files `add` puts at the top of that folder: `RULES.md`, `peers.yaml`, `catalogs/`, and the `features*.json` / `contracts*.json` files. For a `--global` install, use `~/.claude/skills` instead. - - **The router block** — for the other agents, `add` also writes a block between `` and `` into the agent's instruction file: `AGENTS.md` (Cursor, Codex, Antigravity, Continue), `.github/copilot-instructions.md` (Copilot), `GEMINI.md` (Gemini), `.windsurfrules` (Windsurf), `.clinerules/cometchat.md` — or `.clinerules` itself when you already have that as a file — (Cline), or `CONVENTIONS.md` (Aider). Delete that block and keep the rest of the file. - - **The Docs MCP entry** — remove the `cometchat-docs` server from `.mcp.json` (Claude Code), `.cursor/mcp.json` (Cursor), `.gemini/settings.json` (Gemini), or `.codex/config.toml` (Codex). For a `--global` Claude Code install, run `claude mcp remove --scope user cometchat-docs`. Other agents get no MCP entry. +- **Inspect** — `npx @cometchat/skills detect` shows what the installer sees in your project (platform, UI Kit, any version conflict). `npx @cometchat/skills list` lists the skills the pack ships, and `npx @cometchat/skills info ` shows one skill's triggers and compatibility. +- **Check the MCP connection** — `npx @cometchat/skills doctor` checks Node.js, your platform, and the CometChat MCP server in each agent's config, and whether its docs and account tools answer. +- **Uninstall** — `npx @cometchat/skills remove` undoes `add` for Claude Code: the skill folders and the `cometchat` MCP server. Pass `--ide ` for another agent (it also removes the router block from that agent's instruction file), `--ide all` for every agent, `--global` for a user-level install, or `--keep-mcp` to leave the MCP server in place. Your own skills, instructions and other MCP servers stay. - **Version control** — commit the skill files so your whole team shares the same setup. Do **not** commit `.cometchat/config.json` or the generated env file — they hold your Auth Key. (Flutter is the exception: commit the `cometchat-settings.json` **placeholder** with an empty `authKey`, as noted above — a missing asset breaks `flutter build` — and keep the real credentials local.) ## Troubleshooting @@ -346,18 +406,21 @@ existing files — you don't have to know the component or prop names. | `login()` fails — "user not found" | Logging in a UID that doesn't exist in the app | Use a UID that exists (Dashboard → your app → **Users**; fresh apps seed `cometchat-uid-1`). | | Auth error on init / login | Region mismatch between your code and the dashboard app | Re-check the Region (`us` / `eu` / `in`) in both the dashboard and your env file. | | `ERROR_API_KEY_NOT_FOUND` | A credential is empty or not picked up by the build | Confirm the credentials file for your platform is filled in (on web, with the right env prefix for your bundler), then rebuild or restart the dev server. | -| Version conflict during install | An older UI Kit major is already installed (for example React v6 or Android v5) | Ask the agent to migrate — your platform's `migration` skill upgrades it to the version the skills target. | +| Version conflict during install | An older UI Kit major is already installed (for example React v6 or Android v5) | Ask the agent to upgrade, for example *"upgrade my CometChat React UI Kit from v6 to v7"*. Your platform's `migration` skill upgrades it to the version the skills target. | +| The agent can't fetch your credentials | The CometChat MCP server isn't connected, or you haven't signed in | Run `npx @cometchat/skills doctor`. Sign in when the agent asks (Claude Code: `/mcp` → `cometchat` → **Authenticate**), or paste the credentials from the dashboard. See [CometChat MCP](/mcp-server#signing-in-for-the-account-tools). | ## Compatibility | Platform | Packages | | --- | --- | -| React v7 | `@cometchat/chat-uikit-react` `7.x` (verified 7.1.x) · `@cometchat/chat-sdk-javascript` `4.x` · `@cometchat/calls-sdk-javascript` `5.x` (calling) · React `≥ 18` | -| Angular v5 | `@cometchat/chat-uikit-angular` `5.x` (verified 5.1.0) · `@cometchat/chat-sdk-javascript` `^4.1.13` · `@cometchat/cards-angular` `^1.0.0` · `@cometchat/calls-sdk-javascript` `^5.0.3` (calling) · `dompurify` `^3.0.0` | -| React Native v5 | `@cometchat/chat-uikit-react-native` `5.x` · `@cometchat/chat-sdk-react-native` `4.x` · `@cometchat/calls-sdk-react-native` `5.x` (calling) | -| iOS v5 | `CometChatUIKitSwift` `5.1.x` · `CometChatSDK` `4.1.x` · `CometChatCallsSDK` `5.0.x` (calling) — Swift Package Manager | -| Android v6 | `com.cometchat:chatuikit-compose-android` or `chatuikit-kotlin-android` `6.0.x` · `chat-sdk-android` `5.0.x` · `calls-sdk-android` `5.0.x` (calling) | -| Flutter v6 | `cometchat_chat_uikit` `^6` (verified 6.1.x) · `cometchat_calls_sdk` `^5` (calling) | +| React v7 | `@cometchat/chat-uikit-react` `7.x` (verified 7.2.4) · `@cometchat/chat-sdk-javascript` `4.x` · `@cometchat/calls-sdk-javascript` `5.x` (calling) · React `≥ 18` | +| Angular v5 | `@cometchat/chat-uikit-angular` `5.x` (verified 5.2.2) · Chat SDK `4.x` · Calls SDK `5.x` (calling) · Angular 17–21 | +| React Native v5 | `@cometchat/chat-uikit-react-native` `5.x` (verified 5.5.1) · `@cometchat/chat-sdk-react-native` `4.x` · `@cometchat/calls-sdk-react-native` `5.x` (calling) | +| iOS v5 | `CometChatUIKitSwift` `5.2.x` (verified 5.2.3) · `CometChatSDK` `4.1.x` · `CometChatCallsSDK` `5.0.x` (calling) — Swift Package Manager | +| Android v6 | `com.cometchat:chatuikit-compose-android` or `chatuikit-kotlin-android` `6.1.x` · `chat-sdk-android` `5.0.x` · `calls-sdk-android` `5.0.x` (calling) | +| Flutter v6 | `cometchat_chat_uikit` `^6` (verified 6.2.0) · `cometchat_calls_sdk` `^5` (calling) | + +These are the versions in `@cometchat/skills` 5.2.0. The exact pins for each platform are in `peers.yaml` in the package. ## Next steps diff --git a/ai-agents.mdx b/ai-agents.mdx index 2830e9872..44b04e6dd 100644 --- a/ai-agents.mdx +++ b/ai-agents.mdx @@ -3,7 +3,7 @@ mode: "custom" title: "AI Agents" sidebarTitle: "Overview" description: "Build and ship AI agents in chat: pick a provider, connect your agent, and export UI or embed widgets." -canonical: "https://cometchat.com/docs/ai-agents" +canonical: "https://www.cometchat.com/docs/ai-agents" --- diff --git a/calls.mdx b/calls.mdx index 82cc8ac1a..13273f5b9 100644 --- a/calls.mdx +++ b/calls.mdx @@ -2,12 +2,11 @@ mode: "custom" title: "Voice & Video Calling" description: "Add real-time voice and video calling to your apps in minutes with WebRTC-powered SDKs." -canonical: "https://cometchat.com/docs" --- {/* Hero Section */} -
+
@@ -17,6 +16,12 @@ canonical: "https://cometchat.com/docs"

Add high-quality, real-time voice and video calls to any app. Built on WebRTC with drop-in UI components.

+

Building with an AI agent? Install the CometChat Agent Skills in your app's folder, then ask your agent to add voice and video calling to my app. The command sets up Claude Code; for another agent, see supported agents.

+ +```bash +npx @cometchat/skills add +``` +
+ ## Prerequisites Before integrating the Calls SDK, ensure you have: diff --git a/calls/android/setup.mdx b/calls/android/setup.mdx index 9fa79656d..35455d0d7 100644 --- a/calls/android/setup.mdx +++ b/calls/android/setup.mdx @@ -5,6 +5,8 @@ sdk_version: "5.x" description: "Set up CometChat Calls SDK v5 for Android with installation, app credentials, initialization, authentication, and the push dependencies needed for ringing." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + **Faster Integration with UI Kits** @@ -20,6 +22,10 @@ Use this Calls SDK directly only if you need custom call UI or advanced control. This guide walks you through installing the CometChat Calls SDK and initializing it in your Android application. +## Build with AI + + + ## Add the CometChat Dependency ### Step 1: Add Repository diff --git a/calls/flutter/overview.mdx b/calls/flutter/overview.mdx index 1ef75c88f..602a216c4 100644 --- a/calls/flutter/overview.mdx +++ b/calls/flutter/overview.mdx @@ -5,8 +5,15 @@ sdk_version: "5.x" description: "Use CometChat Calls SDK v5 for Flutter to add voice and video calling, call sessions, participants, layouts, and in-call features." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + The CometChat Calls SDK enables real-time voice and video calling capabilities in your Flutter application. Built on top of WebRTC, it provides a complete calling solution with built-in UI components and extensive customization options. + +## Build with AI + + + ## Prerequisites Before integrating the Calls SDK, ensure you have: diff --git a/calls/flutter/setup.mdx b/calls/flutter/setup.mdx index 874c29805..6c7865a86 100644 --- a/calls/flutter/setup.mdx +++ b/calls/flutter/setup.mdx @@ -5,6 +5,8 @@ sdk_version: "5.x" description: "Set up CometChat Calls SDK v5 for Flutter with installation, app credentials, initialization, authentication, and a basic calling flow." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + **Faster Integration with UI Kits** @@ -20,6 +22,10 @@ Use this Calls SDK directly only if you need custom call UI or advanced control. This guide walks you through installing the CometChat Calls SDK and initializing it in your Flutter application. +## Build with AI + + + ## Add the CometChat Dependency ### Step 1: Add the Package diff --git a/calls/ios/overview.mdx b/calls/ios/overview.mdx index 34540c952..08182d98f 100644 --- a/calls/ios/overview.mdx +++ b/calls/ios/overview.mdx @@ -5,8 +5,15 @@ sdk_version: "5.x" description: "Use CometChat Calls SDK v5 for iOS to add voice and video calling, call sessions, participants, layouts, and in-call features." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + The CometChat Calls SDK enables real-time voice and video calling capabilities in your iOS application. Built on top of WebRTC, it provides a complete calling solution with built-in UI components and extensive customization options. + +## Build with AI + + + ## Prerequisites Before integrating the Calls SDK, ensure you have: diff --git a/calls/ios/setup.mdx b/calls/ios/setup.mdx index fad85bbed..e72781413 100644 --- a/calls/ios/setup.mdx +++ b/calls/ios/setup.mdx @@ -5,6 +5,8 @@ sdk_version: "5.x" description: "Set up CometChat Calls SDK v5 for iOS with installation, app credentials, initialization, authentication, and the push dependencies needed for ringing." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + **Faster Integration with UI Kits** @@ -20,6 +22,10 @@ Use this Calls SDK directly only if you need custom call UI or advanced control. This guide walks you through installing the CometChat Calls SDK and initializing it in your iOS application. +## Build with AI + + + ## Add the CometChat Dependency The Calls SDK 5.1 is distributed with Swift Package Manager. It needs iOS 15.1 or later. diff --git a/calls/javascript/overview.mdx b/calls/javascript/overview.mdx index c034fdf70..7059f24f8 100644 --- a/calls/javascript/overview.mdx +++ b/calls/javascript/overview.mdx @@ -5,8 +5,15 @@ sdk_version: "5.x" description: "Use CometChat Calls SDK v5 for JavaScript to add voice and video calling, call sessions, participants, layouts, and in-call features." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + The CometChat Calls SDK enables real-time voice and video calling capabilities in your web application. Built on top of WebRTC, it provides a complete calling solution with built-in UI components and extensive customization options. + +## Build with AI + + + ## Prerequisites Before integrating the Calls SDK, ensure you have: diff --git a/calls/javascript/setup.mdx b/calls/javascript/setup.mdx index 18eadee57..a63506271 100644 --- a/calls/javascript/setup.mdx +++ b/calls/javascript/setup.mdx @@ -5,6 +5,8 @@ sdk_version: "5.x" description: "Set up CometChat Calls SDK v5 for JavaScript with installation, app credentials, initialization, authentication, and the Chat SDK needed for ringing." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + **Faster Integration with UI Kits** @@ -20,6 +22,10 @@ Use this Calls SDK directly only if you need custom call UI or advanced control. This guide walks you through installing the CometChat Calls SDK and initializing it in your web application. +## Build with AI + + + ## Install the SDK Install the CometChat Calls SDK using npm or yarn: diff --git a/calls/react-native/overview.mdx b/calls/react-native/overview.mdx index 8d6ffb027..829dd27d2 100644 --- a/calls/react-native/overview.mdx +++ b/calls/react-native/overview.mdx @@ -5,6 +5,8 @@ sdk_version: "5.x" description: "Use CometChat Calls SDK v5 for React Native to add voice and video calling, call sessions, participants, layouts, and in-call features." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + The CometChat Calls SDK enables real-time voice and video calling capabilities in your React Native application. Built on top of WebRTC, it provides a complete calling solution with built-in UI components and extensive customization options. @@ -48,6 +50,10 @@ The CometChat Calls SDK enables real-time voice and video calling capabilities i * **Migrating from v4** → [Migration Guide](/calls/react-native/migration-guide-v5) +## Build with AI + + + ## Prerequisites Before integrating the Calls SDK, ensure you have: diff --git a/calls/react-native/setup.mdx b/calls/react-native/setup.mdx index ba2d847d8..5bae58a5a 100644 --- a/calls/react-native/setup.mdx +++ b/calls/react-native/setup.mdx @@ -5,6 +5,8 @@ sdk_version: "5.x" description: "Set up CometChat Calls SDK v5 for React Native with installation, app credentials, initialization, authentication, and a basic calling flow." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + **Faster Integration with UI Kits** @@ -46,6 +48,10 @@ Use this Calls SDK directly only if you need custom call UI or advanced control. This guide walks you through installing the CometChat Calls SDK and configuring it in your React Native application. +## Build with AI + + + ## Add the CometChat Dependency ### Using npm diff --git a/campaigns.mdx b/campaigns.mdx index 5241de0e5..b90d43c0b 100644 --- a/campaigns.mdx +++ b/campaigns.mdx @@ -97,7 +97,7 @@ Integrate Campaigns into your client application using either the pre-built UI K Swift UI Kit for iOS notifications - + Android UI Kit for notifications diff --git a/chat-call.mdx b/chat-call.mdx index 6ee11024b..0ddc047ca 100644 --- a/chat-call.mdx +++ b/chat-call.mdx @@ -2,13 +2,12 @@ mode: "custom" title: "Chat & Messaging" description: "Add real-time chat, voice & video calling to your apps in minutes. Choose your path: UI Kits, SDKs, or Widgets." -canonical: "https://cometchat.com/docs" --- {/* Hero Section */} -
+
@@ -18,7 +17,7 @@ canonical: "https://cometchat.com/docs"

Production-ready messaging for web and mobile, ready to drop into your stack.

-

Building with an AI agent? Install this skill and start building instantly.

+

Building with an AI agent? Install the CometChat Agent Skills in your app's folder, then ask your agent to add chat to my app. The command sets up Claude Code; for another agent, see supported agents.

```bash npx @cometchat/skills add diff --git a/cli.mdx b/cli.mdx index afd853064..50e1abcf1 100644 --- a/cli.mdx +++ b/cli.mdx @@ -9,8 +9,11 @@ CometChat ships two complementary command-line tools: | Tool | Package | What it does | | --- | --- | --- | +| **Skills installer** | `@cometchat/skills` | Install, check, and remove the [Agent Skills](/agent-skills), and connect the [CometChat MCP server](/mcp-server) to your agent | | **Credentials CLI** (`cometchat`) | `@cometchat/skills-cli` | Dashboard authentication + app-credential provisioning + feature toggles | -| **Skills installer** | `@cometchat/skills` | Install, list, and verify the [AI Agent Skills](/agent-skills) | + +To build with an AI coding agent, you only need the skills installer: run +`npx @cometchat/skills add` in your app's folder. The credentials CLI is **standalone** — use it on its own, in a script, or in CI. @@ -18,8 +21,9 @@ It's a pure dashboard/API client: it authenticates, fetches your app credentials (App ID / Region / Auth Key), and writes a neutral `.cometchat/config.json`. By design it does **not** detect your framework, write env files, or generate code, so it stays framework-agnostic and works with any stack. The -[agent skills](/agent-skills) are one consumer that can run it for you — but the -CLI doesn't require them. +[Agent Skills](/agent-skills) don't need it: they fetch credentials through the +[CometChat MCP server](/mcp-server), and reuse a `.cometchat/config.json` the CLI +already wrote. Both run through `npx` with no global install, and most commands accept `--json` @@ -39,6 +43,33 @@ directly. --- +## Skills CLI — `@cometchat/skills` + +Installs and manages the [AI Agent Skills](/agent-skills) that let your coding +agent build with CometChat. + +```bash +npx @cometchat/skills add +``` + +| Command | Purpose | +| --- | --- | +| `detect` | Probe the current project (framework, UI Kit, version conflicts) | +| `add [--ide ] [--family ] [--no-mcp]` | Install the skills for your project's platform and an AI agent (default: Claude Code), and connect the CometChat MCP server (`--no-mcp` skips it) | +| `remove [--ide ] [--keep-mcp]` | Undo `add` for an agent: its skills, router block, and the CometChat MCP server. Your own skills and other servers stay | +| `list` | List the skills this pack ships | +| `info ` | Show a skill's triggers + compatibility | +| `verify [tier]` | Run the skill quality gates | +| `catalog` | Refresh the component catalog from the installed UI Kit | +| `doctor` | Check Node.js, the detected platform, the CometChat MCP server in each agent's config, and whether its docs and account tools answer | + +`add` doesn't prompt: it installs the skills for the platform it detects in the +current project, for Claude Code unless you pass `--ide`. See +[Agent Skills](/agent-skills) for the supported platforms and agents, their +`--ide` values, `--global`, and the prompt-driven workflow. + +--- + ## Credentials CLI — `@cometchat/skills-cli` Its only job is authenticating against the CometChat dashboard and fetching your @@ -189,32 +220,6 @@ npx @cometchat/skills-cli features ai-key "$OPENAI_API_KEY" --- -## Skills CLI — `@cometchat/skills` - -Installs and manages the [AI Agent Skills](/agent-skills) that let your coding -agent build with CometChat. - -```bash -npx @cometchat/skills add -``` - -| Command | Purpose | -| --- | --- | -| `detect` | Probe the current project (framework, UI Kit, version conflicts) | -| `add [--ide ] [--no-mcp]` | Install the skills for your project's platform and an AI agent (default: Claude Code), and connect the CometChat Docs MCP (`--no-mcp` skips it) | -| `list` | List the skills this pack ships | -| `info ` | Show a skill's triggers + compatibility | -| `verify [tier]` | Run the skill quality gates | -| `catalog` | Refresh the component catalog from the installed UI Kit | -| `doctor` | Environment health check | - -`add` doesn't prompt: it installs the skills for the platform it detects in the -current project, for Claude Code unless you pass `--ide`. See -[Agent Skills](/agent-skills) for the supported platforms and agents, their -`--ide` values, `--global`, and the prompt-driven workflow. - ---- - ## Scripting and CI `auth login` is interactive: it opens a browser and waits for you to approve the diff --git a/docs.json b/docs.json index 75e48e794..8420d0e56 100644 --- a/docs.json +++ b/docs.json @@ -90,23 +90,6 @@ } ] }, - { - "tab": "AI-Driven Development", - "hidden": true, - "pages": [ - { - "group": "AI-Driven Development", - "pages": [ - "agent-skills", - "cli", - "mcp-server", - "migrate-with-agent-skills", - "lovable", - "design-system" - ] - } - ] - }, { "tab": "Card Builder", "hidden": true, @@ -130,6 +113,32 @@ } ] }, + { + "product": "AI-Driven Development", + "tabs": [ + { + "tab": "AI-Driven Development", + "pages": [ + { + "group": "Get started", + "pages": [ + "agent-skills", + "mcp-server", + "cli" + ] + }, + { + "group": "Guides", + "pages": [ + "migrate-with-agent-skills", + "lovable", + "design-system" + ] + } + ] + } + ] + }, { "product": "Chat & Messaging", "tabs": [ @@ -6942,6 +6951,10 @@ }, "navbar": { "links": [ + { + "label": "Build with AI", + "href": "https://www.cometchat.com/docs/agent-skills" + }, { "label": "Dashboard", "href": "https://app.cometchat.com/" @@ -6961,10 +6974,6 @@ } }, "redirects": [ - { - "source": "/sdk/flutter/group-kick-member", - "destination": "/sdk/flutter/group-kick-ban-members" - }, { "source": "/sdk/flutter/login-listeners", "destination": "/sdk/flutter/authentication-overview#login-listener" @@ -10681,7 +10690,9 @@ }, "errors": { "404": { - "redirect": true + "redirect": false, + "title": "Page not found", + "description": "This page doesn't exist or has moved. Search the docs above, or start from the [docs home](/). AI agents: look up page paths in [llms.txt](https://www.cometchat.com/docs/llms.txt)." } } } diff --git a/fundamentals/overview.mdx b/fundamentals/overview.mdx index 54c497085..5e6c0e344 100644 --- a/fundamentals/overview.mdx +++ b/fundamentals/overview.mdx @@ -12,6 +12,8 @@ Our **Messaging & chat** features offer flexible, secure, feature-rich and easy- CometChat's solutions cater to every industry with a global and scalable infrastructure, multi-region capabilities, multi-tenancy, and round-the-clock support. Our comprehensive documentation, competitive pricing, and flexible implementation options ensure that our platform is equipped for enterprise-grade requirements while remaining accessible for startups. +For plans and prices, see [cometchat.com/pricing](https://www.cometchat.com/pricing). AI agents can read the same information as Markdown at [cometchat.com/pricing.md](https://www.cometchat.com/pricing.md). + This dual readiness positions CometChat as both **Enterprise-ready** and **Startup-friendly**. Our customer base spans a diverse range of industries, including: diff --git a/index.mdx b/index.mdx index 6e8a78c3a..dc76d06ab 100644 --- a/index.mdx +++ b/index.mdx @@ -2,11 +2,94 @@ mode: "custom" title: "Home" description: "Technical documentation & Implementation guides to add In-app Messaging & Voice & Video Calling to your apps and websites in minutes." -canonical: "https://cometchat.com/docs" +canonical: "https://www.cometchat.com/docs" --- {/* Hero Section */} +
+
+ +
+ +

+ Install the CometChat skill to ship in minutes and scale to billions +

+ +

+ Run one command in your app's folder. It detects your platform, installs the CometChat skills for Claude Code and connects the CometChat MCP. Using Cursor, GitHub Copilot, Codex or Replit? Add {"--ide "}, for example {"--ide cursor"}. For the rest of the 30+ supported agents, see how to install for yours. Then ask your agent to add chat, voice and video calling to your React, Angular, React Native, iOS, Android or Flutter app. +

+ +

1. Install the skills

+ +```bash +npx @cometchat/skills add +``` + +

2. Ask your agent

+ +```text +add chat to my app +``` + +

+ No terminal? Paste this into your agent: Read https://www.cometchat.com/docs/skill.md and follow it to add CometChat to my app. +

+ +

+ Using Claude, Cursor, VS Code or Windsurf? Connect the CometChat MCP at https://mcp.cometchat.com/mcp so your agent reads the docs and, once you sign in, your CometChat apps. npx @cometchat/skills add connects it for Claude Code, and for most agents you add with {"--ide"} (see which). +

+ +

+ Agent Skills guide →  ·  Connect the CometChat MCP →  ·  CLI reference → +

+ +
+ +
+ +
+ +{/* * Agent prompts: each prompt is a capability of the @cometchat/skills 5.x pack (README "Use it", dispatcher rules 1–3). */} + +

+ Try these prompts with your coding agent +

+ +

+ After npx @cometchat/skills add, open your project in your agent and paste a prompt. The agent plans the change, shows you which files it will touch, and waits for your approval before it writes code. +

+ + + + +add chat to my app + + + +add voice and video calling to my app + + + +build a WhatsApp clone with CometChat + + + +migrate my app to CometChat + + + +add reactions, read receipts and message search + + + +switch my app to server-minted auth tokens + + + + +
+
{/* * Products Section */} @@ -78,15 +161,15 @@ canonical: "https://cometchat.com/docs" - Let your AI coding agent add CometChat chat & calling to your web or mobile app — React, Angular, React Native, iOS, Android, or Flutter. + Start here. `npx @cometchat/skills add` installs the skills for your agent, which then adds chat & calling to your React, Angular, React Native, iOS, Android, or Flutter app. - - Authenticate, provision credentials, and manage the skills from your terminal. + + Connect Claude, Cursor, VS Code, or Windsurf to CometChat's docs, and once you sign in, to your apps, credentials and features. - - Connect your AI tools to CometChat's docs, and once you sign in, to your apps, credentials and features. + + Sign in, provision app credentials, and toggle features from your terminal or CI. diff --git a/mcp-server.mdx b/mcp-server.mdx index 1f17019f3..e27c5b247 100644 --- a/mcp-server.mdx +++ b/mcp-server.mdx @@ -118,7 +118,17 @@ the steps. ### With the CometChat Agent Skills `npx @cometchat/skills add` installs the [Agent Skills](/agent-skills) and adds -this server to your agent's MCP config for you. +this server to your agent's MCP config for you. The skills tell the agent how to +build with each UI Kit and use this server to read the docs and fetch your +credentials. Run `npx @cometchat/skills doctor` to check that the server is +connected and answering. + +If your agent can't run commands, paste this to it instead. The file tells it how +to install the skills, connect this server, and find the right docs: + +```text +Read https://www.cometchat.com/docs/skill.md and follow it to add CometChat to my app. +``` ## Example prompts diff --git a/notifications.mdx b/notifications.mdx index 66a8f670c..97c4b3629 100644 --- a/notifications.mdx +++ b/notifications.mdx @@ -2,7 +2,6 @@ mode: "custom" title: "Notifications" description: "Engage users beyond chat with real-time and scheduled notifications across Push, Email, and SMS." -canonical: "https://cometchat.com/docs" --- diff --git a/sdk/android/ai-chatbots-overview.mdx b/sdk/android/ai-chatbots-overview.mdx index 212859ecc..ede13c12e 100644 --- a/sdk/android/ai-chatbots-overview.mdx +++ b/sdk/android/ai-chatbots-overview.mdx @@ -5,6 +5,6 @@ description: "Implement custom AI chatbots for automated conversations in your A url: "https://assets.cometchat.io/legacy-docs/ai-chatbots/ai-bots/overview.html" --- -AI Chatbots enable automated conversations within your application. They can process user messages and respond with contextually relevant information. For a broader introduction, see the [AI Chatbots section](/ai-chatbots). +AI Chatbots enable automated conversations within your application. They can process user messages and respond with contextually relevant information. For a broader introduction, see the [AI Chatbots overview](/ai-chatbots/overview). For message payload structures (AIAssistantMessage, AIToolArgumentMessage, AIToolResultMessage), see the [AI Agents](/sdk/android/ai-agents#agentic-message-payload-structures) page. diff --git a/sdk/android/v5/overview.mdx b/sdk/android/v5/overview.mdx index c558cd130..44b47615b 100644 --- a/sdk/android/v5/overview.mdx +++ b/sdk/android/v5/overview.mdx @@ -3,6 +3,8 @@ title: "Overview" description: "Build Android chat apps with CometChat SDK v5, including real-time messaging, users, groups, and calling support." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + The v5 Android Chat SDK has breaking changes if you are migrating from v4. Please refer to [Upgrading from v4](/sdk/android/v5/upgrading-from-v4). @@ -25,6 +27,10 @@ Import the app into Android Studio and follow the steps mentioned in the `README [Kotlin Chat App](https://github.com/cometchat-pro/android-kotlin-chat-app) +### Build with AI + + + ### Get your Application Keys [Signup for CometChat](https://app.cometchat.com) and then: diff --git a/sdk/android/v5/setup.mdx b/sdk/android/v5/setup.mdx index 9efd25be5..c706144c7 100644 --- a/sdk/android/v5/setup.mdx +++ b/sdk/android/v5/setup.mdx @@ -3,6 +3,12 @@ title: "Setup" description: "Set up the Android v5 SDK with app keys, Gradle dependencies, and initialization before building chat features." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + +### Build with AI + + + ### Get your Application Keys [Signup for CometChat](https://app.cometchat.com) and then: diff --git a/sdk/flutter/overview.mdx b/sdk/flutter/overview.mdx index f9b04c3e2..fc0d637ec 100644 --- a/sdk/flutter/overview.mdx +++ b/sdk/flutter/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Add CometChat Chat SDK to Flutter apps with real-time messaging, users, groups, conversations, and cross-platform support." --- +import BuildWithAIMCP from '/snippets/ai/build-with-ai-mcp.mdx'; + The CometChat Chat SDK for Flutter enables real-time messaging, user management, group conversations, and more in your Flutter application. Built as a pure Dart implementation in v5, it removes the dependency on platform channels and works seamlessly across Android, iOS, Web, and desktop. Since 5.1.2, the package is also WASM-compatible on Flutter web. @@ -93,3 +95,7 @@ sequenceDiagram | `BaseMessage` | Base class for all message types (text, media, custom, action) | | `MessageListener` | Event interface for real-time message, typing, and receipt events | | `ConnectionListener` | Event interface for WebSocket connection status changes | + +## Build with AI + + diff --git a/sdk/flutter/setup.mdx b/sdk/flutter/setup.mdx index 03030c196..790f358e6 100644 --- a/sdk/flutter/setup.mdx +++ b/sdk/flutter/setup.mdx @@ -3,6 +3,8 @@ title: "Setup" description: "Install, configure, initialize, and log in users with the CometChat Flutter SDK using app keys and region." --- +import BuildWithAIMCP from '/snippets/ai/build-with-ai-mcp.mdx'; + | Field | Value | @@ -19,6 +21,10 @@ description: "Install, configure, initialize, and log in users with the CometCha +### Build with AI + + + ### Get your Application Keys [Signup for CometChat](https://app.cometchat.com/) and then: diff --git a/sdk/ios/overview.mdx b/sdk/ios/overview.mdx index 61b3b818f..a68499dbf 100644 --- a/sdk/ios/overview.mdx +++ b/sdk/ios/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Add real-time chat, voice, and video to iOS apps with the CometChat SDK, including users, groups, messages, and calls." --- +import BuildWithAIMCP from '/snippets/ai/build-with-ai-mcp.mdx'; + {/* TL;DR for Agents and Quick Reference */} @@ -39,6 +41,10 @@ if CometChat.getLoggedInUser() == nil { The CometChat iOS SDK lets you add real-time messaging, voice, and video calling to any iOS application — Swift or Objective-C. +## Build with AI + + + ## Requirements | Requirement | Minimum Version | diff --git a/sdk/ios/setup.mdx b/sdk/ios/setup.mdx index 18371fb26..4f6fbcf1b 100644 --- a/sdk/ios/setup.mdx +++ b/sdk/ios/setup.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Setup" description: "Install, configure, and initialize the CometChat iOS SDK with app credentials, region, dependencies, and setup steps." --- +import BuildWithAIMCP from '/snippets/ai/build-with-ai-mcp.mdx'; + {/* TL;DR for Agents and Quick Reference */} @@ -34,6 +36,10 @@ CometChat.init(appId: "APP_ID", appSettings: appSettings, onSuccess: { _ in **Prerequisites:** Xcode 12+, iOS 11+, credentials from [CometChat Dashboard](https://app.cometchat.com) +## Build with AI + + + ## Prerequisites | Requirement | Version | diff --git a/sdk/javascript/overview.mdx b/sdk/javascript/overview.mdx index 9367727a2..8b6206370 100644 --- a/sdk/javascript/overview.mdx +++ b/sdk/javascript/overview.mdx @@ -3,6 +3,8 @@ title: "Overview" description: "Set up the CometChat JavaScript SDK to add real-time chat features to your web app." --- +import BuildWithAIMCP from '/snippets/ai/build-with-ai-mcp.mdx'; + This guide demonstrates how to add chat to a JavaScript application using CometChat. Before you begin, we strongly recommend you read the [Key Concepts](/sdk/javascript/key-concepts) guide. #### I want to integrate with my app @@ -24,6 +26,10 @@ Open the app folder in your favorite code editor and follow the steps mentioned [Vue Sample App](https://github.com/cometchat-pro/javascript-vue-chat-app) +### Build with AI + + + ### Get your Application Keys [Signup for CometChat](https://app.cometchat.com) and then: diff --git a/sdk/javascript/setup-sdk.mdx b/sdk/javascript/setup-sdk.mdx index 7d863932a..3473a4faa 100644 --- a/sdk/javascript/setup-sdk.mdx +++ b/sdk/javascript/setup-sdk.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Setup" description: "Install, import, and initialize the CometChat JavaScript SDK in your web app." --- +import BuildWithAIMCP from '/snippets/ai/build-with-ai-mcp.mdx'; + Migrating app version from v3 to v4 ? @@ -13,6 +15,10 @@ Follow steps mentioned in **Add the CometChat dependency** section below to upgr +## Build with AI + + + ## Get your Application Keys [Signup for CometChat](https://app.cometchat.com) and then: diff --git a/sdk/react-native/overview.mdx b/sdk/react-native/overview.mdx index 770b59f4d..b8fec5a2e 100644 --- a/sdk/react-native/overview.mdx +++ b/sdk/react-native/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Add real-time chat, voice, video, users, groups, messages, and push notifications to React Native apps with the CometChat SDK." --- +import BuildWithAIMCP from '/snippets/ai/build-with-ai-mcp.mdx'; + {/* TL;DR for Agents and Quick Reference */} @@ -48,6 +50,10 @@ if (!existing) { The CometChat React Native SDK lets you add real-time messaging, voice, and video calling to any React Native application. +## Build with AI + + + ## Requirements | Requirement | Minimum Version | diff --git a/sdk/react-native/setup-sdk.mdx b/sdk/react-native/setup-sdk.mdx index 57270711c..0b2a49ae0 100644 --- a/sdk/react-native/setup-sdk.mdx +++ b/sdk/react-native/setup-sdk.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Setup" description: "Install, configure, initialize, and log in users with the CometChat React Native SDK using app settings and auth keys." --- +import BuildWithAIMCP from '/snippets/ai/build-with-ai-mcp.mdx'; + {/* TL;DR for Agents and Quick Reference */} @@ -40,6 +42,10 @@ await CometChat.login("UID", "AUTH_KEY"); // dev only +## Build with AI + + + ## Prerequisites | Requirement | Version | diff --git a/skill.md b/skill.md new file mode 100644 index 000000000..a5246e598 --- /dev/null +++ b/skill.md @@ -0,0 +1,160 @@ +--- +name: cometchat +description: Add CometChat chat, voice and video calling to a web or mobile app. Use when the user asks to add chat, messaging, calling or push notifications with CometChat; to build a chat app or a clone of one; to migrate from Sendbird, Stream or Twilio Conversations; to upgrade a CometChat UI Kit; or to work with CometChat credentials, users, groups, webhooks or the REST API. +compatibility: Installing the skills needs a shell with Node.js 18+ (npx) in the user's project. The UI Kit skills cover React, Angular, React Native, iOS, Android and Flutter apps. The CometChat MCP server works in any agent that supports remote MCP servers. +metadata: + author: CometChat + version: "1.0" +--- + +# CometChat + +CometChat provides chat, voice and video calling for web and mobile apps through UI Kits +(prebuilt components), SDKs (build your own UI) and a REST API (server side). Docs: +https://www.cometchat.com/docs + +Follow these steps in order. Stop at the first one that works in your environment. + +## Ground rules + +- Work inside the user's existing app. Don't scaffold a separate demo project. +- Never create a new CometChat app or change anything in the user's CometChat account + unless the user asks. Ask before any account change, and before deleting anything. +- Never invent App IDs, regions, keys or API names. Read them from the user's project, + the CometChat MCP server, or the docs. +- The Auth Key is for development only. In production the user's server creates an + auth token for each user, and the app logs in with that token. +- Keep credentials out of version control. + +## 1. Install the CometChat Agent Skills (recommended) + +If you can run shell commands in the user's project, run this in the app's folder +(in a monorepo, the app package, not the repo root): + +```bash +npx @cometchat/skills add +``` + +The installer detects the platform, installs that platform's skills for Claude Code, +and connects the CometChat MCP server (`--no-mcp` skips that). For another agent, pass +`--ide`: `cursor`, `codex`, `copilot`, `windsurf`, `gemini`, `kiro`, `cline`, +`continue`, `antigravity`, `replit` or `aider`, or `--ide all`. +For an agent not in that list (OpenCode, Amp, Roo Code and others), install the pack with +the skills CLI (Node.js 22.20+) and connect the MCP server in step 2: +`npx skills add cometchat/cometchat-skills -a `. The `-a` values are listed at +https://www.cometchat.com/docs/agent-skills#more-agents-through-the-skills-cli + +Then reload the skills (restart the agent if it doesn't pick them up) and follow the +`cometchat` skill. It plans the work with the user, shows which files it will create or +change, and writes the code once the user approves. + +| The user's project | Install | Then ask | +| --- | --- | --- | +| React (Vite, Next.js, React Router, Astro, Create React App) | `npx @cometchat/skills add` | `add chat to my app` | +| Angular | `npx @cometchat/skills add` | `add chat to my app` | +| React Native (bare or Expo) | `npx @cometchat/skills add` | `add chat to my app` | +| iOS (Swift) | `npx @cometchat/skills add` | `add chat to my app` | +| Android (Jetpack Compose or Kotlin Views) | `npx @cometchat/skills add` | `add chat to my app` | +| Flutter | `npx @cometchat/skills add` | `add chat to my app` | +| Calling only, no UI Kit | `npx @cometchat/skills add --family ` | `add voice and video calling to my app` | +| Android chat with its own UI (Chat SDK v5) | `npx @cometchat/skills add --family android-sdk` | `build chat with my own UI using the CometChat Android SDK` | + +The skills build with the current UI Kits: React v7, Angular v5, React Native v5, +iOS v5, Android v6 and Flutter v6. + +- **No app in the folder yet**, or the installer can't tell the platform (for example + at a monorepo root): create the app or `cd` into it first, or name the platform with + `--family react|angular|react-native|ios|android|flutter`. +- **The app uses an older UI Kit**: ask `upgrade my CometChat UI Kit from vX to vY`. + The migration skill upgrades it. Adding chat on an older UI Kit stops with a version + conflict until it's upgraded. +- **The app uses Sendbird, Stream Chat or Twilio Conversations**: ask + `migrate my app to CometChat`. +- **A whole app or a clone**: ask `build a clone` or describe the app. +- **Check the setup**: `npx @cometchat/skills doctor` checks Node.js, the platform, the + MCP server in each agent's config, and whether its docs and account tools answer. + +Full guide: https://www.cometchat.com/docs/agent-skills + +## 2. Connect the CometChat MCP server + +Use this if the installer didn't connect it, or if you can't run `npx` at all. + +- URL: `https://mcp.cometchat.com/mcp` (remote, HTTP) +- Claude Code: `claude mcp add --transport http cometchat https://mcp.cometchat.com/mcp` +- Other agents: add the URL as a remote MCP server in the agent's MCP settings. + Steps for Claude, Cursor, Windsurf, VS Code and Lovable: + https://www.cometchat.com/docs/mcp-server#connect-from-your-agent + +The docs tools work without signing in: `search_cometchat_docs`, +`fetch_cometchat_doc_page`, `list_cometchat_bundles` and +`get_cometchat_implementation_bundle` (ready-made recipes per platform). Read the +`cometchat://skills/overview` resource first. + +The account tools (`cometchat_*`) act on the user's CometChat account after the user +signs in. The first call opens the sign-in page in their browser. To get credentials: +`cometchat_whoami`, then `cometchat_list_apps`, ask the user which existing app to use, +then `cometchat_get_app_credentials`. Write the values into the project's env or config +file; don't echo them back. If the user can't sign in, ask them to copy the credentials +from the dashboard instead. + +Full guide: https://www.cometchat.com/docs/mcp-server + +## 3. Without skills or MCP: read the docs directly + +- Find a page's path in the index: https://www.cometchat.com/docs/llms.txt. It lists + the main pages directly and links a per-product index for everything else (the SDK + and UI Kit pages are there), for example + https://www.cometchat.com/docs/_llms/chat-and-messaging/ui-kits/react.txt +- Every page is available as Markdown: add `.md` to its URL, for example + https://www.cometchat.com/docs/ui-kit/react/overview.md +- A path that doesn't exist returns HTTP 404 with a "Page not found" page. (The site + used to redirect such paths to the docs home with HTTP 200, so a cached response may + still show the heading `# Home`.) Either way the path is wrong: look it up in the + index rather than guessing. +- Versions: a path with a version segment (`/v4/`, `/v5/`, `/v6/`) is that older or + specific version, and the start-here paths below are the current ones. The Android + Chat SDK is the exception: its current version (v5) is under `/sdk/android/v5/`, and + `/sdk/android/` without it is the previous major version (v4). +- Plans and prices: https://www.cometchat.com/pricing.md (Markdown, written for agents). + Read it instead of quoting prices or plan limits from memory. + +Start from the overview for the user's platform: + +| Building | Start here | +| --- | --- | +| A chat UI with prebuilt components | `/ui-kit/react/overview`, `/ui-kit/angular/overview`, `/ui-kit/react-native/overview`, `/ui-kit/ios/overview`, `/ui-kit/android/overview`, `/ui-kit/flutter/overview` | +| Chat with your own UI | `/sdk/javascript/overview`, `/sdk/react-native/overview`, `/sdk/ios/overview`, `/sdk/android/v5/overview`, `/sdk/flutter/overview` | +| Voice and video calling | `/calls/javascript/overview`, `/calls/react-native/overview`, `/calls/ios/overview`, `/calls/android/overview`, `/calls/flutter/overview` | +| Server-side operations | `/rest-api/chat-apis` | + +All paths are under https://www.cometchat.com/docs. + +## Facts to get right + +| Item | Where it comes from | Used for | +| --- | --- | --- | +| App ID | CometChat dashboard → your app → API & Auth Keys | Every SDK and UI Kit init, REST API URLs | +| Region | Same place: `us`, `eu` or `in` | SDK init, REST API URLs | +| Auth Key | Same place | Client login during development only | +| REST API key | Same place (`fullAccess` or `authOnly` scope) | Server-side REST calls, in the `apikey` header. Never in client code | +| Auth token | Your server: `POST /users/{uid}/auth_tokens` | Production client login | + +- REST API base URL: `https://.api-.cometchat.io/v3` +- Initialize, then log in, then render. A UI Kit component rendered before `init` and + `login` finish shows a blank screen. +- Users and groups are identified by `uid` and `guid` from the user's own system. + New apps include test users `cometchat-uid-1` through `cometchat-uid-5`. +- In production, create the CometChat user when the user signs up in the app (REST API), + and log in with an auth token minted on the server. +- Remove SDK listeners when the screen or component that added them goes away. + +## Before you finish + +- The app builds, and chat loads for a test user. +- Credentials come from the user's env or config file, not hard-coded, and that file + is ignored by version control. +- The Auth Key isn't used in a production build (or the user knows it must be replaced + by server-side auth tokens). +- Tell the user what you changed and what they still need to do, such as adding real + users or setting up push notifications. diff --git a/snippets/ai/build-with-ai-mcp.mdx b/snippets/ai/build-with-ai-mcp.mdx new file mode 100644 index 000000000..c06e72b2a --- /dev/null +++ b/snippets/ai/build-with-ai-mcp.mdx @@ -0,0 +1,18 @@ +{/* + "Build with AI" block for Chat SDK pages with no Agent Skills family of their own + (Chat SDK v4 for JavaScript, React Native and iOS, Chat SDK v5 for Flutter; see cometchat-skills peers.yaml). + React Native's UI Kit family does ship a headless Chat SDK skill (cometchat-react-native-sdk), but as a + companion to the UI Kit skills, not as a family for an SDK-only app, so this page doesn't offer it. + It points the agent at the CometChat MCP and claims no skill. + Props: + platform – e.g. "JavaScript Chat SDK" + The page owns the "## Build with AI" heading. +*/} + +Connect your AI coding agent to the [CometChat MCP](/mcp-server) and it reads these docs as it works: it finds the right {platform} APIs and, once you sign in, fetches your app's credentials. In Claude Code: + +```bash +claude mcp add --transport http cometchat https://mcp.cometchat.com/mcp +``` + +For Claude, Cursor, VS Code, Windsurf and other agents, see [Connect from your agent](/mcp-server#connect-from-your-agent). Building a chat UI instead? The UI Kits have [Agent Skills](/agent-skills) that add it for you: `npx @cometchat/skills add`. diff --git a/snippets/ai/build-with-ai-upgrade.mdx b/snippets/ai/build-with-ai-upgrade.mdx new file mode 100644 index 000000000..e002cfbf0 --- /dev/null +++ b/snippets/ai/build-with-ai-upgrade.mdx @@ -0,0 +1,30 @@ +{/* + "Build with AI" block for an OLDER UI Kit version (React v6, Angular v4, Android v5, Flutter v5). + The CometChat Agent Skills build with the current kit only; on an older kit an "add" request stops at a + version conflict, and an "upgrade" request routes to the cometchat--migration skill + (cometchat-skills: skills/cometchat/SKILL.md routing rule 3). Keep this in sync with it. + Props: + kit – e.g. "React UI Kit" + version – this page's version, e.g. "v6" + current – the current version, e.g. "v7" + currentHref – the current version's overview, e.g. "/ui-kit/react/overview" + prompt – the upgrade request, e.g. "upgrade my CometChat React UI Kit from v6 to v7" + The page owns the "## Build with AI" heading. +*/} + +The CometChat Agent Skills build with the current {kit} ({current}). If your app is on {version}, your agent can upgrade it for you: it reads how your app uses CometChat, applies the breaking changes, and checks that the build still passes. + + + + ```bash + npx @cometchat/skills add + ``` + + + ```text + {prompt} + ``` + + + +Starting a new app? Use the {kit} {current} docs. The command installs the skills for Claude Code; for Cursor, GitHub Copilot, Codex and the other agents the installer supports, add `--ide`, for example `--ide cursor`. For the rest of the supported agents, see [Agent Skills](/agent-skills#supported-agents). diff --git a/snippets/ai/build-with-ai.mdx b/snippets/ai/build-with-ai.mdx new file mode 100644 index 000000000..a0f74b4d1 --- /dev/null +++ b/snippets/ai/build-with-ai.mdx @@ -0,0 +1,28 @@ +{/* + "Build with AI" block for pages whose platform has a CometChat Agent Skills family. + Props: + platform – what the reader builds, e.g. "React UI Kit v7" + command – the install command for this page, e.g. "npx @cometchat/skills add" or + "npx @cometchat/skills add --family js-calls" (families: cometchat-skills peers.yaml) + prompt – what to ask the agent, e.g. "add chat to my app" + The page owns the "## Build with AI" heading so it shows in the page's table of contents. + Facts here come from cometchat/cometchat-skills README "Install" and /agent-skills; keep them in sync. + Without --ide the installer targets Claude Code (bin/cometchat-skills.mjs cmdAdd), so the text says so. +*/} + +Let your AI coding agent build this for you. The CometChat Agent Skills teach your coding agent (Claude Code, Cursor, GitHub Copilot, Codex or any of the [30+ supported agents](/agent-skills#supported-agents)) how to build with the {platform}. Your agent asks a few questions, shows which files it will create or change, and writes the code once you approve. + + + + ```bash + {command} + ``` + + + ```text + {prompt} + ``` + + + +The command installs the skills for Claude Code and connects the [CometChat MCP](/mcp-server), so your agent reads the current docs while it works. For Cursor, GitHub Copilot, Codex and the other agents the installer supports, add `--ide`, for example `--ide cursor`. For the rest of the supported agents, flags and troubleshooting, see [Agent Skills](/agent-skills#supported-agents). diff --git a/ui-kit/android/getting-started-jetpack.mdx b/ui-kit/android/getting-started-jetpack.mdx index aa92d36e0..5ba06a144 100644 --- a/ui-kit/android/getting-started-jetpack.mdx +++ b/ui-kit/android/getting-started-jetpack.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Jetpack Compose" description: "Step-by-step guide to integrate the CometChat Jetpack Compose UI Kit into your Android app." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -24,6 +26,12 @@ This guide walks you through integrating the CometChat Jetpack Compose UI Kit in --- +## Build with AI + + + +--- + ## Prerequisites You need three things from the [CometChat Dashboard](https://app.cometchat.com/): diff --git a/ui-kit/android/getting-started-kotlin.mdx b/ui-kit/android/getting-started-kotlin.mdx index 0d5765251..ef5eb7397 100644 --- a/ui-kit/android/getting-started-kotlin.mdx +++ b/ui-kit/android/getting-started-kotlin.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Kotlin (XML Views)" description: "Step-by-step guide to integrate the CometChat Kotlin UI Kit with XML Views into your Android app." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -24,6 +26,12 @@ This guide walks you through integrating the CometChat Kotlin UI Kit into an And --- +## Build with AI + + + +--- + ## Prerequisites You need three things from the [CometChat Dashboard](https://app.cometchat.com/): diff --git a/ui-kit/android/getting-started.mdx b/ui-kit/android/getting-started.mdx index 9cb80eb2b..de908e31e 100644 --- a/ui-kit/android/getting-started.mdx +++ b/ui-kit/android/getting-started.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Install, configure, and launch the CometChat Android UI Kit in your app — choose Kotlin (XML Views) or Jetpack Compose." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -29,6 +31,12 @@ This guide walks you through adding CometChat to an Android app. By the end you' --- +## Build with AI + + + +--- + ## Prerequisites You need three things from the [CometChat Dashboard](https://app.cometchat.com/): diff --git a/ui-kit/android/overview.mdx b/ui-kit/android/overview.mdx index 9693c81a1..a3a9bb53c 100644 --- a/ui-kit/android/overview.mdx +++ b/ui-kit/android/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Prebuilt, customizable UI components for chat & messaging, voice & video calling — for both Jetpack Compose and Kotlin XML Views." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -31,6 +33,12 @@ It ships in two flavors that share the same core (ViewModels, repositories, even --- +## Build with AI + + + +--- + ## Get Started Every integration starts the same way — install the SDK, initialize, and log in — then you build the UI with your chosen toolkit. Start with the prerequisites, then pick a path: diff --git a/ui-kit/android/v5/getting-started.mdx b/ui-kit/android/v5/getting-started.mdx index 6d6945055..8d549688d 100644 --- a/ui-kit/android/v5/getting-started.mdx +++ b/ui-kit/android/v5/getting-started.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Install, configure, and launch the CometChat Android UI Kit in your app with step-by-step integration instructions." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + | Field | Value | @@ -16,7 +18,7 @@ description: "Install, configure, and launch the CometChat Android UI Kit in you | Theme | Set `CometChatTheme.DayNight` as parent theme in `themes.xml` | | Calling | Optional. Add `com.cometchat:calls-sdk-android` to enable voice/video | | Min SDK | Android 7.0 (API 24) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v6; ask it to upgrade from v5) — [Agent Skills](/agent-skills) | @@ -28,27 +30,9 @@ This guide walks you through adding CometChat to an Android app. By the end you' --- -## Integrate with AI Coding Agents - -Skip the manual steps — use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to integrate via your AI coding agent. Your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your Android project structure, build system (Gradle/Kotlin DSL), and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your Activities, Fragments, and navigation before proposing a placement, shows the plan, and waits for your approval before writing code. Credentials are saved to `local.properties` and accessed via `BuildConfig`. - -After the first integration, re-run `/cometchat` to access the iteration menu: theme presets, 40+ features, component customization, production auth, user management, and diagnostics. +## Build with AI -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). + --- diff --git a/ui-kit/android/v5/overview.mdx b/ui-kit/android/v5/overview.mdx index 7546972f8..a89e8d910 100644 --- a/ui-kit/android/v5/overview.mdx +++ b/ui-kit/android/v5/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Prebuilt Android Views for chat, voice, and video calling. Supports Kotlin and Java with XML and Jetpack Compose compatibility." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + 🚀 **CometChat Android UI Kit v6 is now available!** It features a completely revamped component architecture and improved theming. [Try the v6 →](/ui-kit/android/overview) @@ -17,7 +19,7 @@ description: "Prebuilt Android Views for chat, voice, and video calling. Support | Calling | Optional — `com.cometchat:calls-sdk-android` | | Localization | 19 languages built-in | | Source | [GitHub](https://github.com/cometchat/cometchat-uikit-android) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v6; ask it to upgrade from v5) — [Agent Skills](/agent-skills) | @@ -29,34 +31,9 @@ The CometChat Android UI Kit provides prebuilt, customizable Views for adding ch --- -## Integrate with AI Coding Agents - -Use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to add chat to any Android project through your AI coding agent. The skill takes an AI-first approach — your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` to install for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your project structure, build system, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your Activities, Fragments, and navigation before proposing a placement, shows the plan (which files it will create, modify, and leave untouched), and waits for your approval before writing code. Credentials are saved to `local.properties` and accessed via `BuildConfig`. - -After the first integration, re-run `/cometchat` anytime to pick from the iteration menu: +## Build with AI -- **Customize look & feel** — theme presets (slack / whatsapp / imessage / discord / notion) or your own brand color -- **Add a feature** — 40+ features including calls, reactions, polls, AI smart replies, file sharing, presence -- **Customize a component** — custom message bubbles, headers, composer actions, empty/loading states -- **Set up production auth** — replace the dev Auth Key with a server-side token endpoint -- **Set up user management** — server endpoints for creating/updating/deleting CometChat users -- **Run diagnostics** — verify, drift detection, symptom-to-cause lookup + --- diff --git a/ui-kit/angular/integration.mdx b/ui-kit/angular/integration.mdx index 5522e1c0a..8c901df9f 100644 --- a/ui-kit/angular/integration.mdx +++ b/ui-kit/angular/integration.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Add CometChat to an Angular app in 6 steps: create project, install, init, login, add CSS, render." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -24,6 +26,12 @@ This guide walks you through adding CometChat to an Angular app. By the end you' --- +## Build with AI + + + +--- + ## Prerequisites You need three things from the [CometChat Dashboard](https://app.cometchat.com/): diff --git a/ui-kit/angular/overview.mdx b/ui-kit/angular/overview.mdx index d87dca3fd..f1e611e9a 100644 --- a/ui-kit/angular/overview.mdx +++ b/ui-kit/angular/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Use CometChat Angular UI Kit to add standalone chat components, voice and video calling, theming, localization, and customization." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -14,7 +16,7 @@ description: "Use CometChat Angular UI Kit to add standalone chat components, vo | Angular | v18, v19, v20, v21, v22 (peer range `>=18 <23` from UI Kit 5.3.0; UI Kit 5.2.x supports up to Angular 21) | | Localization | 19 languages built-in | | Source | [GitHub](https://github.com/cometchat/cometchat-uikit-angular/tree/v5) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` — [Agent Skills](/agent-skills) | @@ -26,6 +28,12 @@ The CometChat Angular UI Kit provides prebuilt, customizable standalone componen --- +## Build with AI + + + +--- + ## Try It diff --git a/ui-kit/angular/quickstart.mdx b/ui-kit/angular/quickstart.mdx index 084af9445..3ea217e34 100644 --- a/ui-kit/angular/quickstart.mdx +++ b/ui-kit/angular/quickstart.mdx @@ -2,8 +2,15 @@ title: Quickstart description: "Get started with CometChat UIKit for Angular in minutes" --- + +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + Follow these steps to integrate CometChat UIKit into your Angular application. +## Build with AI + + + ## Prerequisites - The Node.js version your Angular major requires (Angular 22: 22.22.3+, 24.15+ or 26+; Angular 21: 20.19+, 22.12+ or 24+) diff --git a/ui-kit/angular/v4/getting-started.mdx b/ui-kit/angular/v4/getting-started.mdx index ff4685309..61dee5e51 100644 --- a/ui-kit/angular/v4/getting-started.mdx +++ b/ui-kit/angular/v4/getting-started.mdx @@ -3,13 +3,15 @@ title: "Getting Started" description: "Getting Started — CometChat documentation." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + | Field | Value | | --- | --- | | Package | `@cometchat/chat-uikit-angular` | | Peer deps | `@cometchat/uikit-elements`, `@cometchat/uikit-resources`, `@cometchat/uikit-shared` | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v5; ask it to upgrade from v4) — [Agent Skills](/agent-skills) | @@ -25,27 +27,9 @@ Supporting both one-to-one and group conversations, the CometChat UI Kit for Ang --- -## Integrate with AI Coding Agents - -Skip the manual steps — use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to integrate via your AI coding agent. Your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your Angular version, router setup, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your routes, modules, and components before proposing a placement (route or modal), shows the plan, and waits for your approval before writing code. Credentials are saved to `src/environments/environment.ts`. - -After the first integration, re-run `/cometchat` to access the iteration menu: theme presets, 40+ features, component customization, production auth, user management, and diagnostics. +## Build with AI -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). + --- diff --git a/ui-kit/angular/v4/overview.mdx b/ui-kit/angular/v4/overview.mdx index 7c6c6b855..c052d31d7 100644 --- a/ui-kit/angular/v4/overview.mdx +++ b/ui-kit/angular/v4/overview.mdx @@ -3,6 +3,8 @@ title: "Overview" description: "Overview of Overview in CometChat." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + 🚀 **CometChat Angular UI Kit v5 is now available!** It features a completely revamped component architecture, standalone components, CSS variable theming, and improved customization. [Switch to v5 →](/ui-kit/angular/overview) @@ -14,7 +16,7 @@ description: "Overview of Overview in CometChat." | Package | `@cometchat/chat-uikit-angular` | | Peer deps | `@cometchat/uikit-elements`, `@cometchat/uikit-resources`, `@cometchat/uikit-shared` | | Source | [GitHub](https://github.com/cometchat-pro/cometchat-chat-sample-app-angular/tree/v4) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v5; ask it to upgrade from v4) — [Agent Skills](/agent-skills) | @@ -37,31 +39,7 @@ To begin, please follow the [Getting Started](/ui-kit/angular/v4/getting-started --- -## Integrate with AI Coding Agents - -Use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to add chat to any Angular project through your AI coding agent. The skill takes an AI-first approach — your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` to install for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your Angular version, router setup, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your routes, modules, and components before proposing a placement (route or modal), shows the plan (which files it will create, modify, and leave untouched), and waits for your approval before writing code. Credentials are saved to `src/environments/environment.ts`. +## Build with AI -After the first integration, re-run `/cometchat` anytime to pick from the iteration menu: + -- **Customize look & feel** — theme presets (slack / whatsapp / imessage / discord / notion) or your own brand color -- **Add a feature** — 40+ features including calls, reactions, polls, AI smart replies, file sharing, presence -- **Customize a component** — custom message bubbles, headers, composer actions, empty/loading states -- **Set up production auth** — replace the dev Auth Key with a server-side token endpoint -- **Set up user management** — server endpoints for creating/updating/deleting CometChat users -- **Run diagnostics** — verify, drift detection, symptom-to-cause lookup diff --git a/ui-kit/flutter/getting-started.mdx b/ui-kit/flutter/getting-started.mdx index a6a2aee26..676266121 100644 --- a/ui-kit/flutter/getting-started.mdx +++ b/ui-kit/flutter/getting-started.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Getting Started" description: "Set up CometChat Flutter UI Kit V6 with app credentials, package installation, initialization, users, groups, messages, and calls." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -21,6 +23,10 @@ CometChat UI Kit V6 for Flutter is a package of pre-assembled UI elements built CometChat UI Kit V6 supports both one-to-one and group conversations. Follow the guide below to initiate conversations from scratch. +## Build with AI + + + ## Prerequisites Before installing the **UI Kit**, you need to create a CometChat application on the CometChat Dashboard, which includes all the necessary data for a chat service, such as users, groups, calls, and messages. You will require the `App ID`, `AuthKey`, and `Region` of your CometChat application when initializing the SDK. diff --git a/ui-kit/flutter/overview.mdx b/ui-kit/flutter/overview.mdx index b349ea1a5..6d3ecf095 100644 --- a/ui-kit/flutter/overview.mdx +++ b/ui-kit/flutter/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Use CometChat Flutter UI Kit V6 to add prebuilt chat widgets, calls, theming, localization, and customizable messaging experiences." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -40,6 +42,12 @@ The **CometChat UI Kit V6** for Flutter is a major architectural evolution of th *** +## Build with AI + + + +*** + ## **Integration** ### **UI Components (Assemble It Yourself)** diff --git a/ui-kit/flutter/v5/getting-started.mdx b/ui-kit/flutter/v5/getting-started.mdx index d3df5a6b5..18839a364 100644 --- a/ui-kit/flutter/v5/getting-started.mdx +++ b/ui-kit/flutter/v5/getting-started.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Getting Started" description: "Add CometChat to a Flutter app in 5 steps: create project, install, init, login, render." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + | Field | Value | @@ -15,7 +17,7 @@ description: "Add CometChat to a Flutter app in 5 steps: create project, install | Auth Key | Dev/testing only. Use Auth Token in production | | Calling | Optional. Install `cometchat_calls_uikit` to enable | | Platforms | iOS 13.0+, Android API 24+ (with calling) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v6; ask it to upgrade from v5) — [Agent Skills](/agent-skills) | @@ -27,27 +29,9 @@ This guide walks you through adding CometChat to a Flutter app. By the end you'l --- -## Integrate with AI Coding Agents - -Skip the manual steps — use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to integrate via your AI coding agent. Your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your Flutter project structure, navigation setup, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your routes, screens, and widgets before proposing a placement (route, modal sheet, or tab), shows the plan, and waits for your approval before writing code. Credentials are saved as a Dart const file or via `--dart-define`. - -After the first integration, re-run `/cometchat` to access the iteration menu: theme presets, 40+ features, component customization, production auth, user management, and diagnostics. +## Build with AI -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). + --- diff --git a/ui-kit/flutter/v5/overview.mdx b/ui-kit/flutter/v5/overview.mdx index 88d3f18ad..b630610cc 100644 --- a/ui-kit/flutter/v5/overview.mdx +++ b/ui-kit/flutter/v5/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Prebuilt Flutter widgets for chat, voice, and video calling. Works on iOS and Android." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + 🚀 **V6 Available** — The Flutter UI Kit V6 is now available with BLoC state management, clean architecture, and improved performance. [Check out the V6 Overview →](/ui-kit/flutter/overview) @@ -18,7 +20,7 @@ description: "Prebuilt Flutter widgets for chat, voice, and video calling. Works | Flutter | 3.0+ recommended | | Localization | Built-in support | | Source | [GitHub](https://github.com/cometchat/cometchat-uikit-flutter/tree/v5/chat_uikit) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v6; ask it to upgrade from v5) — [Agent Skills](/agent-skills) | @@ -30,34 +32,9 @@ The CometChat Flutter UI Kit provides prebuilt, customizable widgets for adding --- -## Integrate with AI Coding Agents - -Use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to add chat to any Flutter project through your AI coding agent. The skill takes an AI-first approach — your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` to install for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your Flutter project structure, navigation setup, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your routes, screens, and widgets before proposing a placement (route, modal sheet, or tab), shows the plan (which files it will create, modify, and leave untouched), and waits for your approval before writing code. Credentials are saved as a Dart const file or via `--dart-define`. - -After the first integration, re-run `/cometchat` anytime to pick from the iteration menu: +## Build with AI -- **Customize look & feel** — theme presets (slack / whatsapp / imessage / discord / notion) or your own brand color -- **Add a feature** — 40+ features including calls, reactions, polls, AI smart replies, file sharing, presence -- **Customize a component** — custom message bubbles, headers, composer actions, empty/loading states -- **Set up production auth** — replace the dev Auth Key with a server-side token endpoint -- **Set up user management** — server endpoints for creating/updating/deleting CometChat users -- **Run diagnostics** — verify, drift detection, symptom-to-cause lookup + --- diff --git a/ui-kit/ios/getting-started.mdx b/ui-kit/ios/getting-started.mdx index 1d723779a..92ae597b1 100644 --- a/ui-kit/ios/getting-started.mdx +++ b/ui-kit/ios/getting-started.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Integrate CometChat iOS UI Kit with project setup, package installation, initialization, login, rendering, permissions, and optional calling." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -18,7 +20,7 @@ description: "Integrate CometChat iOS UI Kit with project setup, package install | Calling | Optional. Add `CometChatCallsSDK` 5.0.4 (Up to Next Major Version) to enable | | Dependencies | `CometChatSDK` 4.2.1+ (resolved automatically by the UI Kit package) | | Offline support | Optional, off by default, from UI Kit 5.3.0. `UIKitSettings().setOfflineConfig(_:)` before `build()`. See [Offline Support](/ui-kit/ios/offline-support) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` — [Agent Skills](/agent-skills) | @@ -30,27 +32,9 @@ This guide walks you through adding CometChat to an iOS app. By the end you'll h --- -## Integrate with AI Coding Agents - -Skip the manual steps — use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to integrate via your AI coding agent. Your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your iOS project structure, navigation pattern (UIKit or SwiftUI), and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your view controllers, navigation, and components before proposing a placement, shows the plan, and waits for your approval before writing code. Credentials are saved via `Secrets.swift` or `.xcconfig`. - -After the first integration, re-run `/cometchat` to access the iteration menu: theme presets, 40+ features, component customization, production auth, user management, and diagnostics. +## Build with AI -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). + --- diff --git a/ui-kit/ios/overview.mdx b/ui-kit/ios/overview.mdx index 856bf98bf..d1c4bbe0a 100644 --- a/ui-kit/ios/overview.mdx +++ b/ui-kit/ios/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Integrate chat functionality into iOS applications with prebuilt, modular, and customizable UI components" --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + ```json { @@ -35,7 +37,7 @@ description: "Integrate chat functionality into iOS applications with prebuilt, | Dependencies | CometChatSDK >= 4.2.1 (resolved by SPM) | | Platforms | iOS 15.1+, iPadOS 15.1+ | | Language | Swift 5.3+ | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` — [Agent Skills](/agent-skills) | | License | MIT | --- @@ -53,34 +55,9 @@ The CometChat UI Kit for iOS provides a seamless solution to integrate chat func --- -## Integrate with AI Coding Agents - -Use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to add chat to any iOS project through your AI coding agent. The skill takes an AI-first approach — your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` to install for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your iOS project structure, navigation pattern, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your view controllers, navigation, and components before proposing a placement, shows the plan (which files it will create, modify, and leave untouched), and waits for your approval before writing code. Credentials are saved via `Secrets.swift` or `.xcconfig`. - -After the first integration, re-run `/cometchat` anytime to pick from the iteration menu: +## Build with AI -- **Customize look & feel** — theme presets (slack / whatsapp / imessage / discord / notion) or your own brand color -- **Add a feature** — 40+ features including calls, reactions, polls, AI smart replies, file sharing, presence -- **Customize a component** — custom message bubbles, headers, composer actions, empty/loading states -- **Set up production auth** — replace the dev Auth Key with a server-side token endpoint -- **Set up user management** — server endpoints for creating/updating/deleting CometChat users -- **Run diagnostics** — verify, drift detection, symptom-to-cause lookup + --- diff --git a/ui-kit/react-native/expo-integration.mdx b/ui-kit/react-native/expo-integration.mdx index 364dad820..2aabdb4ab 100644 --- a/ui-kit/react-native/expo-integration.mdx +++ b/ui-kit/react-native/expo-integration.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Add CometChat to an Expo app using development builds in 5 steps: create project, install, init, login, render." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -16,7 +18,7 @@ description: "Add CometChat to an Expo app using development builds in 5 steps: | Auth Key | Dev/testing only. Use Auth Token in production | | Expo Go | Not supported — use development builds | | Other frameworks | [React Native CLI](/ui-kit/react-native/react-native-cli-integration) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` — [Agent Skills](/agent-skills) | @@ -28,27 +30,9 @@ Expo Go is not supported. The CometChat UI Kit requires custom native modules, s --- -## Integrate with AI Coding Agents - -Skip the manual steps — use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to integrate via your AI coding agent. Your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your Expo setup (managed workflow + Expo Router), env prefix (`EXPO_PUBLIC_`), and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your screens, nav, and components before proposing a placement, shows the plan, and waits for your approval before writing code. - -After the first integration, re-run `/cometchat` to access the iteration menu: theme presets, 40+ features, component customization, push notifications, production auth, user management, and diagnostics. +## Build with AI -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). + --- diff --git a/ui-kit/react-native/overview.mdx b/ui-kit/react-native/overview.mdx index c9107b5c3..f3941379e 100644 --- a/ui-kit/react-native/overview.mdx +++ b/ui-kit/react-native/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Prebuilt React Native components for chat, voice, and video calling. Supports React Native CLI and Expo." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -13,7 +15,7 @@ description: "Prebuilt React Native components for chat, voice, and video callin | Calling | Optional — `@cometchat/calls-sdk-react-native` | | Localization | Built-in localization support | | Source | [GitHub](https://github.com/cometchat/cometchat-uikit-react-native/tree/v5) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` — [Agent Skills](/agent-skills) | @@ -33,36 +35,9 @@ Auth Key is for development/testing only. In production, generate Auth Tokens on --- -## Integrate with AI Coding Agents - -Use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to add chat to any React Native project through your AI coding agent. The skill takes an AI-first approach — your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` to install for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your framework (Expo or bare React Native), navigation setup, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your screens, nav, and components before proposing a placement (stack, tab, modal, or bottom sheet), shows the plan (which files it will create, modify, and leave untouched), and waits for your approval before writing code. - -After the first integration, re-run `/cometchat` anytime to pick from the iteration menu: +## Build with AI -- **Customize look & feel** — theme presets (slack / whatsapp / imessage / discord / notion) or your own brand color -- **Add a feature** — 40+ features including calls, reactions, polls, AI smart replies, file sharing, presence -- **Customize a component** — custom message bubbles, headers, composer actions, empty/loading states -- **Add another placement** — modal / bottom sheet / extra tab -- **Set up production auth** — replace the dev Auth Key with a server-side token endpoint -- **Set up user management** — server endpoints for creating/updating/deleting CometChat users -- **Set up push notifications** — APNs + FCM end-to-end -- **Run diagnostics** — verify, drift detection, symptom-to-cause lookup + --- diff --git a/ui-kit/react-native/react-native-cli-integration.mdx b/ui-kit/react-native/react-native-cli-integration.mdx index a4efbdb84..1ebec664a 100644 --- a/ui-kit/react-native/react-native-cli-integration.mdx +++ b/ui-kit/react-native/react-native-cli-integration.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Integrate CometChat React Native UI Kit with React Native CLI using app credentials, package setup, initialization, login, and rendering." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -16,7 +18,7 @@ description: "Integrate CometChat React Native UI Kit with React Native CLI usin | Auth Key | Dev/testing only. Use Auth Token in production | | Calling | Optional. Install `@cometchat/calls-sdk-react-native` to enable | | Other frameworks | [Expo](/ui-kit/react-native/expo-integration) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` — [Agent Skills](/agent-skills) | @@ -24,27 +26,9 @@ This guide walks you through adding CometChat to a React Native CLI app. By the --- -## Integrate with AI Coding Agents - -Skip the manual steps — use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to integrate via your AI coding agent. Your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your React Native setup, navigation library, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your screens, nav, and components before proposing a placement (stack, tab, modal, or bottom sheet), shows the plan, and waits for your approval before writing code. - -After the first integration, re-run `/cometchat` to access the iteration menu: theme presets, 40+ features, component customization, push notifications, production auth, user management, and diagnostics. +## Build with AI -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). + --- diff --git a/ui-kit/react/integration-astro.mdx b/ui-kit/react/integration-astro.mdx index 88e617725..8bc41b948 100644 --- a/ui-kit/react/integration-astro.mdx +++ b/ui-kit/react/integration-astro.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Add CometChat to an Astro app in 5 steps: create project, install, init + login, render island, run." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -30,6 +32,12 @@ This guide walks you through adding CometChat to an Astro app using React island --- +## Build with AI + + + +--- + ## Prerequisites You need three things from the [CometChat Dashboard](https://app.cometchat.com/): diff --git a/ui-kit/react/integration-nextjs.mdx b/ui-kit/react/integration-nextjs.mdx index 2c7e25c3a..579d04846 100644 --- a/ui-kit/react/integration-nextjs.mdx +++ b/ui-kit/react/integration-nextjs.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Add CometChat to a Next.js (App Router) app in 5 steps: create project, install, init + login, render, run." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -29,6 +31,12 @@ This guide walks you through adding CometChat to a Next.js (App Router) app. By --- +## Build with AI + + + +--- + ## Prerequisites You need three things from the [CometChat Dashboard](https://app.cometchat.com/): diff --git a/ui-kit/react/integration-react-router.mdx b/ui-kit/react/integration-react-router.mdx index a3074b8ef..ecea0654a 100644 --- a/ui-kit/react/integration-react-router.mdx +++ b/ui-kit/react/integration-react-router.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Add CometChat to a React Router app in 5 steps: create project, install, init + login, render, run." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -30,6 +32,12 @@ This guide walks you through adding CometChat to a React Router app. By the end --- +## Build with AI + + + +--- + ## Prerequisites You need three things from the [CometChat Dashboard](https://app.cometchat.com/): diff --git a/ui-kit/react/integration-react.mdx b/ui-kit/react/integration-react.mdx index 764bf2e5f..8b23c7f6f 100644 --- a/ui-kit/react/integration-react.mdx +++ b/ui-kit/react/integration-react.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Add CometChat to a React.js app in 4 steps: create project, install, init + login, render." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -29,6 +31,12 @@ This guide walks you through adding CometChat to a React.js app. By the end you' --- +## Build with AI + + + +--- + ## Prerequisites You need three things from the [CometChat Dashboard](https://app.cometchat.com/): diff --git a/ui-kit/react/overview.mdx b/ui-kit/react/overview.mdx index 02d148101..53c6abf2a 100644 --- a/ui-kit/react/overview.mdx +++ b/ui-kit/react/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Prebuilt React components for chat, voice, and video calling. Supports React.js, Next.js, React Router, and Astro." --- +import BuildWithAI from '/snippets/ai/build-with-ai.mdx'; + | Field | Value | @@ -26,6 +28,12 @@ The CometChat React UI Kit provides prebuilt, customizable components for adding --- +## Build with AI + + + +--- + ## Try It diff --git a/ui-kit/react/v6/astro-integration.mdx b/ui-kit/react/v6/astro-integration.mdx index b27e7a677..a05bdfaca 100644 --- a/ui-kit/react/v6/astro-integration.mdx +++ b/ui-kit/react/v6/astro-integration.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Integrate CometChat React UI Kit with Astro using client-only rendering, app credentials, package setup, initialization, and login." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + | Field | Value | @@ -18,7 +20,7 @@ description: "Integrate CometChat React UI Kit with Astro using client-only rend | CSS | `import "@cometchat/chat-uikit-react/css-variables.css"` in your React island | | Calling | Optional. Install `@cometchat/calls-sdk-javascript` to enable | | Other frameworks | [React.js](/ui-kit/react/v6/react-js-integration) · [Next.js](/ui-kit/react/v6/next-js-integration) · [React Router](/ui-kit/react/v6/react-router-integration) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v7; ask it to upgrade from v6) — [Agent Skills](/agent-skills) | @@ -30,27 +32,9 @@ CometChat UI Kit requires browser APIs (`window`, `WebSocket`, `document`). In A --- -## Integrate with AI Coding Agents - -Skip the manual steps — use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to integrate via your AI coding agent. Your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects Astro, verifies `@astrojs/react` is configured, and reads your routes, nav, and components before proposing a placement. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It shows the plan and waits for your approval before writing code. - -After the first integration, re-run `/cometchat` to access the iteration menu: theme presets, 40+ features, component customization, floating widget, production auth, user management, and diagnostics. +## Build with AI -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). + --- diff --git a/ui-kit/react/v6/next-js-integration.mdx b/ui-kit/react/v6/next-js-integration.mdx index 8ed0cdeef..c1f7176ff 100644 --- a/ui-kit/react/v6/next-js-integration.mdx +++ b/ui-kit/react/v6/next-js-integration.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Integrate CometChat React UI Kit with Next.js using client components, app credentials, package setup, initialization, and login." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + | Field | Value | @@ -18,7 +20,7 @@ description: "Integrate CometChat React UI Kit with Next.js using client compone | CSS | `@import url("@cometchat/chat-uikit-react/css-variables.css");` in global CSS | | Calling | Optional. Install `@cometchat/calls-sdk-javascript` to enable | | Other frameworks | [React.js](/ui-kit/react/v6/react-js-integration) · [React Router](/ui-kit/react/v6/react-router-integration) · [Astro](/ui-kit/react/v6/astro-integration) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v7; ask it to upgrade from v6) — [Agent Skills](/agent-skills) | @@ -34,27 +36,9 @@ CometChat UI Kit requires browser APIs (`window`, `WebSocket`, `document`). In N --- -## Integrate with AI Coding Agents - -Skip the manual steps — use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to integrate via your AI coding agent. Your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your Next.js version and router type (App Router vs Pages Router), env prefix, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your routes, nav, and components before proposing a placement, shows the plan, and waits for your approval before writing code. - -After the first integration, re-run `/cometchat` to access the iteration menu: theme presets, 40+ features, component customization, floating widget, production auth, user management, and diagnostics. +## Build with AI -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). + --- diff --git a/ui-kit/react/v6/overview.mdx b/ui-kit/react/v6/overview.mdx index 56c133bdb..bfe0f6980 100644 --- a/ui-kit/react/v6/overview.mdx +++ b/ui-kit/react/v6/overview.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Overview" description: "Prebuilt React components for chat, voice, and video calling. Supports React.js, Next.js, React Router, and Astro." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + 🚀 **CometChat React UI Kit v7 is now available!** It features a revamped component architecture, improved customization, and enhanced performance. [Switch to v7 →](/ui-kit/react/overview) @@ -18,7 +20,7 @@ description: "Prebuilt React components for chat, voice, and video calling. Supp | SSR | Client-side only. Use `ssr: false` or `client:only="react"` | | Localization | 19 languages built-in | | Source | [GitHub](https://github.com/cometchat/cometchat-uikit-react/tree/v6) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v7; ask it to upgrade from v6) — [Agent Skills](/agent-skills) | @@ -30,67 +32,9 @@ The CometChat React UI Kit provides prebuilt, customizable components for adding --- -## Integrate with AI Coding Agents - -Use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to add chat to any React project through your AI coding agent. The skill takes an AI-first approach — your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. One slash — `/cometchat` — works for React, Next.js, React Router, Astro, Expo, bare React Native, Angular, Android, Flutter, and iOS. - -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` to install for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your framework, router, env prefix, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI with no browser round-trip. It reads your routes, nav, and components before proposing a placement, shows the plan (which files it will create, modify, and leave untouched), and waits for your approval before writing code. - -After the first integration, re-run `/cometchat` anytime to pick from the iteration menu: - -- **Customize look & feel** — theme presets (slack / whatsapp / imessage / discord / notion) or your own brand color -- **Add a feature** — 40+ features including calls, reactions, polls, AI smart replies, file sharing, presence -- **Customize a component** — custom message bubbles, headers, composer actions, empty/loading states -- **Add a floating widget** — overlay chat button + drawer on top of your existing app -- **Set up production auth** — replace the dev Auth Key with a server-side token endpoint -- **Set up user management** — server endpoints for creating/updating/deleting CometChat users -- **Run diagnostics** — verify, drift detection, symptom-to-cause lookup - - +## Build with AI -For deeper component customization (custom views, SDK events, request builders), install the docs MCP: - -**Claude Code:** -```bash -claude mcp add --transport http cometchat-docs https://www.cometchat.com/docs/mcp -``` - -**Cursor** (`.cursor/mcp.json`): -```json -{ "mcpServers": { "cometchat-docs": { "url": "https://www.cometchat.com/docs/mcp" } } } -``` - -**Windsurf:** -```json -{ "mcpServers": { "cometchat-docs": { "type": "sse", "serverUrl": "https://www.cometchat.com/docs/mcp" } } } -``` - -No authentication required. Not needed for the initial integration — the skill handles it without the MCP. - - - - - - AI-first integration for any React project - - - Claude Code · Cursor · Kiro · VS Code Copilot · Windsurf · Cline - - + --- diff --git a/ui-kit/react/v6/react-js-integration.mdx b/ui-kit/react/v6/react-js-integration.mdx index 6779546e6..6d7bf3cb7 100644 --- a/ui-kit/react/v6/react-js-integration.mdx +++ b/ui-kit/react/v6/react-js-integration.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Integrate CometChat React UI Kit with React.js using app credentials, package setup, initialization, login, and chat rendering." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + | Field | Value | @@ -17,7 +19,7 @@ description: "Integrate CometChat React UI Kit with React.js using app credentia | CSS | `@import url("@cometchat/chat-uikit-react/css-variables.css");` in global CSS | | Calling | Optional. Install `@cometchat/calls-sdk-javascript` to enable | | Other frameworks | [Next.js](/ui-kit/react/v6/next-js-integration) · [React Router](/ui-kit/react/v6/react-router-integration) · [Astro](/ui-kit/react/v6/astro-integration) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v7; ask it to upgrade from v6) — [Agent Skills](/agent-skills) | @@ -29,27 +31,9 @@ This guide walks you through adding CometChat to a React.js app. By the end you' --- -## Integrate with AI Coding Agents - -Skip the manual steps — use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to integrate via your AI coding agent. Your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your bundler (Vite or CRA), env prefix (`VITE_` or `REACT_APP_`), router, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your routes, nav, and components before proposing a placement, shows the plan, and waits for your approval before writing code. - -After the first integration, re-run `/cometchat` to access the iteration menu: theme presets, 40+ features, component customization, floating widget, production auth, user management, and diagnostics. +## Build with AI -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). + --- diff --git a/ui-kit/react/v6/react-router-integration.mdx b/ui-kit/react/v6/react-router-integration.mdx index b7d80b51c..8351c29d1 100644 --- a/ui-kit/react/v6/react-router-integration.mdx +++ b/ui-kit/react/v6/react-router-integration.mdx @@ -4,6 +4,8 @@ sidebarTitle: "Integration" description: "Integrate CometChat React UI Kit with React Router using app credentials, package setup, initialization, login, and routed chat views." --- +import BuildWithAIUpgrade from '/snippets/ai/build-with-ai-upgrade.mdx'; + | Field | Value | @@ -18,7 +20,7 @@ description: "Integrate CometChat React UI Kit with React Router using app crede | CSS | `@import url("@cometchat/chat-uikit-react/css-variables.css");` in global CSS | | Calling | Optional. Install `@cometchat/calls-sdk-javascript` to enable | | Other frameworks | [React.js](/ui-kit/react/v6/react-js-integration) · [Next.js](/ui-kit/react/v6/next-js-integration) · [Astro](/ui-kit/react/v6/astro-integration) | -| AI Skills | `npx @cometchat/skills add` — [GitHub](https://github.com/cometchat/cometchat-skills) | +| AI Skills | `npx @cometchat/skills add` (targets v7; ask it to upgrade from v6) — [Agent Skills](/agent-skills) | @@ -30,27 +32,9 @@ CometChat UI Kit requires browser APIs (`window`, `WebSocket`, `document`). In R --- -## Integrate with AI Coding Agents - -Skip the manual steps — use [CometChat Skills](https://github.com/cometchat/cometchat-skills) to integrate via your AI coding agent. Your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. - -```bash -npx @cometchat/skills add -``` - -Use `--ide ` to target a specific IDE (e.g. `--ide cursor`), or `--ide all` for all supported IDEs. - -Then in your IDE: - -``` -/cometchat add chat to my app -``` - -The skill detects your React Router version (v6 or v7), env prefix, router setup, and existing auth system. It onboards you to CometChat directly in the terminal — signup, login, and app creation all via the CLI. It reads your routes, nav, and components before proposing a placement, shows the plan, and waits for your approval before writing code. - -After the first integration, re-run `/cometchat` to access the iteration menu: theme presets, 40+ features, component customization, floating widget, production auth, user management, and diagnostics. +## Build with AI -Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/cometchat/cometchat-skills). + ---