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

Stock Invest Master

解密全球顶尖投资大师逻辑,AI驱动投资逻辑。融合格雷厄姆、巴菲特、段永平、林奇等十位顶级大师投资理论,构建从顶层"志·道"到落地"术·器"的立体多层次分析矩阵。支持A股、港股、美股市场股票分析,AI时代的最强"投资大脑"。分析报告自动保存为 Markdown 格式至~/.stock-invest-master/目...

Registry SourceRecently Updated
Research

PopAI Presentation Slides

Create presentations (PPT) using PopAI API. Use when asked to create slides, presentations, decks, or PPT content. Has built-in research capabilities — just...

Registry SourceRecently Updated
Research

Zhang Yidong Macro Analysis

基于张忆东宏观分析框架,研判A股港股走势、货币政策及结构性机会,辅助投资决策与资产配置。

Registry SourceRecently Updated
Research

Kg Note Method Obsidian

Obsidian笔记库按KG笔记法整理——四种笔记类型、链接权限、关系中转、命名规范、新旧分离。自动纠错+建关系+去重+补缺+无关内容分离+分层加载

Registry SourceRecently Updated