@cometchat/skills 3.1.0 → 4.1.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 (101) hide show
  1. package/README.md +75 -17
  2. package/bin/install.js +523 -43
  3. package/package.json +17 -8
  4. package/skills/cometchat/SKILL.md +850 -109
  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-placement/SKILL.md +28 -0
  100. package/skills/cometchat-react-patterns/SKILL.md +55 -7
  101. package/skills/cometchat-react-router-patterns/SKILL.md +23 -21
package/README.md CHANGED
@@ -1,24 +1,72 @@
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, then opens an interactive picker so you can choose which AI agents to install for — Claude Code, Cursor, Codex, Cline, Kiro, Replit Agent, and [50+ more](https://github.com/vercel-labs/skills) all in one pass.
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
+ ### Two install shapes
28
+
29
+ **Base install (default, recommended)** — `npx @cometchat/skills add` writes only the cross-family skills (the `cometchat` dispatcher and friends). Smallest initial install. After it lands, open your project in your IDE and run `/cometchat`:
30
+
31
+ 1. The dispatcher detects your framework (Vite + React → `web`, Expo → `native`, etc.)
32
+ 2. It asks the agent to install family-specific skills on demand via `npx @cometchat/skills add --family <X> --ide <Y>`
33
+ 3. The agent gets the 13 web skills (or 31 android, 28 flutter, etc.) at exactly the moment they're needed
34
+ 4. Integration continues with the full skill set loaded
35
+
36
+ You install once with the multi-agent picker (Claude Code, Cursor, Codex, Cline, Kiro, Replit Agent, [50+ more](https://github.com/vercel-labs/skills)); the dispatcher handles framework-specific expansion as the project actually needs it.
37
+
38
+ **Full family install** — `npx @cometchat/skills add --family <name>` writes the dispatcher + every skill for that family upfront (web=13, android=31, flutter=28, etc.). Use when you know the framework upfront and want all skills present without runtime expansion. Power users + CI smoke tests.
39
+
40
+ ```bash
41
+ # Base install (recommended) — picker + dispatcher routes the rest
42
+ npx @cometchat/skills add
43
+
44
+ # Full family install — power-user / CI flow
45
+ npx @cometchat/skills add --family web # all 13 web skills upfront
46
+ npx @cometchat/skills add --family native # all 13 RN skills upfront
47
+ npx @cometchat/skills add --family android # all 31 Android skills upfront
48
+ # ... etc
49
+ ```
20
50
 
21
- Supported IDEs: Claude Code (default), Cursor, Kiro, VS Code Copilot. Use `--ide <name>` to target a specific one, or `--ide all`.
51
+ ### Direct-write to one IDE (CI / Dockerfile)
52
+
53
+ When stdin isn't a TTY (CI, Docker), or when you pass `--ide <name>`, the picker is skipped and skills are written directly to one IDE's directory. Default is base install; pass `--family <name>` for the full family install.
54
+
55
+ ```bash
56
+ npx @cometchat/skills add --ide claude # base install to .claude/skills/
57
+ npx @cometchat/skills add --ide cursor # base install to .cursor/skills/
58
+ npx @cometchat/skills add --ide kiro # base install to .kiro/skills/
59
+ npx @cometchat/skills add --ide replit # base install to .agents/skills/
60
+ npx @cometchat/skills add --ide copilot # base install to .github/copilot-instructions.md
61
+ npx @cometchat/skills add --ide all # write base install to every supported IDE
62
+ npx @cometchat/skills add --ide claude --family web # full web family install to .claude/skills/
63
+ ```
64
+
65
+ Direct-write supports 10 agents: `claude`, `cursor`, `kiro`, `replit`, `copilot`, `continue`, `cline`, `aider`, `codex`, `gemini`. The interactive picker supports 55+ via the vercel-labs/skills ecosystem.
66
+
67
+ Pass `--no-picker` to force direct-write even in an interactive terminal.
68
+
69
+ > **Migrating from v3?** `npx @cometchat/skills-native add` still works (with a deprecation notice). New projects should use the unified command.
22
70
 
23
71
  Then in your IDE:
24
72
 
@@ -28,12 +76,12 @@ Then in your IDE:
28
76
 
29
77
  ## What happens
30
78
 
31
- 1. **Detects** your framework (React / Next.js / React Router / Astro / Expo / bare React Native), router, env prefix, existing auth system
79
+ 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
80
  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)
81
+ 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
82
  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
83
  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`
84
+ 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
85
 
38
86
  No templates, no experiences to pick — the agent writes real code that fits your app.
39
87
 
@@ -45,10 +93,12 @@ No templates, no experiences to pick — the agent writes real code that fits yo
45
93
  | Next.js (App Router + Pages Router) | ✅ (`@cometchat/skills`) |
46
94
  | React Router v6 / v7 | ✅ (`@cometchat/skills`) |
47
95
  | 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 |
96
+ | Expo (managed + Expo Router) | ✅ (`@cometchat/skills`) |
97
+ | Bare React Native (CLI) | ✅ (`@cometchat/skills`) |
98
+ | Angular 12-15 | (`@cometchat/skills`) |
99
+ | Android (V5 stable + V6 beta) | (`@cometchat/skills`) |
100
+ | Flutter (V5 stable + V6 beta) | ✅ (`@cometchat/skills`) |
101
+ | iOS (V5 stable) | ✅ (`@cometchat/skills`) |
52
102
 
53
103
  ## After the first integration
54
104
 
@@ -57,11 +107,13 @@ Re-run `/cometchat` anytime to pick from the iteration menu:
57
107
  - **Customize look & feel** — theme presets (slack / whatsapp / imessage / discord / notion) or your own brand color
58
108
  - **Add a feature** — 40+ features including calls, reactions, polls, AI smart replies, file sharing, presence
59
109
  - **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
110
+ - **Add another placement** — floating widget (web), modal / bottom sheet / extra tab (RN)
61
111
  - **Set up production auth** — replace the dev Auth Key with a server-side token endpoint
62
112
  - **Set up user management** — server endpoints for creating/updating/deleting CometChat users
63
113
  - **Run diagnostics** — verify, drift detection, symptom-to-cause lookup
64
114
 
115
+ 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.
116
+
65
117
  ## Recommended: CometChat Docs MCP
66
118
 
67
119
  For deeper component customization (custom views, SDK events, request builders), install the docs MCP:
@@ -93,11 +145,17 @@ npx @cometchat/skills-cli auth signup # create account, all in terminal
93
145
  npx @cometchat/skills-cli auth login # sign in (masked password)
94
146
  npx @cometchat/skills-cli auth status # check current session
95
147
 
96
- # App provisioning
148
+ # App provisioning — web example
97
149
  npx @cometchat/skills-cli provision list # list apps on your account
98
150
  npx @cometchat/skills-cli provision setup \
99
151
  --name my-chat --region us --industry saas_businesses \
100
- --framework reactjs # create app + write .env + save config
152
+ --framework reactjs # create app + write .env (VITE_ prefix) + save config
153
+
154
+ # App provisioning — React Native example (Expo or bare RN)
155
+ npx @cometchat/skills-cli provision setup \
156
+ --name my-rn-chat --region us --industry online_marketplaces \
157
+ --framework expo # writes EXPO_PUBLIC_* env vars
158
+ # Use --framework react-native for bare RN (no env prefix; pair with react-native-dotenv)
101
159
 
102
160
  # Project introspection
103
161
  npx @cometchat/skills-cli detect # framework, router, env prefix