AGENT SKILL

gitstats

Git contributor stats — optional filter by filename or contributor name

License 许可
MIT
最近更新
2026-10-19
Stars
★ 2
Forks
1

01 前言 Front Matter

name
gitstats
description
Git contributor stats — optional filter by filename or contributor name
allowed-tools
Bash(bash *gitstats_all.sh*)
argument-hint
[filename | contributor | LINES|FILES|LAST]

02 资源文件 1

03 SKILL.md 正文

Script path: The harness injects Base directory for this skill: <path> at the very top of these instructions. That full path is BASE_DIR — it already ends in .../skills/gitstats. Do not trim or modify it.

Run bash "<BASE_DIR>/gitstats_all.sh" $ARGUMENTS (substitute the actual injected path) and print the output.

Modes (handled entirely by script — no parsing needed here):

  • No arg / LINES / FILES / LAST → all contributors ranked by chosen column
  • Partial contributor name → top-10 files for matched contributor
  • File path with git history → contributor breakdown for that file
  • Unrecognized arg → script prints error and exits non-zero; relay the error message

04 同仓库更多 Skills