commit-pr
Installation
SKILL.md
Pre-flight Validation
- Check git repo:
git rev-parse --git-dir 2>/dev/null || echo "Not a git repo" - Check gh CLI:
gh --version 2>/dev/null || echo "gh not installed" - If either fails, exit with error message
Step 1: Commit Changes
- Run
git status -sbto check state - If changes exist:
- View:
git diff --stagedandgit 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
- Format:
- Commit with HEREDOC to preserve formatting
- View:
- If no changes, skip to Step 2