Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

crash-triage

/crash-triage

Odnajduje prawdziwą przyczynę awarii aplikacji Android w logcat pod ogólnym błędem i pomaga odtworzyć awarię.

Repozytorium
adb-mcp ↗
Licencja
MIT
Ostatnia zmiana repozytorium
08.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 08.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Odnajduje prawdziwą przyczynę awarii aplikacji Android w logcat pod ogólnym błędem i pomaga odtworzyć awarię.

Wyzwalacze z opisu

Caused by:
Oryginalny opis (EN)

Using logcat to surface the real "Caused by:" root cause hidden behind a generic UI error, plus app lifecycle tools for reproducing failures. Use when an app crashes, shows a generic error dialog, or a task needs to find why a native call failed.

Jak działa

  1. 1. If the app crashed: lastcrash first
  2. 2. For a failure that didn't crash: isolate, then read
  3. 3. Filter by the right axis
  4. Things the root cause often reveals
  5. App lifecycle while triaging
Sekcje z nagłówków SKILL.md, w oryginale · 61 linii, 456 słów
Podgląd SKILL.md
---
name: crash-triage
description: Using logcat to surface the real "Caused by:" root cause hidden behind a generic UI error, plus app lifecycle tools for reproducing failures. Use when an app crashes, shows a generic error dialog, or a task needs to find why a native call failed.
---

# Finding out WHY a native call failed

A JS-level or UI-level "X failed" alert almost always hides the real cause. The
truth is in the native log or the crash record. Reach for these in order.

## 1. If the app crashed: `last_crash` first

`last_crash` returns the most recent crash from the system DropBox — full
header and stack (JVM/RN *and* native), kept intact even after the lines have
rotated out of the logcat ring buffer. Optionally filter to your package. For
an actual crash this is one call instead of log spelunking.

## 2. For a failure that didn't crash: isolate, then read

The core mistake is reading a buffer full of history and treating "no match"
as "didn't happen" (or an old match as fresh). Isolate first:

- **Know when it happened?** `logcat {since: "2m"}` — only lines from the last
  2 minutes (device clock). The right axis when a user says "I just hit it".
- **About to reproduce it?** `clear_logcat` → perform ONE action → `logcat`.
  Everything you read was caused by that action.
- **Reproducing a longer flow?** `start_logcat_capture {clear: true}` → drive
  the flow → `stop_logcat_capture` (bounded to the last 500 lines by default;
  narrow with filters, raise `tail` only if truly needed).

## 3. Filter by the right axis

- `tags: ["YourAppTag", "AndroidRuntime"]` — anchored to logcat's tag field;
  far more precise than substring (a package-name substring drags in
  `ImeTracker`/`PackageConfigPersister` noise).
- `priority: "E"` — errors and worse (`W` for warnings and worse).
- `filter: "Caused by"` — substring across the whole line, best for exception
  hunting.

Read from the bottom up. The **`Caused by:`** line is the root error — that is
the one that matters, not the top-level wrapper exception.

An empty result is only meaningful if you isolated (steps above): on a chatty
emulator, 400 lines can span seconds, and a crash may have already rotated out
— that's what `last_crash` and the capture flow are for.

## Things the root cause often reveals

- An obfuscated/renamed class breaking JNA/JNI struct layout at runtime.
- `No StrongBox available` → the device fell back from hardware-backed to
  software keys (relevant to Keystore attestation flows).
- A missing permission, a `ClassNotFoundException`, or a native `.so` that failed
  to load.

## App lifecycle while triaging

- `list_packages` with a filter confirms the app is installed and gives its exact
  package name.
- `stop_app` then `launch_app` restarts it cleanly to reproduce from a known
  state.
- `install_app` (re)installs an APK build you want to test.
- For RN/Expo dev clients: absent logs may mean the app is running its
  **embedded bundle**, not your edited code — set up `adb_reverse
  {device_port: 8081}` and reload before trusting any absence of evidence.

Wersje

W bazie nie ma innych skilli o nazwie crash-triage.

Migawka bazy z 13.11.2026 · wersja paczki 82514699f0dd (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 4 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90Android Debug
    Szuka przyczyn awarii aplikacji Android na telefonie: logcat, analiza crashy i ANR, instalacja oraz błędy budowania.
  • 90test-android-app
    Testuje aplikację Android na prawdziwym urządzeniu w chmurze: buduje APK, instaluje ją, przechodzi przez przepływy i zbiera awarie oraz logcat.
  • 100mobicat
    Czyta logi i awarie aplikacji mobilnej z urządzeń Android, emulatorów i symulatorów iOS przez narzędzie mobicat.
  • 100crash-analytics
    Pomaga monitorować, segregować i zmniejszać liczbę awarii aplikacji: konfiguracja Crashlytics, priorytety napraw, interpretacja danych i wpływ awarii na pozycję w App Store.
  • 100asc-crash-triage
    Segreguje awarie TestFlight, opinie beta testerów i diagnostykę wydajności (zawieszenia, zapisy na dysk, uruchamianie) przez asc oraz przygotowuje podsumowanie awarii dla buildu lub aplikacji.
  • 100asc-crash-triage
    Segreguje awarie TestFlight, opinie beta testerów i diagnostykę wydajności (zawieszenia, zapisy na dysk, uruchamianie) przez asc oraz przygotowuje podsumowanie awarii dla buildu lub aplikacji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.