← Back to Skills Marketplace
terrycarter1985

Session Log Analyzer

by terrycarter1985 · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ⚠ suspicious
31
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install terrycarter-session-log-analyzer
Description
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 a...
README (SKILL.md)

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

Variable Description
NOTION_API_KEY Notion integration token
NOTION_REPORTS_DB_ID Notion database ID for reports
SESSION_LOG_DIR Directory containing .jsonl log files (default: /workspace/session_logs)
PDF_OUTPUT_DIR Directory 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.

Usage Guidance
Review this skill before installing. The manual log-analysis and Notion-sync scripts are simple and mostly aligned with the stated purpose, but do not enable the scheduled daily task unless the missing tmux script is provided and reviewed. Use a narrowly scoped Notion token, verify exactly which PDF will be synced, and avoid syncing reports that contain sensitive session data unless the Notion database is trusted.
Capability Analysis
Type: OpenClaw Skill Name: terrycarter-session-log-analyzer Version: 1.2.0 The skill bundle provides legitimate functionality for analyzing session logs and syncing reports to Notion. The Python scripts (`analyze_logs.py` and `sync_to_notion.py`) use standard data processing and API integration patterns, and the workflow aligns perfectly with the documentation in SKILL.md. No evidence of malicious intent, unauthorized data exfiltration, or dangerous execution was found.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The core purpose is coherent: analyze JSONL session logs, generate PDFs, and optionally sync reports to Notion. However, the implementation appears to ignore the CLI paths documented in SKILL.md and uses fixed default paths instead.
Instruction Scope
The skill describes a cron/tmux-driven daily workflow that auto-analyzes logs and syncs to Notion, which is higher-impact than a simple user-triggered report workflow.
Install Mechanism
The registry says there is no install spec, but SKILL.md references an auto-loaded tmux script that is not present in the provided file manifest, leaving the scheduled behavior unreviewed.
Credentials
Using a Notion API key is expected for Notion sync, but the registry metadata declares no required environment variables even though SKILL.md and code require Notion credentials for sync.
Persistence & Privilege
The documented daily task would persist beyond a single manual invocation and can create Notion pages automatically if configured.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install terrycarter-session-log-analyzer
  3. After installation, invoke the skill by name or use /terrycarter-session-log-analyzer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.0
新增每日自动生成日志分析报告并同步至Notion的定时任务功能
Metadata
Slug terrycarter-session-log-analyzer
Version 1.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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 a... It is an AI Agent Skill for Claude Code / OpenClaw, with 31 downloads so far.

How do I install Session Log Analyzer?

Run "/install terrycarter-session-log-analyzer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Session Log Analyzer free?

Yes, Session Log Analyzer is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Session Log Analyzer support?

Session Log Analyzer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Session Log Analyzer?

It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v1.2.0.

💬 Comments