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★ 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(withgroupBy,compareTo,exact,seriesandformulas),search-service-map(withinclude: ["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-projectwith 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). Callget-keyswithkey: "service_name"andsearch: "<name>"and pick the exact values. Filter withservices: [...]orservice_name=(a OR b), notservice_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 (Productionfor a production incident). From here on, passenvironmentsandserviceson everysearch-logs,search-traces,search-log-patternsandsearch-aggregationscall (logs, traces and metrics). Onlysearch-traceswithview: "traces"rejects them: putenvironment=<env> service_name=<svc>in itsquery. Atrace_idlookup is the exception: dropservicesand keepenvironments, 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 byenvironmentto see where the failure is. - Incident. If the report names an incident (INC-123), call
get-incidentswithincidentId. Itscreated_atis when someone noticed, not when it began; start your window at least 2 hours earlier. - Onset. Run
search-aggregationson the failing signal (error logs, 5xx spans, error groups) over a window wider than the report, for example 6 to 24 hours, withbucketCount24 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'valuesline up withbucket_starts, one ISO 8601 UTC time per position; an older server returnsbucketswithbucket_minandbucket_maxin Unix seconds instead. - Spread. Before you narrow to the busiest service, see how far the failure reaches. Group the failing signal by
service_nameover the whole family in the chosen environment (bucketCount: 1,groupByLimit20,includeOther: true), and run onesearch-log-patternswithlevel=error,environments, the same family inservicesandpatternKeys: ["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 inexample: when the failing dependency matters, group the failing client spans by the key that holds the callee (server.address,net.peer.nameor `url.
Установить investigate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic