evanca/flutter-ai-rules/firebase-crashlytics
Claude Code and agent skill by evanca/flutter-ai-rules
- community
Checking that the SKILL.md file is still in the repository.
Use when implementing crash reporting, capturing fatal/non-fatal errors, recording isolate/async exceptions, customizing reports, or uploading obfuscated symbols.
Install
npx vskill@latest install evanca/flutter-ai-rules/firebase-crashlyticsSKILL.md
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
Run flutterfire configure to update the Firebase configuration and add the required Crashlytics Gradle plugin for Android.
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:
2. Error Handling
Configure comprehensive error capture in main() to catch errors from all sources:
Fatal Flutter errors:
Non-fatal Flutter errors: use recordFlutterError instead of recordFlutterFatalError.
Isolate errors:
Caught exceptions (non-fatal):
- 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):
Custom log messages (limit: 64 kB per session):
User identifier:
- 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:
5. Testing and Debugging
Force a test crash to verify the setup:
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
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/firebase-crashlytics/SKILL.md
Popularity
- Repository stars
- 507
- Repository forks
- 51
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Mar 2026, 8 months ago.
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/evanca/flutter-ai-rules/firebase-crashlytics)