All skills
launchdarkly avatar

/investigate

@c3d4333 official

Analyzes observability data — logs, traces, errors, sessions, and metrics — to find root cause and actionable evidence. Use when the user reports a bug, an unexpected behavior, or asks about patterns across application data.

Use this Skill: https://skilld.dev/gh/launchdarkly/agent-skills/investigate

This session only. Nothing lands on disk.

errors.md

≈668 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Investigating with error groups

Load this file when the investigation concerns error groups, exception patterns, or crash analysis.

When to reach for error groups

  • The user reports a crash, exception, or regression
  • You need to understand scope of impact (users affected, frequency, timeline)
  • You're hunting for a recent regression and need to find the first-seen timestamp
  • You have an error group ID and want to pull its stack trace and associated sessions

Error groups collapse many individual errors into a single entity by stack-trace similarity. That's your unit of investigation.

Tool guidance (query-error-groups)

The query-error-groups tool returns error groups with frequency, stack traces, and attributes.

  • start_date is required; ISO format.
  • end_date defaults to now.
  • query filters by attributes — e.g. error_type='RuntimeError' AND environment=production.
  • count defaults to 10, max 50.
  • page for pagination.

Important query note. Do NOT use the event attribute — it's not valid. Use exception.message to filter on error message content:

query="exception.message=\"Cannot use 'in' operator*\" and service_name=gonfalon-web"

Typical patterns

  1. New error detection — compare two time windows via query-aggregations with product_type="errors" and group_by="error_type"; investigate error types with higher counts in the recent window.
  2. Regression hunt — query error groups in the last N hours, note first_seen timestamps, cross-reference with deploy/flag-flip timeline.
  3. Blast-radius estimate — for a specific error group, count distinct session IDs via query-sessions with query="error_group_id=<id>".
  4. Stack-trace analysis — read the trace as a narrative. The originating frame is the lowest-level application code frame (not framework code).

Interpreting results

  • Scope first, cause second. One user hitting a RuntimeError in a rare code path is different from a regression affecting 30% of traffic.
  • Look for a change that correlates with onset — a deploy, a flag flip, a dependency upgrade, a traffic spike, a time-of-day pattern.
  • Cite the error group ID, affected count, and first-seen timestamp in your summary.
  • If the stack points into a third-party dependency, say so — the fix may not be in our code.

Common mistakes

  • Using event in the query. Use exception.message.
  • Reporting "many errors" without specifying which error group or how many. Always quantify.
  • Ignoring the distinction between error onset (new regression) and persistent errors (ongoing bug). They call for different remediation.

Source: SKILL.md on GitHub

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a comprehensive suite for investigating application observability data via LaunchDarkly. It enables searching logs, traces, errors, and sessions. The skill includes instructions to use local shell tools like Bash, Python, and JQ for processing large data outputs. While these are standard developer workflows, they represent an execution surface that could be targeted via indirect prompt injection if the observability data contains malicious payloads.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at c3d4333. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 3 months ago
compatibility
Requires the remotely hosted LaunchDarkly MCP server
metadata
{
  "author": "launchdarkly",
  "version": "0.1.0"
}

README badge

README badge for launchdarkly/agent-skills/investigate