session-log-analyzer

Analyze agent session logs, generate PDF analysis reports, and sync them to Notion. Use when you need to (1) analyze session log files for usage statistics and errors, (2) generate PDF reports from log analysis, (3) sync analysis reports to a Notion database, or (4) set up or run scheduled daily log analysis tasks 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/terrycarter-session-log-analyzer

Session Log Analyzer

Analyze JSONL session logs, produce PDF reports, and sync to Notion.

Workflow

  1. Analyze logs → Run scripts/analyze_logs.py against a .jsonl log file
  2. Generate PDF → The script outputs a PDF report using nano_pdf
  3. Sync to Notion → Run scripts/sync_to_notion.py to push the report

Analyze Logs & Generate PDF

python scripts/analyze_logs.py /path/to/logs.jsonl /path/to/output_report.pdf

If args are omitted, defaults:

  • Log file: /workspace/session_logs/sample_logs.jsonl
  • Output: /workspace/pdfs/session_analysis_report.pdf

Sync to Notion

Requires env vars: NOTION_API_KEY, NOTION_REPORTS_DB_ID

python scripts/sync_to_notion.py /path/to/report.pdf

Default PDF path: /workspace/pdfs/session_analysis_report.pdf

Scheduled Daily Reports

A cron-driven daily task can run at 02:00 to auto-analyze, generate PDF, and sync to Notion.

See tmux_scripts/daily-log-report.sh in the workspace root for the scheduled task script. It is loaded automatically when the dev tmux session starts.

Manual trigger

/root/.openclaw/workspace/tmux_scripts/daily-log-report.sh now

Configuration

VariableDescription
NOTION_API_KEYNotion integration token
NOTION_REPORTS_DB_IDNotion database ID for reports
SESSION_LOG_DIRDirectory containing .jsonl log files (default: /workspace/session_logs)
PDF_OUTPUT_DIRDirectory for generated PDFs (default: /workspace/pdfs)

Log Format

Expects JSONL with fields: event, session_id, timestamp, skill_used, success, duration, error (optional).

See references/log-schema.md for full schema details.

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

Graph DB Toolkit

Graph database toolkit for Neo4j and Cypher-based graph analytics. Use when working with knowledge graphs, relationship queries, graph traversal, Neo4j opera...

Registry SourceRecently Updated
300Profile unavailable
Research

Pitch Meeting Coach

Coach a founder for the live VC / investor pitch meeting itself (not the deck — different skill). Covers pre-meeting research (partner background, recent inv...

Registry SourceRecently Updated
430Profile unavailable
Research

GOG Sales Analytics

Weekly GOG sales scraper, AI analysis via Gemini, and Feishu Drive report sync. Scrapes all discounted games from GOG catalog, generates markdown insights, a...

Registry SourceRecently Updated
460Profile unavailable
Research

Earnings Call Processor

Automated earnings call transcript processing and analysis. Use when the user provides an earnings call audio file or transcript and wants structured analysi...

Registry SourceRecently Updated
1190Profile unavailable