firebase-crashlytics

firebase-crashlytics is a skill for Claude Code from evanca/flutter-ai-rules. It costs 34 tokens per session (1,258 once invoked), scanned A, original, MIT.

A guide for adding Firebase Crashlytics, a service that records app crashes and errors, to Flutter apps.

In plain words
What is it for?
Use it to capture fatal, non-fatal, asynchronous, and isolate errors; add logs, keys, and user identifiers to reports; control reporting in debug or opt-in modes; and upload files needed to decode obfuscated stack traces.
Why use it?
It helps you find and understand crashes, including errors that happen outside normal code flow. It also explains how to make reports readable for builds whose code names have been hidden.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the flutter-ai-skills plugin — 37 skills shipped together

Install

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.

agentmods
npx agentmods add skills/evanca/flutter-ai-rules/firebase-crashlytics
Any agent
npx skills add evanca/flutter-ai-rules --skill firebase-crashlytics
Clone the repo
git clone --depth 1 https://github.com/evanca/flutter-ai-rules

Made for: Claude Code.

Or install flutter-ai-skills, the plugin that ships this one along with the rest of its 37 skills.

Wrote 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.

agentmods badge for firebase-crashlytics

README.md
[![agentmods](https://agentmods.dev/badge/skills/evanca/flutter-ai-rules/firebase-crashlytics.svg)](https://agentmods.dev/skills/evanca/flutter-ai-rules/firebase-crashlytics)
Your own site
<a href="https://agentmods.dev/skills/evanca/flutter-ai-rules/firebase-crashlytics"><img src="https://agentmods.dev/badge/skills/evanca/flutter-ai-rules/firebase-crashlytics.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,258 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.01258
Opus 5 $0.00017 $0.00629
Sonnet 5 $0.00007 $0.00252
Haiku 4.5 $0.00003 $0.00126

Measured 7d ago against content hash 237ab6a1a145, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

firebase-crashlytics 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 7d 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.

skills/firebase-crashlytics/SKILL.md · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 context

Run 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-info and/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/symbols

2. 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);

Read the full file on GitHub · 183 lines

Changes

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.

  1. 7d ago First seen · 183 lines · 34 tokens per session scan A 237ab6a1a145

Subscribe to this mod's changes

firebase-crashlytics is a skill published in the GitHub repository evanca/flutter-ai-rules (634 stars, last pushed 6d ago), licensed MIT. It adds 34 tokens to every session and 1,258 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

flutter-mcp-toolkit-debug

Diagnose problems in a running Flutter app — read logs, evaluate Dart expressions, interpret error envelopes. Use when something broke.

Arenukvern/mcp_flutter · 32 tokens

flutter-mcp-toolkit-inspect

Read state from a running Flutter app — semantic snapshot, view details, errors, screenshots, VM info. Use when you need to understand what the app is showing.

Arenukvern/mcp_flutter · 41 tokens

flutter-mcp-toolkit-intentcall-migration

Migrate Flutter app code from removed MCPCallEntry to AgentCallEntry after the hard cut. Use when upgrading mcptoolkit, fixing compile errors after a major bump, or running flutter-mcp-toolkit migrate agent-entries.

Arenukvern/mcp_flutter · 58 tokens

flutter-mcp-toolkit-maintain-macos

Maintains fluttertestapp macOS showcase, native intentcall hooks (codegen, applinks invoke), and VM MCP validation. Use when editing macOS Runner, intentcallcodegen.sh, macOS dogfood, Screen Recording capture, or comparing macOS parity to web WebMCP.

Arenukvern/mcp_flutter · 68 tokens

dart-expert

Expert-level Dart, Flutter, mobile development, and cross-platform apps. Use when the user mentions Flutter, mobile, cross platform, or widgets, or when the task involves Dart Language or Flutter Framework.

personamanagmentlayer/pcl · 44 tokens

flutter-sdk-changelog

Expert guide and lookup reference for Flutter framework versions, widget deprecations, API replacements, Material 3 migrations, and the unbundling of standalone materialui and cupertinoui packages from Flutter 1.0 to modern Flutter (3.44+ / 3.47+). Use this skill whenever the user asks "what's new in Flutter X"…

RandalSchwartz/dart-sdk-skills · 186 tokens