
Firebase Crashlytics
- 74.4k installs
- 390 repo stars
- Updated July 27, 2026
- firebase/agent-skills
firebase-crashlytics is a Firebase agent skill that guides setup and SDK usage for crash reporting on Android and iOS platforms.
About
Provides comprehensive Firebase Crashlytics setup and configuration for Android and iOS applications. Covers SDK setup, customizing crash reports with custom keys and logs, setting user identifiers, and reporting non-fatal exceptions. Use when setting up crash reporting for mobile apps.
- Set up Crashlytics SDK for Android and iOS crash reporting
- Add custom keys, custom logs, and user identifiers to crash reports
- Report non-fatal exceptions and access collected crash data
Firebase Crashlytics by the numbers
- 74,427 all-time installs (skills.sh)
- +5,637 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #8 of 610 Debugging skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
firebase-crashlytics capabilities & compatibility
- Capabilities
- crash reporting · custom logging · exception reporting
- Use cases
- debugging
- Platforms
- macOS · Linux
What firebase-crashlytics says it does
Comprehensive guide for Firebase Crashlytics, including provisioning and SDK usage.
npx skills add https://github.com/firebase/agent-skills --skill firebase-crashlyticsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 74.4k |
|---|---|
| repo stars | ★ 390 |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 27, 2026 |
| Repository | firebase/agent-skills ↗ |
How do you set up Firebase Crashlytics on iOS?
Provides comprehensive Firebase Crashlytics setup and configuration for Android and iOS applications. Covers SDK setup, customizing crash reports with custom keys and logs, setting user identifiers,
Who is it for?
Setting up crash reporting for mobile apps, customizing crash data, and monitoring application stability
Skip if: Web-only apps without Firebase mobile SDK integration or teams using non-Firebase crash analytics platforms.
When should I use this skill?
A developer needs to add crash reporting to Android or iOS applications
What you get
Provisioned Crashlytics project, integrated SDK configuration, and accessible production crash reports via Firebase CLI MCP
- Configured Crashlytics SDK
- Custom crash report enhancements
- Non-fatal exception reporting
By the numbers
- Supports 2 mobile platforms: Android and iOS Crashlytics SDK integration
- Firebase CLI accessible via npx -y firebase-tools@latest with bundled MCP server
Files
Crashlytics
This skill provides a complete guide for getting started with Crashlytics on Android or iOS. Crash data collected from client applications can be read using the MCP server in the Firebase CLI.
Prerequisites
Provisioning Crashlytics requires both a Firebase project and a Firebase app, either Android or iOS. To read the data collected by Crashlytics, install the MCP server in the Firebase CLI. See the firebase-basics skill for references.
SDK Setup
To learn how to setup Crashlytics in your application code, choose your platform:
- Android: android_setup.md
- iOS: ios_setup.md
SDK Usage
The SDK provides a number of features to make crash reports more actionable.
- Add custom keys
- Add custom logs
- Set user identifiers
- Report non-fatal exceptions
To learn how to customize crash reports and add additional debugging data, consult the documentation for your platform.
Firebase Crashlytics Android Setup Guide
Important references:
- Refer to the
firebase-basicsskills, particularly those for project and app setup, before proceeding.
Project and App Setup
Before you begin, ensure you have the following. If a google-services.json file is present, then use that Firebase project and app. Otherwise you may need to create them.
- Firebase CLI: Installed and logged in (see
firebase-basics). - Firebase Project: Created via
npx -y firebase-tools@latest projects:create(seefirebase-basics). - Firebase App: Created via
npx -y firebase-tools@latest apps:create <IOS|ANDROID|WEB> <package-name-or-bundle-id>
The google-services.json file must be present in the Android app's module directory. If missing, get the config using the Firebase CLI: npx -y firebase-tools@latest apps:sdkconfig ANDROID <App-ID>.
Add Dependencies to Gradle Build
These changes are made to your Android project's Gradle files.
Project-level build.gradle.kts (<project>/build.gradle.kts)
Add the latest version of the Crashlytics Gradle plugin to the plugins block. Fetch the latest version from the Google Maven repository before adding this.
plugins {
// ... other plugins
id("com.google.firebase.crashlytics") version "<latest_plugin_version>" apply false
}App-level build.gradle.kts (<project>/<app-module>/build.gradle.kts)
1. Add the Crashlytics plugin to the plugins block:
plugins {
// ... other plugins
id("com.google.firebase.crashlytics")
}2. Add the Firebase Crashlytics dependency to the dependencies block. It is recommended to use the Firebase Bill of Materials (BoM) to manage SDK versions. Fetch the latest version from the Google Maven repository before adding this.
dependencies {
// ... other dependencies
// Import the Firebase BoM
implementation(platform("com.google.firebase:firebase-bom:<latest_bom_version>"))
// Add the dependencies for the Crashlytics and Analytics
implementation("com.google.firebase:firebase-crashlytics-ktx")
}Follow up Steps
Optional: Install the NDK SDK to capture native crashes
If your app uses native code (C/C++), or includes a library with native code, you can configure Crashlytics to report native crashes.
App-level build.gradle.kts (<project>/<app-module>/build.gradle.kts)
1. Add the firebase-crashlytics-ndk dependency:
dependencies {
// ... other dependencies
implementation("com.google.firebase:firebase-crashlytics-ndk:18.6.2")
}2. Enable the nativeSymbolUpload flag in your buildTypes configuration. This will automatically upload symbol files for your native code, which are required to symbolicate native crash reports.
android {
// ... other config
buildTypes {
getByName("release") {
// ...
firebaseCrashlytics {
nativeSymbolUploadEnabled = true
}
}
}
}After these changes, Crashlytics will automatically report crashes in your app's native code.
Required: Force a Test Crash
To verify that Crashlytics is correctly installed, you need to force a test crash in the app.
1. Add code to your main activity (e.g., in onCreate) to trigger a crash a few seconds after app startup:
import android.os.Handler
import android.os.Looper
// ... in your Activity's onCreate method or similar startup logic
Handler(Looper.getMainLooper()).postDelayed({
throw RuntimeException("Test Crash") // Force a crash after 3 seconds
}, 3000)2. Run your app on a device or emulator. The app should crash after a short delay.
3. Restart the app. The Crashlytics SDK will send the crash report to Firebase on the next app launch.
4. After a few minutes, the crash should be available in the Firebase console. Go to DevOps & Engagement > Crashlytics to view your dashboard and crash reports.
- If the Firebase MCP server is installed, use the
get_reporttool to check that a crash was received. - As a fallback, visit the Crashlytics dashboard in the Firebase console to see the new crash report.
5. After verifying that Firebase has received the crash report - either using the get_report tool or manually viewing it in the Firebase console - remove the code from step 1 that triggers the crash. This prevents the application from always crashing on start up after a delay.
Optional: Add custom debugging information
Customize reports to help you better understand what's happening in your app and the circumstances around events reported to Crashlytics. See Customize Crash Reports for Android.
Firebase Crashlytics iOS Setup Guide
Important references:
- Refer to the
firebase-basicsskills, particularly those for iOS setup, before proceeding. - Refer to the
xcode-project-setupskills.
Project and App Setup
Use the firebase-tools CLI to set up the project if necessary.
1. Find Bundle ID: Read the Xcode project to find the iOS bundle ID. Check the PRODUCT_BUNDLE_IDENTIFIER value in the .pbxproj file or the Info.plist file. 2. Create Firebase Project: If no project exists, create one: npx -y firebase-tools@latest projects:create <project-id> --display-name="My Awesome App" 3. Create Firebase App: Register the iOS app with the discovered bundle ID: npx -y firebase-tools@latest apps:create IOS <bundle-id> 4. Link the GoogleService-Info.plist file: Use the script in the xcode-project-setup skill to obtain the config and link.
Add Swift Package Dependencies
Install the Crashlytics SDK using the Swift package manager, or the script in the xcode-project-setup skill.
Install the FirebaseCrashlytics package from the https://github.com/firebase/firebase-ios-sdk.git repository.
Initialize Firebase in App Code
Modify the application's entry point to initialize Firebase. Refer to the iOS setup reference in the firebase-basics skill.
Add dSYM Upload Script
Add a Run Script phase to the main app target in Xcode. This step is required to upload dSYM files for crash symbolication.
1. Debug Information Format: The Debug Information Format in Build Settings must be set to DWARF with dSYM File. 2. Run Script Content: A new "Run Script Phase" should be added to the target's "Build Phases" with the following content:
${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/runWhen using the xcode-project-setup skills, the above two steps will be done as part of adding the FirebaseCrashlytics package. Once the skill has been invoked and succeeded, verify that the app's project.pbxproj file contains a Run Script Build phase where the shell script attribute value contains 'Crashlytics'. Specifically, there should be a PBXShellScriptBuildPhase section with the attribute shellScript that is set to a value that contains Crashlytics/run and an attribute inputPaths where one of the values contains GoogleService-Info.plist. If verification is not successful, present the above two options to be done manually.
Follow up Steps
Required: Force a Test Crash
1. Add code to trigger a crash a few seconds after app startup to verify Crashlytics setup.
For SwiftUI Apps (in `AppDelegate.swift`):
File: `AppDelegate.swift`
import FirebaseCore
import Dispatch // For DispatchQueue
// ...
class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure()
// Force a crash after a delay to test Crashlytics
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
fatalError("Test Crash")
}
return true
}
}2. Run your app on a device or simulator. If running in the iOS simulator, make sure that the Xcode debugger is disconnected, otherwise the crash will not make it to Crashlytics. The app should crash after a short delay.
3. Restart the app. The Crashlytics SDK will send the crash report to Firebase on the next app launch.
4. After a few minutes, the crash should be available in the Firebase console. Go to DevOps & Engagement > Crashlytics to view your dashboard and crash reports.
- If the Firebase MCP server is installed, use the
get_reporttool to check that a crash was received. - As a fallback, visit the Crashlytics dashboard in the Firebase console to see the new crash report.
5. After verifying that Firebase has received the crash report - either using the get_report tool or manually viewing it in the Firebase console - remove the code from step 1 that triggers the crash. This prevents the application from always crashing on start up after a delay.
Optional: Add custom debugging information
Customize reports to help you better understand what's happening in your app and the circumstances around events reported to Crashlytics. See Customize Crash Reports for Apple Platforms.
Related skills
Forks & variants (1)
Firebase Crashlytics has 1 known copy in the catalog totaling 440 installs. They canonicalize to this original listing.
- firebase - 440 installs
How it compares
Pick firebase-crashlytics for Firebase-native mobile crash reporting; pair Sentry skills when cross-platform error tracking outside Google Firebase is required.
FAQ
Which platforms does firebase-crashlytics cover?
firebase-crashlytics covers Android and iOS Crashlytics integration, including Firebase project provisioning and SDK setup. The skill guides agents through adding crash reporting to client applications and reading collected crash data from production builds.
How can agents read Crashlytics data?
firebase-crashlytics documents reading crash data through the MCP server in the Firebase CLI, accessible via npx -y firebase-tools@latest. Agents query production crash reports without requiring a separate global Firebase CLI installation.
What prerequisites does Crashlytics setup need?
firebase-crashlytics requires a configured Firebase project and platform-specific SDK integration steps for Android or iOS. The skill walks through provisioning Crashlytics and wiring the SDK so client crashes appear in Firebase console and CLI MCP queries.
Is Firebase Crashlytics safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.