返回顶部
g

git-stats

Analyze git repository statistics including contributor rankings, lines of code by language, commit frequency by day/hour, monthly activity trends, and file type breakdowns. Use when asked to analyze a repo, show git stats, get contributor info, count lines of code, or visualize commit activity patterns.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
110
下载量
0
收藏
概述
安装方式
版本历史

git-stats

# Git Stats Analyze any local git repository for contributor rankings, LOC by language, commit activity patterns, and monthly trends. ## Quick Start ```bash # Analyze current repo python3 scripts/git_stats.py # Analyze a specific repo python3 scripts/git_stats.py /path/to/repo # JSON output for further processing python3 scripts/git_stats.py --json # Filter by date range python3 scripts/git_stats.py --since 2025-01-01 --until 2025-12-31 # Specific branch python3 scripts/git_stats.py --branch main # Skip LOC counting for faster results python3 scripts/git_stats.py --no-loc ``` ## Output Sections - **Top Contributors** — ranked by commit count with email - **Lines of Code** — total files/lines, broken down by extension - **File Types** — file count by extension - **Activity by Day** — which days of the week get the most commits - **Activity by Hour** — peak coding hours - **Monthly Trend** — commit volume over the last 12 months (configurable with `--months`) ## Options | Flag | Description | |------|-------------| | `--branch` | Analyze a specific branch | | `--since` | Only include commits after this date | | `--until` | Only include commits before this date | | `--months N` | Monthly trend window (default: 12) | | `--json` | Output as JSON for programmatic use | | `--no-loc` | Skip line counting (much faster on large repos) | ## Dependencies - `git` CLI (must be on PATH) - Python 3.8+ (stdlib only, no pip packages needed)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 git-stats-1776050882 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 git-stats-1776050882 技能

通过命令行安装

skillhub install git-stats-1776050882

下载 Zip 包

⬇ 下载 git-stats v1.0.0

文件大小: 4.23 KB | 发布时间: 2026-4-14 12:19

v1.0.0 最新 2026-4-14 12:19
Initial release of git-stats.

- Analyze local git repositories for contributor rankings, lines of code (LOC) by language, commit activity patterns, and monthly trends.
- Output includes: top contributors, LOC by extension, file type counts, daily/hourly commit charts, and monthly commit trends.
- Multiple options such as branch selection, date filtering, JSON output, window for monthly trends, and skipping LOC for speed.
- Compatible with Python 3.8+ (no extra packages) and requires git on PATH.

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

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

p2p_official_large
返回顶部