cometchat-android-v6

$npx mdskill add cometchat/cometchat-skills/cometchat-android-v6

Routes Android UIKit v6 tasks to the correct specialized skill.

  • Determines which CometChat Android UIKit v6 skill to invoke for a given task.
  • Depends on CometChat Android UIKit v6 SDK and official documentation.
  • Analyzes project stack (Compose vs Kotlin) and task type to select the right skill.
  • Returns the name of the appropriate companion skill for the agent to execute.

SKILL.md

.github/skills/cometchat-android-v6View on GitHub ↗
---
name: cometchat-android-v6
description: "Entry-point dispatcher for CometChat Android UIKit v6 — routes to the correct skill based on project stack and task"
license: "MIT"
compatibility: "Android 9.0+ (API 28); Kotlin 1.9+; com.cometchat:chatuikit-compose-android:6.x / com.cometchat:chatuikit-kotlin-android:6.x"
metadata:
  author: "CometChat"
  version: "3.0.0"
  tags: "cometchat, android, uikit, kotlin, jetpack-compose, dispatcher"
---

> **Ground truth:** `com.cometchat:chatuikit-{compose,kotlin}-android:6.x` (+ `calls-sdk-android:5.x`) — resolved AAR (javap) + `ui-kit/android/v6`. **Official docs:** https://www.cometchat.com/docs/ui-kit/android/v6/overview · **Docs MCP:** `claude mcp add --transport http cometchat-docs https://www.cometchat.com/docs/mcp` (or fetch the URL directly without MCP). Verify symbols against the installed package/source before relying on them.

> **Companion skills:** cometchat-android-v6-core, cometchat-android-v6-events, cometchat-android-v6-kotlin-components, cometchat-android-v6-compose-components, cometchat-android-v6-kotlin-theming, cometchat-android-v6-compose-theming, cometchat-android-v6-kotlin-customization, cometchat-android-v6-compose-customization, cometchat-android-v6-kotlin-placement, cometchat-android-v6-compose-placement, cometchat-android-v6-builder-settings, cometchat-android-v6-features, cometchat-android-v6-extensions, cometchat-android-v6-push, cometchat-android-v6-production, cometchat-android-v6-troubleshooting, cometchat-android-v6-testing

## Purpose

This is the entry-point skill for the CometChat Android UIKit v6. It detects the project's UI stack (Kotlin Views, Jetpack Compose, or both) and routes to the correct specialized skill.

## Use this skill when

- The user mentions "CometChat" in an Android/Kotlin project
- The user wants to add chat, messaging, or calling features to an Android app
- You need to determine which CometChat skill to activate
- The user asks a general CometChat question without specifying a stack

## Do not use this skill when

- You already know which specific skill to use (go directly to it)
- The project is React, React Native, iOS, Flutter, or Web (this skill is Android-only)

## 1. Project Detection

Detect the UI stack by inspecting the project's Gradle files:

```kotlin
// Check build.gradle.kts or build.gradle for dependencies:

// Jetpack Compose stack
implementation("com.cometchat:chatuikit-compose-android:6.x")

// Kotlin Views stack
implementation("com.cometchat:chatuikit-kotlin-android:6.x")

// Core only (shared module, no UI)
implementation("com.cometchat:chatuikit-core-android:6.x")
```

Also check for module includes in `settings.gradle`:
- `:chatuikit-compose` → Compose stack
- `:chatuikit-kotlin` → Kotlin Views stack
- `:chatuikit-core` → Core module

## 2. Architecture Overview

v6 uses a 3-module architecture:

| Module | Package | Purpose |
|---|---|---|
| `chatuikit-core` | `com.cometchat.uikit.core` | Shared: init, login, ViewModels, events, data layer |
| `chatuikit-kotlin` | `com.cometchat.uikit.kotlin` | Kotlin Views UI: custom Views, RecyclerView, XML themes |
| `chatuikit-compose` | `com.cometchat.uikit.compose` | Compose UI: @Composable functions, CompositionLocal themes |

Both UI modules depend on `chatuikit-core`. The core module holds all business logic.

## 3. Routing Table

