session-analyzer

Parses session JSONL logs to verify subagent, hook, and tool behavior against SKILL.md.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/treejh/ai-agent-skills --skill session-analyzer-treejh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-analyzer
Source: https://github.com/treejh/ai-agent-skills/tree/main/plugins/session-wrap/skills/session-analyzer
Command: npx skills add https://github.com/treejh/ai-agent-skills --skill session-analyzer-treejh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Validate completed Claude Code sessions to determine whether a skill followed its SKILL.md workflow, invoked expected subagents and hooks, and produced required artifacts, so engineers can trust past executions and diagnose failures.

Core Features & Use Cases

  • Expected vs Actual Comparison: Extracts expected components from a target SKILL.md and builds a checklist of required subagents, hooks, and artifacts.
  • Log Parsing & Event Extraction: Parses debug and session logs to locate SubagentStart/SubagentStop events, hook match and permission decisions, and file write/delete operations.
  • Automated Reporting: Produces a structured report highlighting deviations, ordering issues, missing artifacts, and hook failures for post-mortem analysis and debugging.

Quick Start

Ask the skill to analyze a completed session by providing the session UUID and the path to the target SKILL.md to get a PASS/FAIL report and a detailed discrepancy list.

Frequently Asked Questions about session-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate completed Claude Code sessions against expected skill workflows?

You can validate completed Claude Code sessions by parsing debug and session JSONL logs to compare observed subagent invocations, hook matches, and artifact creation against a target SKILL.md, generating a structured PASS/FAIL discrepancy report.

How do I parse Claude Code JSONL logs to extract subagent and hook events?

Parsing Claude Code JSONL logs involves locating SubagentStart and SubagentStop events, hook permission decisions, and file write or delete operations with timestamps to verify actual execution behavior against expected workflow components.

What is post-hoc session validation for Claude Code skill correctness?

Post-hoc session validation is the process of analyzing completed session logs to determine whether a skill followed its SKILL.md workflow, invoked expected subagents and hooks, and produced required artifacts, enabling engineers to trust past executions and diagnose failures.

Can I verify artifact creation and hook permissions for completed Claude Code sessions?

Yes, you can verify artifact creation and hook permissions by parsing debug logs to extract file write and delete operations alongside hook match decisions, then comparing these observed events against the expected checklist derived from a target SKILL.md.

How do I generate a PASS/FAIL report for Claude Code hook and subagent behavior?

Generating a PASS/FAIL report requires extracting expected components from a target SKILL.md, parsing session logs to locate actual subagent and hook events, and producing a structured report that highlights deviations, ordering issues, missing artifacts, and hook failures.

Why does my Claude Code skill execution fail to match the expected SKILL.md workflow?

Skill execution mismatches occur when observed subagent invocations, hook matches, or artifact creation events parsed from session logs deviate from the expected checklist extracted from the target SKILL.md, which the validation report highlights for debugging.