Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

investigate

БесплатноБез исполняемых скриптовНе проверен

Finds the root cause of a production problem from observability data (logs, traces, errors, sessions, metrics): scope and onset, what changed (deploys and…

launchdarklyот launchdarkly★ 32 звезды на GitHub

Об этом скилле

Investigate

You are finding out why something broke. Most investigations stall in one of three places: the window or service is wrong, a filter silently matched nothing, or the agent read raw rows before it knew which slice of traffic was bad. The sequence below avoids all three. Follow it in order, then go deeper with the companion files.

Prerequisites

This skill requires the remotely hosted LaunchDarkly MCP server. Tools it uses:

  • Scope: find-o11y-project, get-keys, get-incidents
  • Shape and comparison: search-aggregations (with groupBy, compareTo, exact, series and formulas), search-service-map (with include: ["health"])
  • What changed: get-changes
  • Evidence: get-trace, search-traces, search-logs, search-log-patterns, search-error-groups, get-error-group, search-sessions, get-session-details, search-timeline-events
  • Alerts: get-alerts, get-alert-firing-history, get-investigation (see alert-investigation)

If a tool is missing, the MCP server may not be connected or may be older; say so rather than working around it. Some response fields named below (low_sample, ingest, self_ms, summary on firing history, alert_episode, error-group include, error_span_rate on get-changes versions, bucket_starts) arrived in a recent server release. If a response lacks one, the server predates it: use the manual fallback given next to it, and do not report the field as empty.

The first five minutes

Do these six steps before reading pages of raw rows. Each one is one to three calls. Keep a short running note of the window, the filter and what each step ruled in or out.

1. Scope and onset

Pin down the project, the service and the time the problem started.

  • Project. If the user did not name one, call find-o11y-project with the service name. Ask if there is no single clear match.
  • Service family. One system often reports under several names (production-api, staging-api, production-api-worker). Call get-keys with key: "service_name" and search: "<name>" and pick the exact values. Filter with services: [...] or service_name=(a OR b), not service_name=*api*: a * is a contains match and pulls in siblings.
  • Environment. Data is stored by project, environment and service; naming both narrows the read and keeps queries exact. Values are case-sensitive: get them with get-keys (the product type, key: "environment", query: "service_name=<svc>"); they can differ between products. Pick the one the question is about (Production for a production incident). From here on, pass environments and services on every search-logs, search-traces, search-log-patterns and search-aggregations call (logs, traces and metrics). Only search-traces with view: "traces" rejects them: put environment=<env> service_name=<svc> in its query. A trace_id lookup is the exception: drop services and keep environments, because one request crosses services and the downstream services' lines must appear. Listing every environment does not narrow the read; leave it out only when the question really spans all environments. The tools do not require an environment, and you should not guess one: when the question does not name or imply it, ask, or leave it out and group by environment to see where the failure is.
  • Incident. If the report names an incident (INC-123), call get-incidents with incidentId. Its created_at is when someone noticed, not when it began; start your window at least 2 hours earlier.
  • Onset. Run search-aggregations on the failing signal (error logs, 5xx spans, error groups) over a window wider than the report, for example 6 to 24 hours, with bucketCount 24 to 48. Find the first bucket that departs from the line. That is your anomaly window; the same-length window just before it, or the same time a day or week earlier, is your baseline. Each series' values line up with bucket_starts, one ISO 8601 UTC time per position; an older server returns buckets with bucket_min and bucket_max in Unix seconds instead.
  • Spread. Before you narrow to the busiest service, see how far the failure reaches. Group the failing signal by service_name over the whole family in the chosen environment (bucketCount: 1, groupByLimit 20, includeOther: true), and run one search-log-patterns with level=error, environments, the same family in services and patternKeys: ["service_name", "message"], which splits each message template by the service that logged it. The same message on many services points to something they share (a build, a base image, a certificate, a dependency), not to one service's code. A template masks quoted strings and numbers, so a URL in the message shows only in example: when the failing dependency matters, group the failing client spans by the key that holds the callee (server.address, net.peer.name or `url.
Полный SKILL.md на GitHub

Установить investigate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

errors.mdlogs.mdmetrics.mdrelationship-search.mdsessions.mdtraces.md

FAQ

Что делает скилл investigate?

Finds the root cause of a production problem from observability data (logs, traces, errors, sessions, metrics): scope and onset, what changed (deploys and flag changes), which host, version, route or flag variation is over-represented against a baseline, then trace, log and error evidence and blast radius. Use when the user reports a bug, an outage, an error or latency spike, an incident, or asks about patterns across application data.

Как установить скилл investigate?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл investigate запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить investigate с