rn-debugging

rn-debugging is a skill for Claude Code from Lykhoyda/rn-dev-agent. It costs 123 tokens per session (3,171 once invoked), scanned A, original, MIT.

A troubleshooting guide for React Native apps, which are mobile apps built with JavaScript and native phone code. It explains how to inspect app errors, device logs, screens, components, stored data, and network requests.

In plain words
What is it for?
Use it to check whether Metro is running, read JavaScript and native crash logs, inspect the current screen and component tree, examine app state, and review console or network activity.
Why use it?
It gives a structured way to find the cause of crashes, blank screens, connection problems, and failed requests instead of guessing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rn-dev-agent plugin — 28 skills, 17 commands, 6 agents, 6 hooks shipped together

Good fit Use it to check whether Metro is running, read JavaScript and native crash logs, inspect the current screen and component tree, examine app state, and review console or network activity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lykhoyda/rn-dev-agent/rn-debugging
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 Lykhoyda/rn-dev-agent --skill rn-debugging
Clone the repo
git clone --depth 1 https://github.com/Lykhoyda/rn-dev-agent

Made for: Claude Code.

Or install rn-dev-agent, the plugin that ships this one along with the rest of its 28 skills, 17 commands, 6 agents, 6 hooks.

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 rn-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/lykhoyda/rn-dev-agent/rn-debugging/github.svg)](https://agentmods.dev/skills/lykhoyda/rn-dev-agent/rn-debugging)
Your own site
<a href="https://agentmods.dev/skills/lykhoyda/rn-dev-agent/rn-debugging"><img src="https://agentmods.dev/badge/skills/lykhoyda/rn-dev-agent/rn-debugging/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 rn-debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/lykhoyda/rn-dev-agent/rn-debugging"><img src="https://agentmods.dev/badge/skills/lykhoyda/rn-dev-agent/rn-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,171 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.00123 $0.03171
Opus 5.5 $0.00049 $0.01268
Sonnet 5.5 $0.00025 $0.00634
Haiku 4.5 $0.00012 $0.00317

Measured 1mo ago against content hash 9cc9bbc5e5e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rn-debugging 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 1mo 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.

packages/claude-plugin/codex-skills/rn-debugging/SKILL.md · 227 lines

How it starts

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

rn-debugging — CDP Usage, Error Identification, and Connection Troubleshooting

How to diagnose problems in React Native apps using the CDP MCP server, native device logs, and bash tools.


CDP vs Bash Decision Table

What you need to know Tool Command / MCP call
Is Metro running? MCP cdp_status
Is app showing a crash (JS)? MCP cdp_error_log
Is app showing a crash (native)? MCP collect_logs(sources=["native_ios"]) or collect_logs(sources=["native_android"])
Unified JS + native logs? MCP collect_logs(sources=["js_console","native_ios"], durationMs=3000)
What screen is the user on? MCP cdp_navigation_state
What does the component render? MCP cdp_component_tree(filter="MyComponent")
What is in the store? MCP cdp_store_state(path="cart.items")
What API calls were made? MCP cdp_network_log(limit=10)
What did console.log output? MCP cdp_console_log(level="all")
Is there a RedBox overlay? MCP cdp_component_tree (auto-detects and warns)
Dismiss RedBox / toggle inspector MCP cdp_dev_settings(action="dismissRedBox")
Is Metro bundler alive? MCP cdp_status
Is a specific element on screen? MCP device_find(text="element") or Maestro assertVisible
Tap an element by text or ref MCP device_find(text="Login", action="click") or device_press(ref="@e3")
Fill a text input MCP device_fill(ref="@e5", text="hello")
What are all UI elements? MCP device_snapshot (cross-platform accessibility tree with @refs)
What are all UI elements' positions? bash adb shell uiautomator dump (Android only, raw XML)
Arbitrary runtime value MCP cdp_evaluate(expression="...")

Key rule: If cdp_error_log is empty but the app is visibly broken, the problem is native. CDP only sees JavaScript — check native logs as fallback.


Error Types Matrix

Error Type Where to Find It Tool
JS runtime error (throw, TypeError) cdp_error_log MCP
Unhandled promise rejection cdp_error_log MCP
Uncaught error overlay (RedBox) cdp_component_tree (APP_HAS_REDBOX warning) MCP
console.error() call cdp_console_log(level="error") MCP
Metro bundle syntax error cdp_metro_events MCP
Native crash (iOS) collect_logs(sources=["native_ios"], logLevel="error") MCP
Native crash (Android) collect_logs(sources=["native_android"], logLevel="error") MCP
Cross-layer crash diagnosis collect_logs(sources=["js_console","native_ios"], durationMs=3000, logLevel="error") MCP
Network failure cdp_network_log (look for status=0 or missing status) MCP

Read the full file on GitHub · 227 lines

Files

What ships with it

3 files 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.

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. 1mo ago Changed 9cc9bbc5e5e1
  2. 1mo ago First seen · 227 lines · 123 tokens per session scan A e5585624e5ec

Subscribe to this mod's changes

rn-debugging is a skill published in the GitHub repository Lykhoyda/rn-dev-agent (20 stars, last pushed today), licensed MIT. It adds 123 tokens to every session and 3,171 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

ci-troubleshoot

Diagnose failed GitHub Actions runs for pi-agent-dashboard: the 11-file workflow taxonomy, affected-test selection, the release pipeline, known failure modes, and how to read gh run logs and retrigger jobs. Use when a CI run is red, a release is stuck, a workflow won't dispatch, or you need to know which workflow does…

BlackBeltTechnology/pi-agent-dashboard · 97 tokens

node-inspect-debugger

See runtime state a console.log cannot reach — set real breakpoints, step, and dump the scope chain of a paused Node/TypeScript process. Use on "set a breakpoint", "inspect runtime state", "console.log isn't enough", "step through this", "what's in this closure at runtime", "attach a debugger". Not a logging or…

BlackBeltTechnology/pi-agent-dashboard · 83 tokens

performance-optimization

Measure-first performance work. Use on triggers like "it's slow", "profile this", "optimize perf", "fix the bottleneck", "improve load time / Core Web Vitals", or when a measured regression needs fixing. Enforces measure-before-optimize. Fills a perf gap not covered by existing project skills. Not a build/ship…

BlackBeltTechnology/pi-agent-dashboard · 77 tokens

systematic-debugging

Root-cause a bug already in front of you, instead of guessing at fixes. Use on triggers like "root cause this", "why is this failing", "debug systematically", "this test is flaky", "it works locally but not in CI", or when a fix attempt has already failed once. Enforces a phased evidence-first process before any code…

BlackBeltTechnology/pi-agent-dashboard · 86 tokens

debug-dashboard

Diagnose problems in the running pi-agent-dashboard system: server.log, /api/health, bridge WebSocket connectivity, vitest triage, known-issue FAQ entries. Routes UI/visual issues to the browser skill. Use when the server seems hung, a pi session won't connect, tests fail mysteriously, the dashboard shows a blank…

BlackBeltTechnology/pi-agent-dashboard · 89 tokens

canvas-webapp

Render a React/Vite (or any bundled) web app on the pi-dashboard canvas, which loads loopback URLs in a sandboxed opaque-origin iframe. Use when a canvas(target:{kind:"url"|"server"}) target shows up blank white, an empty surface, or a /live/ 500 ECONNREFUSED. Covers why Vite dev servers and non-CORS static servers…

BlackBeltTechnology/pi-agent-dashboard · 99 tokens