posthog-observability
Skill by jeremylongshore
Observes a PostHog integration through application-side delivery metrics, ingestion checks, billing volume and alert rules. It is for developers defining health signals or investigating silent analytics loss.
Install posthog-observability
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/posthog-observability ~/.claude/skills/posthog-observabilityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/posthog-observability ~/.gemini/antigravity-cli/skills/posthog-observabilityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install posthog-observability in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps you monitor a PostHog integration. It separates four boundaries: application capture attempts and failures, SDK queue and flush behavior, PostHog ingestion warnings and accepted event volume, and feature-flag cache or remote-fallback behavior. It provides HogQL queries against the PostHog query API for hourly event counts, monthly volume and dashboard panels. It also includes a TypeScript wrapper that times feature flag evaluations and emits Prometheus metrics with prom-client.
The skill includes Prometheus alert rules for delivery failures, slow flag evaluations, usage warnings and capture errors. The source states that these metrics are application-owned instrumentation, not metrics exported by PostHog. It is intended for developers who run a PostHog SDK integration and want health signals or alerts for analytics loss and billing limits.
Written from the project's SKILL.md and checked against it.
What it can do
- Event ingestion health checkRuns a HogQL query to count events per hour over the last 24 hours.
- Flag evaluation latency instrumentationWraps feature flag evaluation with timing and emits Prometheus histogram and counter metrics.
- Event volume and billing monitoringCalculates monthly events, unique users and projected usage against a configured event limit.
- Prometheus alert rulesProvides alert rules over application-emitted delivery, flag latency, usage and capture error metrics.
- Health check dashboard queriesProvides HogQL queries for event rate, events by type, daily active users and ingestion freshness.
What you need
- PostHog project with a personal API key (phx_...)
- Application instrumented with the PostHog SDK
- posthog-node and prom-client in the application
- POSTHOG_MONTHLY_EVENT_LIMIT set from live billing configuration
- Prometheus or Grafana (optional)
Try asking
- Monitor PostHog ingestion health for my app
- Write Prometheus alert rules for PostHog capture errors
- Add timing to my PostHog feature flag evaluations
Good to know
- The Prometheus metrics are emitted by the application, not by PostHog.
- Monthly usage checks need POSTHOG_MONTHLY_EVENT_LIMIT to be set.
- Polling the query API can hit rate limits (429), so results should be cached.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/posthog-observability/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEdit
Alternatives to posthog-observability
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
posthog-observability: common questions
Does PostHog expose Prometheus metrics?
The source says not to claim this unless the target deployment proves it. The Prometheus metrics in this skill are emitted by the application.
What should I check if no events arrive for an hour?
The source suggests checking the PostHog status page and verifying that the SDK is initialized. These are listed as causes for zero events for one hour or more.
Which tools can the skill use?
The skill is allowed to use Read, Write and Edit. Write is limited to a new artifact the user explicitly requests inside the target project.
How do I install posthog-observability?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is posthog-observability free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is posthog-observability safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to posthog-observability?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
