abernier

Branchstat — Git skill for Claude Code

Git community

Net diff of the current branch vs its base, bucketed and rolled up by module.

How to install Branchstat

Installs to ~/.claude/skills/abernier-skills-branchstat/SKILL.md

Terminal
mkdir -p ~/.claude/skills/abernier-skills-branchstat && curl -fsSL https://raw.githubusercontent.com/abernier/skills/HEAD/commands/branchstat.md -o ~/.claude/skills/abernier-skills-branchstat/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Branchstat does


description: Net diff of the current branch vs its base, bucketed and rolled up by module argument-hint: "[base] [--md] [--of ] [--depth ]" allowed-tools: Bash(bash:*)

!`bash ${CLAUDE_PLUGIN_ROOT}/scripts/branchstat.sh $ARGUMENTS`

The report above is the answer: a headline total counted the way GitHub counts a PR, then a breakdown of hand-written code only — source, tests and config apart — rolled up by module so the branch names where its weight sits.

Hand it back as it st

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • PR Summary — Generate a pull request summary for the current branch 5.8k ★
  • Claude Code Safety Net — A Claude Code plugin that acts as a safety net, catching destructive git and filesystem commands before they e 1.2k ★

Full documentation available on GitHub

View Source Repository