posthog-cli

Uploads error tracking files to PostHog so crash reports show readable code instead of gibberish.

Installation
Run `npx skills add "https://github.com/timschoch/skilly" --skill "posthog-cli"` to install this skill, then follow its SKILL.md instructions for my next request.

Paste this into Claude Code, Cursor, or any agent that can run commands.

SKILL.mdShow the author's original SKILL.md
---
name: posthog-cli
description: Upload sourcemaps and symbol files to PostHog error tracking with posthog-cli. Use in release/build steps that must make stack traces readable. Not for analytics queries or app instrumentation.
---

# PostHog CLI

PostHog ships `@posthog/cli` (binary: `posthog-cli`). Use it instead of hand-written API calls.

- Upload sourcemaps for error tracking: `posthog-cli sourcemap upload`
- Discover more: `posthog-cli --help`

Auth via `POSTHOG_CLI_TOKEN` (or the repo's configured env). Check the repo's build scripts — sourcemap upload is usually part of the release step.

Mirrored from the author's public source. Install counts from the open skills registry.

The systems behind these skills get built for partners every week.

Partner with us