← 返回
未分类 中文

Skill

AI conversation efficiency analyzer. Analyze Claude/ChatGPT/Cursor conversation history for KPI stats, cost tracking, topic distribution, and efficiency insi...
AI 对话效率分析器。分析 Claude/ChatGPT/Cursor 对话历史,获取 KPI 指标、成本追踪、话题分布和效率洞察。
melody1015 melody1015 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 546
下载
💾 1
安装
1
版本
#ai-conversations#analytics#latest#productivity

概述

Memory Forge — AI Conversation Efficiency Analyzer

Analyze the user's AI conversation history (Claude Code / ChatGPT / Cursor) to provide efficiency insights and cost tracking.

Data Source

Conversation data is stored in ~/.claude/projects/. Each project is a subdirectory containing JSONL conversation files.

Usage

When the user requests conversation analysis, follow these steps:

Step 1: Run the Statistics Script

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 statistics
  • projects: Per-project breakdown (sessions, cost, turns)
  • models: Per-model usage stats
  • cost_breakdown: Cost split by model

Step 2: Format the Output

Present results to the user in Markdown:

KPI Overview

📊 **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} |

Top 5 Projects by Cost

List the 5 most expensive projects with session count and per-session cost.

Weekly Trends

Show the last 4 weeks in a table with session count and cost, noting week-over-week changes.

Step 3: Efficiency Diagnosis (Agent Analysis)

Based on the statistics, provide insights on:

  1. Cost Efficiency: Which projects have unusually high per-session costs? Optimization opportunities?
  2. Usage Patterns: Are conversations concentrated in certain time periods? Any "high frequency, low efficiency" patterns?
  3. Topic Distribution: Over-concentration on a few projects? Neglected areas?
  4. Actionable Recommendations: 2-3 specific, actionable suggestions

Step 4: Optional Deep Analysis

If the user wants deeper analysis:

  • Read ~/memory-forge/data/topics.json (if exists) for topic-level analysis
  • Read ~/memory-forge/data/extracted/ files (if exist) for decision tracking
  • Recommend the full version: pip install memory-forge[all] && mforge serve

Script Parameters

# 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

Important Notes

  • All data processing happens locally — no data is uploaded anywhere
  • If ~/.claude/projects/ doesn't exist, inform the user and suggest checking the path
  • If the user wants visual dashboards, recommend the full Memory Forge:

```

pip install memory-forge[all]

mforge init

mforge run

mforge serve

```

  • Always respond in the user's language

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 20:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Forge 🔨 Repair-Inspect Loop

melody1015
Forge 🔨 — 修复‑检查循环编排器。自动化代码修复,独立检查,依赖感知的并行执行,文件安全防护。
★ 0 📥 854
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 298 📥 143,034
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 217 📥 71,594