audit
Scan a codebase for existing observability instrumentation and identify gaps.
Generate a comprehensive instrumentation plan for a mobile codebase.
> /plugin marketplace add nexus-labs-automation/mobile-observability > /plugin install mobile-observability@caleb-davis-plugins
How it fires
How this command gets triggered: by you, by Claude, or both.
/instrumentContext preview
What this command does when you run it.
Generate a comprehensive instrumentation plan for a mobile codebase.
Generate a comprehensive instrumentation plan for a mobile codebase.
/instrument [platform] [--vendor=<vendor>]
**Arguments:**
**Examples:**
/instrument ios /instrument android --vendor=sentry /instrument flutter --vendor=firebase /instrument auto
---
If platform is `auto` or not specified: 1. Search for platform indicators:
2. If multiple platforms detected (e.g., React Native or Flutter with native modules):
3. If no platform detected:
4. Confirm with user if ambiguous
Launch the `codebase-analyzer` agent to identify:
Based on detected platform, read:
**Always:**
**Platform-specific:**
**Vendor-specific (if specified):**
Identify user jobs for this codebase and map to instrumentation:
| User Job | Success Metric | Failure Signal | |----------|----------------|----------------| | [From JTBD analysis] | [Completion, duration] | [Error, abandonment] |
Reference: `skills/instrumentation-planning/SKILL.md`
Output format:
## Instrumentation Plan: [Project Name] ### Overview - **Platform:** [iOS/Android/React Native] - **Architecture:** [Pattern detected] - **Vendor:** [Sentry/Datadog/etc. or "Vendor-agnostic"] - **Existing Telemetry:** [SDKs found or "None"] ### User Jobs to Instrument | Job | Success Metric | Failure Signal | Priority | |-----|----------------|----------------|----------| | [Core user flow] | [Metric] | [Signal] | P0 | ### Implementation Tiers #### Tier 1: Foundation (P0) - [ ] SDK integration in [AppDelegate/Application] - [ ] Symbolication setup ([dSYM/ProGuard]) - [ ] User context on authentication #### Tier 2: Core Performance (P1) - [ ] App start tracking - [ ] Screen load TTI for key screens - [ ] Network request tracing #### Tier 3: Context (P1) - [ ] Navigation breadcrumbs - [ ] User action breadcrumbs - [ ] Error context enrichment #### Tier 4: Business Metrics (P2) - [ ] Key funnel instrumentation - [ ] Feature usage tracking ### Key Files to Modify | File | Changes | Priority | |------|---------|----------| | [path] | [specific changes] | [P0/P1/P2] | ### Code Snippets [Production-ready, platform-specific code for each tier]
After presenting plan:
Ready to implement? Options: 1. Start with Tier 1 (foundation) 2. Generate detailed code for a specific item 3. Export plan to file
---
Teaches Claude how to instrument mobile apps correctly — what to measure, what context to attach, and what mistakes to avoid.
Scan a codebase for existing observability instrumentation and identify gaps.