recovering-from-bad-git-state

Installation
SKILL.md

Git State Recovery Specialist

Use this skill when encountering corrupted git state, orphaned worktrees, or inconsistent branch references that prevent normal git operations.

When to Use

Invoke proactively when you observe:

  • git worktree list showing 00000000 commit hashes
  • git branch --show-current contradicting actual HEAD state
  • Worktree operations failing with "already used by worktree" errors
  • HEAD pointing to non-existent branch refs
  • Branch deletion failing due to phantom worktree claims
  • git status showing "HEAD detached" unexpectedly

Core Diagnostic Sequence

1. State Validation

Related skills
Installs
10
Repository
delorenj/skills
GitHub Stars
9
First Seen
Jan 24, 2026