commit-pr

Installation
SKILL.md

Pre-flight Validation

  1. Check git repo: git rev-parse --git-dir 2>/dev/null || echo "Not a git repo"
  2. Check gh CLI: gh --version 2>/dev/null || echo "gh not installed"
  3. If either fails, exit with error message

Step 1: Commit Changes

  1. Run git status -sb to check state
  2. If changes exist:
    • View: git diff --staged and git diff
    • Stage: git add -A (or ask user for specific files)
    • Generate Conventional Commit message:
      • Format: <type>(<scope>): <description>
      • Types: feat|fix|docs|style|refactor|perf|test|chore
    • Commit with HEREDOC to preserve formatting
  3. If no changes, skip to Step 2

Step 2: Push Branch

Installs
2
First Seen
Feb 7, 2026
commit-pr — sweetretry/skills