git-hunks
Installation
SKILL.md
git-hunks
Non-interactive hunk staging for automated workflows. Replaces git add -p when terminal
interaction is unavailable.
Commands
git hunks list # Show unstaged hunks with stable IDs
git hunks list --staged # Show staged hunks
git hunks add '<id>' ['<id>'...] # Stage specific hunks by ID
Hunk ID Format
IDs use the pattern file:@-old,len+new,len, derived from diff @@ headers. IDs remain stable as
other hunks are staged (unlike line-based approaches).