git-squash

Installation
SKILL.md

Git Squash

Squash the current PR branch into one commit based on net branch changes relative to the default branch. Do not create or invoke a helper script. Run the Git commands directly.

Arguments

Parse $ARGUMENTS for optional flags:

  • --subject <line>: Override the generated commit subject line
  • --base <branch>: Override default-branch auto-detection

Defaults:

  • Subject: infer a conventional-commit subject from the squashed changes themselves (see step 6's chore rule)
  • Base detection order: see step 2

Workflow

1) Pre-flight

Installs
173
GitHub Stars
64
First Seen
Mar 18, 2026
git-squash — paulrberg/agent-skills