Agent skill

Detect Native Crashes And Anrs

by osama-raddad in osama-raddad/FireCrasher

Report native crashes, ANRs, and low-memory kills that FireCrasher's in-process handler cannot catch, using ApplicationExitInfo on API 30+.

Apache-2.0Auto-check passedMobile

Install Detect Native Crashes And Anrs

skills CLI
$ npx skills add osama-raddad/FireCrasher --skill detect-native-crashes-and-anrs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install osama-raddad/FireCrasher detect-native-crashes-and-anrs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/osama-raddad/FireCrasher.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/skills/detect-native-crashes-and-anrs .claude/skills/detect-native-crashes-and-anrs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
detect-native-crashes-and-anrs
GitHub stars
147
Token cost
~662 tokens
SKILL.md length
193 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Apache-2.0

At a glance

Report native crashes, ANRs, and low-memory kills that FireCrasher's in-process handler cannot catch, using ApplicationExitInfo on API 30+.

  • You need a complete crash picture
  • SKILL.md covers Option A: the callback…, Option B: query directly and Notes
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Why dont I get reports for native crashes / ANRs

What it does

Detect Native Crashes And Anrs is an agent skill from osama-raddad/FireCrasher. Report native crashes, ANRs, and low-memory kills that FireCrasher's in-process handler cannot catch, using ApplicationExitInfo on API 30+. Use when you need a complete crash picture, or "why don't I get reports for native crashes / ANRs".

Its SKILL.md is about 660 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile. It works with Android and Java. The repository describes itself as: FireCrasher is a Uncaught Exceptions recovery library for android. The licence is Apache-2.0.

When your agent uses it

  • You need a complete crash picture
  • Why dont I get reports for native crashes / ANRs

Example prompts

  • “why don”
  • “/detect-native-crashes-and-anrs”

What it can do on your machine

Read from SKILL.md and the folder at commit 7a06228. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Detect Native Crashes And Anrs loads about 662 tokens when it runs. Until then it costs about 68 tokens; SKILL.md has 193 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~68
When it runs · the whole SKILL.md, loaded when a task matches
~662

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from osama-raddad/FireCrasher at commit 7a06228, republished under its Apache-2.0 licence (© osama-raddad). 193 words, ~662 tokens.

