Diagnose confusing Git repository state, interrupted operations, detached or unborn HEAD, index/worktree mismatches, ignored or untracked files, and repository integrity symptoms. Use when the user asks what state Git is in or why status, diff, switch, merge, or commit behaves unexpectedly. Do not use to perform the eventual recovery or history rewrite.