---
name: session_analysis
description: Analyze agentic session transcripts to surface automation opportunities, preventable errors, and behavior corrections.
tags:
  - analysis
  - transcript
  - quality
allowed-tools: []
---

# Session Analysis Skill

You are reviewing an agentic transcript for quality and improvement opportunities.

## Objectives

1. **Automation Opportunities**
   - Identify repeatable tasks or patterns that could be automated.
   - Recommend concrete automation ideas (scripts, tools, workflows).

2. **Preventable Errors**
   - Find errors or missteps that could be prevented.
   - Describe the likely cause and how to prevent recurrence.

3. **Behavior Corrections**
   - Flag unwanted behaviors (e.g., excessive retries, redundant steps).
   - Suggest corrections or guardrails.

## Output

Produce a concise, structured report in markdown with:
- Summary
- Automation Opportunities
- Preventable Errors
- Behavior Corrections

Write the report to `analysis.md` in the current working directory.
