Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add thomasttvo/agent-skills --skill "rn-logs"
Install specific skill from multi-skill repository
# Description
Check React Native console logs from the running app. Use when debugging RN app behavior or when user asks to check logs.
# SKILL.md
name: rn-logs
description: Check React Native console logs from the running app. Use when debugging RN app behavior or when user asks to check logs.
RN Logs Skill
Check React Native console logs from the running Diana app.
Steps
-
Determine which Metro port your app is using (default: 8081, but could be 8082, 8083, etc.)
-
Check if the log collector is running for that port:
bash pgrep -f "rn-logs.js.*--port=8081" -
If not running, start it with the correct port:
bash node ~/.claude/skills/rn-logs/rn-logs.js --port=8081 & -
Read recent logs (use the port-specific file):
bash tail -50 /tmp/rn-logs-8081.txt -
To search for specific logs:
bash grep "pattern" /tmp/rn-logs-8081.txt
Log Format
[timestamp] [type] message
Types: log, warn, error, info
Notes
- Each Metro port gets its own log file:
/tmp/rn-logs-{PORT}.txt - The collector auto-reconnects when the app reloads
- Default port is 8081 if not specified
- Script location:
~/.claude/skills/rn-logs/rn-logs.js
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.