@cometchat/skills 3.1.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +35 -17
  2. package/bin/install.js +389 -43
  3. package/package.json +17 -8
  4. package/skills/cometchat/SKILL.md +653 -50
  5. package/skills/cometchat-android-v5/SKILL.md +120 -0
  6. package/skills/cometchat-android-v5-components/SKILL.md +430 -0
  7. package/skills/cometchat-android-v5-core/SKILL.md +468 -0
  8. package/skills/cometchat-android-v5-customization/SKILL.md +305 -0
  9. package/skills/cometchat-android-v5-extensions/SKILL.md +124 -0
  10. package/skills/cometchat-android-v5-features/SKILL.md +130 -0
  11. package/skills/cometchat-android-v5-placement/SKILL.md +276 -0
  12. package/skills/cometchat-android-v5-production/SKILL.md +94 -0
  13. package/skills/cometchat-android-v5-push/SKILL.md +620 -0
  14. package/skills/cometchat-android-v5-testing/SKILL.md +187 -0
  15. package/skills/cometchat-android-v5-theming/SKILL.md +166 -0
  16. package/skills/cometchat-android-v5-troubleshooting/SKILL.md +73 -0
  17. package/skills/cometchat-android-v6/SKILL.md +107 -0
  18. package/skills/cometchat-android-v6-builder-settings/SKILL.md +145 -0
  19. package/skills/cometchat-android-v6-compose-components/SKILL.md +202 -0
  20. package/skills/cometchat-android-v6-compose-customization/SKILL.md +280 -0
  21. package/skills/cometchat-android-v6-compose-placement/SKILL.md +213 -0
  22. package/skills/cometchat-android-v6-compose-theming/SKILL.md +224 -0
  23. package/skills/cometchat-android-v6-core/SKILL.md +354 -0
  24. package/skills/cometchat-android-v6-events/SKILL.md +212 -0
  25. package/skills/cometchat-android-v6-extensions/SKILL.md +191 -0
  26. package/skills/cometchat-android-v6-features/SKILL.md +130 -0
  27. package/skills/cometchat-android-v6-kotlin-components/SKILL.md +197 -0
  28. package/skills/cometchat-android-v6-kotlin-customization/SKILL.md +268 -0
  29. package/skills/cometchat-android-v6-kotlin-placement/SKILL.md +248 -0
  30. package/skills/cometchat-android-v6-kotlin-theming/SKILL.md +202 -0
  31. package/skills/cometchat-android-v6-production/SKILL.md +187 -0
  32. package/skills/cometchat-android-v6-push/SKILL.md +274 -0
  33. package/skills/cometchat-android-v6-testing/SKILL.md +279 -0
  34. package/skills/cometchat-android-v6-troubleshooting/SKILL.md +249 -0
  35. package/skills/cometchat-angular-components/SKILL.md +706 -0
  36. package/skills/cometchat-angular-core/SKILL.md +444 -0
  37. package/skills/cometchat-angular-customization/SKILL.md +424 -0
  38. package/skills/cometchat-angular-features/SKILL.md +447 -0
  39. package/skills/cometchat-angular-patterns/SKILL.md +447 -0
  40. package/skills/cometchat-angular-placement/SKILL.md +685 -0
  41. package/skills/cometchat-angular-production/SKILL.md +415 -0
  42. package/skills/cometchat-angular-theming/SKILL.md +365 -0
  43. package/skills/cometchat-angular-troubleshooting/SKILL.md +329 -0
  44. package/skills/cometchat-astro-patterns/SKILL.md +3 -3
  45. package/skills/cometchat-components/SKILL.md +2 -0
  46. package/skills/cometchat-core/SKILL.md +11 -6
  47. package/skills/cometchat-customization/references/component-catalog.md +1 -1
  48. package/skills/cometchat-features/SKILL.md +176 -108
  49. package/skills/cometchat-flutter-v5/SKILL.md +167 -0
  50. package/skills/cometchat-flutter-v5-calls/SKILL.md +192 -0
  51. package/skills/cometchat-flutter-v5-conversations/SKILL.md +117 -0
  52. package/skills/cometchat-flutter-v5-core/SKILL.md +221 -0
  53. package/skills/cometchat-flutter-v5-customization/SKILL.md +227 -0
  54. package/skills/cometchat-flutter-v5-events/SKILL.md +155 -0
  55. package/skills/cometchat-flutter-v5-messages/SKILL.md +258 -0
  56. package/skills/cometchat-flutter-v5-production/SKILL.md +207 -0
  57. package/skills/cometchat-flutter-v5-push/SKILL.md +284 -0
  58. package/skills/cometchat-flutter-v5-theming/SKILL.md +160 -0
  59. package/skills/cometchat-flutter-v5-troubleshooting/SKILL.md +129 -0
  60. package/skills/cometchat-flutter-v5-users-groups/SKILL.md +151 -0
  61. package/skills/cometchat-flutter-v6/SKILL.md +445 -0
  62. package/skills/cometchat-flutter-v6-calls/SKILL.md +333 -0
  63. package/skills/cometchat-flutter-v6-components/SKILL.md +365 -0
  64. package/skills/cometchat-flutter-v6-conversations/SKILL.md +210 -0
  65. package/skills/cometchat-flutter-v6-core/SKILL.md +305 -0
  66. package/skills/cometchat-flutter-v6-customization/SKILL.md +666 -0
  67. package/skills/cometchat-flutter-v6-events/SKILL.md +216 -0
  68. package/skills/cometchat-flutter-v6-features/SKILL.md +406 -0
  69. package/skills/cometchat-flutter-v6-messages/SKILL.md +333 -0
  70. package/skills/cometchat-flutter-v6-migration/SKILL.md +381 -0
  71. package/skills/cometchat-flutter-v6-placement/SKILL.md +398 -0
  72. package/skills/cometchat-flutter-v6-production/SKILL.md +632 -0
  73. package/skills/cometchat-flutter-v6-theming/SKILL.md +260 -0
  74. package/skills/cometchat-flutter-v6-troubleshooting/SKILL.md +726 -0
  75. package/skills/cometchat-flutter-v6-users-groups/SKILL.md +216 -0
  76. package/skills/cometchat-ios/SKILL.md +323 -0
  77. package/skills/cometchat-ios-components/SKILL.md +651 -0
  78. package/skills/cometchat-ios-core/SKILL.md +822 -0
  79. package/skills/cometchat-ios-customization/SKILL.md +825 -0
  80. package/skills/cometchat-ios-features/SKILL.md +725 -0
  81. package/skills/cometchat-ios-placement/SKILL.md +750 -0
  82. package/skills/cometchat-ios-production/SKILL.md +730 -0
  83. package/skills/cometchat-ios-push/SKILL.md +582 -0
  84. package/skills/cometchat-ios-theming/SKILL.md +631 -0
  85. package/skills/cometchat-ios-troubleshooting/SKILL.md +983 -0
  86. package/skills/cometchat-native-bare-patterns/SKILL.md +470 -0
  87. package/skills/cometchat-native-components/SKILL.md +594 -0
  88. package/skills/cometchat-native-core/SKILL.md +407 -0
  89. package/skills/cometchat-native-customization/SKILL.md +594 -0
  90. package/skills/cometchat-native-expo-patterns/SKILL.md +485 -0
  91. package/skills/cometchat-native-features/SKILL.md +608 -0
  92. package/skills/cometchat-native-placement/SKILL.md +500 -0
  93. package/skills/cometchat-native-production/SKILL.md +694 -0
  94. package/skills/cometchat-native-push/SKILL.md +593 -0
  95. package/skills/cometchat-native-testing/SKILL.md +583 -0
  96. package/skills/cometchat-native-theming/SKILL.md +656 -0
  97. package/skills/cometchat-native-troubleshooting/SKILL.md +433 -0
  98. package/skills/cometchat-nextjs-patterns/SKILL.md +5 -5
  99. package/skills/cometchat-react-router-patterns/SKILL.md +23 -21
