跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
开发与测试

cometchat-android-v5-features

Add 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 · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add cometchat/cometchat-skills --skill cometchat-android-v5-features

技能说明


name: cometchat-android-v5-features description: "Add features (calls, reactions, polls, file sharing, AI, etc.) to an already-integrated CometChat project. Routes to the right sub-flow based on feature type." license: "MIT" compatibility: "Android 7.0+; Java 8+; Kotlin 1.8+; com.cometchat:chat-uikit-android:5.x" metadata: author: "CometChat" version: "3.0.0" tags: "cometchat android features extensions calls reactions polls ai-features"

Ground truth: com.cometchat:chat-uikit-android:5.x (legacy/maintenance-only; +calls-sdk-android:5.x) — resolved AAR (javap) + ui-kit/android. Official docs: https://www.cometchat.com/docs/fundamentals/extensions-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-v5-core covers initialization; cometchat-android-v5-customization covers deeper component customization; cometchat-android-v5-extensions covers the extension architecture.

Purpose

This skill teaches how CometChat features are structured and what work is required to enable each one. Most features require zero code — they are either already built into the UI Kit, toggled via the cometchat apply-feature CLI (extensions + AI features), or activated by adding a dependency (calls).


Use this skill when

  • "Add reactions to my chat"
  • "Add video calling"
  • "Enable polls"
  • "Add file sharing"
  • "Enable smart replies"

Do not use this skill when

  • Customizing how a feature looks → use cometchat-android-v5-customization
  • Setting up the initial integration → use cometchat-android-v5-core

1. Feature types

TypeWhat it meansAction required
Type 1 — DefaultBuilt into the UI Kit at compile timeNone — already there
Type 2a — ExtensionBackend extension, pure boolean togglecometchat apply-feature <id> --app-id <X> (CLI hits dashboard API)
Type 2b — AI featureBackend AI feature requiring an OpenAI keycometchat apply-feature <id> --app-id <X> --openai-key sk-...
Type 2c — Dashboard-onlyThird-party API key / multi-field config (Giphy, Stipop, Tenor, Chatwoot, Intercom)Open https://app.cometchat.com → Chat & Messaging → Features → configure
Type 3 — Package-installRequires a separate SDK dependencyAdd Gradle dependency
Type 4 — Component-toggleHide/show via setHide* / disable* methods on the relevant componentCall the setter on the component instance (see catalog)

2. Type 1 — Default features (already enabled)

FeatureComponentNotes
Text messagingCometChatMessageComposer + CometChatMessageListCore feature
Media sharing (image/video/audio/file)CometChatMessageComposerAttachment button
Read receiptsCometChatMessageListsetReceiptsVisibility()
Typing indicatorsCometChatMessageList + CometChatConversationsAuto-enabled
User presence (online/offline)CometChatConversations, CometChatUsersRequires subscribePresenceForAllUsers() in init
ReactionsCometChatMessageListLong-press message → react
Mentions (@user, @all)CometChatMessageComposerType @ to trigger
Threaded conversationsCometChatMessageListsetReplyInThreadOptionVisibility()
Quoted repliesCometChatMessageListSwipe to reply
Edit/delete messagesCometChatMessageListLong-press options
Group chatAll componentsUse setGroup() instead of setUser()
Report messageCometChatMessageListLong-press → Report
SearchCometChatSearchStandalone component

3. Type 2 — Backend toggle features (no code needed)

Android projects don't run cometchat apply, so call the CLI in stateless mode with --app-id:

# Pure boolean extensions:
cometchat apply-feature polls --app-id <your-app-id>
cometchat apply-feature stickers --app-id <your-app-id>

# AI features (require OpenAI key):
cometchat apply-feature smart-replies --app-id <your-app-id> --openai-key sk-...
cometchat apply-feature conversation-summary --app-id <your-app-id>
cometchat apply-feature conversation-starter --app-id <your-app-id>

Requires cometchat auth login once per machine.

Extensions (CLI-toggleable — pure boolean):

  • User Engagement: Polls, Message Translation, Reminders
  • Collaboration: Collaborative Document, Collaborative Whiteboard
  • Security: Disappearing Messages, E2E Encryption (Enterprise)
  • Moderation: Profanity Filter, Image Moderation, Data Masking, Sentiment Analysis, XSS Filter

AI Features (CLI-toggleable — needs --openai-key): Conversation Starter, Conversation Summary, Smart Reply

Dashboard-only (third-party config — open https://app.cometchat.com → Chat & Messaging → Features): Stickers (Stipop), Giphy, Tenor, Chatwoot, Intercom — these require API keys / webhooks the user must enter manually.


4. Type 3 — Package-install features

Voice/Video Calling

Add the calling SDK:

implementation 'com.cometchat:calls-sdk-android:5.+'

The UI Kit auto-detects the calling SDK and enables call buttons in CometChatMessageHeader. No additional code needed — CometChatIncomingCall, CometChatOutgoingCall, and CometChatOngoingCall activate automatically.

Configure call buttons visibility:

CometChatMessageHeader header = findViewById(R.id.header);
header.setVoiceCallButtonVisibility(View.VISIBLE);
header.setVideoCallButtonVisibility(View.VISIBLE);

Hard rules

  • Don't write code for Type 1 features. They're already there. Tell the user where to find them.
  • Don't write code for Type 2a/2b features. Run cometchat apply-feature <id> --app-id <X> (extension) or ... --openai-key sk-... (ai-feature). The CLI flips the dashboard toggle via API. Never tell
阅读完整来源 ↗