Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

investigating-metric-anomalies

Skill by PostHog

Investigates server and infrastructure metric anomalies in PostHog Metrics, taking a metric symptom or fired alert to a probable cause with evidence. Built for engineers doing incident triage.

  • Score 85
  • 41k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install investigating-metric-anomalies

Built from the published package, never by AI.

git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/products/metrics/skills/investigating-metric-anomalies ~/.claude/skills/investigating-metric-anomalies

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install investigating-metric-anomalies in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The investigating-metric-anomalies skill guides an assistant from a metric symptom, such as rising ingestion lag or a spiking error rate, to a probable cause backed by evidence. It follows a fixed loop: pin down the metric, characterize the anomaly's direction, size and onset, sharpen with targeted metric queries, then correlate with logs and traces in the same time window.

The skill composes metric-names-list, characterize-metric-anomaly and query-metrics with query-logs and APM span tools. It includes a worked example and pitfalls such as counter resets, silent emitters and tail latency. It is aimed at engineers doing incident triage that starts from a metric or an alert on an OTel or Prometheus metric.

Written from the project's SKILL.md and checked against it.

What it can do

  • metric-names-listFinds the exact metric name from a substring of the symptom, such as lag or error.
  • characterize-metric-anomalyReports direction, change ratio, anomaly peak, baseline, onset time and top movers for a metric.
  • query-metricsDrills into suspicious labels and computes ratios to separate rate changes from volume changes.
  • query-logsPulls logs for the implicated service and window to find restarts, errors and deploy markers.
  • APM span toolsChecks slow or erroring spans in the same service and window to find degraded dependencies.
  • Evidence-based conclusionStates symptom, probable cause, blast radius and confidence, with what would disambiguate.

Try asking

  • Why is ingestion lag rising since the 20:10 alert? Investigate it.
  • Our error rate spiked this morning. Find the probable cause with evidence.
  • Characterize the latency anomaly on the checkout service and check its logs.

Good to know

  • Scraped Prometheus metrics arrive about 15 to 60 seconds behind real time.
  • A metric that stops reporting may mean the emitter died, so the skill pivots to logs.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: products/metrics/skills/investigating-metric-anomalies/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB

Alternatives to investigating-metric-anomalies

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

investigating-metric-anomalies: common questions

What does the investigating-metric-anomalies skill do?

It takes a metric symptom or fired alert and works toward a probable cause, using metric queries, logs and traces. The source describes it as a loop that ends in a conclusion backed by evidence.

Which tools does this skill use?

It composes characterize-metric-anomaly, query-metrics and metric-names-list with query-logs and APM span tools. These handle metrics, logs and traces respectively.

Who is this skill for?

It is for incident triage that starts from a metric symptom, such as rising lag, spiking error rates or queue growth. The source also mentions alerts on OTel or Prometheus metrics.

How do I install investigating-metric-anomalies?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is investigating-metric-anomalies free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is investigating-metric-anomalies safe to use?

It scores 85 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to investigating-metric-anomalies?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

investigating-metric-anomalies Install

Add to stack

Loading.