{"skill":{"slug":"session-log-analyzer","displayName":"Session Log Analyzer","summary":"Analyze agent session logs and generate PDF reports with Notion sync","description":"---\nname: session-log-analyzer\ndescription: Analyze agent session logs and generate PDF reports with Notion sync\nversion: 1.2.0\nauthor: ClawdBot\ntags: [logs, analysis, pdf, notion]\nrequires_bins: [python3]\nrequires_env: [NOTION_API_KEY, NOTION_REPORTS_DB_ID]\nrequires_config: []\nchangelog:\n  - version: 1.2.0\n    date: 2026-05-07\n    changes: \"修复日志分析报告生成和Notion同步问题\"\n  - version: 1.1.0\n    date: 2026-05-07\n    changes: \"修复日志分析报告生成和Notion同步问题\"\n  - version: 1.0.0\n    date: 2026-04-01\n    changes: \"Initial release\"\n---\n\n# Session Log Analyzer\n\nAnalyze agent session logs and generate PDF reports with optional Notion sync.\n\n## Features\n\n- Parse JSONL session logs and compute statistics\n- Generate PDF analysis reports with skill usage breakdown and error summaries\n- Sync generated reports to a Notion database\n\n## Usage\n\n### Generate Report\n\n```bash\nPYTHONPATH=./lib python3 scripts/analyze_logs.py\n```\n\n### Sync to Notion\n\nSet environment variables first:\n\n```bash\nexport NOTION_API_KEY=\"your-integration-token\"\nexport NOTION_REPORTS_DB_ID=\"your-database-id\"\nPYTHONPATH=./lib python3 scripts/sync_to_notion.py\n```\n\n## Report Contents\n\n- Total sessions count\n- Skill invocation statistics (success/failure rates)\n- Duration totals\n- Per-skill usage breakdown\n- Recent errors listing\n\n## Configuration\n\n| Variable | Required | Description |\n|---|---|---|\n| `NOTION_API_KEY` | For sync | Notion integration token |\n| `NOTION_REPORTS_DB_ID` | For sync | Target Notion database ID |\n\n## Notes\n\n- Input logs must be in JSONL format with `event`, `session_id`, `skill_used`, `success`, and `duration` fields\n- PDF output is saved to `pdfs/session_analysis_report.pdf`\n- Notion sync uploads the first 2000 characters of extracted report text","topics":["Notion","PDF","Log Analyzer","Logs","Analysis"],"tags":{"latest":"99.1.0"},"stats":{"comments":0,"downloads":564,"installsAllTime":21,"installsCurrent":0,"stars":0,"versions":12},"createdAt":1775687107575,"updatedAt":1778545094829},"latestVersion":{"version":"99.1.0","createdAt":1778106040354,"changelog":"修复日志分析报告生成和Notion同步问题","license":"MIT-0"},"metadata":{"setup":[],"os":null,"systems":null},"owner":{"handle":"terrycarter1985","userId":"s17brwfrqyjhbjgadkvar20h8x8492g8","displayName":"terrycarter1985","image":"https://avatars.githubusercontent.com/u/1542987?v=4"},"moderation":null}