| User wants to... | Route to skill |
|---|---|
| Add CometChat to a project / Gradle setup | `cometchat-android-v6-core` |
| Initialize the SDK / login / logout | `cometchat-android-v6-core` |
| Configure UIKitSettings in detail | `cometchat-android-v6-builder-settings` |
| Use a component (Kotlin Views) | `cometchat-android-v6-kotlin-components` |
| Use a component (Jetpack Compose) | `cometchat-android-v6-compose-components` |
| Place components in Activities/Fragments | `cometchat-android-v6-kotlin-placement` |
| Place components in Compose screens | `cometchat-android-v6-compose-placement` |
| Change colors/fonts (Kotlin Views) | `cometchat-android-v6-kotlin-theming` |
| Change colors/fonts (Compose) | `cometchat-android-v6-compose-theming` |
| Customize bubble rendering (Kotlin Views) | `cometchat-android-v6-kotlin-customization` |
| Customize bubble rendering (Compose) | `cometchat-android-v6-compose-customization` |
| Use AI features, reactions, polls, stickers | `cometchat-android-v6-features` |
| Extend with custom DataSources / message types | `cometchat-android-v6-extensions` |
| Listen to chat/call/user events | `cometchat-android-v6-events` |
| Add push notifications / FCM / VoIP | `cometchat-android-v6-push` |
| Prepare for production release | `cometchat-android-v6-production` |
| Debug issues | `cometchat-android-v6-troubleshooting` |
| Write tests | `cometchat-android-v6-testing` |

## 4. Quick-Start Decision Tree

1. **New project?** → `cometchat-android-v6-core` (Gradle setup + init)
2. **Which UI stack?**
   - Jetpack Compose → `cometchat-compose-*` skills
   - Kotlin Views (XML layouts) → `cometchat-kotlin-*` skills
   - Both → Use the appropriate stack-specific skill for each task
3. **What task?**
   - Show a component → `*-components`
   - Style/theme → `*-theming`
   - Customize bubbles → `*-customization`
   - Place in navigation → `*-placement`

## Hard rules

- ALWAYS detect the project stack before routing to a stack-specific skill
- NEVER mix Kotlin Views APIs with Compose APIs in the same code example
- NEVER reference v5 Java UIKit APIs — v6 is Kotlin-only
- When both stacks are present, ask the user which stack they're working with before proceeding
- Route to the most specific skill possible — don't try to answer from this dispatcher skill

More from cometchat/cometchat-skills

SkillDescription
cometchatEntry-point for CometChat integration in any React, React Native, Angular, Android, Flutter, or iOS project — web (React/Next.js/React Router/Astro), React Native (Expo/bare), Angular (12-15), native Android (V6 stable, V5 legacy), Flutter (V6 stable, V5 legacy), and native iOS (V5 stable). Detects the framework, gathers requirements through an interactive conversation, and writes production-quality integration code.
cometchat-a11yAccessibility (a11y) for CometChat UI Kit integrations across all families — React, React Native, Angular, Android (V5/V6), iOS, Flutter. Covers WCAG 2.1 AA targets, keyboard navigation in chat, screen reader announcements (live regions for new messages), color contrast, focus management on call screens, motion-reduction support, and the cross-family checks that catch the common production a11y bugs. Cross-family — applies wherever the agent is checking accessibility.
cometchat-android-v5Entry-point dispatcher for CometChat Android UI Kit v5. Detects project setup, understands what the dev is building, and routes to the right sub-skills.
cometchat-android-v5-callsCometChat Calls SDK v5 integration for native Android (V5 stable, Java + Kotlin Views). Covers SDK setup (Cloudsmith Maven, CallAppSettings, init), the dual-SDK ringing pattern (Chat SDK initiateCall + Calls SDK joinSession), session settings, event listeners, call logs, recording, screen sharing, picture-in-picture, foreground service for ongoing calls, VoIP push via FCM + ConnectionService, audio/video/participant controls, custom UI, and in-call chat. Use in standalone mode (calls is the product) or additive mode (calls layered on top of an existing CometChat Android v5 chat integration).
cometchat-android-v5-componentsComplete catalog of CometChat Android UI Kit v5 components. Reference before writing integration code — never invent component names.
cometchat-android-v5-coreFoundational rules for CometChat Android UI Kit v5. Initialization, login, UIKitSettings builder, dependency setup, and anti-patterns. Read this first.
cometchat-android-v5-customizationCustomize CometChat components beyond theming — custom message templates, DataSource decorators, event listeners, and custom view slots.
cometchat-android-v5-extensionsExtension architecture for CometChat Android — ExtensionsDataSource, decorators, built-in extensions, and how to create custom extensions.
cometchat-android-v5-featuresAdd features (calls, reactions, polls, file sharing, AI, etc.) to an already-integrated CometChat project. Routes to the right sub-flow based on feature type.
cometchat-android-v5-placementWhere to put CometChat in your Android app — Activity, Fragment, BottomSheet, Dialog, Tab, or embedded patterns.