Git Stash Helper is a skill for AI agents that adds structured management around git stash operations. Instead of producing cryptic, anonymous stash entries, it automatically generates stash messages that include the branch name, a timestamp, and a summary of the work in progress, making stash history searchable and self-documenting.
When restoring stashes, the skill validates the worktree status and checks that the target stash index exists before attempting a pop. This prevents accidental data loss from popping into a dirty worktree and avoids errors caused by referencing a missing stash index. It also guards against edge cases such as detached HEAD states that would otherwise cause silent failures or confusing error output.
Listing stashes converts standard git output into a clean, numbered format so an agent can select the correct stash without parsing raw git stash list output. The skill also prevents empty stashes from being created in the first place.
This skill is optimized for terminal-based AI agents with filesystem and shell access, such as Claude Code and Codex, and works in any standard Git repository. It requires no environment variables and has no external service dependencies. The skill does not replace the git CLI; it wraps stash workflows with additional safety checks and consistent naming conventions that make automated or agent-driven development easier to follow.