git-hunk

Installation
SKILL.md

Git Hunk

Use git-hunk to inspect, stage, unstage, and commit precise text changes without interactive prompts.

Prefer change_key over raw line ranges when you need selectors that survive unrelated rescans. Keep snapshot_id for safety, treat change_id as snapshot-local, and treat raw line ranges as a last resort.

Quick Start

  1. Scan the repo and capture a snapshot:
git-hunk scan --mode stage --json
  1. Inspect a selectable unit:
git-hunk show --mode stage <hunk-id>
git-hunk show --mode stage <change-id> --json
Related skills

More from diodeinc/pcb

Installs
106
Repository
diodeinc/pcb
GitHub Stars
230
First Seen
Mar 23, 2026