What problem does it solve?
This Skill helps you add reliable error tracking so exceptions are captured in PostHog with stack traces and (where applicable) source maps, making production issues diagnosable instead of mysterious.
Core Features & Use Cases
- SDK installation & initialization: Detects your platform, installs the correct PostHog SDK, and initializes it using framework-specific guidance.
- Exception autocapture enablement: Turns on automatic unhandled exception capture without requiring you to wire every handler manually.
- Manual exception capture for critical paths: Adds targeted capture calls at error boundaries and catch blocks for errors that don’t reach global handlers.
- Source map uploads (frontend/mobile): Configures source map uploading so PostHog can resolve minified stack traces back to original source.
- Environment variable setup & verification: Ensures PostHog API key/host are stored in environment variables and validates the integration via checks and build/lint scripts.
Quick Start
Use the instrument-error-tracking skill to add PostHog error tracking to your codebase, automatically enabling exception autocapture, uploading source maps when needed, and configuring environment variables.