git-hunks
CommunityStaged changes by hunk, not whole files.
Authorrcdailey
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Use when staging individual hunks or partial changes within a file non-interactively (scripted replacement for git add -p). This enables splitting a file's changes across multiple commits, staging only selected lines or regions, or selecting hunks in automated workflows where terminal interaction is unavailable.
Core Features & Use Cases
- Stage specific hunks by ID to craft precise commits
- List unstaged hunks with stable IDs for easy reference
- Hunk IDs follow the pattern file:@-old,len+new,len and remain stable during staging
- Workflow example: view hunks, stage chosen ones, and commit
Quick Start
List available hunks with git hunks list, then add the desired hunks by ID using git hunks add '<id>' and commit.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: git-hunks Download link: https://github.com/rcdailey/dotfiles/archive/main.zip#git-hunks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.