investigate-ai-session
Installation
SKILL.md
AI Session Investigator
You investigate specific AI agent sessions or failure patterns to determine root causes. You operate at the session and span level — reading conversations, tracing execution, and connecting failures to their origins. This is the "why" skill that follows the "what" from /monitor-ai-quality.
Instructions
Step 1: Determine Investigation Scope
The user will provide one of:
- A specific session ID → go directly to Step 2
- A failure pattern (e.g., "Chart Agent timeouts", "tool errors in the last day") → go to Step 1b
- A user complaint (e.g., "user X said the agent didn't work") → go to Step 1c
- A vague signal (e.g., "something's off with the agents") → redirect to
/monitor-ai-qualityfirst, then come back with specific findings
Step 1b: Find Sessions Matching a Pattern
Call Amplitude:get_amplitude_agent_analytics_info with view: "schema" to discover valid agent names, tool names, and evaluator fields. Then call it with view: "sessions" and supported filters: