G-Hensley

Git Health Check — Git skill for Claude Code

Git community

Run the git-health-check skill against the current repo.

How to install Git Health Check

Installs to ~/.claude/skills/g-hensley-gavins-agent-system-git-health-check/SKILL.md

Terminal
mkdir -p ~/.claude/skills/g-hensley-gavins-agent-system-git-health-check && curl -fsSL https://raw.githubusercontent.com/G-Hensley/gavins-agent-system/HEAD/commands/git-health-check.md -o ~/.claude/skills/g-hensley-gavins-agent-system-git-health-check/SKILL.md

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

What Git Health Check does

Run the `git-health-check` skill against the current repo.

Detects and optionally repairs:

  1. HEAD integrity — trailing-slash truncation, missing newline, missing ref target, invalid detached sha
  2. Corruption artifacts — .git/*.corrupt*, *.bak, *.orig left from prior recoveries
  3. Dangling locks — .git/*.lock files older than 5 minutes (crashed writers)
  4. Stranded dependabot branches — report count + dates, don't auto-delete
  5. Remote divergence — `git fetch --dry

Alternatives in Git

  • Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
  • Git Status — Read the Files and run the Commands and summarize the current state of the git repository 3.4k ★
  • PR Checks — Show current PR's check status; pull failure logs if any are red 324 ★

Full documentation available on GitHub

View Source Repository