session-comparelisted
Install: claude install-skill edobreque/clens
# Session Compare
Compare two distilled clens sessions side-by-side to identify performance differences and determine which approach was more effective.
## Variables
TARGET: $ARGUMENTS
## Instructions
### 1. Resolve the Sessions
- If TARGET contains two session IDs (space-separated), use those
- If TARGET is `--last 2` or `--last`, find the two most recent distilled sessions:
- List files in `.clens/distilled/` sorted by modification time
- Use the two most recently modified `.json` files
- If TARGET contains only one session ID, use it as Session A and the most recent other session as Session B
- If fewer than 2 distilled sessions exist, tell the user:
> Need at least 2 distilled sessions to compare. Run `clens distill` on more sessions first.
Label the older session as **Session A** and the newer as **Session B**.
### 2. Read Both Sessions
- Read both distilled JSON files from `.clens/distilled/{sessionId}.json`
- Parse both as `DistilledSession` objects
- Load the `session-analysis` skill for schema and interpretation context
### 3. Generate the Comparison Report
Use the following template. Compute all deltas and provide analysis.
---
## Session Comparison: {session_a_id first 8 chars} vs {session_b_id first 8 chars}
### Metrics Comparison
| Metric | Session A | Session B | Delta | Better |
|--------|-----------|-----------|-------|--------|
| Duration | {a.summary.key_metrics.duration_human} | {b.summary.key_metrics.duration_human} | {difference} | {a