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.svg" alt="Measured on agentmods" 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 | $0.00030 | $0.00551 |
| Sonnet 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 8d 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.
- 8d 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 (616 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 1,102 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.
Other skills, from other repositories
ios-fix
Autonomous iOS bug fixer. (gstack).
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…
competition-ios-runtime
Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for IPA runtime analysis, Frida hooks, Objective-C or Swift method tracing, Keychain inspection, SSL pinning bypass, URL scheme handling, and iOS request-signing recovery. Use when the user asks to hook an IPA, trace Objective-C or Swift…
swiftui-performance-audit
SwiftUI performance: render, scroll, CPU/memory, updates, layout, Instruments.
node-connect
Diagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps. Use when QR/setup code/manual connect fails, local Wi-Fi works but VPS/tailnet does not, or errors mention pairing required, unauthorized, bootstrap token invalid or expired, gateway.bind, gateway.remote.url, Tailscale…
ios-simulator
Verify and debug native, React Native, Expo, or Flutter apps on an iOS Simulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an iPhone or iPad Simulator.