@cometchat/skills 3.0.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.
- package/LICENSE +21 -0
- package/README.md +44 -17
- package/bin/install.js +389 -43
- package/package.json +19 -9
- package/skills/cometchat/SKILL.md +1066 -265
- package/skills/cometchat-android-v5/SKILL.md +120 -0
- package/skills/cometchat-android-v5-components/SKILL.md +430 -0
- package/skills/cometchat-android-v5-core/SKILL.md +468 -0
- package/skills/cometchat-android-v5-customization/SKILL.md +305 -0
- package/skills/cometchat-android-v5-extensions/SKILL.md +124 -0
- package/skills/cometchat-android-v5-features/SKILL.md +130 -0
- package/skills/cometchat-android-v5-placement/SKILL.md +276 -0
- package/skills/cometchat-android-v5-production/SKILL.md +94 -0
- package/skills/cometchat-android-v5-push/SKILL.md +620 -0
- package/skills/cometchat-android-v5-testing/SKILL.md +187 -0
- package/skills/cometchat-android-v5-theming/SKILL.md +166 -0
- package/skills/cometchat-android-v5-troubleshooting/SKILL.md +73 -0
- package/skills/cometchat-android-v6/SKILL.md +107 -0
- package/skills/cometchat-android-v6-builder-settings/SKILL.md +145 -0
- package/skills/cometchat-android-v6-compose-components/SKILL.md +202 -0
- package/skills/cometchat-android-v6-compose-customization/SKILL.md +280 -0
- package/skills/cometchat-android-v6-compose-placement/SKILL.md +213 -0
- package/skills/cometchat-android-v6-compose-theming/SKILL.md +224 -0
- package/skills/cometchat-android-v6-core/SKILL.md +354 -0
- package/skills/cometchat-android-v6-events/SKILL.md +212 -0
- package/skills/cometchat-android-v6-extensions/SKILL.md +191 -0
- package/skills/cometchat-android-v6-features/SKILL.md +130 -0
- package/skills/cometchat-android-v6-kotlin-components/SKILL.md +197 -0
- package/skills/cometchat-android-v6-kotlin-customization/SKILL.md +268 -0
- package/skills/cometchat-android-v6-kotlin-placement/SKILL.md +248 -0
- package/skills/cometchat-android-v6-kotlin-theming/SKILL.md +202 -0
- package/skills/cometchat-android-v6-production/SKILL.md +187 -0
- package/skills/cometchat-android-v6-push/SKILL.md +274 -0
- package/skills/cometchat-android-v6-testing/SKILL.md +279 -0
- package/skills/cometchat-android-v6-troubleshooting/SKILL.md +249 -0
- package/skills/cometchat-angular-components/SKILL.md +706 -0
- package/skills/cometchat-angular-core/SKILL.md +444 -0
- package/skills/cometchat-angular-customization/SKILL.md +424 -0
- package/skills/cometchat-angular-features/SKILL.md +447 -0
- package/skills/cometchat-angular-patterns/SKILL.md +447 -0
- package/skills/cometchat-angular-placement/SKILL.md +685 -0
- package/skills/cometchat-angular-production/SKILL.md +415 -0
- package/skills/cometchat-angular-theming/SKILL.md +365 -0
- package/skills/cometchat-angular-troubleshooting/SKILL.md +329 -0
- package/skills/cometchat-astro-patterns/SKILL.md +3 -3
- package/skills/cometchat-components/SKILL.md +11 -0
- package/skills/cometchat-core/SKILL.md +11 -6
- package/skills/cometchat-customization/references/component-catalog.md +1 -1
- package/skills/cometchat-features/SKILL.md +176 -108
- package/skills/cometchat-flutter-v5/SKILL.md +167 -0
- package/skills/cometchat-flutter-v5-calls/SKILL.md +192 -0
- package/skills/cometchat-flutter-v5-conversations/SKILL.md +117 -0
- package/skills/cometchat-flutter-v5-core/SKILL.md +221 -0
- package/skills/cometchat-flutter-v5-customization/SKILL.md +227 -0
- package/skills/cometchat-flutter-v5-events/SKILL.md +155 -0
- package/skills/cometchat-flutter-v5-messages/SKILL.md +258 -0
- package/skills/cometchat-flutter-v5-production/SKILL.md +207 -0
- package/skills/cometchat-flutter-v5-push/SKILL.md +284 -0
- package/skills/cometchat-flutter-v5-theming/SKILL.md +160 -0
- package/skills/cometchat-flutter-v5-troubleshooting/SKILL.md +129 -0
- package/skills/cometchat-flutter-v5-users-groups/SKILL.md +151 -0
- package/skills/cometchat-flutter-v6/SKILL.md +445 -0
- package/skills/cometchat-flutter-v6-calls/SKILL.md +333 -0
- package/skills/cometchat-flutter-v6-components/SKILL.md +365 -0
- package/skills/cometchat-flutter-v6-conversations/SKILL.md +210 -0
- package/skills/cometchat-flutter-v6-core/SKILL.md +305 -0
- package/skills/cometchat-flutter-v6-customization/SKILL.md +666 -0
- package/skills/cometchat-flutter-v6-events/SKILL.md +216 -0
- package/skills/cometchat-flutter-v6-features/SKILL.md +406 -0
- package/skills/cometchat-flutter-v6-messages/SKILL.md +333 -0
- package/skills/cometchat-flutter-v6-migration/SKILL.md +381 -0
- package/skills/cometchat-flutter-v6-placement/SKILL.md +398 -0
- package/skills/cometchat-flutter-v6-production/SKILL.md +632 -0
- package/skills/cometchat-flutter-v6-theming/SKILL.md +260 -0
- package/skills/cometchat-flutter-v6-troubleshooting/SKILL.md +726 -0
- package/skills/cometchat-flutter-v6-users-groups/SKILL.md +216 -0
- package/skills/cometchat-ios/SKILL.md +323 -0
- package/skills/cometchat-ios-components/SKILL.md +651 -0
- package/skills/cometchat-ios-core/SKILL.md +822 -0
- package/skills/cometchat-ios-customization/SKILL.md +825 -0
- package/skills/cometchat-ios-features/SKILL.md +725 -0
- package/skills/cometchat-ios-placement/SKILL.md +750 -0
- package/skills/cometchat-ios-production/SKILL.md +730 -0
- package/skills/cometchat-ios-push/SKILL.md +582 -0
- package/skills/cometchat-ios-theming/SKILL.md +631 -0
- package/skills/cometchat-ios-troubleshooting/SKILL.md +983 -0
- package/skills/cometchat-native-bare-patterns/SKILL.md +470 -0
- package/skills/cometchat-native-components/SKILL.md +594 -0
- package/skills/cometchat-native-core/SKILL.md +407 -0
- package/skills/cometchat-native-customization/SKILL.md +594 -0
- package/skills/cometchat-native-expo-patterns/SKILL.md +485 -0
- package/skills/cometchat-native-features/SKILL.md +608 -0
- package/skills/cometchat-native-placement/SKILL.md +500 -0
- package/skills/cometchat-native-production/SKILL.md +694 -0
- package/skills/cometchat-native-push/SKILL.md +593 -0
- package/skills/cometchat-native-testing/SKILL.md +583 -0
- package/skills/cometchat-native-theming/SKILL.md +656 -0
- package/skills/cometchat-native-troubleshooting/SKILL.md +433 -0
- package/skills/cometchat-nextjs-patterns/SKILL.md +5 -5
- package/skills/cometchat-production/SKILL.md +60 -0
- package/skills/cometchat-react-router-patterns/SKILL.md +23 -21
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CometChat
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# cometchat-skills
|
|
2
2
|
|
|
3
|
-
**Add CometChat to any React 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
|
-
|
|
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
|
|
|
@@ -10,7 +10,23 @@ v3 takes an AI-first approach: your agent has a short conversation with you to u
|
|
|
10
10
|
npx @cometchat/skills add
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
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
|
+
|
|
17
|
+
```bash
|
|
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
|
|
25
|
+
```
|
|
26
|
+
|
|
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`.
|
|
28
|
+
|
|
29
|
+
> **Migrating from v3?** `npx @cometchat/skills-native add` still works (with a deprecation notice). New projects should use the unified command.
|
|
14
30
|
|
|
15
31
|
Then in your IDE:
|
|
16
32
|
|
|
@@ -20,12 +36,12 @@ Then in your IDE:
|
|
|
20
36
|
|
|
21
37
|
## What happens
|
|
22
38
|
|
|
23
|
-
1. **Detects** your framework (React / Next.js / React Router / Astro), 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
|
|
24
40
|
2. **Onboards** you to CometChat in the terminal — no browser round-trip. Signup, login, app creation all via the CLI.
|
|
25
|
-
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, nav, and components before proposing a placement
|
|
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)
|
|
26
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
|
|
27
|
-
5. **Writes** the provider, integration components, and route/trigger wiring
|
|
28
|
-
6. **Saves**
|
|
43
|
+
5. **Writes** the provider, integration components, and route/screen/trigger wiring
|
|
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`
|
|
29
45
|
|
|
30
46
|
No templates, no experiences to pick — the agent writes real code that fits your app.
|
|
31
47
|
|
|
@@ -33,13 +49,16 @@ No templates, no experiences to pick — the agent writes real code that fits yo
|
|
|
33
49
|
|
|
34
50
|
| Framework | Status |
|
|
35
51
|
|---|---|
|
|
36
|
-
| React.js / Vite / CRA | ✅ |
|
|
37
|
-
| Next.js (App Router + Pages Router) | ✅ |
|
|
38
|
-
| React Router v6 / v7 | ✅ |
|
|
39
|
-
| Astro (React islands) | ✅ |
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
52
|
+
| React.js / Vite / CRA | ✅ (`@cometchat/skills`) |
|
|
53
|
+
| Next.js (App Router + Pages Router) | ✅ (`@cometchat/skills`) |
|
|
54
|
+
| React Router v6 / v7 | ✅ (`@cometchat/skills`) |
|
|
55
|
+
| Astro (React islands) | ✅ (`@cometchat/skills`) |
|
|
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`) |
|
|
43
62
|
|
|
44
63
|
## After the first integration
|
|
45
64
|
|
|
@@ -48,11 +67,13 @@ Re-run `/cometchat` anytime to pick from the iteration menu:
|
|
|
48
67
|
- **Customize look & feel** — theme presets (slack / whatsapp / imessage / discord / notion) or your own brand color
|
|
49
68
|
- **Add a feature** — 40+ features including calls, reactions, polls, AI smart replies, file sharing, presence
|
|
50
69
|
- **Customize a component** — custom message bubbles, headers, composer actions, empty/loading states
|
|
51
|
-
- **Add
|
|
70
|
+
- **Add another placement** — floating widget (web), modal / bottom sheet / extra tab (RN)
|
|
52
71
|
- **Set up production auth** — replace the dev Auth Key with a server-side token endpoint
|
|
53
72
|
- **Set up user management** — server endpoints for creating/updating/deleting CometChat users
|
|
54
73
|
- **Run diagnostics** — verify, drift detection, symptom-to-cause lookup
|
|
55
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
|
+
|
|
56
77
|
## Recommended: CometChat Docs MCP
|
|
57
78
|
|
|
58
79
|
For deeper component customization (custom views, SDK events, request builders), install the docs MCP:
|
|
@@ -84,11 +105,17 @@ npx @cometchat/skills-cli auth signup # create account, all in terminal
|
|
|
84
105
|
npx @cometchat/skills-cli auth login # sign in (masked password)
|
|
85
106
|
npx @cometchat/skills-cli auth status # check current session
|
|
86
107
|
|
|
87
|
-
# App provisioning
|
|
108
|
+
# App provisioning — web example
|
|
88
109
|
npx @cometchat/skills-cli provision list # list apps on your account
|
|
89
110
|
npx @cometchat/skills-cli provision setup \
|
|
90
111
|
--name my-chat --region us --industry saas_businesses \
|
|
91
|
-
--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)
|
|
92
119
|
|
|
93
120
|
# Project introspection
|
|
94
121
|
npx @cometchat/skills-cli detect # framework, router, env prefix
|