Install
openclaw skills install memory-forgeAI conversation efficiency analyzer. Analyze Claude/ChatGPT/Cursor conversation history for KPI stats, cost tracking, topic distribution, and efficiency insights. Use when: user asks to analyze their AI conversation history, track API costs, see topic distribution, review conversation efficiency, or get usage insights. NOT for: code review, debugging, or general productivity tips.
openclaw skills install memory-forgeAnalyze the user's AI conversation history (Claude Code / ChatGPT / Cursor) to provide efficiency insights and cost tracking.
Conversation data is stored in ~/.claude/projects/. Each project is a subdirectory containing JSONL conversation files.
When the user requests conversation analysis, follow these steps:
python3 ~/memory-forge/skill/scripts/analyze.py --weekly
This script reads all conversation files locally and outputs structured JSON containing:
summary: KPI overview (total sessions, turns, tokens, cost, daily average, active days)weekly: Last 4-8 weeks of weekly statisticsprojects: Per-project breakdown (sessions, cost, turns)models: Per-model usage statscost_breakdown: Cost split by modelPresent results to the user in Markdown:
📊 **AI Conversation Efficiency Report**
| Metric | Value |
|--------|-------|
| Total Sessions | {sessions} |
| Active Days | {active_days} |
| Daily Avg Sessions | {daily_avg} |
| Total Cost | ${total_cost} |
| Avg Cost/Session | ${avg_cost} |
List the 5 most expensive projects with session count and per-session cost.
Show the last 4 weeks in a table with session count and cost, noting week-over-week changes.
Based on the statistics, provide insights on:
If the user wants deeper analysis:
~/memory-forge/data/topics.json (if exists) for topic-level analysis~/memory-forge/data/extracted/ files (if exist) for decision trackingpip install memory-forge[all] && mforge serve# Default: full statistics
python3 ~/memory-forge/skill/scripts/analyze.py
# Last N days only
python3 ~/memory-forge/skill/scripts/analyze.py --days 30
# Filter by project
python3 ~/memory-forge/skill/scripts/analyze.py --project "my-project"
# Include weekly trends
python3 ~/memory-forge/skill/scripts/analyze.py --weekly
~/.claude/projects/ doesn't exist, inform the user and suggest checking the pathpip install memory-forge[all]
mforge init
mforge run
mforge serve