返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
c

chat-history-analyzer

Extracts and analyzes Cursor IDE chat history to identify key discoveries, obstacles, and solutions, saving findings to the journal.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.5
安全检测
已通过
469
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

chat-history-analyzer

# Chat History Analyzer | OpenClaw Skill ## Description Extracts and analyzes Cursor IDE chat history to identify key discoveries, obstacles, and solutions, saving findings to the journal. # Chat History Analyzer | OpenClaw Skill Extracts chat history from Cursor IDE's local SQLite databases, analyzes the last hour of conversations for key discoveries, obstacles, and solutions, and saves structured findings to the OpenClaw journal directory. ## Usage - As a scheduled cron job to continuously track insights from chat history - Manually to analyze recent chat activity - To identify recurring patterns, problems, or solutions in your workflow ```bash # Combined log and chat history analysis (for cron jobs) python3 /Users/ghost/.openclaw/workspace/skills/chat-history-analyzer/scripts/analyze_logs.py # Analyze last hour of chat history only python3 /Users/ghost/.openclaw/workspace/skills/chat-history-analyzer/scripts/chat_history_analyzer.py # Analyze last 2 hours python3 /Users/ghost/.openclaw/workspace/skills/chat-history-analyzer/scripts/chat_history_analyzer.py --hours 2 # Output JSON format python3 /Users/ghost/.openclaw/workspace/skills/chat-history-analyzer/scripts/analyze_logs.py --json ``` ## What this skill does - **Extracts** chat history from Cursor's SQLite databases (global and workspace-specific) - **Analyzes** the last hour of messages for patterns indicating discoveries, obstacles, and solutions - **Saves** structured findings to `/Users/ghost/.openclaw/journal/` as markdown files - **Runs** automatically via cron job every hour ## Integration as a Cron Job This skill is designed to run hourly via OpenClaw cron. The `analyze_logs.py` script combines both log analysis and chat history analysis. **Example Cron Job Configuration:** ```json { "payload": { "kind": "agentTurn", "message": "Run analyze_logs.py script to analyze the last hour of logs and Cursor chat history, saving findings to journal.", "model": "openrouter/google/gemini-2.5-flash", "thinking": "low", "timeoutSeconds": 180 }, "schedule": { "kind": "cron", "cron": "0 * * * *" }, "delivery": { "mode": "announce" }, "sessionTarget": "isolated", "name": "Chat History & Log Analysis" } ``` **Or run directly via shell script:** ```bash # Add to crontab (crontab -e) # Run every hour at minute 0 0 * * * * /Users/ghost/.openclaw/workspace/skills/chat-history-analyzer/scripts/analyze_logs.py --json >> /Users/ghost/.openclaw/logs/analyze_logs.log 2>&1 ``` ## Output Format Findings are saved to `/Users/ghost/.openclaw/journal/chat_analysis_YYYY-MM-DD_HHMMSS.md` with sections for: - **Key Discoveries**: Successful findings, realizations, and implementations - **Obstacles Encountered**: Errors, failures, and blockers - **Solutions Found**: Fixes, workarounds, and resolutions ## Requirements - Cursor IDE installed with chat history stored locally - SQLite3 available (usually pre-installed on macOS) - OpenClaw journal directory writable ## How it works 1. Connects to Cursor's SQLite databases at `~/Library/Application Support/Cursor/User/globalStorage/state.vscdb` and workspace-specific databases 2. Extracts messages from the last N hours (default: 1 hour) 3. Analyzes message content using pattern matching for discoveries, obstacles, and solutions 4. Saves structured markdown report to the journal directory

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 chat-history-analyzer-1776298045 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 chat-history-analyzer-1776298045 技能

通过命令行安装

skillhub install chat-history-analyzer-1776298045

下载

⬇ 下载 chat-history-analyzer v1.0.5(免费)

文件大小: 9.42 KB | 发布时间: 2026-4-16 15:29

v1.0.5 最新 2026-4-16 15:29
No changes detected in this version.

- No file changes found between versions.
- SKILL.md content remains unchanged.
- Version metadata and functionality are the same as previous release.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部