root-cause-analysis

Installation
SKILL.md

Root Cause Analysis with Kopai

Debug production issues from telemetry (traces, logs, metrics). Kopai's analytical power — error rate, throughput, latency, group-by, time-series bucketing — lives in the SDK query API, which the CLI does not expose. So lead every investigation by writing a short TypeScript script; the CLI stays as a quick-lookup fallback.

Prerequisites

  • Services are sending OpenTelemetry data to Kopai (see the otel-instrumentation skill).
  • @kopai/sdk is installed in the project: npm i @kopai/sdk (it ships the query API and the .kopairc reader).

Code mode (recommended)

ConnectclientFromConfig() reads .kopairc exactly like the CLI:

Installs
43
GitHub Stars
9
First Seen
Jan 27, 2026
root-cause-analysis — kopai-app/kopai-mono