plugins-claude/session-history-analyzer/skills/history-analyze/SKILL.md
Analyze Claude Code session history for workflow patterns, friction hotspots, and automation candidates
npx skillsauth add st0nefish/claude-toolkit history-analyzeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyze Claude Code session JSONL files to identify workflow patterns, friction hotspots, and automation candidates.
--since <date> — only analyze sessions modified after this date (ISO 8601)--project <name> — only analyze sessions for projects matching this name--force — re-analyze previously analyzed sessionsDiscover sessions — run the discovery script to enumerate available sessions:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/discover-sessions.sh [--since <date>] [--project <name>]
Filter already-analyzed — for each discovered session, check incremental state (unless --force):
bash ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh is-analyzed <session_id>
Skip sessions that return exit 0 (already analyzed).
Present summary and confirm — show the user:
Use AskUserQuestion to confirm before dispatching analysis agents.
Dispatch per-project agents — group pending sessions by project_slug. For each project cluster, launch an Agent subagent that:
parse-session.sh on each session in the clusterUse parallel Agent calls for independent project clusters.
Example agent prompt: "Parse these session files and return a JSON summary. Run bash <plugin_root>/scripts/parse-session.sh <jsonl_path> for each file. Aggregate total sessions, total turns, tool frequency, friction counts, and workflow patterns. Return a single JSON object with the project summary."
Mark analyzed — for each processed session:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh mark-analyzed <session_id> <project_slug> <started_at>
Synthesize report — combine all project summaries into a consolidated analysis:
Present report — display the consolidated report to the user. Offer to save it:
mkdir -p ~/.claude/session-analysis/reports
Save to ~/.claude/session-analysis/reports/YYYY-MM-DD.md if the user agrees.
development
Start work from your description — explore the codebase and plan
data-ai
Multi-phase, multi-agent feature workflow: spec → plan → refine → divide → execute → review. Invoke when the user escalates a session-start/session-issue flow to orchestration, or asks to run a non-trivial feature (multiple files, design ambiguity, cross-cutting concerns, correctness-critical paths) through the full multi-agent workflow. For small fixes, prefer session-start.
tools
Browse open issues, pick one, and start work on it
tools
Review, clean up, and open a PR to finalize the work