← 返回 Skills 市场
terrycarter1985

Session Log Analyzer

作者 terrycarter1985 · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ⚠ suspicious
31
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install terrycarter-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...
使用说明 (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.

安全使用建议
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.
功能分析
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.
能力标签
requires-sensitive-credentials
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install terrycarter-session-log-analyzer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /terrycarter-session-log-analyzer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
新增每日自动生成日志分析报告并同步至Notion的定时任务功能
元数据
Slug terrycarter-session-log-analyzer
版本 1.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 31 次。

如何安装 Session Log Analyzer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install terrycarter-session-log-analyzer」即可一键安装,无需额外配置。

Session Log Analyzer 是免费的吗?

是的,Session Log Analyzer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Session Log Analyzer 支持哪些平台?

Session Log Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Session Log Analyzer?

由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v1.2.0。

💬 留言讨论