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 20d 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.
- 20d ago Changed df7b0f0a3dab
- 2mo 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 (184 stars, last pushed 21d 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.
cometchat-security compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cometchat-securitycometchat/cometchat-skills | Skill | 184 | 21d ago | MIT | A | 153 | Claude Code |
| cqrs-implementationwshobson/agents | Skill | 43k | 2d ago | MIT | A | 35 | Claude Code |
| microservices-patternswshobson/agents | Skill | 43k | 2d ago | MIT | A | 38 | Claude Code |
| durable-objectsfcakyon/claude-codex-settings | Skill | 1.2k | yesterday | Apache-2.0 | A | 22 | Claude Code |
| diagnose-backend-bugQoderAI/better-harness | Skill | 2.5k | 23d ago | MIT | A | 87 | Claude Code, Codex |
| create-slack-appslackapi/slack-skills-plugin | Skill | 177 | yesterday | MIT | A | 101 | Claude Code |
| integratesuboss87/FDEOps | Skill | 772 | today | MIT | A | 45 | Claude Code, Codex |