cometchat/cometchat-skills/cometchat-flutter-v6-core
Claude Code and agent skill by cometchat/cometchat-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Add CometChat chat to a Flutter app end-to-end — detect the project, get & verify dashboard credentials, init→login→render, and the drop-in conversation UI. The core knowledge every other Flutter v6 skill builds on. Triggers: 'add chat to my flutter app', 'integrate cometchat flutter', 'set up cometchat credentials flutter', 'show conversations and messages in flutter'.
Install
npx vskill@latest install cometchat/cometchat-skills/cometchat-flutter-v6-coreSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as cometchat/cometchat-skills/cometchat-flutter-v6-core.
Ground truth:cometchat_chat_uikit@6(6.2.0) +cometchat_sdk@^5.0.8. EveryCometChat*symbol here is incatalogs/flutter-v6.json— compiler-verified against 6.1.0 and source-checked present in 6.2.0. Signatures marked [verified] were compiled because the docs were wrong, or (forinitFromSettings) deliberately silent (DOCS-BACKLOG.mdPART 4): trust this file for those, fetch the rest viareferences/docs-map.md. THIN map loaded every run; depth inreferences/*.
<!-- core is the companion the other flutter v6 skills read; it has no Companion block of its own. -->
Use this skill when
"add chat to my Flutter app", "integrate CometChat in Flutter", "set up CometChat credentials", "show a conversations + messages screen". An unscoped "add chat" means a production-ready core surface — a CometChatConversations screen pushing a message screen, with threaded replies and search wired, in Scaffold/SafeArea, keyboard-safe, every screen popping back — NOT a two-widget demo, NOT the whole tab-based app (see the golden path). It grows on request → cometchat-flutter-v6-placement.
Install
Pin the major in pubspec.yaml — cometchat_chat_uikit: ^6.2.0 (a bare any can resolve across majors). The Chat SDK (cometchat_sdk) comes transitively and is re-exported by the kit barrel — do NOT add it separately unless you import SDK-only paths. Voice/video calling = a settings flag + native config (cometchat_calls_sdk is already a transitive kit dependency — see below) → cometchat-flutter-v6-calls.
Platform minimums — Android minSdk = 26 in android/app/build.gradle.kts; iOS platform :ios, '15.1' in ios/Podfile. The `getting-started` page says 24 / 13.0 and both are too low (DOCS-BACKLOG D7). The kit's own AAR allows 21, but transitive deps set the real floor and this one is not optional: cometchat_chat_uikit depends on `cometchat_calls_sdk` unconditionally — it sits in the main dependencies: block — and that package pins minSdkVersion 26 / platform :ios, '15.1' (5.0.7 through 5.0.9). Gradle and CocoaPods take the maximum across the graph, so a lower value is a build error whether or not the app uses calling.
Setup & credentials (essentials — full detail: references/setup-credentials.md)
- Detect by READING the repo —
pubspec.yaml+ lockfile (deps and the kit major),lib/main.dart, state management, navigation, and how config is handled. Reuse an existing.cometchat/config.jsonor settings asset (skip re-setup). Signal table:references/setup-credentials.md. - version_conflict — STOP if the project already has
cometchat_chat_uikitv5 (or any non-v6 major); reconcile first, never mix majors (RULES.md). A v5 project that wants v6 →cometchat-flutter-v6-migration. - Credentials — OFFER the dashboard fetch FIRST; never default to "paste it yourself." When App ID / Region / Auth Key are missing, offer (a) fetch from your dashboard (recommended) — through the CometChat MCP's account tools, pick an EXISTING app (never auto-create) — or (b) manual paste. Then the SKILL writes
cometchat-settings.json(§4) from those creds; the CLI is dashboard/API-only and never writes Dart (RULES.md§21). Never defer credentials to a "add them yourself" TODO. Exact commands + the app-picker flow:references/setup-credentials.md. - Write the settings asset + register it — commit only a placeholder (no real Auth Key) and do not gitignore it (a registered asset must exist or a fresh-clone
flutter buildfails — see the note in §Integration ordering); never echo the Auth Key. Prod → server-minted auth token, not the Auth Key. - Authorize =
initthenloginboth hitonSuccess. An auth error is almost always the wrong Region.
Integration ordering (BAKED — invariant; docs: init must complete before login, login before any widget)
initFromSettings() once at startup → login(UID) after init succeeds → only THEN render any CometChat* widget.
Init via `initFromSettings` — the file-based, telemetry-attributed path (`RULES.md` §5). It reads a cometchat-settings.json asset and persists integrationSource="ai-agent". Flutter's signature takes NO settings argument (unlike web, which passes a settings object) — the file IS the input:
cometchat-settings.json at the project root, registered in pubspec.yaml under flutter: assets::
Keys are read exactly as above.uiKit.enableCallingis the only way to turn calling on via this path (UIKitSettingsdefaults it to false) — leave itfalseuntil the user asks for calls.credentials.authKeyis dev-only; omit it for production and log in with a server-minted token.Make a fresh clone build. A file registered underflutter: assets:MUST exist at build time orflutter build bundlefails with "No file or variants found for asset: cometchat-settings.json." So do not gitignore the registered asset. Instead commit a placeholder `cometchat-settings.json` — same shape, with a placeholder/emptyauthKey(NEVER a real dev Auth Key) — and have each developer and CI overwrite it locally/at build time with real credentials. (Enforce "no real key committed" via a pre-commit check or CI, not.gitignore.) For production, CI generates the prod-flavoured file (no Auth Key) at build time (cometchat-flutter-v6-production).
Which UID?login()needs a user that ALREADY EXISTS — never invent one. ASK, or take one from Dashboard → Users; fresh apps seedcometchat-uid-1.... The only tentative suggestion iscometchat-uid-1, labelled "if this is a fresh app." Prod → `CometChatUIKit.loginWithAuthToken(authToken, ...)` with a token minted server-side.Init-once, hot-restart, and gating the first frame:references/lifecycle.md.
Widget / API map (BAKED closed list — from the catalog)
Init/session: CometChatUIKit (initFromSettings · login · loginWithAuthToken · logout · loggedInUser), UIKitSettingsBuilder, CometChatSubscriptionType, CometChatException. Core surface: CometChatConversations, CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer; wired affordances CometChatThreadedHeader, CometChatSearch. Grow set (added on request): CometChatUsers, CometChatGroups, CometChatGroupMembers, CometChatChangeScope, CometChatCallLogs. Incoming calls need NO widget — with calling on, the kit presents the overlay itself (-calls).
TWO BARRELS — a real compile trap.package:cometchat_chat_uikit/cometchat_chat_uikit.dartgives you the chat widgets and the re-exported Chat SDK (User,Group,Conversation,BaseMessage,TextMessage— no separate import). Every calls symbol (CometChatIncomingCall,CometChatOutgoingCall,CometChatCallButtons,CometChatCallLogs,CometChatCallBubble,CometChatCalls) lives ONLY inpackage:cometchat_chat_uikit/cometchat_calls_uikit.dart, and that barrel does NOT re-export the chat widgets — a calls screen imports both. Verified: usingCometChatIncomingCallwith only the chat import fails to compile.The v6 widget is `CometChatThreadedHeader` —CometChatThreadHeader(the React name) does NOT exist here. Never carry a name across families.
Hot-path props (BAKED — the golden path needs NO fetch)
CometChatConversations:onItemTap(Conversation)(select → push the message screen) ·hideSearch·searchReadOnly(settrueso the field acts as a button) ·onSearchTap(→ pushCometChatSearch) ·conversationsRequestBuilder(scope touser/groupwhen the ask is DM-only or groups-only — reuse the builder, don't client-filter) ·hideAppbar·appBarOptions·onBack.CometChatMessageHeader:user:/group:(pass the SAME target as the list) ·showBackButton(defaulttrue) +onBack·hideVoiceCallButton/hideVideoCallButton(call buttons are built in — leave them unless calls are out of scope) ·auxiliaryButtonView/trailingView(where a custom action goes — see search below).CometChatMessageList:user:/group:·parentMessageId(thread mode) ·onThreadRepliesClick[verified] — the type isThreadRepliesClick = void Function(BaseMessage message, BuildContext context, {CometChatMessageTemplate? template}); a one-argument closure does not compile (DOCS-BACKLOGF2).CometChatMessageComposer:user:/group:·parentMessageId(thread mode). A plain send needs nothing else.CometChatSearch[verified]:onConversationClicked/onMessageClicked(not the docs'onConversationItemClick/onMessageItemClick—DOCS-BACKLOGF3) ·onBack·user:/group:/searchInto scope it to one chat.
Any OTHER widget or a rarer prop → fetch its.mdtwin viareferences/docs-map.md. Full catalog:cometchat-flutter-v6-components.
Golden path — the production-ready CORE surface (default for an unscoped "add chat"; grows on request)
Setup → init/login → gate the first frame on both resolving (show a loader; never render a CometChat* widget before login succeeds) → then:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cometchat-flutter-v6-core/SKILL.md
Popularity
- Repository stars
- 70
- Repository forks
- 2
- Repository npm downloads, 7 days
- 59
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 6 Aug 2026, 3 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cometchat/cometchat-skills/cometchat-flutter-v6-core)