session-log-analyzer

Analyze agent session logs, generate PDF reports, and sync to Notion. Use when processing JSONL session logs, producing daily analysis reports, scheduling automated report generation, or syncing analysis results to Notion databases. Supports ad-hoc analysis and scheduled daily report generation via tmux cron.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "session-log-analyzer" with this command: npx skills add terrycarter1985/session-log-analyzer

Session Log Analyzer

Analyze agent session logs (JSONL format), generate PDF reports, and sync results to Notion.

Quick Start

Ad-hoc Analysis

python scripts/analyze_logs.py <log_file> <output_pdf>

Sync Report to Notion

export NOTION_API_KEY=<key>
export NOTION_REPORTS_DB_ID=<database_id>
python scripts/sync_to_notion.py <pdf_path>

Daily Automated Report

The daily_log_report.sh script runs as a cron job inside a tmux session, generating reports at 2:00 AM daily.

See references/daily-report-setup.md for setup instructions.

Log Format

Expects JSONL files with fields: timestamp, session_id, user_id, event (session_start/session_end/skill_invocation), skill_used, success, duration, error (optional).

Report Contents

  • Total sessions and skill invocations
  • Success/failure rates
  • Duration statistics
  • Per-skill usage breakdown
  • Recent error details

Environment Variables

VariableRequiredDescription
NOTION_API_KEYFor Notion syncNotion integration API key
NOTION_REPORTS_DB_IDFor Notion syncTarget Notion database ID
LOG_DIRNoSession log directory (default: /workspace/session_logs)
REPORT_DIRNoPDF output directory (default: /workspace/pdfs)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

Cookiy

AI-powered user research through natural language. Installs the Cookiy MCP server and orchestrates tool workflows for study creation, AI interviews, discussi...

Registry SourceRecently Updated
Research

Felo LiveDoc

Manage Felo LiveDocs (knowledge bases) and their resources. Use when users want to create, manage, or query knowledge bases, upload documents, add URLs, or p...

Registry SourceRecently Updated
Research

private computation

Zero-Knowledge Execution for Sensitive Agent Tasks - Privacy computing framework for AI Agents

Registry SourceRecently Updated
Research

SEO to Kanban Workflow

A complete SEO workflow skill that guides your agent from keyword research to HTML generation, while visually tracking every step on a cloud Kanban dashboard...

Registry SourceRecently Updated
2860Profile unavailable