
Investigate AI session
Diagnoses why specific Amplitude-instrumented AI agent sessions failed and traces root
Investigate AI session is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 50
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Investigate AI session
This skill investigates individual AI agent sessions or recurring failure patterns in projects that already use Amplitude Agent Analytics. It moves from a session ID, a complaint about a user, or a flagged issue to a root cause analysis by reading the conversation, the execution spans, and the evaluator enrichment for each session.
The workflow pulls the session detail, transcript and span trace in parallel, looks for errored spans, slow tool calls, repeated retries and oversized model calls, and then classifies the failure as a tool, model, orchestration, user-confusion or context problem. It then checks whether similar sessions or tool reliability changes point to a one-off or a systemic issue, and limits deep dives to a handful of sessions.
The skill is built around calls to the Amplitude agent analytics tool and expects an Amplitude project with agent instrumentation. It is designed to follow the monitor-ai-quality skill, which surfaces the problem before this one explains it.
When your agent uses it
Deep-dives into specific AI agent sessions or failure patterns to explain why something went wrong. Only use when the user has Amplitude Agent Analytics instrumented in their project. Use when investigating a specific session ID, debugging agent failures, understanding why quality is low, tracing tool errors, or when monitor-ai-quality surfaces an issue that needs root cause analysis.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (10 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the amplitude plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add amplitude/mcp-marketplace
/plugin install amplitude@amplitudeOr copy only this skill to ~/.claude/skills/investigate-ai-session:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/investigate-ai-session &&
cp -R "$tmp/plugins/amplitude/skills/investigate-ai-session" ~/.claude/skills/investigate-ai-session &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/investigate-ai-session inside it instead.
Copy the skill folder to ~/.agents/skills/investigate-ai-session to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/investigate-ai-session &&
cp -R "$tmp/plugins/amplitude/skills/investigate-ai-session" ~/.agents/skills/investigate-ai-session &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/investigate-ai-session inside it instead.
Copy the skill folder to ~/.cursor/skills/investigate-ai-session to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/investigate-ai-session &&
cp -R "$tmp/plugins/amplitude/skills/investigate-ai-session" ~/.cursor/skills/investigate-ai-session &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/investigate-ai-session inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/amplitude/mcp-marketplace.git --path plugins/amplitude/skills/investigate-ai-sessionOr copy the folder to ~/.gemini/skills/investigate-ai-session yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/investigate-ai-session:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/investigate-ai-session &&
cp -R "$tmp/plugins/amplitude/skills/investigate-ai-session" ~/.copilot/skills/investigate-ai-session &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/investigate-ai-session inside it instead.
Get the folder:
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.gitThen copy mcp-marketplace/plugins/amplitude/skills/investigate-ai-session into your agent's skills folder as investigate-ai-session. Agents that support SKILL.md read one folder per skill.
What it does
- Session deep dive
- Pulls detailed enrichment, conversation transcript and execution spans for a given session.
- Failure classification
- Sorts failures into tool, model, orchestration, user confusion or missing context categories.
- Pattern search
- Finds related sessions by agent, tool, error flag, topic or user to test whether a failure is systemic.
- Tool reliability checks
- Compares tool error rates and latency over time to spot when a dependency started failing.
- Root cause report
- Produces a summary, session table, trace highlights, scope assessment and numbered fixes.
Good for
- Explain why a specific agent session with ID abc-123 produced a bad result
- Find out why Chart Agent sessions have been failing this week
- Trace which tool call caused a timeout in a customer's conversation
- Check whether a tool's error rate rose after a recent deployment
- Investigate why answer quality dropped for a set of recent sessions
Investigate AI session FAQ
What does Investigate AI session require before it can run?
It is only meant for projects that have Amplitude Agent Analytics instrumented, and it calls the Amplitude agent analytics tool to read sessions, conversations, spans and tool reliability data.
When does Investigate AI session trigger?
It triggers when investigating a session ID, debugging agent failures, understanding low quality, tracing tool errors, or when monitor-ai-quality surfaces an issue needing root cause analysis.
Does Investigate AI session change anything in my agent or project?
The skill describes reading and analyzing session data and recommends fixes; it does not describe making changes to code or configuration itself.
What if spans are missing for a session?
The skill says span data requires OpenTelemetry-compatible tracing in the agent. Without it, it reports what is available at the session and conversation level and notes that span data would help.
How do I install Investigate AI session in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/investigate-ai-session to use it in all your projects, or to .claude/skills/investigate-ai-session in one project. Or install the amplitude plugin, which includes it: /plugin marketplace add amplitude/mcp-marketplace, then /plugin install amplitude@amplitude.
Does Investigate AI session run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Investigate AI session?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Investigate AI session?
The closest alternatives to Investigate AI session are Monitor AI quality, Agent insights, Diagnosing superpowers, Agent introspection debugging and Agent architecture audit.
Where this comes from
- Description: from the skill's own SKILL.md.
More from amplitude/mcp-marketplace

Breaks down an Amplitude chart to explain a spike, drop or unusual trend
- Open source
- 50 GitHub stars
- Analytics and data

Triages product errors across network failures, JS errors and error clicks
- Open source
- 50 GitHub stars
- Analytics and data

Scans Amplitude experiments, triages them by importance and reports on the key ones
- Open source
- 50 GitHub stars
- Analytics and data

Copies tracking-plan events between Amplitude projects via CSV import and branch review
- Open source
- 50 GitHub stars
- Analytics and data

Orchestrates batched audits of missing Amplitude event descriptions via worker subagents
- Open source
- 50 GitHub stars
- Analytics and data

Onboards you to Amplitude's Grok bot: connects MCP servers, checks project access, picks
- Open source
- 50 GitHub stars
- Analytics and data




