Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

investigate-ai-session

Skill by amplitude

Investigates specific AI agent sessions or failure patterns in Amplitude to explain why something went wrong. Built for teams with Amplitude Agent Analytics instrumented in their project.

  • Score 52
  • 49 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install investigate-ai-session

Built from the published package, never by AI.

git clone --depth 1 https://github.com/amplitude/mcp-marketplace /tmp/mcp-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/mcp-marketplace/plugins/amplitude/skills/investigate-ai-session ~/.claude/skills/investigate-ai-session

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install investigate-ai-session in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The AI Session Investigator skill examines specific AI agent sessions or failure patterns and explains the root cause. It handles a session ID, agent failures, tool errors, low quality, frustrated users, and user complaints. The source says it follows monitor-ai-quality, which shows what is failing, while this skill explains why.

It reads session details, conversation transcripts, and execution spans through the Amplitude agent analytics tool. It classifies the failure type, checks whether the issue is one-off or systemic, and looks for triggers such as tool health changes. The output is a root cause report with a session table, trace highlights, scope assessment, and recommended fixes. It is for users who have Amplitude Agent Analytics set up in their project.

Written from the project's SKILL.md and checked against it.

What it can do

  • get_amplitude_agent_analytics_info (view: schema)Discovers valid agent names, tool names, and evaluator fields.
  • get_amplitude_agent_analytics_info (view: sessions)Finds sessions by failure, tool error, quality, sentiment, cost, or duration.
  • get_amplitude_agent_analytics_info (view: conversation)Reads the full user and agent exchange for a session.
  • get_amplitude_agent_analytics_info (view: spans)Traces LLM calls, tool calls, and embeddings with latency, status, and cost.
  • get_amplitude_agent_analytics_info (view: tool_reliability)Checks whether a tool's error rate or latency changed.
  • Root cause reportClassifies the failure, assesses scope, and suggests concrete fixes.

What you need

  • Amplitude Agent Analytics instrumented in the project
  • Access to the Amplitude:get_amplitude_agent_analytics_info tool
  • OpenTelemetry-compatible tracing in the AI agent for span data

Try asking

  • What happened in session abc-123?
  • Why are Chart Agent sessions failing this week?
  • Investigate why a customer got wrong data yesterday

Good to know

  • Only for projects with Amplitude Agent Analytics instrumented.
  • Span-level detail requires OpenTelemetry-compatible tracing in the AI agent.
  • Investigates no more than 5 sessions in detail; larger sets are grouped first.
  • Sessions outside the data retention window may not be found.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/amplitude/skills/investigate-ai-session/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to investigate-ai-session

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

investigate-ai-session: common questions

What if span data is missing for a session?

The skill reports what is available at the session and conversation level. It notes that span data would help narrow the root cause.

Can it look up one user's sessions?

Yes. It can filter sessions by a supported user identifier and by date when the user gives a timeframe.

How is this different from monitor-ai-quality?

The source describes monitor-ai-quality as the what and this skill as the why. It is meant to follow monitor-ai-quality when an issue needs root cause analysis.

How do I install investigate-ai-session?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is investigate-ai-session free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is investigate-ai-session safe to use?

It scores 52 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to investigate-ai-session?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

investigate-ai-session Install

Add to stack

Loading.