Git Health Check banner
G-Hensley G-Hensley

Git Health Check

Git community

Description

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

Installation

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.

Full documentation available on GitHub

View Source Repository