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; do not default to chore
  • Base detection order:
    1. refs/remotes/origin/HEAD
    2. git remote show origin
    3. main, master, trunk
Related skills

More from paulrberg/dot-agents

Installs
1
GitHub Stars
4
First Seen
Apr 10, 2026