cc-analytics

Solid

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", "что делал"

AI & Automation 176 stars 21 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
75
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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.exists(os.path.join(path, '.git')): return None, 0 try: result = subprocess.run(['git', '-C', path, 'remote', 'get-url', 'origin'], capture_output=True, text=True, timeout=5) remote = result.stdout.strip() if result.returncode == 0 else None if remote: remote = remote.replace('git@github.com:', 'github.com/').replace('.git', '').replace('https://', '') week_ago = (datetime.now() - timedelta(days=7)).strftime('%Y-%m-%d') result = subprocess.run(['git', '-C', path, 'rev-list', '--count', f'--since={week_ago}', 'HEAD'], capture_output=True, text=True, timeout=5) commits = int(result.stdout.strip()) if result.returncode == 0 else 0 return remote, comm...

Details

Author
serejaris
Repository
serejaris/personal-corp-skills
Created
5 months ago
Last Updated
yesterday
Language
HTML
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category