package/README.md CHANGED
@@ -1,24 +1,32 @@
1
1
  # cometchat-skills
2
2
 
3
- **Add CometChat to any React or React Native project through your AI coding agent.** Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/vercel-labs/skills).
3
+ **Add CometChat to any React, React Native, Angular, Android, Flutter, or iOS project through your AI coding agent.** Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and [30+ more agents](https://github.com/vercel-labs/skills).
4
4
 
5
- v3 takes an AI-first approach: your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. One slash — `/cometchat` — works for every supported framework, web or React Native.
5
+ v4 takes an AI-first approach: your agent has a short conversation with you to understand your project and chat requirements, then writes production-grade integration code tailored to the files you already have. One slash — `/cometchat` — works for every supported framework, on web, mobile, and native.
6
6
 
7
7
  ## Install
8
8
 
9
- **Web (React, Next.js, React Router, Astro):**
10
9
  ```bash
11
10
  npx @cometchat/skills add
12
11
  ```
13
12
 
14
- **React Native (Expo, bare RN):**
13
+ That's it — one command for every supported framework. The installer detects what you're working with (React, Next.js, React Router, Astro, Expo, bare React Native, Angular, native Android, Flutter, or native iOS) from your project and installs the right skills.
14
+
15
+ Override detection if needed:
16
+
15
17
  ```bash
16
- npx @cometchat/skills-native add
18
+ npx @cometchat/skills add --family web # React / Next.js / React Router / Astro
19
+ npx @cometchat/skills add --family native # Expo / bare RN
20
+ npx @cometchat/skills add --family angular # Angular 12-15
21
+ npx @cometchat/skills add --family android # Native Android (V5 stable + V6 beta)
22
+ npx @cometchat/skills add --family flutter # Flutter (V5 stable + V6 beta)
23
+ npx @cometchat/skills add --family ios # Native iOS (V5 stable)
24
+ npx @cometchat/skills add --family all # install every published skill
17
25
  ```
18
26
 
19
- Both packages ship the same `cometchat` dispatcher install whichever matches your project, or both for a monorepo with web + native.
27
+ Supported IDEs: Claude Code (default), Cursor, Kiro, VS Code Copilot, Replit Agent. Use `--ide <name>` to target a specific one, or `--ide all`. Replit users: skills land in `.agents/skills/` automatically when you pass `--ide replit`.
20
28
 
21
- Supported IDEs: Claude Code (default), Cursor, Kiro, VS Code Copilot. Use `--ide <name>` to target a specific one, or `--ide all`.
29
+ > **Migrating from v3?** `npx @cometchat/skills-native add` still works (with a deprecation notice). New projects should use the unified command.
22
30
 
23
31
  Then in your IDE:
24
32
 
@@ -28,12 +36,12 @@ Then in your IDE:
28
36
 
29
37
  ## What happens
30
38
 
31
- 1. **Detects** your framework (React / Next.js / React Router / Astro / Expo / bare React Native), router, env prefix, existing auth system
39
+ 1. **Detects** your framework (React / Next.js / React Router / Astro / Expo / bare React Native / Angular / Android / Flutter / iOS), router, env prefix, existing auth system
32
40
  2. **Onboards** you to CometChat in the terminal — no browser round-trip. Signup, login, app creation all via the CLI.
33
- 3. **Asks** what you're building (marketplace, SaaS, messaging, support, social, or just exploring) and **where** chat should live in your project — it reads your routes/screens, nav, and components before proposing a placement that fits (route+drawer for web, stack/tab/modal/bottom-sheet for RN)
41
+ 3. **Asks** what you're building (marketplace, SaaS, messaging, support, social, or just exploring) and **where** chat should live in your project — it reads your routes/screens, nav, and components before proposing a placement that fits (route+drawer for web, stack/tab/modal/bottom-sheet for RN, route/modal for Angular, Activity/Fragment for Android, navigation controller for iOS, route/modal sheet for Flutter)
34
42
  4. **Shows the plan** — exactly which files it will create, which it will modify, and which it will not touch — and waits for your approval
35
43
  5. **Writes** the provider, integration components, and route/screen/trigger wiring
36
- 6. **Saves** `.env` with the correct framework prefix (`VITE_` / `NEXT_PUBLIC_` / `PUBLIC_` / `EXPO_PUBLIC_` / bare for `react-native`) and records your choices in `.cometchat/config.json`
44
+ 6. **Saves** credentials with the correct convention for your framework (`.env` with `VITE_` / `NEXT_PUBLIC_` / `PUBLIC_` / `EXPO_PUBLIC_` prefix on web/RN; `src/environments/environment.ts` on Angular; `local.properties` + `BuildConfig` on Android; `Secrets.swift` / `.xcconfig` on iOS; Dart const file or `--dart-define` on Flutter) and records your choices in `.cometchat/config.json`
37
45
 
38
46
  No templates, no experiences to pick — the agent writes real code that fits your app.
39
47
 
@@ -45,10 +53,12 @@ No templates, no experiences to pick — the agent writes real code that fits yo
45
53
  | Next.js (App Router + Pages Router) | ✅ (`@cometchat/skills`) |
46
54
  | React Router v6 / v7 | ✅ (`@cometchat/skills`) |
47
55
  | Astro (React islands) | ✅ (`@cometchat/skills`) |
48
- | Expo (managed + Expo Router) | ✅ (`@cometchat/skills-native`) |
49
- | Bare React Native (CLI) | ✅ (`@cometchat/skills-native`) |
50
- | Flutter | 🔜 Coming soon |
51
- | Android / iOS | 🔜 Coming soon |
56
+ | Expo (managed + Expo Router) | ✅ (`@cometchat/skills`) |
57
+ | Bare React Native (CLI) | ✅ (`@cometchat/skills`) |
58
+ | Angular 12-15 | (`@cometchat/skills`) |
59
+ | Android (V5 stable + V6 beta) | (`@cometchat/skills`) |
60
+ | Flutter (V5 stable + V6 beta) | ✅ (`@cometchat/skills`) |
61
+ | iOS (V5 stable) | ✅ (`@cometchat/skills`) |
52
62
 
53
63
  ## After the first integration
54
64
 
@@ -57,11 +67,13 @@ Re-run `/cometchat` anytime to pick from the iteration menu:
57
67
  - **Customize look & feel** — theme presets (slack / whatsapp / imessage / discord / notion) or your own brand color
58
68
  - **Add a feature** — 40+ features including calls, reactions, polls, AI smart replies, file sharing, presence
59
69
  - **Customize a component** — custom message bubbles, headers, composer actions, empty/loading states
60
- - **Add a floating widget** — overlay chat button + drawer on top of your existing app
70
+ - **Add another placement** — floating widget (web), modal / bottom sheet / extra tab (RN)
61
71
  - **Set up production auth** — replace the dev Auth Key with a server-side token endpoint
62
72
  - **Set up user management** — server endpoints for creating/updating/deleting CometChat users
63
73
  - **Run diagnostics** — verify, drift detection, symptom-to-cause lookup
64
74
 
75
+ React Native projects also get **Set up push notifications** (APNs + FCM end-to-end), **Set up testing** (Jest + RNTL + Detox/Maestro), and **Troubleshoot an issue** (Metro cache, pod install, privacy manifest) in the menu.
76
+
65
77
  ## Recommended: CometChat Docs MCP
66
78
 
67
79
  For deeper component customization (custom views, SDK events, request builders), install the docs MCP:
@@ -93,11 +105,17 @@ npx @cometchat/skills-cli auth signup # create account, all in terminal
93
105
  npx @cometchat/skills-cli auth login # sign in (masked password)
94
106
  npx @cometchat/skills-cli auth status # check current session
95
107
 
96
- # App provisioning
108
+ # App provisioning — web example
97
109
  npx @cometchat/skills-cli provision list # list apps on your account
98
110
  npx @cometchat/skills-cli provision setup \
99
111
  --name my-chat --region us --industry saas_businesses \
100
- --framework reactjs # create app + write .env + save config
112
+ --framework reactjs # create app + write .env (VITE_ prefix) + save config
113
+
114
+ # App provisioning — React Native example (Expo or bare RN)
115
+ npx @cometchat/skills-cli provision setup \
116
+ --name my-rn-chat --region us --industry online_marketplaces \
117
+ --framework expo # writes EXPO_PUBLIC_* env vars
118
+ # Use --framework react-native for bare RN (no env prefix; pair with react-native-dotenv)
101
119
 
102
120
  # Project introspection
103
121
  npx @cometchat/skills-cli detect # framework, router, env prefix