aiskillstore/marketplace/rn-observability
Claude Code and agent skill by aiskillstore/marketplace
- community
Checking that the SKILL.md file is still in the repository.
Author "aiskillstore" has blocked skill(s)
Logging, error messages, and debugging patterns for React Native. Use when adding logging, designing error messages, debugging production issues, or improving code observability.
Install
npx vskill@latest install aiskillstore/marketplace/rn-observabilitySKILL.md
The same SKILL.md was published earlier as aiskillstore/marketplace/rn-observability.
React Native Observability
Problem Statement
Silent failures are debugging nightmares. Code that returns early without logging, error messages that lack context, and missing observability make production issues impossible to diagnose. Write code as if you'll debug it at 3am with only logs.
Pattern: No Silent Early Returns
Problem: Early returns without logging create invisible failure paths.
Example (from retake bug):
Rule: Every early return should log why it's returning, with enough context to diagnose.
Pattern: Error Message Design
Problem: Error messages that don't help diagnose the issue.
Error message template:
What to include:
| Element | Why | |
|---|---|---|
| Function/location | Where the error occurred | |
| What failed | The specific condition that wasn't met | |
| Relevant state | Values that help diagnose | |
| Possible cause | Your best guess for the fix |
Pattern: Structured Logging
Problem: Console.log statements that are hard to parse and search.
Logging levels:
| Level | Use for | |
|---|---|---|
error | Exceptions, failures that need immediate attention | |
warn | Unexpected conditions that didn't fail but might indicate problems | |
info | Important business events (user actions, flow milestones) | |
debug | Detailed diagnostic info (state dumps, timing) |
Wrapper for consistent logging:
Pattern: Sensitive Data Handling
Problem: Logging sensitive data to console or crash reporting.
Pattern: Flow Tracing
Problem: Multi-step operations where it's unclear how far execution got.
Benefits:
- Can search logs by flowId to see entire flow
- Know exactly which step failed
- Timing visible via timestamps
Pattern: State Snapshots for Debugging
Problem: Need to understand state at specific points in complex flows.
Pattern: Assertion Helpers
Problem: Conditions that "should never happen" but need visibility when they do.
Pattern: Production Error Reporting
Problem: Errors in production with no visibility.
Checklist: Adding Observability
When writing new code:
- [ ] All early returns have logging with context
- [ ] Error messages include diagnostic information
- [ ] Multi-step operations have flow tracing
- [ ] Sensitive data is redacted before logging
- [ ] State snapshots available for debugging complex flows
- [ ] Production errors are captured with context
When debugging existing code:
- [ ] Add logging to suspect early returns
- [ ] Add state snapshots before and after async operations
- [ ] Check for silent catches that swallow errors
- [ ] Verify error messages have enough context
Quick Debugging Template
Add this temporarily when debugging async/state issues:
Remove before committing, or gate behind a flag.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cjharmath/rn-observability/SKILL.md
Popularity
- Repository stars
- 429
- Repository forks
- 45
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aiskillstore/marketplace/rn-observability)