firebase-crashlytics
Skill669 starsChanged 3 months agoMITView on GitHub
Use when implementing crash reporting, capturing fatal/non-fatal errors, recording isolate/async exceptions, customizing reports, or uploading obfuscated symbols.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- DentVega/firebase-agent-skillstheir own version, first seen Oct 15, 2026
- renansouza12/mixtape-their own version, first seen Oct 13, 2026
- cuonnd/Claude_skillstheir own version, first seen Oct 13, 2026
- baliadventours/Tripbone-SaaS-Productiontheir own version, first seen Aug 5, 2026
- VolantTyler/Cognitive-Bridge-Antigravitytheir own version, first seen Jun 5, 2026
- firebase/agent-skillstheir own version, first seen Jun 5, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- firebase/agent-skills★ 506same name
- VolantTyler/Cognitive-Bridge-Antigravity★ 1same name
- baliadventours/Tripbone-SaaS-Production★ 0same name
- cuonnd/Claude_skills★ 0same name
- DentVega/firebase-agent-skills★ 0same name
- renansouza12/mixtape-★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibilitySkill
- architecture-feature-firstSkill
- blocSkill
- code-reviewSkill
- dart-3-updatesSkill
- developing-genkit-dartSkill
- effective-dartSkill
- firebase-aiSkill
- firebase-analyticsSkill
- firebase-app-checkSkill
- firebase-authSkill
- firebase-cloud-firestoreSkill
- firebase-cloud-functionsSkill
- firebase-databaseSkill
- firebase-data-connectSkill
- firebase-in-app-messagingSkill
- firebase-messagingSkill
- firebase-remote-configSkill
- firebase-storageSkill
- flutter-app-architectureSkill
- flutter-best-practicesSkill
- flutter-change-notifierSkill
- flutter-errorsSkill
- flutterfire-configureSkill
- flutter-pre-cachingSkill
- flutter-use-column-row-firstSkill
- generate-images-with-firebase-aiSkill
- inclusive-designSkill
- mockitoSkill
- mocktailSkill
- patrol-e2e-testingSkill
- providerSkill
- revenuecat-testingSkill
- riverpodSkill
- testingSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use this skill when:
- Very specific: line 30
Run flutterfire configure to update the Firebase configuration and add the required Crashlytics Gradle plugin for Android.
- Distinctive: line 39
Android: Use Firebase CLI (v11.9.0+) to upload Flutter debug symbols:
- Very specific: line 71
Non-fatal Flutter errors: use recordFlutterError instead of recordFlutterFatalError.
- Distinctive: line 125
Avoid putting unique values (user IDs, timestamps) directly in exception messages — use custom keys instead.
- Distinctive: line 134
Use breadcrumb logs (requires Firebase Analytics) to understand user actions leading up to a crash.
- Distinctive: line 160
Check the Firebase Console Crashlytics dashboard within 5 minutes.
- Distinctive: line 161
Verify that custom keys, logs, and user identifiers appear on the crash report.
- Distinctive: line 163
Verify stack traces are properly symbolicated when using code obfuscation.
- Distinctive: line 175
When disabled, crash info is stored locally.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Firebase Crashlytics Skill
This skill defines how to correctly use Firebase Crashlytics in Flutter applications.
When to Use
Use this skill when:
- Implementing crash reporting in a Flutter project.
- Capturing fatal errors, non-fatal exceptions, and async/isolate errors.
- Customizing crash reports with keys, logs, and user identifiers.
- Configuring opt-in data collection or disabling reporting in debug builds.
- Uploading symbol files for obfuscated builds.
1. Setup and Configuration
flutter pub add firebase_crashlytics
flutter pub add firebase_analytics # enables breadcrumb logs for better crash contextRun flutterfire configure to update the Firebase configuration and add the required Crashlytics Gradle plugin for Android.
import 'package:firebase_crashlytics/firebase_crashlytics.dart';Obfuscated code:
- For apps built with
--split-debug-infoand/or--obfuscate, upload symbol files for readable stack traces. - iOS: Flutter 3.12.0+ and Crashlytics Flutter plugin 3.3.4+ handle symbol upload automatically.
- Android: Use Firebase CLI (v11.9.0+) to upload Flutter debug symbols:
firebase crashlytics:symbols:upload --app=FIREBASE_APP_ID PATH/TO/symbols2. Error Handling
Configure comprehensive error capture in main() to catch errors from all sources:
Fatal Flutter errors:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
// Pass all uncaught fatal errors from the framework to Crashlytics
FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterFatalError;
// Catch async errors not handled by the Flutter framework
PlatformDispatcher.instance.onError = (error, stack) {
FirebaseCrashlytics.instance.recordError(error, stack, fatal: true);
return true;
};
runApp(MyApp());
}Non-fatal Flutter errors: use recordFlutterError instead of recordFlutterFatalError.
Isolate errors:
Isolate.current.addErrorListener(RawReceivePort((pair) async {
final List<dynamic> errorAndStacktrace = pair;
await FirebaseCrashlytics.instance.recordError(
errorAndStacktrace.first,
errorAndStacktrace.last,
fatal: true,
);
}).sendPort);Caught exceptions (non-fatal):
await FirebaseCrashlytics.instance.recordError(
error,
stackTrace,
reason: 'a non-fatal error',
information: ['further diagnostic information about the error', 'version 2.0'],
);- Crashlytics only stores the most recent 8 non-fatal exceptions per session — older ones are discarded.
3. Crash Report Customization
Custom keys (max 64 key/value pairs, up to 1 kB each):
FirebaseCrashlytics.instance.setCustomKey('str_key', 'hello');
FirebaseCrashlytics.instance.setCustomKey('bool_key', true);
FirebaseCrashlytics.instance.setCustomKey('int_key', 1);Custom log messages (limit: 64 kB per session):
FirebaseCrashlytics.instance.log("User tapped on payment button");User identifier:
FirebaseCrashlytics.instance.setUserIdentifier("user-123");
// Clear by setting to blank string
FirebaseCrashlytics.instance.setUserIdentifier("");- Avoid putting unique values (user IDs, timestamps) directly in exception messages — use custom keys instead.
4. Performance and Optimization
- Crashlytics processes exceptions on a dedicated background thread to minimize performance impact.
- Fatal reports are sent in real-time without requiring an app restart.
- Non-fatal reports are written to disk and sent with the next fatal report or on app restart.
- Use breadcrumb logs (requires Firebase Analytics) to understand user actions leading up to a crash.
Disable Crashlytics in debug builds:
if (kReleaseMode) {
await FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(true);
} else {
await FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(false);
}5. Testing and Debugging
Force a test crash to verify the setup:
FirebaseCrashlytics.instance.crash();Verification workflow:
- Build and run the app in release mode.
- Trigger the test crash.
- Reopen the app so the crash report is uploaded.
- Check the Firebase Console Crashlytics dashboard within 5 minutes.
- Verify that custom keys, logs, and user identifiers appear on the crash report.
- Verify stack traces are properly symbolicated when using code obfuscation.
6. Opt-in Reporting
By default, Crashlytics automatically collects crash reports for all users.
To give users control over data collection:
- Disable automatic reporting and enable it only via
setCrashlyticsCollectionEnabled(true)when users opt in. - The override value persists across all subsequent app launches.
- To opt a user out, pass
false— this applies from the next app launch. - When disabled, crash info is stored locally; if later enabled, locally stored crashes are sent to Crashlytics.
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

