detect-native-crashes-and-anrs

detect-native-crashes-and-anrs is a skill for Claude Code, Codex from osama-raddad/FireCrasher. It costs 63 tokens per session (639 once invoked), scanned A, original, Apache-2.0.

An Android crash-reporting guide for finding app failures that ordinary in-app error handlers cannot see. It uses Android 11 and newer's system record of native crashes, apps that stop responding, and low-memory process kills, then reports them when the app starts again.

In plain words
What is it for?
Use it to configure a previous-process-exit callback and send native-crash, ANR, or low-memory information to a reporting service such as Firebase Crashlytics. The records are unavailable on Android versions below 11.
Why use it?
It fills the gap left when the app process ends before its own crash handler can run. This gives developers a more complete picture of why the app disappeared.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure a previous-process-exit callback and send native-crash, ANR, or low-memory information to a reporting service such as Firebase Crashlytics. The records are unavailable on Android versions below 11.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/osama-raddad/firecrasher/detect-native-crashes-and-anrs
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.

Any agent
npx skills add osama-raddad/FireCrasher --skill detect-native-crashes-and-anrs
Clone the repo
git clone --depth 1 https://github.com/osama-raddad/FireCrasher

Made for: Claude Code, Codex.

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 detect-native-crashes-and-anrs

README.md
[![agentmods](https://agentmods.dev/badge/skills/osama-raddad/firecrasher/detect-native-crashes-and-anrs/github.svg)](https://agentmods.dev/skills/osama-raddad/firecrasher/detect-native-crashes-and-anrs)
Your own site
<a href="https://agentmods.dev/skills/osama-raddad/firecrasher/detect-native-crashes-and-anrs"><img src="https://agentmods.dev/badge/skills/osama-raddad/firecrasher/detect-native-crashes-and-anrs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for detect-native-crashes-and-anrs

Your own site · 80×15
<a href="https://agentmods.dev/skills/osama-raddad/firecrasher/detect-native-crashes-and-anrs"><img src="https://agentmods.dev/badge/skills/osama-raddad/firecrasher/detect-native-crashes-and-anrs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 639 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00063 $0.00639
Opus 5 $0.00032 $0.00319
Sonnet 5 $0.00013 $0.00128
Haiku 4.5 $0.00006 $0.00064

Measured 11d ago against content hash 138f29303c7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

detect-native-crashes-and-anrs 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 11d 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.

docs/skills/detect-native-crashes-and-anrs/SKILL.md · 66 lines

How it starts

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

Detect crashes the handler can't catch

FireCrasher's onCrash only sees JVM exceptions on threads it controls. Native crashes, ANRs, and low-memory kills terminate the process before any in-process handler runs — they are invisible to it.

On API 30+, Android records these in ApplicationExitInfo. FireCrasher surfaces that record on the next launch so you can report it. All of these return empty/null below API 30, so no version guard is needed in your code.

Configure onPreviousProcessExit. FireCrasher calls it from install when the system has a record of the app dying abnormally last time:

installFireCrasher {
    onCrash { recover() }

    onPreviousProcessExit { exitInfo ->
        // Only invoked on API 30+; the guard is for lint, which can't see
        // that guarantee through the lambda.
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
            // The record may predate the last launch — check freshness if it matters.
            val recent = System.currentTimeMillis() - exitInfo.timestamp < 60_000
            FirebaseCrashlytics.getInstance().log(
                "previous exit: reason=${exitInfo.reason} desc=${exitInfo.description} recent=$recent"
            )
        }
    }
}

exitInfo.reason values worth branching on include REASON_CRASH, REASON_CRASH_NATIVE, REASON_ANR, and REASON_LOW_MEMORY.

Option B: query directly

Ask for the records from any Context whenever you need them:

// The most recent crash / native crash / ANR, or null.
val lastCrash: ApplicationExitInfo? = lastAbnormalExit()

// Full history, newest first (default up to 16).
val history: List<ApplicationExitInfo> = historicalExitReasons(maxCount = 16)

(From Java: ExitInfoKt.lastAbnormalExit(context) and ExitInfoKt.historicalExitReasons(context, 16).)

Notes

  • De-duplicate. The same ApplicationExitInfo record persists across launches. Track the last-seen exitInfo.timestamp (e.g. in SharedPreferences) so you don't report the same death on every launch.
  • An ANR record can carry a trace via exitInfo.traceInputStream — attach it to your report when present.
  • Below API 30 these APIs no-op; combine this with report-crashes for the JVM exceptions FireCrasher can catch to get full coverage.

Read the full file on GitHub · 66 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. 11d ago First seen · 66 lines · 63 tokens per session scan A 138f29303c7c

Subscribe to this mod's changes

detect-native-crashes-and-anrs is a skill published in the GitHub repository osama-raddad/FireCrasher (148 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 63 tokens to every session and 639 once invoked, about $0.0003 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

argent-metro-debugger

Debug a JS runtime via CDP using argent debugger tools. Primary path is React Native via Metro (iOS / Android / Vega); a subset of the tools (debugger-connect, debugger-status, debugger-evaluate, debugger-log-registry) also drive a Chromium (CDP) app's renderer (an Electron app, or any Chromium browser exposing CDP)…

software-mansion/argent · 104 tokens

argent-react-native-optimization

Optimizes a React Native app by profiling first to find real bottlenecks, then sweeping for mechanical issues. Entry-point for all performance work. Use when the app feels slow, user asks to optimize, fix re-renders, reduce jank, or improve startup. Delegates to argent-react-native-profiler for measurement.

software-mansion/argent · 71 tokens

argent-native-profiler

Native profiling for CPU hotspots, UI hangs, memory issues. iOS via xctrace; Android via Perfetto. Use when diagnosing native-level performance issues.

software-mansion/argent · 37 tokens

compose-performance

Use when investigating Jetpack Compose recomposition cost, compiler stability reports, skippability, unstable parameters, frame-rate State reads, cross-phase snapshot back-writing, or @ReadOnlyComposable contracts.

chrisbanes/skills · 42 tokens

Debroid CLI Debugger

Orchestrate headless Android debugging via JDWP. ACTIVATE this skill whenever asked to debug an Android application, set line or exception breakpoints, inspect runtime variables or Jetpack Compose state, step through execution, evaluate live expressions, watch fields, or diagnose runtime crashes.

PatilShreyas/debroid · 61 tokens

maui-performance

Fix measurable MAUI performance issues. USE FOR: maui profile startup, Release/physical-device measurements, janky CollectionView, compiled bindings, oversized images, MauiImage BaseSize, thumbnail decoding, trim/NativeAOT regressions, IL2026, source-generated serializers, linker validation. DO NOT USE FOR: generic UI…

dotnet/maui-labs · 85 tokens