nexxelnnexxelnCommunityยท1 Agent Skills Included

git-hunk

Precise non-interactive Git hunk staging and atomic commits

Stages, unstages, and commits exact Git hunks, changes, and line ranges without interactive prompts. Replaces error-prone `git add -p` sessions with snapshot-based selectors, dry-run previews, and JSON output. Helps developers and coding agents build clean atomic commits from messy working trees quickly and safely.
npx skills add nexxeln/git-hunk --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How 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โ†’