Branchstat — Git skill for Claude Code
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
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 RepositoryRelated Skills
PR Describe
Review the current branch's diff against the base branch and update the GitHub PR with a clear title and descr
PR Desc
Reads git diff between the current branch and main (or a specified base branch), analyzes changed files, and g
Cdd Pre PR
Run a pre-PR checklist for the current branch. Compare against the base branch to identify all changes. This i
Cdd Merge Base
Integrate the current state of the base branch into the feature branch. Two phases: a dry-run conflict assessm
Review Merge
Pre-merge exhaustive review of the current branch against its base
Git Context
!git status --short !git branch --show-current !git log -3 --oneline !git diff --stat --- Based on the changes
Related Agents
PR Summarizer
Generates comprehensive PR summaries after all automated tests pass. Analyzes the full diff against the base b
Mp Goal Assessor
Read-only, fresh-context assessment of a completed masterplan run's declared goals. Consumes goals.md as QUOTE
Worktree Reviewer
Adversarial reviewer for a User Story in its git worktree. Launched by the Orchestrator Agent when a worktree-