Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cometchat/cometchat-skills --skill cometchat-securitygit clone --depth 1 https://github.com/cometchat/cometchat-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cometchat/cometchat-skills/cometchat-security)<a href="https://agentmods.dev/skills/cometchat/cometchat-skills/cometchat-security"><img src="https://agentmods.dev/badge/skills/cometchat/cometchat-skills/cometchat-security/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cometchat/cometchat-skills/cometchat-security"><img src="https://agentmods.dev/badge/skills/cometchat/cometchat-skills/cometchat-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00153 | $0.01979 |
| Opus 5.5 | $0.00061 | $0.00792 |
| Sonnet 5.5 | $0.00031 | $0.00396 |
| Haiku 4.5 | $0.00015 | $0.00198 |
Grade A, and why
cometchat-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ground truth: every REST shape here is FETCHED from the live docs —
{DOCS_BASE}/rest-api/auth-tokens,/rest-api/roles,/rest-api/rbac-overview,/rest-api/users,/rest-api/group-members(DOCS_BASE = https://www.cometchat.com/docs; append.mdfor the raw twin). CometChat is NOT an identity provider — it does not do SAML/OIDC for your end users. "SSO with CometChat" means your IdP authenticates the user, then your server mints a CometChat auth token for that user's UID. Verify signatures against the docs; never invent an endpoint.
Use this skill when
Taking a CometChat integration through an enterprise security review: SSO with your IdP, role-based permissions, session revocation, multi-tenant isolation, or "make our chat secure/compliant to ship." Client-side login wiring itself lives in cometchat-<family>-core / -production; this skill owns the server + access-control model those depend on.
The auth model (get this right first)
Three credentials, three homes — mixing them up is the #1 security defect:
| Credential | Who holds it | Purpose |
|---|---|---|
| Auth Key | client, dev only | quick login(uid) in development; can mint a session for ANY user — never ship it |
| Auth token | client, per user | production login with a per-user token — the call is per family (web/Angular/Android/Flutter loginWithAuthToken(token), iOS login(authToken:), React Native login({ authToken })); tied to one UID; revocable |
| REST API Key | server only | mint tokens, manage users/roles; full power — never in a client |
Production login is always auth token, never the Auth Key. Detail + the per-framework client call: cometchat-<family>-production.
SSO / OIDC / SAML — through YOUR IdP
CometChat rides on the identity you already have. The flow is the same whether your IdP is Okta, Auth0, Cognito, Entra ID, Google Workspace, or your own:
- The user signs in through your IdP (SAML/OIDC) — your normal app auth.
- Your backend, on that authenticated session, maps the IdP subject to a CometChat UID (a stable, sanitized id — see
cometchat-migrate-from-*toCometChatIdfor the alpha-dash/≤100/lowercase rules) and, if the user is new, creates it (POST {DOCS_BASE}/rest-api/users,withAuthToken: truereturns a token in the same call). - Your backend mints an auth token:
POST /v3/users/{uid}/auth_tokenswith the REST API Key ({DOCS_BASE}/rest-api/auth-tokens/create). - It returns the token to the client over the authenticated request; the client logs in with it via its per-family call (web/Angular/Android/Flutter
loginWithAuthToken(token), iOSlogin(authToken:), React Nativelogin({ authToken })— seecometchat-<family>-production).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 24d ago First seen · 81 lines · 153 tokens per session scan A 635255914f6b
cometchat-security is a skill published in the GitHub repository cometchat/cometchat-skills (149 stars, last pushed 2d ago), licensed MIT. It adds 153 tokens to every session and 1,979 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.
Other skills, from other repositories
cqrs-implementation
Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.
microservices-patterns
Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.
diagnose-backend-bug
Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records. Use when a service, API, RPC, worker, queue, CLI, or scheduled job bug needs correlation through the project's existing observability route before repair; do…
durable-objects
Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.
api-doc-generator
Generate API documentation from source code, supporting REST APIs, GraphQL, and various documentation formats.
firebase-cloud-functions
Use when calling callable functions (httpsCallable), passing data to server-side logic, handling function errors/timeouts, configuring regions, or testing with the Emulator Suite.