Cometchat Android V6 Builder Settingsのロゴ

Cometchat Android V6 Builder Settings

組織
cometchat
cometchat-android-v6-builder-settings

The CometChat Android v6 settings and session API reference — the assets/cometchat-settings.json file that initFromSettings reads (appId, region, credentials, uiKit toggles), the legacy UIKitSettings builder, and the CometChatUIKit session methods (login, loginWithAuthToken, logout, getLoggedInUser, createUser). Use when configuring init options or wiring auth beyond the core golden path. Triggers: 'cometchat settings json android', 'uikitsettings builder options', 'login with auth token android', 'create a cometchat user from the app', 'enable calling in settings'.

概要

公開者cometchat
リポジトリcometchat-skills
スキル名cometchat-android-v6-builder-settings
スター
109
フォーク
2
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    cometchatがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Cometchat Android V6 Builder Settings」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-android-v6-builder-settings
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cometchat/cometchat-skills.git /tmp/cometchat-skills
mkdir -p .claude/skills
cp -r /tmp/cometchat-skills/skills/cometchat-android-v6-builder-settings .claude/skills/cometchat-android-v6-builder-settings
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCometchat Android V6 Builder Settingsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCometchat Android V6 Builder Settingsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Cometchat Android V6 Builder Settingsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Ground truth: the installed kit source com.cometchat.uikit.core.CometChatUIKit (6.0.5) + the live page /ui-kit/android/methods (init · authentication · logout · create user · message helpers). Symbols verified against catalog android-v6.json. Fetch exact signatures from the methods page; never guess an overload.

Companion skills (read first)

  • cometchat-android-v6-core — owns the DEFAULT path: initFromSettings → login → render, the settings file, and credential handling. Come HERE only when a task needs an option or auth variant beyond that default.

Use this skill when

"what can go in the settings file?", "turn on calling in the settings", "log in with a server-minted auth token instead of the auth key", "create a CometChat user from the app", "check who's logged in", "what does the UIKitSettings builder do?".

Prerequisites & install

Same kit + init as core. Everything here is com.cometchat.uikit.core — no extra dependency.

The settings file (the DEFAULT input to initFromSettings)

app/src/main/assets/cometchat-settings.json — gitignored (it carries the dev Auth Key). Read by CometChatUIKit.initFromSettings(context, callback), which parses it, builds the settings, and persists integrationSource="ai-agent" for telemetry:

json
{
  "appId": "APP_ID",
  "region": "REGION",
  "credentials": { "authKey": "AUTH_KEY" },
  "uiKit": {
    "subscribePresenceForAllUsers": true,
    "enableCalling": false
  }
}
  • appId + region are required — missing either fails with ERR_SETTINGS_INVALID; a missing file fails with ERR_SETTINGS_FILE_NOT_FOUND.
  • credentials.authKey is optional and dev-only — omit it in production builds and log in with a server-minted auth token.
  • uiKit.subscribePresenceForAllUsers defaults to true.
  • uiKit.enableCalling defaults to false. Setting it true makes initFromSettings auto-initialize the Calls SDK — which means the com.cometchat:calls-sdk-android dependency becomes MANDATORY. Without it the app throws NoClassDefFoundError: CometChatCalls$SessionSettingsBuilder from initCometChatCalls during onCreate, before any UI renders (verified on device). The two must always change together (→ cometchat-android-v6-calls).
  • The Chat SDK may read an optional chatSDK section from the same file. It is not required — init succeeds without it. /sdk/android/v5/setup.md documents only the classic programmatic init() + AppSettings, so it will NOT tell you the section's keys; do not send the user there for them.

The legacy UIKitSettings builder (know it, don't default to it)

UIKitSettings.UIKitSettingsBuilder() with .setAppId(...), .setRegion(...), .setAuthKey(...), .setEnableCalling(...), .subscribePresenceForAllUsers(), .build() feeds the classic CometChatUIKit.init(context, settings, callback) overload. It still exists, but it is NOT the default — it skips the integration-source telemetry that initFromSettings persists. Use it only when a project genuinely cannot ship an assets file (e.g. credentials arrive at runtime from your own backend); say so explicitly when you do, and keep credentials out of source either way.

Session / auth methods (CometChatUIKit)

MethodUse
getLoggedInUser(): User?Synchronous guard — non-null means a session already exists; skip login.
login(uid, CallbackListener<User>)Dev/auth-key login for an existing user.
loginWithAuthToken(authToken, CallbackListener<User>)Production login with a server-minted per-user token. Auth Key never ships to the client.
logout(CallbackListener<String>)End the session. Unregister the push token BEFORE this (cometchat-android-v6-push).
createUser(user, CallbackListener<User>)Create a user from the app — dev/prototype only; production should mint users server-side with the REST API.

Ordering never changes: init resolves → (guard) login resolves → chat UI. Re-logging in a different user requires logout first. Full lifecycle detail (where to init, config changes, process death): core/references/lifecycle.md.

Message-helper reference (on the same docs page)

/ui-kit/android/methods also documents date formatting and constructing TextMessage / MediaMessage / CustomMessage for programmatic sends — fetch that section rather than hand-rolling a message object; the SDK types are the Chat SDK's (cometchat-android-v5-sdk / core/references/docs-map.md → SDK section).

Common pitfalls

Committing cometchat-settings.json (leaks the Auth Key) · shipping credentials.authKey in a release build · using the classic init(...) as the default (loses telemetry attribution) · calling login before init's onSuccess (fails silently) · re-logging in without logout · using createUser in production · assuming enableCalling alone adds calling (the Calls SDK artifact is still required) · reading getLoggedInUser() before init.

Verify it works

Compile against the pinned kit (./gradlew :app:assembleDebug # in YOUR app (npm run verify:fences:android-v6 is a pack-repo gate)). On device: with the settings file present, init reports success and login resolves; delete/rename the file → you get ERR_SETTINGS_FILE_NOT_FOUND surfaced as a readable error (not a crash); with enableCalling: true + the Calls artifact, call buttons appear (Views: automatic; Compose: only with hideVoiceCallButton = false, hideVideoCallButton = false on the header — cometchat-android-v6-calls); a release build contains no Auth Key (grep the merged assets). Confirm cometchat-settings.json is in .gitignore.

よくある質問

AIスキル「Cometchat Android V6 Builder Settings」では何ができますか?

The CometChat Android v6 settings and session API reference — the assets/cometchat-settings.json file that initFromSettings reads (appId, region, credentials, uiKit toggles), the legacy UIKitSettings builder, and the CometChatUIKit session methods (login, loginWithAuthToken, logout, getLoggedInUser, createUser). Use when configuring init options or wiring auth beyond the core golden path. Triggers: 'cometchat settings json android', 'uikitsettings builder options', 'login with auth token android', 'create a cometchat user from the app', 'enable calling in settings'.

TypingMindでCometchat Android V6 Builder Settingsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Cometchat Android V6 Builder Settingsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCometchat Android V6 Builder Settingsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-android-v6-builder-settingsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Cometchat Android V6 Builder Settingsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Cometchat Android V6 Builder Settingsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCometchat Android V6 Builder Settingsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Cometchat Android V6 Builder Settings」は無料ですか?

はい。cometchatがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