ronjunevaldoz/kmp-agent-skills/kmp-crash-reporting
Claude Code and agent skill by ronjunevaldoz/kmp-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Crash reporting for Kotlin Multiplatform apps — Firebase Crashlytics on Android/iOS, Sentry as a cross-platform alternative, custom non-fatal event recording, and breadcrumb logging. Covers: logger breadcrumb bridges, symbolication setup for Kotlin/Native dSYMs, and a CrashReporter expect/actual interface that keeps commonMain free of platform SDKs. Does NOT cover general structured logging (see logging skill) or app analytics/events (see analytics skill).
Install
npx vskill@latest install ronjunevaldoz/kmp-agent-skills/kmp-crash-reportingSKILL.md
The same SKILL.md was published earlier as ronjunevaldoz/kmp-agent-skills/kmp-crash-reporting.
When to Use This Skill
Use this skill when:
- You need crash reports from production Android and iOS builds
- You want non-fatal exception tracking (e.g. caught errors that degrade the experience)
- You need breadcrumb logs attached to crash reports for context
- You are setting up dSYM upload for Kotlin/Native crash symbolication
Do NOT use this skill when:
- You only need local debug logging — use
kmp-logging - You need user behaviour analytics — use
kmp-analytics
Trigger keywords: crash reporting, crashlytics, firebase crashes, sentry, non-fatal error, symbolication, dSYM, breadcrumb bridge, crash handler, crash analytics, crash tracking, crash, exception handling, error reporting, track errors, exception tracking, app crash, error tracking, report errors, debug crashes, crash diagnostics.
Freshness rule: Firebase Crashlytics and Sentry SDKs update frequently. Recheck the Firebase BoM and the Sentry KMP SDK changelog before adding or updating dependencies. Keep breadcrumb bridges aligned with the logger facade the project actually uses.
Recommendation First
Default to Firebase Crashlytics + a breadcrumb bridge for apps already using Firebase. Use Sentry KMP if you need a single SDK on Android, iOS, and Desktop without Firebase.
The pattern is the same for both providers:
- Define a
CrashReporterinterface incommonMain - Implement it per platform using the native SDK
- Wire through Koin — inject into the root
App()and your error boundaries - Route your logger wrapper to the crash reporter so logs appear as breadcrumbs
Firebase Crashlytics Setup
libs.versions.toml
Android build.gradle.kts
Android actual
iOS actual (via FirebaseCrashlytics CocoaPods / SPM)
Sentry KMP Alternative
For cross-platform including Desktop, use io.sentry:sentry-kotlin-multiplatform:
Logger Breadcrumb Bridge
Route your logger wrapper to the crash reporter so every log becomes a breadcrumb:
Symbolication (Kotlin/Native dSYMs)
Kotlin/Native crashes on iOS show mangled frames without dSYM upload.
Crashlytics: add the dSYM upload script to your Xcode build phases:
And pass the Kotlin/Native dSYM directory:
Sentry: use the Sentry Gradle plugin:
Koin Wiring
Initialize the crash SDK before Koin in Application.onCreate() / application(_:didFinishLaunchingWithOptions:).
Testing
Common Anti-Patterns
- Initializing Crashlytics/Sentry after Koin — the crash SDK must be the first thing
initialized in Application.onCreate(). A crash during Koin startup would be invisible otherwise.
- Recording every caught exception as a crash — this floods your crash dashboard. Only
record exceptions that indicate real errors; use recordNonFatal for expected degraded states.
- Leaking PII into crash context — never pass email, name, phone, or tokens as
context
keys. Use opaque IDs (userId, sessionId) only.
- Skipping dSYM upload — Kotlin/Native crashes are unreadable without dSYM symbolication.
Set up the upload script before shipping to production.
- Using `FirebaseCrashlytics` directly in commonMain — Firebase SDK is Android/iOS only.
Always route through the CrashReporter interface.
Related Skills
kmp-logging— structured logging; wire the logger wrapper into the breadcrumb bridgekmp-analytics— event tracking; crash reporting is about exceptions, not behaviourkmp-expect-actual— alternative approach if you preferexpect classover interface injectionkmp-dependency-injection— Koin wiring forCrashReporterbinding per platform
Output Style
When asked about crash reporting, respond in this order:
- recommendation (Crashlytics vs Sentry — ask if Firebase is already in the project)
- the
CrashReporterinterface in commonMain - Android and iOS actuals (shortest viable snippet)
- logger breadcrumb bridge integration
- dSYM symbolication reminder
Lead with the interface — never put SDK imports in commonMain code.
Changelog
| Date | Change | |
|---|---|---|
| 2026-06-21 | Initial release. |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/kmp-crash-reporting/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ronjunevaldoz/kmp-agent-skills/kmp-crash-reporting)