git-staging
Installation
SKILL.md
Non-interactive Git Staging
When to use this skill
Use this skill when you need to:
- Stage only specific hunks from a file (not the entire file)
- Stage only specific lines within a hunk
- Avoid interactive git commands (
git add -p,git add -i, etc.) - Programmatically control exactly what gets staged
Step 1: Assess the changes
Before choosing a staging method, determine what changes exist: