Borrowing it
Nothing to install: this file belongs to LedgerHQ/ledger-live. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/LedgerHQ/ledger-live/develop/.agents/skills/debug-rn-native-crash/SKILL.mdgit clone --depth 1 https://github.com/LedgerHQ/ledger-liveWrote 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.
[](https://agentmods.dev/skills/ledgerhq/ledger-live/debug-rn-native-crash)<a href="https://agentmods.dev/skills/ledgerhq/ledger-live/debug-rn-native-crash"><img src="https://agentmods.dev/badge/skills/ledgerhq/ledger-live/debug-rn-native-crash/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.
<a href="https://agentmods.dev/skills/ledgerhq/ledger-live/debug-rn-native-crash"><img src="https://agentmods.dev/badge/skills/ledgerhq/ledger-live/debug-rn-native-crash.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.01102 |
| Opus 5.5 | $0.00024 | $0.00441 |
| Sonnet 5.5 | $0.00012 | $0.00220 |
| Haiku 4.5 | $0.00006 | $0.00110 |
Grade A, and why
debug-rn-native-crash 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debug RN native crash
Trigger
The mobile app crashes with one of:
- A native iOS exception (
NSInternalInconsistencyException,RCTFatal, Fabric assertion) - Only a native stack trace (
RCTViewComponentView,RCTPerformMountInstructions, …) with no JS source - "Failed to symbolicate" in Metro and no actionable JS error
- Reproducible crash but unclear which RN component is at fault
If the JS console already gives a clear stack, don't use this skill — read the JS error.
Workflow
1. Capture the native exception from the simulator
xcrun simctl list devices booted # get the booted sim UDID
xcrun simctl spawn <UDID> log show --last 5m --style compact \
--predicate 'processImagePath CONTAINS "ledgerlivemobile" AND (eventMessage CONTAINS "Assertion failure" OR eventMessage CONTAINS "Attempt to unmount" OR eventMessage CONTAINS "Terminating app")'
Extract the exception message, native stack, and any view descriptors (frame, tag, backgroundColor, alpha). These already tell you a lot — see reference.md "Anatomy of a Fabric assertion message".
2. Reproduce under Xcode debugger
open apps/ledger-live-mobile/ios/ledgerlivemobile.xcworkspace
- Stop the running app first (otherwise Xcode can't attach cleanly).
- In Xcode: Cmd+8 → + → Exception Breakpoint → Objective-C → All.
- Cmd+R to build + run + attach.
- Reproduce the crash. Xcode pauses at
objc_exception_throw.
3. Identify the offending React component
In the lldb console at the bottom of Xcode:
- Pick the frame that has the offending C++/ObjC code:
bt # full backtrace, find the frame in RN code frame select N # N = the RN frame (often RCTPerformMountInstructions) - Inspect the views referenced by the failed instruction. Variable names depend on the frame — read the source displayed in Xcode. Common ones:
po parentViewDescriptor.view po oldChildViewDescriptor.view p mutation.parentTag p mutation.index p oldChildShadowView.componentName - Find where the orphan child is actually attached vs where Fabric thinks:
po [oldChildViewDescriptor.view superview] po [oldChildViewDescriptor.view accessibilityIdentifier] # = RN testID po [parentViewDescriptor.view superview] po [[parentViewDescriptor.view superview] accessibilityIdentifier] po [parentViewDescriptor.view subviews] - Climb the superview chain until you hit a
accessibilityIdentifier(= RNtestID) you recognise in source. Grep for it:
That's the RN component family. From there, read the JSX and find the conditional render / animation / library that produced the mismatch.grep -rn 'testID="<identifier>"' apps/ledger-live-mobile/src libs/ui
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago First seen · 101 lines · 59 tokens per session scan A 4bc6141ff61a
debug-rn-native-crash is a skill published in the GitHub repository LedgerHQ/ledger-live (624 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 1,102 once invoked, about $0.0002 per session on Opus 5.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.
Other skills, from other repositories
ios-fix
Autonomous iOS bug fixer. (gstack).
node-connect
Diagnose OpenClaw Control UI browser and native Android, iOS, or macOS node connection failures across route, auth, pairing, QR/setup-code, and reconnect states.
google-mobile-ads-validate
Validates a project's Google Mobile Ads (GMA) SDK integration for iOS, Android, or Unity projects. Use when conducting a full pre-launch audit of an app that integrates GMA SDK or when validating any individual GMA SDK integration checks, such as when validating ad unit IDs and ad formats, SKAdNetwork IDs, mediation…
jetpack-compose-performance
Diagnose and optimize Android Jetpack Compose UI code. Use this skill when analyzing performance bottlenecks of existing code to minimize recomposition overhead and prevent dropped frames and UI lag.
swiftui-performance-audit
SwiftUI performance: render, scroll, CPU/memory, updates, layout, Instruments.
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.