CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

root-cause-analysis

Investigate and root-cause production issues from live OpenTelemetry telemetry (traces, logs, metrics) with the Kopai SDK in TypeScript code mode. Use this skill to debug errors and error-rate spikes, investigate latency/slowness and timeouts, trace requests across services, find failing or cascading services, and correlate logs to a trace — including vague symptom reports like 'why is my API slow', 'getting 500 errors', 'service is down', 'requests are timing out', or 'something is failing in prod', even when the user never says 'traces' or 'observability'. This analyzes existing telemetry to find a cause. Do NOT use it to add instrumentation (use otel-instrumentation), to build dashboards or visualizations (use create-dashboard), or to fix non-telemetry problems like failing CI, lint errors, unit tests, or SQL query tuning.

Quality

91%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

The canonical home for this skill is kopai/root-cause-analysis

SKILL.md
Quality
Evals
Security

Quality

Content

77%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A dense, highly actionable body that teaches genuinely non-obvious SDK gotchas with copy-paste-ready code and a well-checkpointed workflow. Its two weaknesses are redundancy (the Quick Example and Tips sections restate the workflow and gotchas) and a broken rules/ reference layer — nine rule files are cited but absent from the bundle.

Suggestions

Remove the 'Quick Example' section — it duplicates the RCA Workflow step-1 query almost verbatim; the workflow already provides the complete copy-paste script.

Trim the Tips section to only the points not already covered in 'Backend caveats & gotchas' (typed rows, errorRate preference, Duration strings, timeSeries/retention floor, and metric-type selection are each stated twice or more).

Ship the rules/ directory containing the nine workflow-* and pattern-* files referenced by the Rules section and workflow steps, or remove those pointers and inline the essential detail — as bundled, every 'See workflow-*' and 'Read rules/<rule-name>.md' reference leads to a nonexistent file.

DimensionReasoningScore

Conciseness

Every fact is novel SDK-specific material (StatusCode casing, service.name vs ServiceName, nanosecond Duration, SQLite percentile limits) — no explaining of concepts Claude already knows — but there is real duplication: the fully-typed-rows point is stated three times, the errorRate-over-StatusCode preference three times, the 27-line Quick Example near-duplicates the RCA Workflow step-1 query, and the Tips section is largely a restatement of the gotchas. Matches the 3 anchor ("mostly efficient but… could be tightened"); not 4 because a whole section (Quick Example) and most of another (Tips) are redundant, which is more than minor trimming.

3 / 5

Actionability

Fully executable throughout: complete TypeScript snippets with imports and a copy-paste-ready triage script, the run command ("npx tsx rca.mts" with the .mts rationale and a node --experimental-strip-types fallback), the install command, a prescribed try/catch on KopaiQueryBuildError with e.issues handling, and exact CLI invocations with flags. Covers the common RCA cases (error triage, trace context, log correlation, time-series onset, metric bucketing); matches the 5 anchor.

5 / 5

Workflow Clarity

The RCA Workflow is a clearly sequenced 5-step process (find failing work → get trace context → correlate logs → quantify impact/pinpoint onset → present findings) with concrete code at each step, plus explicit validation and error-recovery checkpoints: the prescribed try/catch for build errors, "Empty result on a busy system ≈ a wrong column/value… Before concluding 'no errors / no data', re-check the column name and value casing", and the retention-floor warning against mistaking the data floor for onset. This is read-only analysis, so the destructive/batch validation cap does not apply; matches the 5 anchor.

5 / 5

Progressive Disclosure

The three references/ files (trace-filters.md, log-filters.md, metric-filters.md) exist, are one level deep, and are clearly signaled with one-line descriptions in a References section — 5-quality on that axis. However, the Rules section and most workflow steps direct the reader to nine rules/<rule-name>.md files (workflow-find-errors, workflow-get-context, workflow-correlate-logs, workflow-check-metrics, workflow-identify-cause, pattern-http-errors, pattern-slow-requests, pattern-distributed, pattern-log-driven) via "Read rules/<rule-name>.md for details" and "See workflow-find-errors" — and no rules/ directory exists in the bundle, so roughly a third of the body's outbound pointers dangle. This is more than the 4 anchor's "minor organization gaps"; it fits the 3 anchor (structure present but navigation to detail material is broken for the rule files).

3 / 5

Total

16

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An exemplary description: concrete capabilities, explicit 'Use when' triggers augmented with the vague symptom phrasings real users produce, and clear anti-triggers that route to sibling skills. Third-person voice throughout with no fluff despite its length — every clause carries capability or trigger information.

DimensionReasoningScore

Specificity

Lists five concrete, distinct actions — "debug errors and error-rate spikes, investigate latency/slowness and timeouts, trace requests across services, find failing or cascading services, and correlate logs to a trace" — which comprehensively covers the root-cause-analysis task space. This matches the 5 anchor (multiple specific concrete actions, comprehensive coverage); it is not 4 because there are no minor gaps in action coverage.

5 / 5

Completeness

Explicitly answers both: what ("Investigate and root-cause production issues from live OpenTelemetry telemetry (traces, logs, metrics) with the Kopai SDK in TypeScript code mode") and when ("Use this skill to debug errors and error-rate spikes… including vague symptom reports like 'why is my API slow'… even when the user never says 'traces' or 'observability'"). It also adds explicit negative triggers; this clearly matches the 5 anchor and exceeds the 4 anchor's "'when' could be more specific".

5 / 5

Trigger Term Quality

Includes natural phrases users actually say — "why is my API slow", "getting 500 errors", "service is down", "requests are timing out", "something is failing in prod" — alongside keywords "debug", "latency", "slowness", "timeouts", "slow", and "500 errors". Coverage of natural terms and synonym variants is comprehensive; not 4 because no common natural phrasing for this domain is missing.

5 / 5

Distinctiveness Conflict Risk

A clear niche (production RCA from live telemetry via a specific SDK) with explicit disambiguation: "Do NOT use it to add instrumentation (use otel-instrumentation), to build dashboards or visualizations (use create-dashboard), or to fix non-telemetry problems like failing CI, lint errors, unit tests, or SQL query tuning". Minimal conflict risk; matches the 5 anchor, not 4, because overlap with sibling skills is explicitly foreclosed rather than merely minor.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

kopai-app/kopai-mono

Path

skills/root-cause-analysis/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.