git-hunk
Precise non-interactive Git hunk staging and atomic commits
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install git-hunk?โผ
Run `npx skills add nexxeln/git-hunk --all -g -y` in your terminal to install this skill globally.
How to stage only part of a file in Git?โผ
Run `git-hunk scan` to list selectable hunks, then use `git-hunk stage` with a hunk, change key, or line range to stage exactly what you want.
Is git-hunk a replacement for git add -p?โผ
Yes. It performs the same selective staging non-interactively, using snapshot IDs and stable change keys instead of manual prompts.
Can AI coding agents use git-hunk safely?โผ
Yes. It outputs structured JSON, supports dry-run previews, and validates snapshots so agents never stage the wrong changes.
How do I preview a commit before making it?โผ
Use `git-hunk commit --dry-run --json` with your selectors to see the exact files, diffstat, and patch before anything is committed.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core