/cometchat-skills:cometchat-flutter-v6-migrationfrom cometchat-skills
Upgrades a Flutter app from CometChat UI Kit v5 to v6, applying breaking changes like removed shells, deleted extension architecture, GetX to BLoC migration, and renamed widgets.
Ships in cometchat-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Ground truth: the removed-symbol map in
references/migration-guide.mdis derived from a REAL diff — every prior-pack symbol was compiled against the published 6.1.0, and the 45 that no longer resolve are recorded with their replacement (COVERAGE-flutter-v6.md). v6 target symbols are catalog-verified. The prop-by-prop table is FETCHED fromupgrading-from-v5. Transform the user's code — never wipe it; work on a branch and confirm before bulk edits.
cometchat-flutter-v6-core — the v6 init/login/render the migrated app lands on. This skill ASSUMES it.cometchat-flutter-v6-components — the v6 widget catalog (the target names)."upgrade my v5 UI Kit to v6", "migrate CometChat Flutter v5→v6", "bump cometchat_chat_uikit". Precondition: the project currently has cometchat_chat_uikit ^5.
A clean branch. Then flutter pub add cometchat_chat_uikit:^6.2.0 (and cometchat_calls_sdk:^5.0.8 if the app imports it directly). Remove cometchat_uikit_shared and cometchat_calls_uikit — neither exists as a package in v6; calling now ships inside the chat package behind a second barrel.
Expect pub get to fail once on a peer constraint. The kit tightens transitive pins (e.g. 6.1.0+ needs permission_handler ^12; 6.2.0 caps it below 13, so an app on ^11 will not resolve). Bump the app's pin to what the solver names — never downgrade the kit to fit the app.
pubspec.yaml has cometchat_chat_uikit ^5 (already ^6 → STOP, nothing to migrate). Note platform floors (Android minSdk 26, iOS 15.1 — not the docs' 24 / 13.0; see DOCS-BACKLOG D7) and whether the app uses calls / GetX / extensions / custom templates.cometchat_uikit_shared and cometchat_calls_uikit; bump cometchat_sdk/cometchat_calls_sdk; expect one peer-constraint bump. flutter pub get.references/migration-guide.md. Produce a concrete change list BEFORE editing.package:cometchat_chat_uikit/cometchat_chat_uikit.dart, plus .../cometchat_calls_uikit.dart for call widgets.flutter analyze clean, no v5 symbol remains, the app builds and chat renders.1. The combined shells are GONE. v5's all-in-one widgets have no v6 equivalent — the host composes screens now.
| v5 | v6 |
|---|---|
CometChatConversationsWithMessages | CometChatConversations + push a message screen |
CometChatUsersWithMessages / CometChatGroupsWithMessages | CometChatUsers / CometChatGroups + push |
CometChatMessages | CometChatMessageHeader + CometChatMessageList + CometChatMessageComposer |
CometChatUI · CometChatMessenger · CometChatUserList · CometChatContactList · CometChatChatList | compose from the catalog (-placement) |
| This is the largest edit: a one-line v5 shell becomes a screen you assemble. Use the core golden path as the target shape. |
2. The extension architecture is DELETED. The builder setters ..extensions · ..aiFeature · ..callingExtension are gone, along with CometChatUIKitChatExtensions · CometChatCallingExtension · DataSource / ExtensionsDataSource · ChatConfigurator · every *Extension and *ExtensionDecorator · CometChatUIKit.getDataSource().
Dashboard-enabled extensions now surface automatically; the replacement for getDataSource() defaults is MessageTemplateUtils (getTextMessageOptions, getAllMessageTypes, getAllMessageCategories).
Two exceptions to "just delete it":
..callingExtension = CometChatCallingExtension() becomes ..enableCalls = true + ..callingConfiguration = CallingConfiguration() on the classic builder, or uiKit.enableCalling on initFromSettings (-calls). Delete it without the pair and every call affordance vanishes silently.CometChatUIKitChatAIFeatures still resolves — delete the ..aiFeature = ... line because the setter is gone, not the class.3. GetX controllers → BLoC. CometChatMessagesController, CometChatOngoingCallController and friends are gone; v6 widgets own their blocs internally. Delete the controller wiring; read list state via stateCallBack / onLoad instead (-events).
4. Renames. CometChatEditPreview → CometChatMessagePreview · CometChatCompactMessageComposer → CometChatMessageComposer · the AI views gained a View suffix (CometChatAISmartReplies → CometChatAISmartRepliesView, and the same for conversation-starter / summary) · call-log detail widgets folded into CometChatCallLogs.
5. Imports + barrels — budget for this one; it breaks the most files. package:cometchat_uikit_shared/... and the whole cometchat_calls_uikit package no longer resolve. Call widgets moved behind the calls barrel inside the chat package — a screen using them imports both (-calls).
The trap: the v5 calls package re-exported the chat kit, the v6 calls barrel does not. Every file that imported only the calls package silently loses CometChatUIKit, CometChatThemeHelper, the theme classes and Translations. On the real sample_app this was 94 of 119 post-bump errors — more than all removed symbols combined. Re-point the imports, then add the chat barrel wherever a chat symbol reports undefined.
Beyond the five: things that fail as ordinary type errors. Changed callback signatures (CometChatConfirmDialog), a slot whose return type changed (options → trailingView), renamed props (messageId → goToMessageId), and an app that subclassed a kit list controller (now a ChangeNotifier, so GetBuilder rejects it). Nothing greps for these — the table in references/migration-guide.md lists each with its fix.
BannedGroupMembersRequestBuilder + unbanGroupMember) to keep the ban round-trip closed.CometChatMessageTemplate, but defaults now come from MessageTemplateUtils (-components).CometChatTextFormatter is abstract in v6 and requires init, getMessageInputTextStyle, handlePreMessageSend, onChange, onScrollToBottom. A v5 subclass will not compile until those exist.ThemeData.extensions with CometChatColorPalette (-customization).initFromSettings + cometchat-settings.json for telemetry attribution while you are here (core). It does not fit every app: one that takes App ID / region / auth key at runtime (a credentials screen, multi-tenant switching) cannot express that in a static asset — keep UIKitSettingsBuilder there and say why.cometchat_uikit_shared or cometchat_calls_uikit in pubspec → unresolved imports.minSdk 26, iOS 15.1 — the docs' 24 / 13.0 are too low) → the build fails after the bump, which is exactly when it is hardest to attribute.flutter analyze is clean; no symbol from the removed map remains (grep it); the app builds on both platforms; chat renders, messages send/receive, threads and search still work; calling (if used) still rings with both barrels imported. Then re-run the core "Verify before done".
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cometchat/cometchat-skills --plugin cometchat-skills98 skills in this plugin
/cometchatEntry point for any CometChat task on any platform. Detects the framework + UI Kit version (React, Angular, iOS, Android, React Native, Flutter), then routes to that family's skills — for a NEW integration or a change to an existing one. Triggers: 'add chat', 'add cometchat', 'add chat to my app', 'add calling', 'change something in my chat', 'my chat is already set up', 'add a feature to the chat', 'add chat to my android app', 'integrate cometchat android', 'add chat to my ios app', 'integrate cometchat ios', 'add chat to my swift app', 'migrate my app to cometchat', 'migrate from sendbird', 'migrate from getstream / stream', 'replace sendbird / stream chat with cometchat', 'build a <app> clone', 'make a chat app like <app>', 'make it look and work like <app>'./cometchat-a11yKeep a CometChat integration accessible — the UI Kit is designed targeting WCAG 2.1 AA with keyboard navigation (verify per component in its docs; full conformance still needs manual testing), and this skill makes sure the HOST app doesn't break that, covering contrast, focus, screen-reader context, reduced motion, RTL, and calls accessibility. Cross-family. Triggers: 'is cometchat accessible', 'WCAG / 508 / ADA compliance', 'screen reader support', 'keyboard navigation', 'a11y audit', 'accessible chat', 'contrast/focus issues in chat'.Other plugins' skills for the same job