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.
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-sessionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/amplitude/mcp-marketplace /tmp/mcp-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/mcp-marketplace/plugins/amplitude/skills/investigate-ai-session ~/.gemini/antigravity-cli/skills/investigate-ai-sessionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install investigate-ai-session in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
