skill-session-analyzer

Analyze Claude Code session logs against SKILL.md specifications for PASS/FAIL reports.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you audit and verify that a past Claude Code session executed a target SKILL.md correctly, catching mismatched workflows, missing hook/subagent calls, and unexpected artifact behavior.

Core Features & Use Cases

  • Post-hoc session validation: Compares expected workflow elements from a target SKILL.md against actual behavior recorded in Claude Code session logs.
  • Deep log forensics: Extracts subagent invocations, hook matches/results (including permission decisions), and tool/hook execution evidence from debug logs.
  • Artifact verification: Checks whether expected files were created/written/deleted by searching tracked file history and atomic write signals.
  • Actionable pass/fail reporting: Produces a structured report summarizing expected vs actual components, deviations, and overall verdict.

Quick Start

Ask the assistant to analyze a completed session by providing the sessionId and the path to the target SKILL.md you want to validate.

Frequently Asked Questions about skill-session-analyzer

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

FAQPage Schema
How do I verify Claude Code session logs against a SKILL.md specification?

To verify Claude Code session logs against a SKILL.md specification, you provide a session ID and target SKILL.md path. The analyzer extracts expected behaviors, parses debug log traces for subagent and hook events, and generates an expected-vs-actual PASS/FAIL report.

Can I audit hook execution and subagent workflows from past debug logs?

Yes, you can audit hook execution and subagent workflows from past debug logs. The analysis extracts subagent invocations, hook matches, permission decisions, and tool execution evidence from session traces to identify workflow sequencing deviations.

What is post-hoc session validation for Claude Code?

Post-hoc session validation for Claude Code is the process of comparing expected workflow elements from a target SKILL.md against actual recorded behavior in session logs. It catches mismatched workflows, missing hook calls, and unexpected artifact behavior after execution.

How do I check if expected files were created during a Claude Code session?

To check if expected files were created during a Claude Code session, the analyzer verifies filesystem artifacts by searching tracked file history and atomic write signals. It validates whether expected files were created, written, or deleted according to the SKILL.md specification.

Do I need to manually locate session files under ~/.claude to audit them?

No, you do not need to manually locate session files under the ~/.claude directory to audit them. You simply provide the session ID and the path to the target SKILL.md, and the analyzer automatically locates and parses the required session files.

Why does my Claude Code subagent workflow show missing hook calls in debug logs?

Missing hook calls in Claude Code subagent workflows appear in debug logs when actual execution deviates from the expected SKILL.md specification. The analyzer identifies these mismatches by parsing log traces for hook matches and permission decisions to produce a structured deviation report.