Download SKILL.mdSave it as .claude/skills/detect-native-crashes-and-anrs/SKILL.md (or your agent's skills folder).
name
detect-native-crashes-and-anrs
description
Report native crashes, ANRs, and low-memory kills that FireCrasher's in-process handler cannot catch, using ApplicationExitInfo on API 30+. Use when you need a complete crash picture, or "why don't I get reports for native crashes / ANRs".

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:

kotlin
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:

kotlin
// 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.

© osama-raddad, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/skills/detect-native-crashes-and-anrs of osama-raddad/FireCrasher.

Open the folder on GitHubat commit 7a06228

Compare with similar skills

Detect Native Crashes And Anrs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Detect Native Crashes And Anrs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Detect Native Crashes And Anrs this skillosama-raddad/FireCrasher147—~662Automated safety check: PassApache-2.0
Android API Diffgkd-kit/gkd43k—~796Automated safety check: PassGPL-3.0
Frb Android Emulator Preparefzyzcjy/flutter_rust_bridge5.4k—~2.1kAutomated safety check: NotesMIT
Android Maps Ktxgooglemaps/android-maps-ktx360—~897Automated safety check: PassApache-2.0
Jugg Android Dev Loopniki914/zafiro241—~2kAutomated safety check: PassMIT
Android Audio E2Ehyochan/react-native-nitro-sound961—~814Automated safety check: PassMIT

Similar skills

  • Android API Diff

    gkd-kit/gkd

    Looks up Android framework Java and AIDL APIs across versions with the android-api-diff CLI: signatures, availability, source files and hidden-API access code.

    43k GitHub stars~796 tokensUpdated today
    MobileAuto-check passed
  • Frb Android Emulator Prepare

    fzyzcjy/flutter_rust_bridge

    A skill your agent uses when preparing, installing, diagnosing, or explaining the host Android Emulator environment for flutterrustbridge local runtime validation, including Android SDK command-line…

    5.4k GitHub stars~2.1k tokensUpdated yesterday
    MobileAuto-check: notes
  • Android Maps Ktx

    googlemaps/android-maps-ktx

    Provides idiomatic Kotlin extension (KTX) patterns, reactive Flow event streams, and multi-subscriber shareIn rules for Google Maps SDK for Android and its Utility Library.

    360 GitHub stars~897 tokensUpdated 3 days ago
    MobileAuto-check passed
  • Jugg Android Dev Loop

    niki914/zafiro

    A skill your agent uses when editing source files (Java/Kotlin/XML/layout/AndroidManifest/Gradle) in a Android project, or when user asks to build/deploy/verify an Android app.

    241 GitHub stars~2k tokensUpdated today
    MobileAuto-check passed
  • Android Audio E2E

    hyochan/react-native-nitro-sound

    Build and run device-backed Android end-to-end checks for react-native-nitro-sound permissions, recording, playback, listeners, pause/resume, seek, speed, audio focus, lifecycle behavior, and rapid…

    961 GitHub stars~814 tokensUpdated 11 days ago
    MobileAuto-check passed
  • 根据用户给出的 Java/Kotlin 工具类或 View 相关源码,设计并实现 androidx.databinding.BindingAdapter。

    1.6k GitHub stars~1.6k tokensUpdated 1 mo ago
    MobileAuto-check passed

More from osama-raddad/FireCrasher

All 8 skills in this repo
  • Add Library Test

    osama-raddad/FireCrasher

    Add or update a Robolectric JVM unit test for the FireCrasher library.

    147 GitHub stars~612 tokensUpdated 3 mo ago
    Auto-check passed
  • Customize Recovery

    osama-raddad/FireCrasher

    Inspect FireCrasher's recovery level and show custom recovery UX (loading dialog, toast, snackbar) or force a specific recovery level.

    147 GitHub stars~624 tokensUpdated 3 mo ago
    Auto-check passed
  • Install Firecrasher

    osama-raddad/FireCrasher

    Add the FireCrasher crash-recovery library to an Android app and install it in the Application class.

    147 GitHub stars~562 tokensUpdated 3 mo ago
    Auto-check passed
  • Release

    osama-raddad/FireCrasher

    Cut a new FireCrasher library release — bump the version, sync the README and ABI baseline, verify, and tag for JitPack.

    147 GitHub stars~649 tokensUpdated 3 mo ago
    Auto-check passed
  • Update Abi Baseline

    osama-raddad/FireCrasher

    Regenerate and review FireCrasher's committed public ABI baseline (firecrasher/api/firecrasher.api) after an intentional public API change.

    147 GitHub stars~508 tokensUpdated 3 mo ago
    Auto-check passed
  • Report Crashes

    osama-raddad/FireCrasher

    Forward FireCrasher-caught exceptions to a crash reporter (Crashlytics, Sentry, etc.) while still recovering the app.

    147 GitHub stars~410 tokensUpdated 3 mo ago
    Auto-check passed

Works with

Categories

Questions about Detect Native Crashes And Anrs

What does Detect Native Crashes And Anrs do?

Report native crashes, ANRs, and low-memory kills that FireCrasher's in-process handler cannot catch, using ApplicationExitInfo on API 30+. Detect Native Crashes And Anrs is an agent skill from osama-raddad/FireCrasher. Report native crashes, ANRs, and low-memory kills that FireCrasher's in-process handler cannot catch, using ApplicationExitInfo on API 30+.

When should I use Detect Native Crashes And Anrs?

Detect Native Crashes And Anrs fits situations like: you need a complete crash picture; why dont I get reports for native crashes / ANRs.

How do I install Detect Native Crashes And Anrs in Claude Code?

Run `npx skills add osama-raddad/FireCrasher --skill detect-native-crashes-and-anrs -a claude-code`. Or copy the skill folder (docs/skills/detect-native-crashes-and-anrs in osama-raddad/FireCrasher) into .claude/skills/detect-native-crashes-and-anrs in your project. Claude Code loads it when a task matches its description.

How do I install Detect Native Crashes And Anrs in Codex?

Run `npx skills add osama-raddad/FireCrasher --skill detect-native-crashes-and-anrs -a codex`. Or copy the skill folder (docs/skills/detect-native-crashes-and-anrs in osama-raddad/FireCrasher) into .agents/skills/detect-native-crashes-and-anrs in your project. Codex loads it when a task matches its description.

Can I use Detect Native Crashes And Anrs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add osama-raddad/FireCrasher --skill detect-native-crashes-and-anrs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/detect-native-crashes-and-anrs, .gemini/skills/detect-native-crashes-and-anrs, .github/skills/detect-native-crashes-and-anrs and .opencode/skills/detect-native-crashes-and-anrs in your project.

What does Detect Native Crashes And Anrs need to run?

SKILL.md names no scripts, command-line tools or credentials: Detect Native Crashes And Anrs is instructions for the agent only.

Does Detect Native Crashes And Anrs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Detect Native Crashes And Anrs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Detect Native Crashes And Anrs use?

Detect Native Crashes And Anrs is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Detect Native Crashes And Anrs use?

About 662 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Detect Native Crashes And Anrs?

Skills that share tags, products or a category with Detect Native Crashes And Anrs: Android API Diff (gkd-kit/gkd, 43k stars), Frb Android Emulator Prepare (fzyzcjy/flutter_rust_bridge, 5.4k stars), Android Maps Ktx (googlemaps/android-maps-ktx, 360 stars) and Jugg Android Dev Loop (niki914/zafiro, 241 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Detect Native Crashes And Anrs?

osama-raddad (a GitHub user) maintains it in osama-raddad/FireCrasher, which has 147 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on July 3, 2026.

Source: osama-raddad/FireCrasher on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.