[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MFA1D70JQGFT8Z3EJPEEQ1":3,"skill-same:01M6MFA1D70JQGFT8Z3EJPEEQ1":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6MFA1D70JQGFT8Z3EJPEEQ1","cometchat-flutter-v6-events",null,"React to CometChat activity in a Flutter app — SDK listeners (messages, calls, users, groups, connection) versus UI Kit events (CometChatMessageEvents, CometChatGroupEvents, CometChatUserEvents, CometChatConversationEvents), and the listener lifecycle that keeps them from leaking. Triggers: 'listen for new messages', 'react when a message is sent', 'cometchat listener flutter', 'unread badge count', 'onMessageReceived'.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-flutter-v6-events\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"flutter","cometchat flutter v6 events","events","cometchat","count","listeners","when","new","sdk","chat","users","uikit","triggers","calls","lifecycle","for","ui","flutter app","verified","activity","message","react","kit","messages","app","2026-11-10 10:12:30",false,"---\nname: cometchat-flutter-v6-events\ndescription: \"React to CometChat activity in a Flutter app — SDK listeners (messages, calls, users, groups, connection) versus UI Kit events (CometChatMessageEvents, CometChatGroupEvents, CometChatUserEvents, CometChatConversationEvents), and the listener lifecycle that keeps them from leaking. Triggers: 'listen for new messages', 'react when a message is sent', 'cometchat listener flutter', 'unread badge count', 'onMessageReceived'.\"\nlicense: \"MIT\"\ncompatibility: \"Flutter >=3.38.9; cometchat_chat_uikit ^6.2.0 (6.2.x; catalog compiler-verified vs 6.1.0, source-checked vs 6.2.0); cometchat_sdk ^5.0.8\"\nmetadata:\n  author: \"CometChat\"\n  version: \"1.0.0\"\n  tags: \"cometchat flutter events listeners sdk uikit lifecycle v6\"\n---\n\n> **Ground truth:** every listener symbol below is catalog-verified against 6.1.0. There are TWO event systems and they are not interchangeable — the exact callback set for each is FETCHED from `events` (UI events) and the SDK's `real-time-listeners` via `..\u002Fcometchat-flutter-v6-core\u002Freferences\u002Fdocs-map.md`.\n\n## Companion skills (read first)\n- `cometchat-flutter-v6-core` — install, credentials, `init→login→render`. This skill ASSUMES it.\n\n## Use this skill when\n\"do something when a message arrives\", \"update a badge count\", \"refresh my screen when a group changes\", \"cometchat listener\" — anything reactive OUTSIDE what the kit's widgets already do for themselves.\n\n## Prerequisites & install\nCovered by core. No new package.\n\n## First: do you actually need a listener?\nThe kit's widgets are already live. `CometChatConversations` updates its own unread counts, `CometChatMessageList` appends incoming messages, `CometChatMessageHeader` shows typing and presence — **all without a single listener from you.** Add one only for something OUTSIDE the kit's surface: an app-level badge, an analytics hook, a push registration, navigating on an incoming call.\n> Adding a listener to \"make the list update\" is the most common mistake here — it already does.\n\n## The two systems (BAKED)\n| | **SDK listeners** | **UI Kit events** |\n|---|---|---|\n| Source | the server, via `CometChat.*` | the kit's own widgets |\n| Register | `CometChat.addMessageListener(id, this)` | `CometChatMessageEvents.addMessagesListener(id, this)` |\n| Mixin | `MessageListener` · `CallListener` · `UserListener` · `GroupListener` · `ConnectionListener` | `CometChatMessageEventListener` · `CometChatGroupEventListener` · `CometChatUserEventListener` · `CometChatConversationEventListener` |\n| Answers | \"the server says X happened\" | \"the user did X in the kit\" |\n| Use for | badges, push, incoming calls, analytics | reacting to a kit action (message sent from the composer, group left via the kit) |\n\n**SDK listener — server-side truth:**\n```dart\nimport 'package:cometchat_chat_uikit\u002Fcometchat_chat_uikit.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\nclass BadgeHost extends StatefulWidget {\n  const BadgeHost({super.key});\n  @override\n  State\u003CBadgeHost> createState() => _BadgeHostState();\n}\n\nclass _BadgeHostState extends State\u003CBadgeHost> with MessageListener {\n  static const _id = \"app_badge\";\n\n  @override\n  void initState() {\n    super.initState();\n    CometChat.addMessageListener(_id, this);\n  }\n\n  @override\n  void dispose() {\n    CometChat.removeMessageListener(_id);   \u002F\u002F ALWAYS remove — see lifecycle below\n    super.dispose();\n  }\n\n  @override\n  void onTextMessageReceived(TextMessage message) {\n    \u002F\u002F bump an app-level unread badge\n  }\n\n  @override\n  Widget build(BuildContext context) => const SizedBox.shrink();\n}\n```\n\n**UI Kit event — react to what the kit did:**\n```dart\nimport 'package:cometchat_chat_uikit\u002Fcometchat_chat_uikit.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\nclass ComposerWatcher extends StatefulWidget {\n  const ComposerWatcher({super.key});\n  @override\n  State\u003CComposerWatcher> createState() => _ComposerWatcherState();\n}\n\nclass _ComposerWatcherState extends State\u003CComposerWatcher> with CometChatMessageEventListener {\n  static const _id = \"composer_watch\";\n\n  @override\n  void initState() {\n    super.initState();\n    CometChatMessageEvents.addMessagesListener(_id, this);\n  }\n\n  @override\n  void dispose() {\n    CometChatMessageEvents.removeMessagesListener(_id);\n    super.dispose();\n  }\n\n  @override\n  Widget build(BuildContext context) => const SizedBox.shrink();\n}\n```\n\n## The listener lifecycle (the rule that prevents 90% of event bugs)\n1. **Register in `initState`, remove in `dispose`** — always paired.\n2. **A unique, stable listener id per screen.** Reusing one id across screens means the later registration silently replaces the earlier.\n3. **Removing matters more than you think in Flutter:** hot restart and route re-entry both re-run `initState`. A listener you never removed fires again, so a badge double-counts and a call dialog opens twice.\n4. **Register AFTER login.** A listener added before `login` resolves receives nothing.\n\n## Do NOT mix both message listeners on one class (compile trap — verified vs 6.1.0)\n`MessageListener` (SDK) and `CometChatMessageEventListener` (UI Kit) both declare `onCardMessageReceived`, but with **two different `CardMessage` types** — one from `cometchat_sdk`, one from the kit. Mixing them on the same `State` fails to compile with `invalid_override`. Use **two separate classes** (or two `State`s) when you need both.\n\n## Common pitfalls (BAKED)\n- **Adding a listener to make a kit widget update** — it already updates itself.\n- **No `dispose` removal** → duplicate events after hot restart \u002F re-entry.\n- **A shared listener id** → one screen silently unregisters another.\n- **Both message mixins on one class** → does not compile (above).\n- **Registering before login** → silence.\n- **Expecting UI events for server activity** (or vice-versa) — pick the right system from the table.\n- **v5 event APIs** — the v5 `DataSource`\u002F`ChatConfigurator` event plumbing is gone (→ `-migration`).\n\n## Verify it works\nThe reaction fires once (not twice) per event; hot-restart the app and confirm it still fires exactly once; navigate away and back and confirm no duplicate; with the app backgrounded, server-side events still arrive when it returns.\n","> **Ground truth:** every listener symbol below is catalog-verified against 6.1.0. There are TWO event systems and they are not interchangeable — the exact callback set for each is FETCHED from `events` (UI events) and the SDK's `real-time-listeners` via `..\u002Fcometchat-flutter-v6-core\u002Freferences\u002Fdocs-map.md`.\n\n## Companion skills (read first)\n- `cometchat-flutter-v6-core` — install, credentials, `init→login→render`. This skill ASSUMES it.\n\n## Use this skill when\n\"do something when a message arrives\", \"update a badge count\", \"refresh my screen when a group changes\", \"cometchat listener\" — anything reactive OUTSIDE what the kit's widgets already do for themselves.\n\n## Prerequisites & install\nCovered by core. No new package.\n\n## First: do you actually need a listener?\nThe kit's widgets are already live. `CometChatConversations` updates its own unread counts, `CometChatMessageList` appends incoming messages, `CometChatMessageHeader` shows typing and presence — **all without a single listener from you.** Add one only for something OUTSIDE the kit's surface: an app-level badge, an analytics hook, a push registration, navigating on an incoming call.\n> Adding a listener to \"make the list update\" is the most common mistake here — it already does.\n\n## The two systems (BAKED)\n| | **SDK listeners** | **UI Kit events** |\n|---|---|---|\n| Source | the server, via `CometChat.*` | the kit's own widgets |\n| Register | `CometChat.addMessageListener(id, this)` | `CometChatMessageEvents.addMessagesListener(id, this)` |\n| Mixin | `MessageListener` · `CallListener` · `UserListener` · `GroupListener` · `ConnectionListener` | `CometChatMessageEventListener` · `CometChatGroupEventListener` · `CometChatUserEventListener` · `CometChatConversationEventListener` |\n| Answers | \"the server says X happened\" | \"the user did X in the kit\" |\n| Use for | badges, push, incoming calls, analytics | reacting to a kit action (message sent from the composer, group left via the kit) |\n\n**SDK listener — server-side truth:**\n```dart\nimport 'package:cometchat_chat_uikit\u002Fcometchat_chat_uikit.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\nclass BadgeHost extends StatefulWidget {\n  const BadgeHost({super.key});\n  @override\n  State\u003CBadgeHost> createState() => _BadgeHostState();\n}\n\nclass _BadgeHostState extends State\u003CBadgeHost> with MessageListener {\n  static const _id = \"app_badge\";\n\n  @override\n  void initState() {\n    super.initState();\n    CometChat.addMessageListener(_id, this);\n  }\n\n  @override\n  void dispose() {\n    CometChat.removeMessageListener(_id);   \u002F\u002F ALWAYS remove — see lifecycle below\n    super.dispose();\n  }\n\n  @override\n  void onTextMessageReceived(TextMessage message) {\n    \u002F\u002F bump an app-level unread badge\n  }\n\n  @override\n  Widget build(BuildContext context) => const SizedBox.shrink();\n}\n```\n\n**UI Kit event — react to what the kit did:**\n```dart\nimport 'package:cometchat_chat_uikit\u002Fcometchat_chat_uikit.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\nclass ComposerWatcher extends StatefulWidget {\n  const ComposerWatcher({super.key});\n  @override\n  State\u003CComposerWatcher> createState() => _ComposerWatcherState();\n}\n\nclass _ComposerWatcherState extends State\u003CComposerWatcher> with CometChatMessageEventListener {\n  static const _id = \"composer_watch\";\n\n  @override\n  void initState() {\n    super.initState();\n    CometChatMessageEvents.addMessagesListener(_id, this);\n  }\n\n  @override\n  void dispose() {\n    CometChatMessageEvents.removeMessagesListener(_id);\n    super.dispose();\n  }\n\n  @override\n  Widget build(BuildContext context) => const SizedBox.shrink();\n}\n```\n\n## The listener lifecycle (the rule that prevents 90% of event bugs)\n1. **Register in `initState`, remove in `dispose`** — always paired.\n2. **A unique, stable listener id per screen.** Reusing one id across screens means the later registration silently replaces the earlier.\n3. **Removing matters more than you think in Flutter:** hot restart and route re-entry both re-run `initState`. A listener you never removed fires again, so a badge double-counts and a call dialog opens twice.\n4. **Register AFTER login.** A listener added before `login` resolves receives nothing.\n\n## Do NOT mix both message listeners on one class (compile trap — verified vs 6.1.0)\n`MessageListener` (SDK) and `CometChatMessageEventListener` (UI Kit) both declare `onCardMessageReceived`, but with **two different `CardMessage` types** — one from `cometchat_sdk`, one from the kit. Mixing them on the same `State` fails to compile with `invalid_override`. Use **two separate classes** (or two `State`s) when you need both.\n\n## Common pitfalls (BAKED)\n- **Adding a listener to make a kit widget update** — it already updates itself.\n- **No `dispose` removal** → duplicate events after hot restart \u002F re-entry.\n- **A shared listener id** → one screen silently unregisters another.\n- **Both message mixins on one class** → does not compile (above).\n- **Registering before login** → silence.\n- **Expecting UI events for server activity** (or vice-versa) — pick the right system from the table.\n- **v5 event APIs** — the v5 `DataSource`\u002F`ChatConfigurator` event plumbing is gone (→ `-migration`).\n\n## Verify it works\nThe reaction fires once (not twice) per event; hot-restart the app and confirm it still fires exactly once; navigate away and back and confirm no duplicate; with the app backgrounded, server-side events still arrive when it returns.\n",{"name":5,"license":15,"metadata":49,"description":7,"compatibility":53},{"tags":50,"author":51,"version":52},"cometchat flutter events listeners sdk uikit lifecycle v6","CometChat","1.0.0","Flutter >=3.38.9; cometchat_chat_uikit ^6.2.0 (6.2.x; catalog compiler-verified vs 6.1.0, source-checked vs 6.2.0); cometchat_sdk ^5.0.8","main","cebc3dce495d7eb80d3b1d5841f877a4a92e162d","plugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-flutter-v6-events",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-flutter-v6-events",{"tool":70,"command":71},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-flutter-v6-events",{"tool":73,"command":74},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-flutter-v6-events","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-flutter-v6-events\u002FSKILL.md",true,[],[79,88,96,104,112,120],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":87},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":87},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":100,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":87},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":87},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":87},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":124,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":87},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]