← 返回 Skills 市场
162
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install git-stats
功能描述
Analyze git repository statistics including contributor rankings, lines of code by language, commit frequency by day/hour, monthly activity trends, and file...
使用说明 (SKILL.md)
Git Stats
Analyze any local git repository for contributor rankings, LOC by language, commit activity patterns, and monthly trends.
Quick Start
# 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
gitCLI (must be on PATH)- Python 3.8+ (stdlib only, no pip packages needed)
安全使用建议
This skill appears to do exactly what it says: analyze local git repositories. Before installing or running it, note that:
- It runs 'git' commands and reads all tracked files in the repository (including file contents when counting LOC). Do not run it on repos containing secrets you don't want printed or exported.
- The SKILL.md mentions required binaries (git and Python 3.8+); ensure those are present. The registry metadata omitted that requirement — this is a minor inconsistency but explainable.
- The script prints contributor names/emails and repository file contents counts; if you plan to share output (JSON or text), sanitize sensitive data first.
- For very large repos, use the --no-loc flag to skip line counting (much faster).
- The package contains the full script (scripts/git_stats.py); you can review the code locally before running to confirm there is no network I/O or unexpected behavior (the included script uses subprocess.run for git and local file reads only).
If you need additional assurance, run the script in an isolated environment (e.g., container) on a non-sensitive repo first.
功能分析
Type: OpenClaw Skill
Name: git-stats
Version: 1.0.0
The git-stats skill is a standard utility for analyzing local Git repository statistics such as contributor rankings, lines of code, and commit trends. The Python script (scripts/git_stats.py) uses subprocess.run with argument lists to safely execute git commands and relies solely on the Python standard library, showing no signs of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description match the included script: it runs git commands and reads tracked files to compute contributor rankings, LOC, activity, and trends. Minor inconsistency: registry metadata listed 'Required binaries: none' but SKILL.md correctly documents that the git CLI and Python 3.8+ are required.
Instruction Scope
SKILL.md instructs the agent to run the included script against a local repo and offers relevant flags (--json, --no-loc, --since, --until, --branch). The script only reads git metadata and tracked files; it does not access unrelated system files or external endpoints.
Install Mechanism
No install spec (instruction-only with a bundled script). Nothing is downloaded or written to disk by an installer step.
Credentials
The skill requests no environment variables or credentials. The script does not read secrets from env vars or require unrelated credentials.
Persistence & Privilege
always is false and the skill does not modify agent/system configuration or other skills. It requires explicit invocation to run (normal behavior).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install git-stats - 安装完成后,直接呼叫该 Skill 的名称或使用
/git-stats触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
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.
元数据
常见问题
Git Stats 是什么?
Analyze git repository statistics including contributor rankings, lines of code by language, commit frequency by day/hour, monthly activity trends, and file... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 162 次。
如何安装 Git Stats?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install git-stats」即可一键安装,无需额外配置。
Git Stats 是免费的吗?
是的,Git Stats 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Git Stats 支持哪些平台?
Git Stats 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Git Stats?
由 John Wang(@johnnywang2001)开发并维护,当前版本 v1.0.0。
推荐 Skills