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-ios-troubleshootinggit 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-ios-troubleshooting)<a href="https://agentmods.dev/skills/cometchat/cometchat-skills/cometchat-ios-troubleshooting"><img src="https://agentmods.dev/badge/skills/cometchat/cometchat-skills/cometchat-ios-troubleshooting/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-ios-troubleshooting"><img src="https://agentmods.dev/badge/skills/cometchat/cometchat-skills/cometchat-ios-troubleshooting.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.00099 | $0.01286 |
| Opus 5.5 | $0.00040 | $0.00514 |
| Sonnet 5.5 | $0.00020 | $0.00257 |
| Haiku 4.5 | $0.00010 | $0.00129 |
Grade A, and why
cometchat-ios-troubleshooting 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 22d 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 — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ground truth:
CometChatUIKitSwift5.2.3 +CometChatSDK4.1.10 (symbols verified vscatalogs/ios-v5.json); signatures FETCHED viacometchat-ios-core/references/docs-map.md; the invariants below (init→login order, credentials flow, SPM-only) areRULES.md+cometchat-ios-core. This diagnostics catalog is cross-checked against the live{DOCS_BASE}/ui-kit/ios/troubleshooting.mdpage (base + paths incometchat-ios-core/references/docs-map.md), and adds the host-side/runtime symptoms it doesn't cover.
Companion skills (read first)
cometchat-ios-core— the correct init→login→render order, theSecrets.xcconfig→Info.plist→Bundle.maincredential flow, and the SwiftUI launch hook the fixes below restore.
Use this skill when
An iOS CometChat integration compiles but misbehaves at runtime: a screen that never fills, login that does nothing, or empty data.
Start here — iOS fails SILENTLY, on ORDER and CREDENTIALS
The two dominant causes of "the screen never populates":
login()was called beforeinitFromSettingsresolved. Both are async and must COMPLETE in order; login-before-init fails with no crash and no visible error — just a screen that never loads (cometchat-ios-core).- Credentials came through as the literal
$(COMETCHAT_APP_ID). TheSecrets.xcconfig→ attach-to-configs → declare-in-Info.plist → read-via-Bundle.mainchain has four steps; miss one and you init with the literal placeholder, which then fails auth.
Symptom → cause → fix
| Symptom | Likely cause | Fix |
|---|---|---|
| Screen never populates, no error | login before init resolved |
Chain them: call login only inside the init completion (cometchat-ios-core references/swiftui.md) |
| Auth fails immediately | Wrong Region, or creds read as $(...) |
Region must match the dashboard app; verify Bundle.main returns the value, not the literal $( |
Values are the literal $(...) |
xcconfig not attached, or Info.plist key missing |
Attach Secrets.xcconfig to the build configs AND declare each key in Info.plist (references/setup-credentials.md §2-§3) |
SPM won't resolve / app crashes at launch with Library not loaded: @rpath/CometChatCallsSDK.framework |
a hand-added exact CometChatSDK pin fights the kit's own from: "4.1.10", or the kit is 5.2.0 to 5.2.2 (launch crash without the Calls SDK) |
Depend on CometChatUIKitSwift alone, Up to Next Major from 5.2.3; remove the Chat SDK pin (cometchat-ios-core Install) |
| Build fails after adding a Podfile | Tried CocoaPods | SPM only — a Podfile is a detection signal, not an instruction; remove the pod integration |
| Conversations empty | New app has no conversations, or wrong scope | Send a first message; check the request scope |
login "user not found" |
UID does not exist in the app | Use a real UID (Dashboard → Users; fresh apps seed cometchat-uid-1) — never a guessed superhero* |
| Calls fail / no permission prompt | Missing usage-description strings or VoIP entitlement | Add NSCameraUsageDescription + NSMicrophoneUsageDescription; enable the VoIP entitlement (cometchat-ios-push/-calls) |
| Works in dev, fails in release | Auth Key stripped for release but still using login(uid:) |
Switch to login(authToken:) with a server token (cometchat-ios-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.
- 22d ago Changed d2f4bcf67aef
- 2mo ago Changed · -958 lines · +68 tokens per session scan C → A 69606c17c5c0
- 3mo ago First seen · 1,004 lines · 31 tokens per session scan C b7a5fcf531ed
cometchat-ios-troubleshooting is a skill published in the GitHub repository cometchat/cometchat-skills (184 stars, last pushed 22d ago), licensed MIT. It adds 99 tokens to every session and 1,286 once invoked, about $0.0004 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-03.
cometchat-ios-troubleshooting compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cometchat-ios-troubleshootingcometchat/cometchat-skills | Skill | 184 | 22d ago | MIT | A | 99 | Claude Code |
| firebase-crashlyticsevanca/flutter-ai-rules | Skill | 678 | 23d ago | MIT | A | 34 | Claude Code |
| flutter-errorsevanca/flutter-ai-rules | Skill | 678 | 23d ago | MIT | A | 34 | Claude Code |
| wechat-devtoolsWaterTian/wechat-devtools-mcp | Skill | 175 | 5d ago | MIT | A | 24 | Claude Code |
| ios-ettrace-profilerXopoko/build-swift-apps | Skill | 45 | 9d ago | MIT | A | 35 | Claude Code, Codex |
| ios-memgraph-inspectorXopoko/build-swift-apps | Skill | 45 | 9d ago | MIT | A | 42 | Claude Code, Codex |
| tuist-generation-doctorXopoko/build-swift-apps | Skill | 45 | 9d ago | MIT | A | 40 | Claude Code, Codex |