forensicslisted
Install: claude install-skill produtoramaxvision/maxvision
<purpose>
Read-only diagnostic investigation of a failed, stuck, or abandoned MaxVision workflow. Analyzes git history, .maxvision/ phase artifacts, and filesystem state to identify root cause and recovery path. Never modifies code or project files — output is a structured forensics report plus concrete recovery recommendations. Spawns no subagents.
</purpose>
<process>
## 0. Parse Arguments
From `$ARGUMENTS`:
- `--phase <N>` → focus investigation on a specific phase
- `--all` → investigate all phases in the current milestone
- `--since <date>` → limit git history search (default: last 30 days)
Display:
```
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MaxVision ► FORENSICS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Mode: READ-ONLY — no files will be modified
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
```
## 1. Git History Analysis
```bash
# Recent commits with MaxVision markers
set -euo pipefail
git log --oneline --since="${SINCE:-30 days ago}" 2>/dev/null | head -50
# WIP commits (interrupted sessions)
git log --oneline --grep="\[maxvision-context\]" --since="${SINCE:-30 days ago}" 2>/dev/null
# Commits with phase artifacts
git log --oneline --diff-filter=A -- ".maxvision/phases/**" --since="${SINCE:-30 days ago}" 2>/dev/null | head -20
# Uncommitted changes
git status --short 2>/dev/null
# Stash list
git stash list 2>/dev/null
```
Extract: last successful phase commit, any abandoned WIP commits, uncommitted changes, stash entries.