cc-analytics
仓库创建 2025年12月16日最近提交 8 天前SkillHot 收录 20 天前
▸ 精选理由
快速把本地交互记录转成可视化报告,便于回顾工作量与项目分布。
▸ 风险提示
会读取 ~/.claude/history.jsonl,包含敏感提示与历史,对隐私有泄露风险。
这个 Skill 做什么
从本地 Claude Code 历史生成 HTML 周报与使用统计,展示项目与活动摘要。
从你本地的 Claude Code 历史记录里抽出活动数据,生成一份带终端风格排版的 HTML 周报,汇总项目、提示次数、提交量等使用统计。想看看最近都在哪些项目上动过手、哪天最常用 Claude Code 或要给团队发周报时会用到。特别之处是会结合本地 history.jsonl 和 Git 信息,给出每个项目的摘要与 commit 计数,输出单文件便于分享。
▸ 展开 SKILL.md 英文原文
Use when user asks for Claude Code usage stats, weekly analytics, project activity summary, or wants to see what projects were worked on. Triggers on "аналитика", "статистика claude", "cc stats", "weekly report", "что делал"
207
Stars
26
Forks
32
仓库内 Skill
+5
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/serejaris/personal-corp-skills/main/skills/cc-analytics/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/serejaris/personal-corp-skills/main/skills/cc-analytics/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Claude Code Analytics
Generate HTML report of Claude Code usage from `~/.claude/history.jsonl`.
## Data Sources
- **History:** `~/.claude/history.jsonl` — prompts with timestamps and project paths
- **Git:** Remote URLs and commit counts per project
## Output
Single HTML file with terminal aesthetic:
- ASCII art header
- Summary stats (projects, prompts, commits, days)
- Project table with remote links
- ASCII bar chart
## Generation Script
Run this Python script to generate the report:
```python
import json
import os
import subprocess
from datetime import datetime, timedelta
from collections import defaultdict
def get_git_info(path):
if not os.path.isdir(path) or not os.path.via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有